/* ================================================
   GREAT SCHOLAR — COMPLETE STYLESHEET
   Layout: Like the template (light, school-feel)
   Hero: School image with transparent overlay
   3D: Card hover depth, floating elements, glass
   Colors: Navy blue + Sky blue + White
================================================ */

:root {
  --navy:       #0d1b3e;
  --navy-mid:   #1a2f5e;
  --sky:        #1e90ff;
  --sky-dark:   #0070dd;
  --sky-light:  #e8f4ff;
  --orange:     #f5a623;
  --orange-dark:#d4880a;
  --orange-light:#fff5e6;
  --green:      #00b894;
  --green-dark: #009975;
  --green-light:#e6f9f5;
  --purple:     #6c5ce7;
  --purple-light:#f0eeff;
  --pink:       #e91e8c;
  --teal:       #00cec9;
  --white:      #ffffff;
  --light-bg:   #f4f7fc;
  --text-dark:  #0f172a;
  --text-mid:   #475569;
  --text-light: #94a3b8;
  --border:     #e2e8f0;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.16);
  --shadow-3d:  0 20px 60px rgba(13,27,62,0.2), 0 4px 12px rgba(13,27,62,0.1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--text-dark); overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }
ul   { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Shared heading and tag styles */
.section-tag {
  display: inline-block;
  background: var(--sky-light);
  color: var(--sky);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(30,144,255,0.2);
}

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hl { color: var(--sky); }   /* Highlighted text in sky blue */

.section-header { text-align: center; margin-bottom: 54px; }
.section-sub { color: var(--text-mid); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

/* ---- BUTTONS ---- */
.btn-sky {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--sky); color: var(--white);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(30,144,255,0.35);
}
.btn-sky:hover { background: var(--sky-dark); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30,144,255,0.45); }

.btn-glass {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.btn-glass:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }

.btn-navy-solid {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: var(--white);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(13,27,62,0.3);
}
.btn-navy-solid:hover { background: var(--navy-mid); transform: translateY(-3px); }

.btn-white-solid {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--navy);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s ease;
}
.btn-white-solid:hover { background: var(--sky-light); transform: translateY(-3px); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--white);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); transform: translateY(-3px); }

/* 3D card hover — shared class used on all cards */
.lc-hover {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.lc-hover:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-3d);
}

/* ================================================
   TOP BAR
================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar-left  { display: flex; gap: 20px; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: var(--sky); }
.topbar-right { display: flex; gap: 12px; }
.topbar-right a { color: rgba(255,255,255,0.65); font-size: 0.82rem; transition: color 0.3s; width:28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:6px; background:rgba(255,255,255,0.07); }
.topbar-right a:hover { color: var(--white); background: var(--sky); }

/* ================================================
   NAVBAR — white, sticky, shadow on scroll
================================================ */
.navbar {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width:44px; height:44px; background:var(--navy); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--white); font-size:1.2rem; }
.logo-icon-light { background: var(--sky); }
.logo-text { display:flex; flex-direction:column; line-height:1.2; }
.logo-main { font-size:1rem; font-weight:700; color:var(--navy); }
.logo-main-light { color: var(--white); }
.logo-sub  { font-size:0.58rem; color:var(--sky); text-transform:uppercase; letter-spacing:1.5px; font-weight:600; }

.nav-links { display:flex; align-items:center; gap:2px; }
.nav-links a { color:var(--text-dark); font-size:0.87rem; font-weight:500; padding:8px 15px; border-radius:9px; transition:all 0.25s; }
.nav-links a:hover, .nav-links a.active { color:var(--sky); background:var(--sky-light); }

.nav-login-btn {
  background: var(--navy); color: var(--white);
  padding: 9px 22px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.3s;
}
.nav-login-btn:hover  { background: var(--sky); transform: translateY(-1px); box-shadow: 0 5px 15px rgba(30,144,255,0.35); }
.active-nav-btn       { background: var(--sky) !important; box-shadow: 0 5px 15px rgba(30,144,255,0.35); }
.mobile-login-item    { display:none; }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:6px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--navy); border-radius:2px; transition:all 0.3s; }

/* ================================================
   HERO SECTION
   The school image is set as background-image on
   .hero-bg. The .hero-overlay sits on top with
   a semi-transparent navy-to-sky gradient.
   This creates the "image shows through color" look.
   Text and cards float above everything.
================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Layer 1: Hero background — real school photo from Unsplash */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat,
    linear-gradient(135deg, #1a3a6e 0%, #0d1b3e 40%, #1e5fa8 100%);
  animation: bg-zoom 12s ease-in-out infinite alternate;
}

@keyframes bg-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Layer 2: The transparent color overlay.
   Navy on left fades to sky blue on right.
   Opacity 0.82 = image is still 18% visible through it.
   This is exactly the "transparent school image" effect. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 62, 0.90) 0%,
    rgba(13, 27, 62, 0.80) 40%,
    rgba(30, 144, 255, 0.65) 100%
  );
}

/* Decorative floating blobs for extra depth */
.shape {
  position: absolute; z-index: 1;
  border-radius: 50%;
  animation: float-shape 6s ease-in-out infinite;
  pointer-events: none;
}
.shape-1 { width:400px; height:400px; background:rgba(30,144,255,0.08); top:-100px; right:-80px; }
.shape-2 { width:250px; height:250px; background:rgba(255,255,255,0.04); bottom:60px; left:-60px; animation-delay:2s; }
.shape-3 { width:180px; height:180px; background:rgba(245,166,35,0.07); top:40%; right:20%; animation-delay:4s; }

@keyframes float-shape {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.04); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0 80px;
}

/* Hero text (white, sits above overlay) */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.78rem; font-weight: 600;
  padding: 7px 18px; border-radius: 50px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-tag i { color: var(--gold); }

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-content h1 .hl {
  /* Gold highlight in the hero — stands out on the dark overlay */
  color: var(--sky);
  position: relative;
}

.hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem; line-height: 1.85;
  margin-bottom: 34px; max-width: 480px;
}

.hero-btns { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:30px; }

.hero-badges { display:flex; gap:18px; flex-wrap:wrap; }
.hbadge {
  display:flex; align-items:center; gap:7px;
  color:rgba(255,255,255,0.8); font-size:0.82rem; font-weight:500;
}
.hbadge i { color: var(--sky); }

/* ---- Hero right: 4 floating glass cards + center badge ---- */
.hero-cards {
  position: relative;
  height: 460px;
  display: flex; align-items: center; justify-content: center;
}

/* Glass card style — semi-transparent frosted look */
.glass-card {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: var(--white);
  animation: float-card 4s ease-in-out infinite;
  min-width: 170px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover { transform: scale(1.05) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.3); }

.gc-icon {
  width: 48px; height: 48px;
  background: rgba(30,144,255,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--white);
  flex-shrink: 0;
}

.gc-text strong { display:block; font-size:1.2rem; font-weight:800; line-height:1; }
.gc-text span   { font-size:0.73rem; color:rgba(255,255,255,0.7); }

/* Position each card at a different corner */
.gc-1 { top:8%;  left:0;   animation-delay:0s; }
.gc-2 { top:8%;  right:0;  animation-delay:1s; }
.gc-3 { bottom:8%; left:0; animation-delay:2s; }
.gc-4 { bottom:8%; right:0; animation-delay:1.5s; }

@keyframes float-card {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Center badge — circle with graduation cap */
.hero-center-badge {
  width: 140px; height: 140px;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 0 0 10px rgba(30,144,255,0.15), 0 0 0 20px rgba(30,144,255,0.07), var(--shadow-3d);
  font-size: 2.4rem;
  animation: pulse-badge 3s ease-in-out infinite;
  border: 3px solid rgba(255,255,255,0.25);
  z-index: 2;
}

.hero-center-badge p { font-size:0.65rem; font-weight:700; text-align:center; margin-top:4px; line-height:1.3; }

@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 10px rgba(30,144,255,0.15), 0 0 0 20px rgba(30,144,255,0.07), var(--shadow-3d); }
  50%      { box-shadow: 0 0 0 16px rgba(30,144,255,0.2), 0 0 0 32px rgba(30,144,255,0.05), var(--shadow-3d); }
}

/* ================================================
   STATS BAR
   School image as background with teal/navy overlay.
   Hexagon-shaped colored badges for each icon.
   Exactly like the reference image the user shared.
================================================ */
.stats-bar {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
}

/* Layer 1: Stats background — classroom photo from Unsplash */
.stats-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat,
    linear-gradient(135deg, #0a3d62, #1e3799);
}

/* Layer 2: teal-navy semi-transparent overlay — same technique as hero */
.stats-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg,
    rgba(0,100,120,0.88) 0%,
    rgba(13,27,62,0.85) 100%
  );
}

.stats-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
}

.stat-item {
  display: flex; align-items: center; gap: 18px;
  color: var(--white);
  padding: 10px 20px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.15);
}

/* Hexagon badge — the key element from the reference image.
   Created with clip-path polygon for the hex shape. */
.hex-badge {
  width: 70px; height: 70px;
  min-width: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--white);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  animation: hex-pulse 3s ease-in-out infinite;
}

/* Each stat gets a different color — this is the "more colours" the user wants */
.hex-orange { background: var(--orange); }
.hex-green  { background: var(--green); }
.hex-sky    { background: var(--sky); }
.hex-purple { background: var(--purple); }

@keyframes hex-pulse {
  0%,100% { filter: brightness(1); transform: scale(1); }
  50%      { filter: brightness(1.15); transform: scale(1.06); }
}

.stat-row { display:flex; align-items:baseline; gap:2px; }
.stat-num  { font-size:2.2rem; font-weight:800; line-height:1; color: var(--white); }
.stat-plus { font-size:1.5rem; font-weight:700; color: var(--white); }
.stat-body p { font-size:0.8rem; color:rgba(255,255,255,0.75); margin-top:4px; }

/* ================================================
   ABOUT SECTION
   Instead of plain white, we use a dot-pattern
   background + large decorative rings in corners.
   This makes it feel designed, not blank.
================================================ */
.about-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(30,144,255,0.12) 1.5px, transparent 0),
    linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%, #f0fff8 100%);
  background-size: 28px 28px, 100%;
  position: relative;
  overflow: hidden;
}

/* Large decorative ring — top right corner */
.about-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 40px solid rgba(30,144,255,0.06);
  pointer-events: none;
}

/* Smaller decorative ring — bottom left */
.about-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 30px solid rgba(0,184,148,0.08);
  pointer-events: none;
}

.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}

.about-img-wrap { position: relative; }

/* Placeholder image boxes (replace with real <img> when ready) */
/* About image placeholder (fallback if real image not available) */
.about-img-main.img-ph {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sky-light), #d0e8ff);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--sky); gap: 10px;
  box-shadow: var(--shadow-3d);
  font-size: 3.5rem;
}

.about-exp-badge {
  position: absolute; top: -20px; left: -20px;
  background: var(--sky);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px; text-align: center;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
}
.exp-num   { display:block; font-size:1.8rem; font-weight:800; line-height:1; }
.exp-label { font-size:0.72rem; color:rgba(255,255,255,0.85); line-height:1.4; }

.about-content .section-tag { margin-bottom:10px; }
.about-desc { color:var(--text-mid); font-size:0.93rem; line-height:1.85; margin-bottom:28px; }

.about-features { display:flex; flex-direction:column; gap:20px; margin-bottom:32px; }

.af-item { display:flex; gap:16px; align-items:flex-start; }
.af-icon {
  width:50px; height:50px; min-width:50px;
  background:var(--sky-light); border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  color:var(--sky); font-size:1.1rem;
  transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.af-item:hover .af-icon { background:var(--sky); color:var(--white); transform:scale(1.1) rotate(-5deg); }
.af-item h4 { font-size:0.95rem; font-weight:600; margin-bottom:4px; }
.af-item p  { font-size:0.83rem; color:var(--text-mid); line-height:1.6; }

/* ================================================
   SCHOOL LEVELS
   Diagonal two-tone background — sky blue top-left
   fading to light grey. Gives it a designed feel.
   Decorative wave shape along the bottom edge.
================================================ */
.levels-section {
  padding: 90px 0;
  background: linear-gradient(160deg, #e8f4ff 0%, #f4f7fc 40%, #fff8f0 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative large circle behind the cards */
.levels-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(30,144,255,0.04);
  border: 2px solid rgba(30,144,255,0.07);
  pointer-events: none;
}

.levels-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}

.level-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Colored image header at top of each card */
.lc-top {
  height: 200px; position: relative; overflow: hidden;
}

/* Real image inside level card header */
.lc-top img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.level-card:hover .lc-top img { transform: scale(1.08); }

/* Gradient placeholder colors for each level — each a different color */
.nursery-bg   { background: linear-gradient(135deg, #e91e8c, #c2185b); }
.primary-bg   { background: linear-gradient(135deg, #1e90ff, #0050aa); }
.secondary-bg { background: linear-gradient(135deg, #f5a623, #c47a00); }

/* Big faded icon as background texture in card header */
.lc-img-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,0.35);
}

/* Gradient overlay in card header */
.lc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  display: flex; align-items: flex-end; padding: 16px;
}

/* Icon circle in bottom-left of card header */
.lc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--white);
  box-shadow: var(--shadow-md);
}
.nursery-icon  { background: #e91e8c; }
.primary-icon  { background: var(--sky); }
.secondary-icon{ background: #f5a623; }

/* Ribbon badge for featured card */
.lc-ribbon {
  position: absolute; top: 18px; right: -30px;
  background: var(--sky);
  color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  padding: 5px 44px;
  transform: rotate(45deg);
  letter-spacing: 1px; z-index: 5;
}

.lc-body { padding: 24px 26px 28px; }

.level-card h3   { font-size:1.15rem; font-weight:700; margin-bottom:10px; }
.level-card > .lc-body > p { font-size:0.85rem; color:var(--text-mid); line-height:1.7; margin-bottom:16px; }

.level-card ul { margin-bottom:22px; }
.level-card ul li {
  display:flex; align-items:center; gap:9px;
  font-size:0.83rem; color:var(--text-mid);
  padding:6px 0; border-bottom:1px solid var(--border);
}
.level-card ul li:last-child { border-bottom:none; }
.level-card ul li i { color:var(--sky); font-size:0.7rem; }

.lc-btn {
  display:inline-flex; align-items:center; gap:8px;
  color:var(--navy); font-weight:700; font-size:0.87rem;
  transition:gap 0.3s;
}
.lc-btn:hover { gap:14px; color:var(--sky); }
.lc-btn-sky { color:var(--sky); }

/* Featured card — navy background body */
.lc-featured .lc-body { background:var(--navy); }
.lc-featured h3         { color:var(--white); }
.lc-featured .lc-body > p { color:rgba(255,255,255,0.7); }
.lc-featured ul li      { color:rgba(255,255,255,0.7); border-bottom-color:rgba(255,255,255,0.1); }
.lc-featured .lc-btn-sky{ color:var(--sky); }

/* ================================================
   PORTAL SECTION
   School image background with dark overlay.
   3 cards: student (sky), teacher (orange), admin (green).
   Each card has a colored image header at the top.
================================================ */
.portal-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

/* Portal section background — teacher with students photo */
.portal-section-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    url('https://images.unsplash.com/photo-1529612700005-e35377bf1415?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat,
    linear-gradient(135deg, #1a2f5e, #0d1b3e);
}

.portal-section-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(13,27,62,0.92);
}

/* White text headings when on dark background */
.section-tag-white { background:rgba(255,255,255,0.1); color:var(--white); border-color:rgba(255,255,255,0.2); }
.white-h2  { color: var(--white) !important; }
.white-sub { color: rgba(255,255,255,0.7) !important; }
.hl-gold   { color: var(--orange) !important; }

/* 3 cards in a row now (added admin card) */
.portal-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
}

/* Colored image header at top of each portal card */
.portal-card-top {
  height: 160px;
  position: relative;
  overflow: hidden;
}

/* Real photo inside portal card top */
.portal-card-top img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.portal-card:hover .portal-card-top img { transform: scale(1.08); }

/* Colored gradient overlay on top of the photo
   so the card keeps its color identity */
.sky-card-top::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,144,255,0.72), rgba(0,80,170,0.72));
}
.orange-card-top::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,166,35,0.75), rgba(196,122,0,0.75));
}
.green-card-top::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,184,148,0.75), rgba(0,122,98,0.75));
}

/* Icon floats at bottom edge of card top, overlapping into body */
.portal-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--white);
  margin: -32px auto 16px;
  position: relative; z-index: 2;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.sky-icon    { background: linear-gradient(135deg, var(--sky), var(--sky-dark)); }
.orange-icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.green-icon  { background: linear-gradient(135deg, var(--green), var(--green-dark)); }

/* Card body padding */
.portal-card-body { padding: 4px 26px 28px; text-align: center; }

.portal-card h3   { font-size:1.15rem; font-weight:700; margin-bottom:10px; color:var(--text-dark); }
.portal-card > .portal-card-body > p { color:var(--text-mid); font-size:0.87rem; line-height:1.75; margin-bottom:20px; }

.portal-list { margin-bottom:26px; text-align:left; }
.portal-list li {
  display:flex; align-items:center; gap:10px;
  font-size:0.84rem; color:var(--text-mid);
  padding:7px 0; border-bottom:1px solid rgba(0,0,0,0.05);
}
.portal-list li:last-child { border-bottom:none; }
.portal-student .portal-list li i { color:var(--sky); }
.portal-teacher .portal-list li i { color:var(--orange); }
.portal-admin   .portal-list li i { color:var(--green); }

/* Orange and green buttons for variety */
.btn-orange {
  display:inline-flex; align-items:center; gap:9px;
  background:var(--orange); color:var(--white);
  padding:13px 30px; border-radius:50px;
  font-weight:700; font-size:0.9rem;
  transition:all 0.3s;
  box-shadow:0 6px 20px rgba(245,166,35,0.35);
}
.btn-orange:hover { background:var(--orange-dark); transform:translateY(-3px); }

.btn-green {
  display:inline-flex; align-items:center; gap:9px;
  background:var(--green); color:var(--white);
  padding:13px 30px; border-radius:50px;
  font-weight:700; font-size:0.9rem;
  transition:all 0.3s;
  box-shadow:0 6px 20px rgba(0,184,148,0.35);
}
.btn-green:hover { background:var(--green-dark); transform:translateY(-3px); }

.btn-register-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px;
  padding: 9px 20px; border-radius: 50px;
  background: rgba(30,144,255,0.10);
  border: 1.5px dashed var(--sky);
  color: var(--sky-dark);
  font-size: 0.82rem; font-weight: 600;
  transition: all 0.25s;
}
.btn-register-link:hover {
  background: var(--sky); color: var(--white);
  border-style: solid; transform: translateY(-2px);
}

/* ================================================
   NEWS SECTION
   Diagonal gradient background going from a very
   pale orange to pale green — warm and welcoming.
   Decorative dots pattern layered on top.
================================================ */
.news-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(245,166,35,0.1) 1.5px, transparent 0),
    linear-gradient(135deg, #fff8f0 0%, #f4f7fc 50%, #f0fff8 100%);
  background-size: 28px 28px, 100%;
  position: relative;
  overflow: hidden;
}

/* Decorative ring bottom-right */
.news-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 35px solid rgba(245,166,35,0.07);
  pointer-events: none;
}

.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }

.news-card {
  background:var(--white); border-radius:var(--radius-lg);
  overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow-sm);
}

/* News card image placeholder area */
.news-img-wrap { position:relative; height:210px; overflow:hidden; }

/* Real image inside news card */
.news-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-img-wrap img { transform: scale(1.06); }

/* About section real images */
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  aspect-ratio: 4/3;
}
.about-img-main img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s; }
.about-img-main:hover img { transform: scale(1.04); }

.about-img-sm {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.about-img-sm img { width:100%; height:100%; object-fit:cover; }

.news-img-ph {
  width:100%; height:100%;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:10px; font-size:3rem; color:var(--white);
  transition: transform 0.4s;
}
.news-card:hover .news-img-ph { transform: scale(1.05); }

/* Different color for each news card image — orange, green, purple for variety */
.sky-ph    { background:linear-gradient(135deg, var(--sky), #0a60d0); }
.gold-ph   { background:linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.navy-ph   { background:linear-gradient(135deg, var(--green), var(--green-dark)); }

.news-img-ph span { font-size:0.75rem; color:rgba(255,255,255,0.75); font-weight:500; }

/* Date badge in bottom-left of news image */
.news-date-tag {
  position:absolute; bottom:12px; left:12px;
  background:var(--white); color:var(--navy);
  font-size:0.72rem; font-weight:700;
  padding:6px 12px; border-radius:8px;
  box-shadow: var(--shadow-sm);
}
.news-date-tag span { font-size:1.1rem; font-weight:800; display:inline; }

/* Category tag in top-right */
.news-cat-tag {
  position:absolute; top:12px; right:12px;
  background:rgba(255,255,255,0.9);
  color:var(--sky); font-size:0.68rem;
  font-weight:700; text-transform:uppercase;
  letter-spacing:1px; padding:4px 12px; border-radius:50px;
}

.news-body { padding:20px 22px 24px; }
.news-body h4 { font-size:0.96rem; font-weight:700; line-height:1.45; margin-bottom:8px; color:var(--text-dark); }
.news-body p  { font-size:0.83rem; color:var(--text-mid); line-height:1.65; margin-bottom:14px; }

.news-link {
  display:inline-flex; align-items:center; gap:6px;
  color:var(--sky); font-size:0.85rem; font-weight:700;
  transition: gap 0.3s;
}
.news-link:hover { gap:12px; }

/* ================================================
   CTA SECTION
   School image behind navy overlay — same technique
   as the hero but smaller. Big headline + buttons.
================================================ */
.cta-section { position:relative; padding:70px 0; overflow:hidden; }

.cta-bg {
  position:absolute; inset:0; z-index:0;
  background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat,
              linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.cta-overlay {
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(135deg, rgba(13,27,62,0.93), rgba(30,144,255,0.75));
}

.cta-inner {
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  gap:36px; flex-wrap:wrap;
}

.cta-text h2 {
  font-family:'Playfair Display', serif;
  font-size:clamp(1.5rem,3vw,2.1rem);
  color:var(--white); line-height:1.3; margin-bottom:10px;
}
.cta-text h2 span { color:var(--sky); }
.cta-text p { color:rgba(255,255,255,0.72); font-size:0.93rem; }
.cta-btns { display:flex; gap:14px; flex-wrap:wrap; flex-shrink:0; }

/* ================================================
   FOOTER
================================================ */
.footer { background:var(--navy); padding-top:68px; }

.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1.6fr;
  gap:44px; padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.footer-brand p { color:rgba(255,255,255,0.55); font-size:0.86rem; line-height:1.8; margin:18px 0 22px; }

.footer-socials { display:flex; gap:10px; }
.footer-socials a {
  width:38px; height:38px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  border-radius:9px; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,0.55); font-size:0.85rem; transition:all 0.3s;
}
.footer-socials a:hover { background:var(--sky); border-color:var(--sky); color:var(--white); transform:translateY(-3px); }

.footer-col h4 { color:var(--white); font-size:0.95rem; font-weight:600; margin-bottom:18px; }

.footer-col ul li { margin-bottom:9px; }
.footer-col ul li a {
  color:rgba(255,255,255,0.55); font-size:0.85rem;
  display:flex; align-items:center; gap:8px; transition:color 0.3s;
}
.footer-col ul li a i { font-size:0.6rem; color:var(--sky); }
.footer-col ul li a:hover { color:var(--sky); }

.footer-contact li {
  display:flex !important; align-items:flex-start;
  gap:10px; color:rgba(255,255,255,0.55) !important;
  font-size:0.85rem; margin-bottom:11px;
}
.footer-contact li i { color:var(--sky); margin-top:3px; min-width:14px; }

.footer-bottom { padding:20px 0; }
.footer-bottom p { color:rgba(255,255,255,0.4); font-size:0.8rem; text-align:center; }

/* ================================================
   DECORATIVE SECTION DIVIDER
   A thin coloured diagonal stripe between some
   sections so they don't just bleed into each other.
================================================ */
.about-section,
.levels-section,
.news-section {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--sky), var(--orange), var(--green), var(--purple)) 1;
}

/* Coloured left accent bar on about content */
.about-content {
  position: relative;
  padding-left: 28px;
}
.about-content::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--sky), var(--green));
}

/* Floating coloured dot decorations inside about section */
.about-dot-1, .about-dot-2, .about-dot-3 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-shape 5s ease-in-out infinite;
}
.about-dot-1 { width:16px; height:16px; background:var(--sky); top:15%; right:8%; opacity:0.35; }
.about-dot-2 { width:10px; height:10px; background:var(--orange); top:60%; right:14%; opacity:0.4; animation-delay:1.5s; }
.about-dot-3 { width:14px; height:14px; background:var(--green); bottom:18%; right:5%; opacity:0.3; animation-delay:3s; }

/* ================================================
   SCROLL TO TOP BUTTON
   Fixed in bottom-right corner. Hidden by default,
   fades in after user scrolls 300px down.
   Sky blue with navy on hover. Bounce animation.
================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: var(--sky);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30,144,255,0.45);
  /* Hidden by default — JS adds .show class */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* Visible state — added by JS when user scrolls down */
.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(13,27,62,0.4);
}

.scroll-top:active {
  transform: translateY(0);
}

/* Small bounce animation when it first appears */
@keyframes btn-bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-10px); }
  70%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ================================================
   SCROLL REVEAL ANIMATION
================================================ */
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ================================================
   RESPONSIVE
================================================ */
/* ================================================
   TABLET — max 960px
================================================ */
@media (max-width: 960px) {
  .hero-inner     { grid-template-columns:1fr; text-align:center; padding:100px 0 60px; }
  .hero-content p { margin:0 auto 34px; }
  .hero-btns, .hero-badges { justify-content:center; }
  .hero-cards     { display:none; }
  .about-inner    { grid-template-columns:1fr; }
  .levels-grid    { grid-template-columns:repeat(2,1fr); }
  .portal-grid    { grid-template-columns:1fr 1fr; }
  .news-grid      { grid-template-columns:1fr 1fr; }
  .cta-inner      { flex-direction:column; text-align:center; }
  .cta-btns       { justify-content:center; }
  .footer-grid    { grid-template-columns:1fr 1fr; }
  .about-content  { padding-left: 16px; }

  /* Stats: 2x2 grid, stacked layout per item */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    gap: 12px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1) !important; }
  .stat-row { justify-content: center; }
}

/* ================================================
   MOBILE — max 600px
================================================ */
@media (max-width: 600px) {
  .topbar { display:none; }

  .nav-links {
    display:none; flex-direction:column;
    position:absolute; top:72px; left:0; right:0;
    background:var(--white); border-top:1px solid var(--border);
    padding:16px 24px; box-shadow:var(--shadow-md); gap:4px; z-index:999;
  }
  .nav-links.open { display:flex; }
  .hamburger      { display:flex; }
  .nav-login-btn  { display:none; }
  .mobile-login-item { display:block; border-top:1px solid var(--border); margin-top:8px; padding-top:8px; }
  .mobile-login-item a { display:flex; align-items:center; gap:8px; font-weight:700; color:var(--navy) !important; font-size:0.9rem; }
  .hero-inner     { padding: 72px 0 44px; }
  .news-grid      { grid-template-columns:1fr; }
  .portal-grid    { grid-template-columns:1fr; }
  .levels-grid    { grid-template-columns:1fr; }
  .footer-grid    { grid-template-columns:1fr; gap:28px; }
  .about-img-sm   { display:none; }
  .about-content  { padding-left: 12px; }
  .about-exp-badge{ left: 0; top: -10px; }
  .hero-content h1{ font-size: clamp(2rem, 7vw, 2.4rem); }
  .hero-btns      { flex-direction: column; align-items: center; }
  .hero-btns a    { width: 100%; max-width: 300px; justify-content: center; }

  /* Stats mobile: still 2x2 but smaller elements */
  .stats-bar { padding: 32px 0; }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    gap: 10px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1) !important; }

  /* Smaller hex badge on mobile so it fits */
  .hex-badge {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.1rem;
  }

  /* Smaller stat numbers on mobile */
  .stat-num        { font-size: 1.6rem; }
  .stat-plus       { font-size: 1.1rem; }
  .stat-body p     { font-size: 0.72rem; }
  .stat-row        { justify-content: center; }
}
