/* =====================================================
   Ubebe Schools — Main Stylesheet
   Brand: Navy #143c64 | Red #e63130 | Gold #f5a623
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ===== CSS Variables ===== */
:root {
  --navy:        #143c64;
  --navy-light:  #1e5491;
  --navy-dark:   #0d2a47;
  --red:         #e63130;
  --red-light:   #ff4b4a;
  --red-dark:    #c42020;
  --gold:        #f5a623;
  --gold-light:  #ffc154;
  --green:       #27ae60;
  --teal:        #0d6e6e;
  --white:       #ffffff;
  --off-white:   #faf8f5;
  --light:       #f0f4f8;
  --gray:        #d6dde5;
  --text-dark:   #1a2940;
  --text-med:    #4a5568;
  --text-light:  #8899aa;
  --shadow-sm:   0 2px 8px rgba(20,60,100,0.10);
  --shadow:      0 4px 24px rgba(20,60,100,0.14);
  --shadow-lg:   0 8px 48px rgba(20,60,100,0.20);
  --radius:      12px;
  --radius-lg:   20px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --transition:  all 0.3s var(--ease);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; line-height: 1.25; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.section-alt-dark { background: var(--navy); color: var(--white); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ===== Typography ===== */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-title.light { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-med);
  max-width: 600px;
  margin-bottom: 3rem;
}
.section-subtitle.light { color: rgba(255,255,255,0.8); }
.divider {
  width: 50px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 0.8rem 0 1.8rem;
}
.divider.center { margin: 0.8rem auto 1.8rem; }
.divider.gold { background: var(--gold); }
.highlight { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary   { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,49,48,0.35); }
.btn-navy      { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,60,100,0.35); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-gold      { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Solid white state — applied on scroll (homepage) or hardcoded (inner pages) */
.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 4px 28px rgba(20,60,100,0.16);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1300px; margin: 0 auto;
  height: 72px;
  overflow: visible;
}
/* Floating logo — extends below navbar with rounded bottom corners */
.nav-logo {
  background: var(--white);
  border-radius: 0 0 20px 20px;
  padding: 8px 22px 26px;
  display: flex; align-items: center;
  box-shadow: 0 8px 32px rgba(20,60,100,0.16), 0 2px 8px rgba(0,0,0,0.08);
  position: relative; z-index: 1001;
  align-self: flex-start;
}
.nav-logo img { height: 80px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 0.1rem; }
/* Default (transparent navbar): white links over hero image */
.nav-menu a {
  color: rgba(255,255,255,0.92);
  font-family: 'Poppins', sans-serif;
  font-size: 0.87rem; font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); background: rgba(255,255,255,0.10); }
/* Scrolled/solid white navbar: navy links */
.navbar.scrolled .nav-menu a { color: var(--navy-dark); }
.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active { color: var(--red); background: rgba(20,60,100,0.06); }
.nav-apply {
  background: var(--red); color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}
.nav-apply:hover { background: var(--red-dark) !important; color: var(--white) !important; box-shadow: 0 4px 16px rgba(230,49,48,0.4); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 0.4rem; z-index: 1001;
}
/* Default: white bars (visible over dark hero) */
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
/* Solid navbar: navy bars */
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile Nav ===== */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none; flex-direction: column;
    position: fixed; inset: 0;
    background: var(--navy-dark);
    align-items: center; justify-content: center;
    gap: 1rem; z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a, .navbar.scrolled .nav-menu a { font-size: 1.1rem; padding: 0.75rem 2rem; color: rgba(255,255,255,0.9); }
  .nav-menu a:hover, .nav-menu a.active,
  .navbar.scrolled .nav-menu a:hover, .navbar.scrolled .nav-menu a.active { color: var(--gold); background: rgba(255,255,255,0.08); }
  .nav-apply { margin-left: 0; margin-top: 0.5rem; }
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 11rem 0 4.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-tag {
  display: inline-block; background: rgba(230,49,48,0.85);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; padding: 0.35rem 1rem; border-radius: 50px;
  margin-bottom: 1rem; position: relative;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  margin-bottom: 0.75rem; position: relative;
}
.page-hero-sub { font-size: 1.05rem; opacity: 0.82; position: relative; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.25rem; font-size: 0.85rem; opacity: 0.65; position: relative;
}
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { color: var(--gold); }

/* ===== Hero Slider ===== */
.hero {
  position: relative; height: 100vh; min-height: 620px; overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13,42,71,0.88) 0%,
    rgba(20,60,100,0.65) 55%,
    rgba(0,0,0,0.35) 100%);
}
.slide-content {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 1.5rem;
}
.slide-content-inner {
  max-width: 750px; margin: 0 auto; text-align: center; color: var(--white);
}
.slide-tag {
  display: inline-block; background: var(--red);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 0.35rem 1.2rem; border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease) both;
}
.slide-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1.25rem;
  animation: fadeInUp 0.9s var(--ease) 0.15s both;
}
.slide-desc {
  font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.9;
  line-height: 1.75; margin-bottom: 2rem;
  animation: fadeInUp 0.9s var(--ease) 0.3s both;
}
.slide-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.9s var(--ease) 0.45s both;
}
/* Slider controls */
.slider-nav {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.slider-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--transition);
  border: none;
}
.slider-dot.active { background: var(--white); transform: scale(1.4); }
.slider-arrows {
  position: absolute; top: 50%; width: 100%;
  display: flex; justify-content: space-between;
  padding: 0 1.25rem; transform: translateY(-50%); z-index: 10;
}
.slider-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-scroll {
  position: absolute; bottom: 2rem; right: 2rem;
  color: rgba(255,255,255,0.6); font-size: 0.78rem;
  font-family: 'Poppins', sans-serif; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.5rem;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,0.4);
}

/* ===== Stats Bar ===== */
.stats-bar { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item {
  text-align: center; padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  font-family: 'Poppins', sans-serif; color: var(--gold);
  display: block; line-height: 1;
}
.stat-label { font-size: 0.88rem; opacity: 0.75; margin-top: 0.4rem; }

/* ===== Welcome Section ===== */
.welcome-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }
.welcome-img { position: relative; }
.welcome-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.welcome-img-main img { width: 100%; height: 480px; object-fit: cover; }
.welcome-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--red); color: var(--white);
  padding: 1.5rem 1.75rem; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
  min-width: 130px;
}
.welcome-badge-num {
  font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 900; display: block;
}
.welcome-badge-text { font-size: 0.82rem; opacity: 0.9; line-height: 1.3; }
.welcome-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
}
.welcome-feat {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--off-white); border-radius: var(--radius);
  padding: 1rem 1.1rem; border-left: 3px solid var(--navy);
  transition: var(--transition);
}
.welcome-feat:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.welcome-feat-icon { color: var(--navy); font-size: 1.1rem; margin-top: 2px; min-width: 20px; }
.welcome-feat h4 {
  font-family: 'Poppins', sans-serif; font-size: 0.87rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.2rem;
}
.welcome-feat p { font-size: 0.8rem; color: var(--text-med); }

/* ===== Highlight Cards (Photo Overlay) ===== */
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.h-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; height: 340px; cursor: pointer;
}
.h-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.h-card:hover img { transform: scale(1.07); }
.h-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,60,100,0.92) 0%, rgba(20,60,100,0.2) 60%, transparent 100%);
  transition: var(--transition);
}
.h-card:hover .h-card-overlay {
  background: linear-gradient(to top, rgba(20,60,100,0.95) 0%, rgba(20,60,100,0.5) 100%);
}
.h-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem; color: var(--white);
  transform: translateY(0); transition: var(--transition);
}
.h-card-tag {
  display: inline-block; background: var(--red);
  font-size: 0.73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 0.25rem 0.7rem; border-radius: 50px;
  margin-bottom: 0.6rem;
}
.h-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.h-card-text { font-size: 0.85rem; opacity: 0.82; line-height: 1.5; }
.h-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600;
  color: var(--gold); font-family: 'Poppins', sans-serif;
  opacity: 0; transition: var(--transition);
}
.h-card:hover .h-card-link { opacity: 1; gap: 0.7rem; }

/* ===== Feature Cards ===== */
.feat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.feat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--gray);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feat-icon.navy { background: var(--navy); color: var(--white); }
.feat-icon.red   { background: var(--red);  color: var(--white); }
.feat-icon.gold  { background: var(--gold); color: var(--white); }
.feat-icon.green { background: var(--green); color: var(--white); }
.feat-icon.teal  { background: var(--teal); color: var(--white); }
.feat-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.feat-card p { font-size: 0.9rem; color: var(--text-med); line-height: 1.65; }
.feat-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--red); font-weight: 600; font-size: 0.87rem;
  margin-top: 1rem; font-family: 'Poppins', sans-serif;
}
.feat-card-link:hover { gap: 0.7rem; }

/* ===== Subject / List Items ===== */
.subject-list { display: flex; flex-direction: column; gap: 0.75rem; }
.subject-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--white);
  border: 1px solid var(--gray); border-radius: var(--radius);
  transition: var(--transition);
}
.subject-item:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateX(5px); }
.subject-icon {
  width: 42px; height: 42px; min-width: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.subject-icon.navy { background: var(--navy); color: var(--white); }
.subject-icon.red  { background: var(--red);  color: var(--white); }
.subject-icon.gold { background: var(--gold); color: var(--white); }
.subject-icon.green { background: var(--green); color: var(--white); }
.subject-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.subject-text span   { font-size: 0.78rem; color: var(--text-med); }

/* ===== Checklist ===== */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.9rem 1.1rem; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--gray);
}
.check-item i { color: var(--green); margin-top: 2px; font-size: 0.9rem; }
.check-item span { font-size: 0.92rem; color: var(--text-med); line-height: 1.5; }

/* ===== Steps (Admission Process) ===== */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; }
.step-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray); transition: var(--transition);
  position: relative;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.step-num {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white); font-family: 'Poppins', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.85rem; color: var(--text-med); }

/* ===== Age Criteria Cards ===== */
.age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.age-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  border: 2px solid var(--gray); transition: var(--transition);
  position: relative; overflow: hidden;
}
.age-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
}
.age-card.c-navy::before { background: var(--navy); }
.age-card.c-red::before  { background: var(--red);  }
.age-card.c-gold::before { background: var(--gold); }
.age-card.c-green::before { background: var(--green); }
.age-card:hover { border-color: currentColor; transform: translateY(-5px); box-shadow: var(--shadow); }
.age-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.age-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.age-years {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  padding: 0.3rem 0.9rem; border-radius: 50px;
  background: var(--off-white); color: var(--text-med);
  margin-top: 0.4rem;
}

/* ===== Facility Cards ===== */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.facility-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.6rem; background: var(--white);
  border: 1px solid var(--gray); border-radius: var(--radius-lg);
  transition: var(--transition);
}
.facility-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.facility-icon {
  width: 52px; height: 52px; min-width: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.facility-icon.navy  { background: var(--navy);  color: var(--white); }
.facility-icon.red   { background: var(--red);   color: var(--white); }
.facility-icon.gold  { background: var(--gold);  color: var(--white); }
.facility-icon.green { background: var(--green); color: var(--white); }
.facility-icon.teal  { background: var(--teal);  color: var(--white); }
.facility-title { font-size: 0.97rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.facility-desc  { font-size: 0.84rem; color: var(--text-med); line-height: 1.55; }

/* ===== Camp Cards ===== */
.camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.camp-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.camp-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.camp-head {
  padding: 2.25rem 2rem; color: var(--white); position: relative;
}
.camp-head.c-navy  { background: linear-gradient(135deg, var(--navy-dark), var(--navy-light)); }
.camp-head.c-red   { background: linear-gradient(135deg, var(--red-dark), var(--red-light)); }
.camp-head.c-teal  { background: linear-gradient(135deg, #0a5555, #1a9e9e); }
.camp-head-icon { font-size: 2.75rem; margin-bottom: 0.75rem; }
.camp-head h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.camp-head p  { font-size: 0.88rem; opacity: 0.85; }
.camp-body { padding: 1.75rem; background: var(--white); }
.camp-feat-list { display: flex; flex-direction: column; gap: 0.6rem; }
.camp-feat {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.87rem; color: var(--text-med); line-height: 1.5;
}
.camp-feat i { color: var(--green); font-size: 0.8rem; margin-top: 3px; }
.camp-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.75rem;
  background: var(--off-white); border-top: 1px solid var(--gray);
  font-family: 'Poppins', sans-serif; font-size: 0.82rem; color: var(--text-med);
}

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2rem; }
.testi-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--gray);
  transition: var(--transition); position: relative;
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.testi-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.75rem; }
.testi-quote { font-size: 2.5rem; color: var(--red); opacity: 0.2; line-height: 1; font-family: Georgia, serif; }
.testi-text {
  font-size: 0.93rem; color: var(--text-med); line-height: 1.75;
  font-style: italic; margin-bottom: 1.5rem;
}
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.testi-name { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.testi-role { font-size: 0.78rem; color: var(--text-med); }

/* ===== Gallery ===== */
.gallery-masonry { columns: 3; column-gap: 1.25rem; }
.g-item {
  break-inside: avoid; margin-bottom: 1.25rem;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
}
.g-item img { width: 100%; display: block; transition: transform 0.5s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-overlay {
  position: absolute; inset: 0;
  background: rgba(20,60,100,0); transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.g-overlay i { color: var(--white); font-size: 2rem; opacity: 0; transition: var(--transition); }
.g-item:hover .g-overlay { background: rgba(20,60,100,0.4); }
.g-item:hover .g-overlay i { opacity: 1; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.c-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.c-info-icon {
  width: 50px; height: 50px; min-width: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.c-info-icon.navy  { background: var(--navy);  color: var(--white); }
.c-info-icon.red   { background: var(--red);   color: var(--white); }
.c-info-icon.gold  { background: var(--gold);  color: var(--white); }
.c-info-icon.green { background: var(--green); color: var(--white); }
.c-info-title { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.25rem; }
.c-info-text { font-size: 0.88rem; color: var(--text-med); line-height: 1.6; }
.c-info-text a:hover { color: var(--red); }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow); border: 1px solid var(--gray);
}
.form-title { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.form-sub   { font-size: 0.9rem; color: var(--text-med); margin-bottom: 1.75rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.875rem 1rem;
  border: 2px solid var(--gray); border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif; font-size: 0.9rem;
  color: var(--text-dark); background: var(--off-white);
  outline: none; transition: var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy); background: var(--white);
  box-shadow: 0 0 0 3px rgba(20,60,100,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 3rem; }
.map-wrap iframe { display: block; width: 100%; border: none; }

/* ===== CTA Banner ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--red-dark) 100%);
  color: var(--white); padding: 5.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.52 4.48-10 10-10s10 4.48 10 10-4.48 10-10 10c0 5.52-4.48 10-10 10s-10-4.48-10-10 4.48-10 10-10zM10 10c0-5.52 4.48-10 10-10s10 4.48 10 10-4.48 10-10 10c0 5.52-4.48 10-10 10S0 25.52 0 20s4.48-10 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; position: relative; }
.cta-text  { font-size: 1.05rem; opacity: 0.88; max-width: 580px; margin: 0 auto 2.5rem; position: relative; }
.cta-btns  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== Footer ===== */
.footer { background: #101e30; color: var(--white); padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo {
  height: 52px;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 1.1rem;
  display: block;
}
.footer-about p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 1.5rem; }
.social-row { display: flex; gap: 0.6rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; transition: var(--transition);
}
.social-btn:hover { background: var(--red); }
.footer-h {
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 1.25rem;
  padding-bottom: 0.7rem; border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  font-size: 0.87rem; color: rgba(255,255,255,0.6);
  transition: var(--transition); display: flex; align-items: center; gap: 0.5rem;
}
.footer-nav a::before { content: '›'; color: var(--red); font-size: 1rem; }
.footer-nav a:hover   { color: var(--white); padding-left: 4px; }
.footer-contact-row   { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-ci { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-ci i { color: var(--gold); font-size: 0.85rem; margin-top: 3px; min-width: 16px; }
.footer-ci span { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== Islamic Pattern Accent ===== */
.pattern-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--red) 35%, var(--gold) 65%, var(--navy) 100%);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.aos { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.aos.aos-visible { opacity: 1; transform: translateY(0); }
.aos-delay-1 { transition-delay: 0.1s; }
.aos-delay-2 { transition-delay: 0.2s; }
.aos-delay-3 { transition-delay: 0.3s; }
.aos-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .welcome-grid  { grid-template-columns: 1fr; }
  .welcome-img   { max-width: 580px; margin: 0 auto; }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .camp-grid     { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .highlight-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .welcome-features { grid-template-columns: 1fr; }
  .welcome-badge { bottom: -1rem; right: 0; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .age-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-btns { flex-direction: column; align-items: center; }
  .slider-arrow { width: 38px; height: 38px; }
}
