/* ===================================================================
   HORIZONS — COMPONENTS STYLESHEET
   =================================================================== */

/* ===================================================================
   0. TOPBAR
   =================================================================== */
.topbar {
  background: var(--brand-gray-900);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  line-height: 1;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-fixed) + 1);
  height: 38px;
  transition: transform 0.3s ease;
}

.topbar-hidden .topbar {
  transform: translateY(-100%);
}

.topbar-hidden .site-header {
  top: 0 !important;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.78rem;
}

.topbar__item:hover { color: var(--brand-primary-light); }

.topbar__item--text {
  cursor: default;
}

.topbar__item i {
  color: var(--brand-primary-light);
  font-size: 0.75rem;
}

.topbar__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 1.25rem;
}

.topbar__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all 0.18s;
  background: rgba(255,255,255,0.06);
}

.topbar__socials a:hover {
  background: var(--brand-primary);
  color: #fff;
}

@media (max-width: 700px) {
  .topbar__left .topbar__item:last-child { display: none; }
}

@media (max-width: 480px) {
  .topbar { display: none; }
}

/* ===================================================================
   1. HEADER
   =================================================================== */
.site-header {
  position: fixed;
  top: 38px; /* height of topbar */
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--brand-gray-200);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, top 0.3s ease;
}

/* Hide topbar on scroll — header moves to top */
.topbar-hidden .topbar {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.topbar-hidden .site-header {
  top: 0;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.site-header--solid {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

@media (max-width: 480px) {
  .site-header { top: 0; }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.site-logo__text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-logo:hover .site-logo__text { color: var(--brand-primary); }

/* Nav links — always dark */
.site-nav__link {
  color: var(--brand-gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.site-nav__link:hover::after,
.site-nav__link--active::after { width: 100%; }

.site-nav__link:hover,
.site-nav__link--active { color: var(--brand-primary); }

.site-nav__link i { font-size: 0.65rem; transition: transform 0.2s; }

/* Nav list */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Dropdown */
.site-nav__dropdown { position: relative; }

.site-nav__dropdown:hover .site-nav__link i { transform: rotate(180deg); }

.site-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  border: 1px solid var(--brand-gray-200);
  padding: 8px;
  min-width: 270px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: var(--z-dropdown);
}

.site-nav__dropdown:hover .site-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--brand-gray-700);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}

.site-nav__dropdown-menu a:hover {
  background: var(--brand-primary);
  color: #fff;
}

.site-nav__dropdown-menu a i {
  width: 16px;
  text-align: center;
  color: var(--brand-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.site-nav__dropdown-menu a:hover i { color: #fff; }

/* Wide dropdown (mega menu) */
.site-nav__dropdown-menu--wide {
  min-width: 580px;
  display: flex;
  gap: 0;
  left: -60px;
}

/* Dropdown section grouping */
.dropdown-section {
  flex: 1;
  padding: 4px;
}

.dropdown-section + .dropdown-section {
  border-left: 1px solid var(--brand-gray-100);
  padding-left: 8px;
  margin-left: 4px;
}

.dropdown-section__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-text-muted);
  padding: 4px 10px 8px;
  margin-bottom: 2px;
}

/* Header CTA (right side) */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border-radius: 8px;
  font-size: 1.15rem;
  transition: all 0.2s;
  border: 1.5px solid rgba(37, 211, 102, 0.25);
}

.header-cta__whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  transform: translateY(-2px);
}

.header-cta__btn {
  white-space: nowrap;
}

/* Mobile toggle */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.site-nav__toggle:hover { background: var(--brand-gray-100); }

.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-gray-700);
  border-radius: 2px;
  transition: all 0.2s;
}

.site-nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-nav__toggle.active span:nth-child(2) { opacity: 0; }
.site-nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 968px) {
  .site-nav__toggle { display: flex; }

  .site-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .site-nav--open .site-nav__list {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__link {
    padding: 12px 20px;
    color: var(--brand-gray-800) !important;
    border-bottom: 1px solid var(--brand-gray-100);
  }

  .site-nav__dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--brand-gray-50);
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .site-nav__dropdown-menu--wide {
    min-width: 0;
    width: 100%;
    left: 0;
    display: block;
  }

  .dropdown-section + .dropdown-section {
    border-left: none;
    border-top: 1px solid var(--brand-gray-200);
    padding-left: 4px;
    margin-left: 0;
    margin-top: 0;
    padding-top: 4px;
  }

  .site-nav__dropdown:hover .site-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__dropdown-menu a {
    padding: 10px 32px;
    font-size: 0.8rem;
    border-radius: 0;
    border-bottom: 1px solid var(--brand-gray-200);
  }

  .site-nav { overflow: hidden; }
  .site-header__inner { gap: 0.5rem; min-width: 0; }
}

@media (max-width: 420px) {
  .site-logo__text { display: none; }
  .site-logo img { height: 40px; }
  .header-cta__btn { padding: 0.5rem 0.75rem; font-size: 0.78rem; }
}


/* ===================================================================
   2. HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 38px);
  margin-top: calc(var(--header-height) + 38px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

@media (max-width: 480px) {
  .hero {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
  }
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 30, 0.35) 0%,
    rgba(10, 10, 30, 0.55) 50%,
    rgba(10, 10, 30, 0.80) 100%
  );
  z-index: 1;
}

/* Content sits above everything */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__title span {
  color: var(--brand-primary-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Stats strip — pinned to bottom */
.hero__stats {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.stat-item:last-child { border-right: none; }

.stat-item__number {
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--brand-primary-light);
}

.stat-item__label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .hero__inner { padding-bottom: 3rem; }
}


/* ===================================================================
   3. BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 15px rgba(0,136,204,0.35);
}

.btn--primary:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,136,204,0.45);
}

.btn--secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover {
  background: #fff;
  color: var(--brand-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn--outline:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-gray-700);
  border-color: var(--brand-border);
}

.btn--ghost:hover {
  background: var(--brand-gray-50);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn--large { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn--sm    { padding: 0.5rem 1.2rem; font-size: 0.85rem; }


/* ===================================================================
   4. SECTION HEADERS
   =================================================================== */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,136,204,0.08);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,136,204,0.18);
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--brand-text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

.section__header--left .section__subtitle { margin: 0; }

/* Centered divider under title */
.section__title-bar {
  display: block;
  width: 50px;
  height: 4px;
  background: var(--brand-primary);
  border-radius: 4px;
  margin: 1rem auto 0;
}

.section__header--left .section__title-bar { margin-left: 0; }


/* ===================================================================
   5. CARDS
   =================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .card-grid { grid-template-columns: 1fr; } }

.card-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-grid--3col { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .card-grid--2col { grid-template-columns: 1fr; max-width: 420px; }
}

.card__text--ar {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: var(--brand-primary) !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.5;
}

.page-hero__sub[lang="ar"] {
  font-size: 1.05rem;
  opacity: 0.85;
}

.section__label[lang="ar"] {
  font-family: var(--font-ar, inherit);
  letter-spacing: 0;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--brand-gray-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.card__image--placeholder {
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--brand-primary);
}

.card__image--placeholder p {
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  margin: 0;
  text-align: center;
  padding: 0 1rem;
}

.card__content {
  padding: 1.5rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-gray-900);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.card__text {
  font-size: 0.88rem;
  color: var(--brand-text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap 0.2s, color 0.2s;
}

.card__link:hover { gap: 10px; color: var(--brand-primary-dark); }


/* ===================================================================
   6. FEATURE CARDS (2-col or 3-col grid)
   =================================================================== */
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px)  { .feature-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-card-grid { grid-template-columns: 1fr; } }

.feature-card-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px)  { .feature-card-grid--2col { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  border: 1px solid var(--brand-gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,136,204,0.12);
  border-color: rgba(0,136,204,0.25);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0,136,204,0.12), rgba(0,102,153,0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-gray-900);
  margin: 0;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}


/* ===================================================================
   7. ABOUT SPLIT
   =================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 820px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}

.about-image img { width: 100%; display: block; }

.about-image__badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--brand-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,136,204,0.4);
}

.about-image__badge strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.about-image__badge span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.about-content { display: flex; flex-direction: column; gap: 1.25rem; }

.about-content .section__title { margin-bottom: 0; }
.about-content .section__subtitle { margin: 0; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--brand-gray-700);
  line-height: 1.55;
}

.about-features li i {
  color: var(--brand-primary);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.about-image__badge-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.about-image__badge-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Team card */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.team-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--brand-gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,136,204,0.12);
}

.team-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.team-card__body {
  padding: 1.75rem 1.5rem 2rem;
}

.team-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin: 0 0 0.25rem;
}

.team-card__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 0.85rem;
}

.team-card__bio {
  font-size: 0.88rem;
  color: var(--brand-gray-600);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.team-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* About page stats bar */
.about-stats {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0070aa 100%);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.about-stats .stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.about-stats .stat-item {
  padding: 2.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.about-stats .stat-item:last-child { border-right: none; }

.about-stats .stat-item__number {
  color: #7dd3fc;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.about-stats .stat-item__label {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .about-stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats .stat-item:nth-child(2) { border-right: none; }
  .about-stats .stat-item:nth-child(1),
  .about-stats .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

.about-cta {
  text-align: center;
}

.about-cta .section__title {
  max-width: 560px;
  margin: 0 auto 1rem;
}

.about-cta p {
  color: var(--brand-gray-600);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.about-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,136,204,0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature__text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-gray-900);
  margin: 0 0 4px;
}

.about-feature__text p {
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  margin: 0;
  line-height: 1.55;
}


/* ===================================================================
   8. PRICING SECTION
   =================================================================== */
.pricing-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: #fff;
  border-radius: 20px;
  border: 2px solid var(--brand-primary);
  padding: 3rem;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,136,204,0.12);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-card__header { text-align: center; margin-bottom: 2rem; }

.pricing-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
}

.pricing-card__period {
  color: var(--brand-text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.pricing-card__features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 480px) { .pricing-card__features { grid-template-columns: 1fr; } }

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--brand-gray-700);
}

.pricing-card__feature i {
  color: #28a745;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* New pricing card layout used in expenses page */
.pricing-card--featured { border-color: var(--brand-primary); }

.pricing-card__header {
  text-align: left;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--brand-gray-200);
  margin-bottom: 1.75rem;
}

.pricing-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
}

.pricing-card__sub {
  color: var(--brand-gray-500);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pricing-card__amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.pricing-card__currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-gray-400);
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__body { }

.pricing-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--brand-gray-700);
  line-height: 1.5;
}

.pricing-card__list li i {
  color: #22c55e;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ===================================================================
   9. VIDEO GRID
   =================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

.video-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid var(--brand-gray-200);
  transition: transform 0.25s, box-shadow 0.25s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-gray-900);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__content { padding: 1.1rem 1.25rem; }

.video-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-gray-800);
  line-height: 1.45;
  margin: 0;
}

.video-card__sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0.35rem 0 0;
  line-height: 1.5;
}


/* ===================================================================
   10. CONTACT SECTION
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Homepage contact — stretch items to match form height */
.contact-grid:not(.contact-grid--page) .contact-info-list {
  height: 100%;
  justify-content: space-between;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--brand-gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.contact-item:hover { box-shadow: 0 6px 20px rgba(0,136,204,0.1); }

.contact-item__icon {
  width: 46px;
  height: 46px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item__content h4,
.contact-item__body .contact-item__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gray-400);
  margin: 0 0 2px;
  display: block;
}

.contact-item__content p,
.contact-item__content a,
.contact-item__body .contact-item__value {
  font-size: 0.92rem;
  color: var(--brand-gray-800);
  font-weight: 600;
  margin: 0;
  display: block;
}

.contact-item__body .contact-item__value { color: var(--brand-gray-800); }
.contact-item__body a.contact-item__value { color: var(--brand-primary); }
.contact-item__body a.contact-item__value:hover { text-decoration: underline; }

.contact-item__content a { color: var(--brand-primary); }
.contact-item__content a:hover { text-decoration: underline; }

/* Contact page layout */
.contact-grid--page {
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-panel,
.contact-form-panel {
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--brand-gray-200);
  display: flex;
  flex-direction: column;
}

.contact-panel__header {
  margin-bottom: 1.75rem;
}

.contact-panel__header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin: 0 0 0.4rem;
}

.contact-panel__header p {
  font-size: 0.92rem;
  color: var(--brand-gray-500);
  margin: 0;
  line-height: 1.6;
}

.contact-info-panel .contact-info-list {
  flex: none;
}

.contact-info-panel .contact-item {
  background: var(--brand-gray-50);
  border-color: var(--brand-gray-100);
}

.contact-item__icon--whatsapp {
  background: #25D366 !important;
}

.contact-panel__social {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--brand-gray-200);
}

.contact-panel__social .social-links {
  margin-top: 0;
}

.contact-panel__social-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gray-400);
  margin: 0 0 0.85rem;
}


/* Embedded form — no double card */
.contact-form--embedded,
.contact-form-panel .contact-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.form-required {
  color: #e53e3e;
}

/* Quick action cards */
.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .contact-grid--page { grid-template-columns: 1fr; }
  .contact-quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .contact-info-panel,
  .contact-form-panel { padding: 1.5rem; }
}

.contact-quick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--brand-gray-200);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.contact-quick-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.contact-quick-card strong {
  display: block;
  color: var(--brand-gray-900);
  font-size: 0.95rem;
}

.contact-quick-card span {
  font-size: 0.82rem;
  color: var(--brand-gray-500);
}

.contact-quick-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-quick-card__icon--whatsapp { background: #e9faf2; color: #25D366; }
.contact-quick-card__icon--email    { background: #e8f0fe; color: var(--brand-primary); }
.contact-quick-card__icon--scholarship { background: #fff8e1; color: #f59e0b; }

/* Native form inputs */
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-gray-800);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--brand-gray-300);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--brand-gray-900);
  background: var(--brand-gray-50);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
  background: #fff;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 1.5rem; }
}

/* Form */
.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--brand-gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form .form-group--grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .form-group--grow .form-textarea {
  flex: 1;
  min-height: 140px;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-gray-800);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--brand-gray-300);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--brand-gray-900);
  background: var(--brand-gray-50);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}

.form-textarea { min-height: 130px; resize: vertical; }

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.form-message--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* ===================================================================
   11. FOOTER
   =================================================================== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.site-footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-top: 1rem;
  max-width: 300px;
}

.site-footer h3, .site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.site-footer__nav a:hover { color: var(--brand-primary-light); }

.site-footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.site-footer__contact-list i {
  color: var(--brand-primary-light);
  width: 16px;
  flex-shrink: 0;
}

.site-footer__contact-list a { color: rgba(255,255,255,0.55); }
.site-footer__contact-list a:hover { color: var(--brand-primary-light); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

/* Light variant for white panels — overrides footer styles above */
.social-links.social-links--light a {
  background: var(--brand-gray-100);
  color: var(--brand-gray-600);
  border: 1px solid var(--brand-gray-200);
}

.social-links.social-links--light a:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.site-footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer__credit-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.site-footer__credit-link:hover { opacity: 0.8; color: #fff; }

.site-footer__credit-sep {
  color: rgba(255,255,255,0.85);
}

.site-footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}


/* ===================================================================
   12. WHATSAPP FLOAT
   =================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: var(--z-fixed);
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
  color: #fff;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float.pulse { animation: wa-pulse 2.2s ease-out infinite; }


/* ===================================================================
   13. BACK TO TOP
   =================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  width: 42px;
  height: 42px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 16px rgba(0,136,204,0.3);
  transition: all 0.25s;
  z-index: var(--z-sticky);
  text-decoration: none;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-primary-dark); color: #fff; transform: translateY(-2px); }


/* ===================================================================
   14. GALLERY GRID
   =================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}


/* ===================================================================
   15. TABS
   =================================================================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab {
  padding: 0.5rem 1.25rem;
  background: var(--brand-gray-100);
  border: 1.5px solid var(--brand-gray-200);
  color: var(--brand-gray-600);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab--active,
.tab:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}


/* ===================================================================
   16. LOADING SPINNER
   =================================================================== */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
