/**
 * Banner Unit - Clinic Master style
 * Full-bleed hero with transparent header overlay
 * https://clinicmaster.dexignzone.com/tailwind/pediatrics/index.html
 */

/* Wrapper: hero fills viewport, header floats on top */
.banner-unit {
  position: relative;
}

/* Ensure main has no top padding when hero is first */
.has-banner-unit .main-content {
  padding-top: 0 !important;
}

/* Overlay header: floats IN FRONT of banner, transparent - banner behind */
.header-clinic--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent !important;
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s;
}

/* Subtle gradient only at very top for text contrast */
.header-clinic--overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.header-clinic--overlay.is-scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-clinic--overlay.is-scrolled::after {
  display: none;
}

.header-clinic--overlay.is-scrolled .header-clinic__hamburger span,
.header-clinic--overlay.is-scrolled .header-clinic__logo-main,
.header-clinic--overlay.is-scrolled .header-clinic__logo-tagline,
.header-clinic--overlay.is-scrolled .header-clinic__nav a,
.header-clinic--overlay.is-scrolled .header-clinic__contact span,
.header-clinic--overlay.is-scrolled .header-clinic__contact-phone {
  color: #1e293b !important;
}

.header-clinic--overlay.is-scrolled .header-clinic__contact {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Overlay mode: white text for visibility on dark image */
.header-clinic--overlay .header-clinic__hamburger span {
  background: #fff;
}

.header-clinic--overlay .header-clinic__logo-main {
  color: #fff;
}

.header-clinic--overlay .header-clinic__logo-tagline {
  color: rgba(255, 255, 255, 0.85);
}

.header-clinic--overlay .header-clinic__nav a {
  color: #fff;
}

.header-clinic--overlay .header-clinic__nav a:hover,
.header-clinic--overlay .header-clinic__nav a.active {
  color: #f9d66d;
}

.header-clinic--overlay .header-clinic__contact {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.header-clinic--overlay .header-clinic__contact i {
  color: #fff;
}

.header-clinic--overlay .header-clinic__contact span:first-of-type {
  color: rgba(255, 255, 255, 0.9);
}

.header-clinic--overlay .header-clinic__contact-phone {
  color: #fff;
}

.header-clinic--overlay .header-clinic__btn {
  background: var(--color-button);
  color: #fff;
}

.header-clinic--overlay .header-clinic__btn:hover {
  background: var(--color-button-hover);
  color: #fff;
}

/* Mobile overlay nav */
@media (max-width: 991px) {
  .header-clinic--overlay .header-clinic__nav {
    background: #fff;
  }

  .header-clinic--overlay .header-clinic__nav a {
    color: #1e293b;
  }

  .header-clinic--overlay .header-clinic__nav.is-open {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Hero Banner - full viewport, per-slide background images */
.hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Slider track */
.hero-banner__track {
  position: relative;
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
  min-height: 100vh;
}

/* Each slide has its own background image */
.hero-banner__slide {
  flex: 0 0 100%;
  min-height: 110vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px var(--spacing-xl) 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247, 198, 55, 0.88) 0%,
    rgba(212, 165, 46, 0.72) 45%,
    rgba(201, 162, 39, 0.45) 100%
  );
  pointer-events: none;
}

/* Light overlay for dark-text variant (yellow background, dark text) */
.hero-banner__slide--dark-text .hero-banner__slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(247, 198, 55, 0.75) 0%,
    rgba(247, 198, 55, 0.6) 50%,
    rgba(247, 198, 55, 0.4) 100%
  );
}

/* Content - left aligned like Clinic Master */
.hero-banner__content-wrap {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  width: 100%;
}

.hero-banner__content {
  max-width: 580px;
}

/* Pro content - constrain to left, avoid overlapping right-side graphic */
.hero-banner__content--pro {
  max-width: 52%;
  padding-right: 2rem;
}
@media (max-width: 991px) {
  .hero-banner__content--pro {
    max-width: 70%;
  }
}
@media (max-width: 575px) {
  .hero-banner__content--pro {
    max-width: 85%;
  }
}

.hero-banner__intro {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #15334d;
  margin: 0 0 0.5rem;
  font-family: 'Manrope', var(--font-sans);
}

.hero-banner__title--pro {
  font-family: 'Manrope', var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
  color: #15334d !important;
  text-align: left !important;
  white-space: normal !important;
  margin: 0 0 var(--spacing-md) !important;
}

.hero-banner__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-sm);
  font-family: 'Manrope', var(--font-sans);
}

.hero-banner__title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 var(--spacing-md);
  font-family: 'Manrope', var(--font-sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-banner__date {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 900;
  color: #000;
  margin: 0 0 var(--spacing-sm);
  font-family: 'Manrope', var(--font-sans);
  white-space: nowrap;
}

.hero-banner__location {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-button);
  margin: 0 0 var(--spacing-md);
  font-family: 'Manrope', var(--font-sans);
  white-space: nowrap;
}

.hero-banner__location i {
  margin-right: var(--spacing-sm);
  opacity: 0.9;
}

/* Dark-text variant: second image style */
.hero-banner__slide--dark-text .hero-banner__title,
.hero-banner__slide--dark-text .hero-banner__location {
  color: #15334d;
}

.hero-banner__slide--dark-text .hero-banner__intro,
.hero-banner__slide--dark-text .hero-banner__title--pro {
  color: #15334d !important;
}

.hero-banner__slide--dark-text .hero-banner__date {
  color: #000;
}

.hero-banner__slide--dark-text .hero-banner__desc {
  color: #475569;
}

@media (max-width: 767px) {
  .hero-banner__title,
  .hero-banner__date,
  .hero-banner__location {
    white-space: normal;
  }
}

.hero-banner__desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--spacing-xl);
}

/* Theme block - under hosted by, centered, shifted slightly left */
.hero-banner__theme {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  margin-left: -20px;
}
.hero-banner__theme-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.hero-banner__theme-title {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}
.hero-banner__theme-accent {
  font-size: 1.75em;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-banner__slide--dark-text .hero-banner__theme-label,
.hero-banner__slide--dark-text .hero-banner__theme-title {
  color: #1a1a1a;
}

.hero-banner__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.hero-banner__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 28px;
  background: var(--color-button);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Manrope', var(--font-sans);
}

.hero-banner__cta-primary:hover {
  background: var(--color-button-hover);
  color: #fff;
  transform: translateY(-2px);
}

.hero-banner__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
  font-family: 'Manrope', var(--font-sans);
}

.hero-banner__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Slider indicator */
.hero-banner__indicator {
  position: absolute;
  left: var(--spacing-xl);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15em;
  z-index: 10;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 767px) {
  .hero-banner__indicator {
    left: var(--spacing-md);
    font-size: 0.75rem;
  }
}

/* Arrows */
.hero-banner__arrows {
  position: absolute;
  right: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  z-index: 10;
}

.hero-banner__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hero-banner__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-banner__arrow--prev i {
  transform: rotate(90deg);
}

.hero-banner__arrow--next i {
  transform: rotate(-90deg);
}

/* Scroll down hint */
.hero-banner__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-decoration: none;
  animation: bounce 2s infinite;
}

.hero-banner__scroll:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@media (max-width: 767px) {
  .hero-banner__slide {
    padding: 100px var(--spacing-md) 60px;
  }

  .hero-banner__arrows {
    right: var(--spacing-md);
  }
}

/* Hosted by banner - logo left, content right, left-aligned */
.hosted-by-banner {
  background: #fffde3;
  border-top: 4px solid #fdd835;
  border-bottom: 4px solid #fdd835;
  padding: 1.25rem 0;
}

.hosted-by-banner__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.hosted-by-banner__logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.hosted-by-banner__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hosted-by-banner__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.hosted-by-banner__label {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #4F6370;
}

.hosted-by-banner__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #15334d;
  line-height: 1.25;
}

@media (max-width: 575px) {
  .hosted-by-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hosted-by-banner__logo {
    width: 64px;
    height: 64px;
  }

  .hosted-by-banner__label {
    font-size: 0.875rem;
  }

  .hosted-by-banner__name {
    font-size: 1.25rem;
  }
}
