/* ==========================================================================
   1. HERO SECTION — CENTERED LIGHT LAYOUT
   ========================================================================== */

.hero-section-centered {
  padding: 3.5rem 0 0 0;
  background: linear-gradient(180deg, rgba(88, 186, 64, 0.04) 0%, var(--color-bg-main) 100%);
  color: var(--color-text-main);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-centered-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-centered-title {
  font-size: 3.75rem;
  line-height: 1.1;
  color: var(--color-primary);
  font-weight: var(--font-weight-headline-max);
  margin-bottom: 1rem;
}

.hero-centered-tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: 2.25rem;
}

.hero-centered-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
}

.hero-centered-ctas {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}


/* ==========================================================================
   2. HERO TITLE — BLUR REVEAL ANIMATION
   ========================================================================== */

.hero-title-line {
  display: block;
  opacity: 0;
  filter: blur(20px);
  transform: translateY(15px);
  animation: blurRevealHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blurRevealHero {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}


/* ==========================================================================
   3. HERO FLOATING BLOBS / BADGES
   ========================================================================== */

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

.hero-floating-blob {
  position: absolute;
  padding: 0.5rem 1.25rem;
  background: rgba(88, 186, 64, 0.06);
  border: 1px solid rgba(88, 186, 64, 0.15);
  border-radius: var(--border-radius-pill);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: var(--shadow-badge);
  animation: floatUpDown 4s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* Vị trí từng blob */
.blob-1 { left: 8%;  top: 20%; animation-duration: 5s; }
.blob-2 { right: 10%; top: 15%; animation-duration: 6s;   animation-delay: 0.5s; }
.blob-3 { left: 12%; top: 50%; animation-duration: 5.5s; animation-delay: 1s; }
.blob-4 { right: 15%; top: 45%; animation-duration: 4.8s; animation-delay: 1.5s; }
.blob-5 { left: 22%; top: 75%; animation-duration: 6.2s; animation-delay: 0.8s; }

/* Ẩn blob trên màn hình nhỏ */
@media (max-width: 992px) {
  .hero-floating-blob {
    display: none !important;
  }
}


/* ==========================================================================
   4. HERO TEAM PHOTO — FULL-WIDTH CONTAINER & FADE OVERLAY
   ========================================================================== */

.hero-centered-image-container-full {
  width: 100%;
  position: relative;
  margin: 2.5rem auto 0 auto;
}

.hero-centered-image-container-full .hero-centered-img-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-team-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gradient fade để ảnh team hòa vào nền trắng bên dưới */
.hero-centered-img-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg-main) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}


/* ==========================================================================
   5. MOBILE RESPONSIVE — HOMEPAGE HERO ONLY
   ========================================================================== */

@media (max-width: 768px) {

  /* Hero wrapper */
  .hero-section-centered {
    padding: 3.5rem 0 0 0 !important;
  }

  .hero-centered-layout {
    gap: 1.5rem !important;
  }

  /* Hero title */
  .hero-centered-title {
    font-size: 2.15rem !important;
    line-height: 1.25 !important;
    padding: 0 0.5rem !important;
  }

  /* Hero tagline */
  .hero-centered-tagline {
    font-size: 1.05rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.75rem !important;
  }

  /* Hero description */
  .hero-centered-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.75rem !important;
  }

  /* Hero CTA buttons */
  .hero-centered-ctas {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto 1rem auto !important;
    gap: 0.75rem !important;
  }

  .hero-centered-ctas .btn {
    width: 100% !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  /* Hero team photo */
  .hero-centered-image-container-full .hero-centered-img-wrapper {
    height: auto !important;
  }

  .hero-team-full-img {
    height: auto !important;
    object-fit: cover !important;
  }

  .hero-centered-img-fade {
    height: 40px !important;
  }
}

/* ==========================================================================
   6. GALLERY SEMANTIC LAYOUT & RESET
   ========================================================================== */
.gallery-dense-item figure {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.gallery-item-btn {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

/* ==========================================================================
   7. OFFICE TABS SEMANTIC RESET
   ========================================================================== */
.office-tabs {
  list-style: none !important;
  padding: 0 !important;
}

.office-tabs li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block; /* Fallback for older browsers */
}

/* Ensure flex/grid children li elements stretch or fit correctly */
.office-tabs li {
  display: list-item; /* Reset to allow display: grid/flex to apply properly to li */
  list-style-type: none !important;
}

.office-tabs li .office-tab-btn {
  width: 100% !important;
}

/* ==========================================================================
   8. EQUAL HEIGHT CAROUSEL CARDS
   ========================================================================== */
.carousel-track {
  align-items: stretch !important;
}

.carousel-track .slide-item {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important; /* Let flex stretch control the height */
}

/* Force cards to expand and fill the slide height */
.carousel-track .slide-item > .card,
.carousel-track .slide-item > .blog-card,
.carousel-track .slide-item > .press-card,
.carousel-track .slide-item > .testimonial-card {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  height: auto !important; /* Allow stretch */
}

/* Align contents inside cards (e.g., push meta/footer elements to bottom) */
.blog-card-content,
.press-card-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
}

/* ==========================================================================
   9. PRESS OUTLET BADGE STYLING
   ========================================================================== */
.press-outlet-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important; /* Slightly larger gap */
  margin-bottom: 0.9rem !important;
  background-color: var(--color-primary-light) !important;
  border: 1px solid var(--color-border) !important;
  padding: 5px 12px !important; /* Slightly larger padding */
  border-radius: var(--border-radius-pill) !important;
  align-self: flex-start !important; /* Prevent stretching horizontally */
}

.press-outlet-logo {
  width: 18px !important; /* Slightly larger logo */
  height: 18px !important;
  object-fit: contain !important;
  border-radius: 2px !important;
}

.press-outlet-name {
  font-size: 0.78rem !important; /* Slightly larger font */
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}



