/* =============================================
   LANDING PAGE - HỆ SINH THÁI THẢO XINH GROUP
   ============================================= */

/* ── GLOBAL OVERRIDE: prevent main.css page-heading rule ── */
/* main.css forces .page h1,.h2... to font-main, we override for LP only */
.lp-hero-below h1,
.lp-hero-below h2,
.lp-hero-below p.lp-hero-below__pre {
  font-family: var(--font-heading) !important;
}
/* Fix description link colors - WordPress auto-links gây màu tím/xanh */
.lp-hero-below__desc,
.lp-hero-below__desc *,
.lp-hero-below__desc p,
.lp-hero-below__desc a,
.lp-hero-below__desc a:link,
.lp-hero-below__desc a:visited,
.lp-hero-below__desc span,
.lp-hero-below__desc strong {
  color: #333 !important;
  text-decoration: none !important;
}

/* ── LP HERO ─────────────────────────────── */
.lp-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}
.lp-hero__frame {
  position: relative;
  width: 100%;
  line-height: 0;
}
.lp-hero__bg-wrap {
  display: block;
  width: 100%;
}
.lp-hero__bg {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
  object-position: center top;
}
/* Caption góc dưới phải */
.lp-hero__caption {
  position: absolute;
  bottom: 22px;
  right: 36px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  line-height: 1;
}
.lp-hero__caption-dot {
  color: #d4a843;
  font-size: 0.7rem;
}
/* Navigation arrows */
.lp-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}
.lp-hero__nav:hover { background: rgba(255,255,255,0.38); }
.lp-hero__nav--prev { left: 20px; }
.lp-hero__nav--next { right: 20px; }

/* ── LP HERO BELOW ─── */
.lp-hero-below {
  background: #fff;
  padding: 40px 0;
}
.lp-hero-below .container {
  max-width: 1000px;
  margin: 0 auto;
}
.lp-hero-below__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e2f5;
}
.lp-hero-below__left {
  text-align: center;
}
/* Pre-title: HỆ SINH THÁI - heading font, không italic, navy đậm */
.lp-hero-below__pre {
  font-family: var(--font-heading) !important;
  font-size: 28px;
  color: #1a1038;
  margin: 0 0 6px;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase !important;
  white-space: nowrap;
}
/* Main title: THẢO XINH GROUP - to hơn, bold, navy đậm */
.lp-hero-below__title {
  font-family: var(--font-heading) !important;
  font-size: 40px !important;
  color: #1a1038;
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.lp-hero-below__right {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}
.lp-hero-below .lp-hero-below__desc,
.lp-hero-below .lp-hero-below__desc p,
.lp-hero-below .lp-hero-below__desc a {
  font-size: 0.92rem;
  color: #222 !important;
  line-height: 1.85;
  margin: 0;
  text-decoration: none !important;
  font-weight: 400;
  text-align: justify;
}
.lp-hero-below .lp-hero-below__desc a:hover,
.lp-hero-below .lp-hero-below__desc a:link,
.lp-hero-below .lp-hero-below__desc a:visited {
  color: #222 !important;
}
.lp-hero-below .lp-hero-below__secondary {
  font-size: 0.9rem;
  color: #555 !important;
  line-height: 1.9;
  text-align: center;
  font-style: italic;
  max-width: 820px;
  margin: 0 auto;
}

/* ── LP TICKER ───────────────────────────── */
.lp-ticker {
  background: #3a2f6e;
  overflow: hidden;
  padding: 12px 0;
}
.lp-ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: lpTickerScroll 30s linear infinite;
}
.lp-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 36px;
  white-space: nowrap;
}
.lp-ticker__item svg {
  color: #d4a843;
  flex-shrink: 0;
}
@keyframes lpTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 4 THƯƠNG HIỆU SLIDER ────────────────────────────── */
.lp-brands-slider {
  background: #fff;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0 !important; /* Override generic section padding */
  margin: 0 !important;
}
.lp-brands-slider__container {
  position: relative;
  width: 100%;
}
.lp-brands-slider__track {
  display: flex;
  width: 100%;
  /* For PC, it's 4 columns grid, for mobile it can scroll */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.lp-brand-card {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.lp-brand-card__img-wrap {
  position: relative;
  width: 100%;
  height: 550px; /* Tall images like the design */
  overflow: hidden;
}
.lp-brand-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.lp-brand-card:hover .lp-brand-card__img-wrap img {
  transform: scale(1.05);
}
.lp-brand-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}
.lp-brand-card:hover .lp-brand-card__overlay {
  opacity: 1;
}
.lp-brand-card__btn {
  background: #fff;
  color: #1a1038;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateY(20px);
  transition: transform 0.3s ease, background 0.3s;
}
.lp-brand-card:hover .lp-brand-card__btn {
  transform: translateY(0);
}
.lp-brand-card__btn:hover {
  background: #1a1038;
  color: #fff;
}
.lp-brand-card__info {
  padding: 24px 20px;
  text-align: left;
  background: #fff;
}
.lp-brand-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1038;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.lp-brand-card__sub {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Nav Arrows */
.lp-brands-slider__nav {
  display: none; /* Hidden on PC */
  position: absolute;
  top: 275px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #1a1038;
}
.lp-brands-slider__nav--prev {
  left: 10px;
}
.lp-brands-slider__nav--next {
  right: 10px;
}

@media (max-width: 1024px) {
  .lp-brands-slider__track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .lp-brands-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .lp-brand-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* ── LP STATS ────────────────────────────── */
.lp-brands-slider__progress {
  display: none; /* Hidden on PC */
}

.lp-stats {
  background: #fff;
  padding: 50px 0 60px !important;
}
.lp-stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f9fafb;
  padding: 50px 100px;
  border-radius: 12px;
}
.lp-stat-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.lp-stat-item__num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: #3c2e71;
  line-height: 1;
  margin-bottom: 10px;
}
.lp-stat-item__label {
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}
.lp-stats__divider {
  width: 1px;
  height: 60px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* ── LP SERVICE SECTIONS ─────────────────── */
.lp-service {
  position: relative;
  margin-top: 60px;
  padding: 28px 0 50px; /* User requested: padding dưới cùng 50px */
  background: #ffffff;
}
.lp-service:nth-child(even) {
  background: #ffffff;
}
.lp-service__bg-half {
  position: absolute;
  top: 0;
  bottom: 0; /* Background covers all the way down */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
}
.lp-service--reverse .lp-service__bg-half {
  left: 0;
  right: 0;
}
.lp-service__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-service__container {
  max-width: 1000px;
  display: flex;
  flex-direction: column; /* Stack rows vertically */
  align-items: flex-start; /* Start at top, not vertically centered */
  position: relative;
  z-index: 2;
  padding-top: 4px; /* Content starts right below pill */
}
.lp-service__content-row {
  width: 100%;
  display: flex;
}
.lp-service__text-col {
  width: 50%;
  padding-right: 60px;
}
.lp-service--reverse .lp-service__content-row {
  justify-content: flex-end;
}
.lp-service--reverse .lp-service__text-col {
  padding-right: 0;
  padding-left: 60px;
}
.lp-service--reverse .lp-service__container {
  align-items: flex-end; /* Ensure the 70% width block floats to the right in reverse sections */
}
.lp-service__content {
  position: relative;
  padding: 0 0 16px;
  text-align: left;
  background-color: transparent;
}
/* ── PILL: at top edge of section, aligned with 1000px container ── */
.lp-service__header-pill {
  position: absolute;
  top: 0;
  /* Odd sections (1,3,5): align pill LEFT edge with container left edge */
  left: calc(50% - 480px);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  height: 54px; /* Fixed height for the pill body, shorter than the circle */
  background: #392b70; /* Solid dark purple matching the design */
  border-radius: 50px;
  padding: 0 40px 0 0; /* No vertical padding, let the circle overflow */
  min-width: 400px;
  box-shadow: 0 6px 20px rgba(60,46,113,0.35);
  white-space: nowrap;
  z-index: 10;
}
/* Even sections (2,4): align pill RIGHT edge with container right edge */
.lp-service--reverse .lp-service__header-pill {
  left: auto;
  right: calc(50% - 480px);
}
.lp-service__pill-num {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a4ea8, #2a1c58); /* 3D gradient */
  border: none; /* No solid border, use inset shadow for the highlight */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-right: 18px;
  margin-left: -5px; /* Slight overhang on the left to cap the pill */
  flex-shrink: 0;
  box-shadow: inset 3px 3px 6px rgba(255,255,255,0.35), 0 4px 10px rgba(0,0,0,0.3); /* Top-left highlight and bottom shadow */
}
.lp-service__pill-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-service__sub-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #3c2e71;
  margin: 0 0 16px;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  padding: 12px 20px;
  min-height: 52px;
  /* Ensure transparent background so the uploaded image takes full effect */
  background-color: transparent;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  box-shadow: none;
}
.lp-service__desc {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.8;
  margin: 0;
  text-align: center; /* User requested: nội dung dưới tiêu đề canh giữa */
}
.lp-service__boxes-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 5px; /* User requested: 5px gap */
  margin: 24px 0 0;
  width: 70%; /* User requested: width 70% */
  background: transparent;
  border: none; /* Remove outer border */
}
.lp-service__box-wrap {
  flex: 1;
  min-width: 0;
  background: #ffffff; /* White background for individual boxes */
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #eaeaea; /* Subtle border around each box */
}
.lp-service__box-wrap:last-child {
  border: 1px solid #eaeaea; /* Ensure the last box also has the full border */
}
.lp-service__box {
  background: transparent;
  padding: 14px 12px;
  height: 100%;
  font-size: 0.85rem;
  color: #392b70; /* Text color matches the purple pill */
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* =============================================
   LANDING PAGE RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
  /* Hero mobile */
  .lp-hero {
    min-height: 420px;
  }
  .lp-hero__title {
    font-size: 2rem;
  }
  .lp-hero__content {
    max-width: 100%;
  }
  .lp-hero__inner {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  /* Intro mobile */
  .lp-intro {
    padding: 48px 0 40px;
  }
  .lp-intro__title {
    font-size: 1.35rem;
  }
  .lp-intro__cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .lp-branch-card__img-wrap {
    height: 120px;
  }
  .lp-branch-card__num {
    font-size: 1.3rem;
  }

  /* Stats mobile */
  .lp-stats {
    padding: 40px 0 !important;
  }
  .lp-stats__grid {
    flex-direction: column;
    gap: 0;
    padding: 40px 20px;
  }
  .lp-stat-item {
    padding: 20px;
    width: 100%;
  }
  .lp-stat-item__num {
    font-size: 2.5rem;
  }
  .lp-stats__divider {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }

  /* Brands Slider Mobile (1 column + nav + progress) */
  .lp-brands-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide native scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
  }
  .lp-brands-slider__track::-webkit-scrollbar {
    display: none;
  }
  .lp-brand-card {
    flex: 0 0 100%; /* 1 column only */
    width: 100%;
    scroll-snap-align: start;
  }
  .lp-brands-slider__nav {
    display: flex !important; /* Force show arrows on mobile */
    top: 230px; /* Position them over the image nicely */
    background: rgba(255,255,255,0.85); /* Slightly less transparent */
    width: 32px;
    height: 32px;
  }
  .lp-brands-slider__nav svg {
    width: 8px;
    height: 14px;
  }
  
  /* Custom Progress Bar for Mobile */
  .lp-brands-slider__progress {
    display: block; /* Show on mobile */
    width: 90%;
    max-width: 300px;
    height: 4px;
    background: #eaeaea;
    margin: 20px auto;
    border-radius: 4px;
    overflow: hidden;
  }
  .lp-brands-slider__progress-bar {
    height: 100%;
    width: 0%;
    background: #392b70;
    border-radius: 4px;
    transition: width 0.1s ease-out;
  }

  /* Service sections mobile */
  .lp-service {
    padding: 0;
    margin-top: 40px;
    overflow: visible; /* Allow the pill to overflow vertically */
    overflow-x: clip; /* Prevent horizontal scroll just in case */
  }
  .lp-service__header-pill,
  .lp-service--reverse .lp-service__header-pill {
    top: 0 !important;
    left: 16px !important;
    right: auto !important;
    height: 40px;
    min-width: 250px;
    padding-right: 20px;
  }
  .lp-service__pill-num {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-right: 12px;
  }
  .lp-service__content {
    padding-top: 10px; /* Reduced from 40px */
    padding-bottom: 0;
  }
  .lp-service__bg-half {
    position: relative;
    width: 100%;
    height: 300px;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .lp-service__container,
  .lp-service--reverse .lp-service__container {
    align-items: stretch; /* Reset alignment on mobile */
  }
  .lp-service__content-row {
    flex-direction: column;
  }
  .lp-service__text-col,
  .lp-service--reverse .lp-service__text-col {
    width: 100%;
    padding: 15px 16px; /* User requested 15px */
  }
  .lp-service__pill-title {
    font-size: 18px !important; /* User requested exactly 18px */
  }
  .lp-service__boxes-row {
    flex-direction: column;
    margin-top: 15px;
    padding: 0 16px 20px;
    width: 100%; /* Reset width to 100% on mobile */
  }
  .lp-service__box {
    padding: 10px 15px !important; /* User requested 15px padding inside boxes */
  }


  /* Hero below mobile */
  .lp-hero {
    padding: 0 !important; /* Image should be at the very top */
  }
  .lp-hero-below {
    padding: 36px 16px 32px;
  }
  .lp-hero-below__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  .lp-hero-below__left,
  .lp-hero-below__right,
  .lp-hero-below .lp-hero-below__desc {
    text-align: center !important;
    justify-content: center;
  }
  .lp-hero-below__pre {
    font-size: 1.3rem;
    white-space: normal;
    text-align: center;
  }
  .lp-hero-below__title {
    font-size: 2.2rem !important;
    white-space: normal;
    text-align: center;
    font-weight: 400 !important; /* Thin font like Image 3 */
  }
  .lp-hero__bg {
    height: auto; /* Show full mobile banner */
    max-height: 600px;
    object-position: center top;
  }
  .lp-hero__caption {
    font-size: 0.6rem;
    bottom: 10px;
    right: 12px;
  }
  .lp-hero__nav {
    width: 32px;
    height: 32px;
  }
  .lp-hero__nav--prev { left: 8px; }
  .lp-hero__nav--next { right: 8px; }
}

@media (max-width: 480px) {
  .lp-intro__cards {
    grid-template-columns: 1fr;
  }
  .lp-hero-below__pre {
    font-size: 1.2rem;
  }
  .lp-hero-below__title {
    font-size: 2rem;
  }
}

