/* ============================================
   DE-BRIGHT TALENTED KIDS SCHOOL — style.css
   ============================================ */

:root {
  --primary: #0a2540;
  --accent:  #fbc02d;
  --text:    #333;
  --light:   #f4f7f6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  scroll-behavior: smooth;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
}

/* ===================== PRELOADER ===================== */
#preloader {
  position: fixed; inset: 0;
  background: #fff; z-index: 9999999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity .5s, visibility .5s;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-content { position: relative; text-align: center; }
.loader-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 50%;
  animation: pulseLogo 2s infinite ease-in-out; }
.spinner { position: absolute; top: -10px; left: -10px; width: 100px; height: 100px;
  border: 3px solid transparent; border-top-color: var(--primary);
  border-bottom-color: var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseLogo { 0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(.9);opacity:.8;} }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; background: var(--primary);
  box-shadow: 0 2px 15px rgba(0,0,0,.2);
}

.logo a { 
  font-family: 'Poppins', sans-serif; 
  font-size: clamp(1.2rem, 5vw, 1.6rem); 
  font-weight: 700;
  color: white; 
  text-decoration: none; 
  white-space: nowrap; 
}
.logo span { 
  color: var(--accent); 
  display: inline; 
  font-size: inherit; 
  font-weight: 500; 
  letter-spacing: 0; 
  margin-left: 4px; 
}

.nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .9rem; font-weight: 600; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.btn-apply { background: var(--accent); color: var(--primary) !important;
  padding: 8px 20px; border-radius: 50px; font-weight: 700 !important; }
.btn-apply:hover { background: white; }

.menu-toggle { 
  display: none; 
  cursor: pointer; 
  color: white; 
  font-size: 1.8rem; 
  background: none; 
  border: none; 
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: var(--primary);
    text-align: center; padding: 20px 0; z-index: 10000;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.active { display: flex !important; }
  .menu-toggle { display: block; }
}

/* ===================== WHATSAPP FAB ===================== */
.whatsapp-btn {
  position: fixed; bottom: 100px; right: 25px;
  width: 50px; height: 50px; background: #25d366;
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,.3);
  z-index: 9999; text-decoration: none; transition: transform .3s;
}
.whatsapp-btn:hover { transform: scale(1.1); color: white; }

/* ===================== NEWS TICKER ===================== */
.ticker-wrap { background: var(--accent); padding: .6rem 0; overflow: hidden; }
.ticker { display: flex; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker__item { display: inline-block; padding: 0 3rem; font-weight: 700;
  color: var(--primary); font-size: .9rem; }
@keyframes ticker { from{transform:translateX(0);}to{transform:translateX(-50%);} }


/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  min-height: 90vh; 
  display: flex;
  align-items: center;
  background-color: #0a2540; 
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: var(--dynamic-hero-bg, url('https://placehold.co/1920x1080/0a2540/ffffff?text=Upload+A+Photo'));
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 🚨 KILL SWITCH: Destroys all weird gradients */
.hero::before,
.hero::after,
.hero-overlay {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Layout Controller */
.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1300px; 
  margin: 0 auto;
  display: flex;
  justify-content: flex-end; 
  padding: 0 5%;
}

/* ✨ The Constrained Glass Card ✨ */
.hero-content {
  background: rgba(10, 37, 64, 0.75); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15); 
  border-radius: 24px;
  padding: 3.5rem; 
  max-width: 680px; /* WIDENED slightly so "Confidence" easily fits */
  width: 100%;
  margin-left: auto; /* Anchors firmly to the right */
  text-align: left;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
}

/* 🚨 RESTORED EYEBROW TEXT 🚨 */
.hero-eyebrow {
  display: block; 
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e2e8f0; /* Bright, visible slate color */
  margin-bottom: 1.2rem;
  font-family: 'Poppins', sans-serif;
}

.hero h1 {
  /* SCALED DOWN slightly so long words don't break */
  font-size: clamp(2.2rem, 3.2vw, 3.2rem); 
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-separator {
  width: 80px;
  height: 4px;
  background: #facc15;
  margin: 2rem 0;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 3.5rem;
  color: #f8fafc;
  line-height: 1.7;
  font-family: 'Open Sans', sans-serif;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.cta-button {
  background: #facc15;
  color: #0f172a;
  padding: 1.2rem 3rem;
  border-radius: 99px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: #eab308;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4);
}

.secondary-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.secondary-link:hover {
  color: #facc15;
  border-bottom: 2px solid #facc15;
}

/* ===================== TICKER FIX ===================== */
.ticker-wrap {
  background: #facc15;
  padding: 0.8rem 0;
  color: #0f172a;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 4px solid #eab308;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===================== MOBILE OPTIMIZATION ===================== */
@media (max-width: 900px) {
  .hero { 
    min-height: 100vh; 
    align-items: flex-end; 
    padding-bottom: 2rem;
  }
  
  .hero-bg-image {
    background-position: 25% top; 
  }

  .hero-container { 
    justify-content: center;
    padding: 0 1rem;
  }

  .hero-content { 
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(10, 37, 64, 0.85); 
    margin-left: 0;
  }
  
  .hero h1 { 
    font-size: clamp(2rem, 8vw, 2.8rem); 
    margin-bottom: 0.5rem;
  }

  .hero-eyebrow {
    font-size: 0.85rem; 
    margin-bottom: 1rem;
  }

  .hero-separator {
    margin: 1.2rem auto; 
  }

  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-actions { 
    flex-direction: column; 
    justify-content: center;
    gap: 1rem; 
  }
  
  .cta-button { 
    width: 100% !important; 
    max-width: none; 
    padding: 1.1rem 2rem;
  }
}

/* ===================== VACANCY MODAL ===================== */
.vacancy-modal { position: fixed; inset: 0; background: rgba(10,37,64,.7);
  backdrop-filter: blur(5px); z-index: 9999; display: none; justify-content: center;
  align-items: center; padding: 1rem; opacity: 0; transition: opacity .3s; }
.vacancy-modal.show { display: flex; opacity: 1; }
.vacancy-content { background: white; width: 100%; max-width: 500px; border-radius: 20px;
  padding: 2.5rem; text-align: center; position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,.2); border-top: 6px solid var(--accent);
  transform: translateY(20px); transition: transform .3s; }
.vacancy-modal.show .vacancy-content { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem;
  background: none; border: none; color: #999; cursor: pointer; line-height: 1; }
.close-modal:hover { color: var(--primary); }
.vacancy-header .badge { background: #e7f6e7; color: #2e7d32; padding: 5px 15px;
  border-radius: 50px; font-weight: 700; font-size: .8rem; text-transform: uppercase;
  letter-spacing: 1px; display: inline-block; margin-bottom: 1rem; }
.vacancy-header h2 { color: var(--primary); font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.vacancy-body p { color: #555; line-height: 1.6; margin-bottom: 1.5rem; }
.vacancy-list { list-style: none; text-align: left; display: inline-block; margin-bottom: 2rem; }
.vacancy-list li { margin-bottom: .5rem; font-weight: 600; }
.vacancy-list li i { color: var(--accent); margin-right: 10px; }
.apply-btn-modal { display: inline-block; background: var(--primary); color: white;
  padding: 12px 35px; border-radius: 50px; font-weight: 700; text-decoration: none;
  box-shadow: 0 5px 15px rgba(10,37,64,.2); transition: .2s; }
.apply-btn-modal:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }

/* ===================== COUNTER & STATS ===================== */
.counter-section { background: var(--primary); padding: 4rem 5% 1rem; }
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 2rem; text-align: center; max-width: 900px; margin: 0 auto; }
.counter-item h2 { font-size: 2.5rem; font-weight: 800; color: var(--accent); font-family: 'Poppins', sans-serif; }
.counter-item p { color: rgba(255,255,255,.8); font-size: .75rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

.stats-strip { background: var(--primary); padding: 1rem 5% 4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.stat-box { background: white; padding: 2rem 1.5rem; border-radius: 16px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,.05); border-bottom: 4px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-box h3 { color: var(--primary); font-family: 'Poppins', sans-serif; font-size: 1.1rem; margin: 1rem 0 .5rem; }
.stat-box p { color: #666; font-size: .9rem; line-height: 1.4; }
.icon-wrapper { width: 55px; height: 55px; background: transparent; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto; }
.stat-box:nth-child(1) .icon-wrapper { background: var(--accent); font-size: 1.5rem; }

/* ===================== VALUES ===================== */
.values-section { padding: 5rem 5%; background: white; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 2rem; margin-top: 3rem; }
.value-card { background: #f8f9fa; padding: 2.5rem; border-radius: 16px; text-align: center; transition: transform .3s; border-top: 4px solid var(--accent); }
.value-card:hover { transform: translateY(-8px); }
.value-icon { width: 70px; height: 70px; background: var(--primary); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1.2rem; }
.value-card h3 { color: var(--primary); font-family:'Poppins',sans-serif; margin-bottom: .6rem; }
.value-card p { color: #666; line-height: 1.6; font-size: .95rem; }

/* ===================== FUN PROGRAMS ===================== */
.fun-programs { background: #fdfbf7; padding: 6rem 5% 8rem; position: relative; overflow: hidden; border-top: 8px dashed rgba(251, 192, 45, 0.4); }
.floating-shapes i { position: absolute; color: var(--accent); opacity: 0.15; z-index: 1; animation: floatUp 8s ease-in-out infinite alternate; }
.shape-1 { top: 10%; left: 10%; font-size: 4rem; animation-delay: 0s; }
.shape-2 { top: 40%; right: 8%; font-size: 6rem; color: #00bcd4; animation-delay: 1.5s; }
.shape-3 { bottom: 15%; left: 15%; font-size: 5rem; color: #9c27b0; animation-delay: 3s; }
.shape-4 { top: 70%; right: 20%; font-size: 3rem; color: #fbc02d; animation-delay: 0.5s; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-40px) rotate(15deg); } }

.fun-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--primary); margin-bottom: 1rem; position: relative; z-index: 2; font-weight: 800; }
.section-subtitle { color: #666; font-size: 1.1rem; margin-bottom: 4rem; position: relative; z-index: 2; }
.fun-programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3.5rem 2.5rem; position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.fun-card { background: #ffffff; border: 5px solid var(--card-color); border-radius: 35px; padding: 4.5rem 2rem 2.5rem; text-align: center; position: relative; box-shadow: 0 15px 0px rgba(0,0,0,0.06); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fun-card:hover { transform: translateY(-12px) rotate(1deg); box-shadow: 0 25px 0px rgba(0,0,0,0.08); }
.theme-creche { --card-color: #fbc02d; } 
.theme-primary { --card-color: #00bcd4; } 
.theme-jhs { --card-color: #9c27b0; } 
.card-icon-wrapper { position: absolute; top: -45px; left: 50%; transform: translateX(-50%); width: 90px; height: 90px; background: var(--card-color); border: 6px solid #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: white; box-shadow: 0 10px 15px rgba(0,0,0,0.1); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.fun-card:hover .card-icon-wrapper { transform: translateX(-50%) scale(1.15) rotate(-10deg); }
.fun-card h3 { font-size: 2rem; font-family: 'Poppins', sans-serif; color: var(--primary); margin-bottom: 0.8rem; font-weight: 800; }
.fun-card p { color: #555; line-height: 1.6; margin-bottom: 2rem; font-size: 0.95rem; }
.fun-list { list-style: none; text-align: left; margin: 0 auto 2.5rem; display: inline-block; }
.fun-list li { padding: 0.5rem 0; font-weight: 700; color: var(--primary); display: flex; align-items: center; font-size: 0.95rem; }
.fun-list li i { color: var(--card-color); font-size: 1.3rem; margin-right: 12px; width: 25px; text-align: center; }
.fun-btn { display: inline-block; background: var(--card-color); color: white; padding: 16px 32px; border-radius: 50px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.9rem; box-shadow: 0 5px 15px rgba(0,0,0,0.15); transition: 0.3s; }
.fun-btn:hover { background: var(--primary); color: white; transform: scale(1.05); }

/* ===================== TRUST PORTAL ===================== */
.trust-section { background: var(--primary); padding: 6rem 5% 8rem; position: relative; overflow: hidden; color: white; }
.trust-title { color: white !important; font-size: clamp(2rem, 5vw, 3rem); text-shadow: 0 4px 15px rgba(0,0,0,0.3); position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem 2rem; max-width: 1100px; margin: 5rem auto 0; position: relative; z-index: 2; }
.trust-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 4px solid var(--trust-color); border-radius: 40px; padding: 3.5rem 2rem 2rem; text-align: center; position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.trust-card.theme-gold { --trust-color: #fbc02d; }
.trust-card.theme-teal { --trust-color: #00bcd4; }
.trust-card.theme-purple { --trust-color: #9c27b0; }
.trust-card:hover, .trust-card:focus-within { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.trust-icon-ring { position: absolute; top: -45px; width: 90px; height: 90px; background: var(--primary); border: 4px solid var(--trust-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.2rem; color: var(--trust-color); box-shadow: 0 0 20px rgba(0,0,0,0.4); transition: all 0.4s ease; }
.trust-card:hover .trust-icon-ring, .trust-card:focus-within .trust-icon-ring { transform: rotate(15deg) scale(1.1); background: var(--trust-color); color: var(--primary); }
.trust-card h4 { font-size: 1.6rem; font-family: 'Poppins', sans-serif; color: white; margin-bottom: 0; font-weight: 700; transition: margin 0.4s ease; }
.trust-reveal { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.trust-card:hover .trust-reveal, .trust-card:focus-within .trust-reveal { max-height: 200px; opacity: 1; margin-top: 1.5rem; }
.trust-card:hover h4, .trust-card:focus-within h4 { margin-bottom: 0.5rem; }
.trust-reveal p { font-size: 1rem; color: rgba(255,255,255,0.9); line-height: 1.6; margin: 0; }

/* ===================== TALENT CANVAS ===================== */
.talent-section { background: #fdfbf7; padding: 6rem 5% 8rem; position: relative; overflow: hidden; }
.talent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3rem 2rem; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.talent-card { background: #ffffff; border: 4px solid var(--talent-color); border-radius: 25px; box-shadow: 8px 8px 0px var(--talent-color); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; display: flex; flex-direction: column; }
.talent-card:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0px var(--talent-color); }
.talent-card.theme-ict     { --talent-color: #00bcd4; } 
.talent-card.theme-sports  { --talent-color: #ff9800; } 
.talent-card.theme-arts    { --talent-color: #e91e63; } 
.talent-card.theme-culture { --talent-color: #4caf50; } 
.talent-img-wrapper { padding: 15px; padding-bottom: 0; position: relative; }
.talent-img-wrapper img { width: 100%; height: 220px; object-fit: cover; border-radius: 15px; display: block; }
.talent-badge { position: absolute; right: 25px; bottom: -25px; width: 55px; height: 55px; background: var(--talent-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 2; transition: transform 0.3s ease; }
.talent-card:hover .talent-badge { transform: rotate(15deg) scale(1.1); }
.talent-info { padding: 1.8rem 1.5rem; text-align: left; }
.talent-info h4 { color: var(--primary); font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 800; margin: 0; }

/* ===================== COUNTDOWN ===================== */
#countdown-section { background: linear-gradient(135deg, var(--primary) 0%, #1a4a75 100%); padding: 6rem 5%; text-align: center; color: white; position: relative; overflow: hidden; }
#countdown-section::before { content: ''; position: absolute; top: -50px; left: -50px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(251,192,45,0.15) 0%, transparent 70%); }
#countdown-section::after { content: ''; position: absolute; bottom: -50px; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%); }
#countdown-section h2 { font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; position: relative; z-index: 2; }
.countdown-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 3rem; position: relative; z-index: 2; }
.timer { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; position: relative; z-index: 2; }
.time-box { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); padding: 1.8rem 2rem; border-radius: 20px; min-width: 120px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-bottom: 5px solid var(--accent); transition: transform 0.3s ease; }
.time-box:hover { transform: translateY(-5px); }
.time-box span { display: block; font-size: 3.5rem; font-weight: 800; color: var(--accent); font-family: 'Poppins', sans-serif; line-height: 1; text-shadow: 0 0 20px rgba(251,192,45,0.5); }
.time-box small { font-size: 0.9rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 2px; margin-top: 12px; display: block; font-weight: 600; }

/* ===================== EVENTS ===================== */
.events-section { padding: 5rem 5%; background: white; }
.event-card { display: flex; align-items: center; gap: 2rem; padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem; background: #f8f9fa; border-left: 5px solid var(--accent); transition: transform .3s; }
.event-card:hover { transform: translateX(8px); }
.event-date { background: var(--primary); color: white; min-width: 70px; padding: 1rem; border-radius: 10px; text-align: center; }
.event-date span { display: block; font-size: 1.8rem; font-weight: 800; font-family:'Poppins',sans-serif; line-height: 1; }
.event-date small { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.event-details h4 { color: var(--primary); font-family:'Poppins',sans-serif; margin-bottom: .3rem; }
.event-details p { color: #666; font-size: .9rem; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { padding: 5rem 5%; background: white; text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 2rem; margin-top: 3rem; }
.review-card { background: #f9f9f9; padding: 2.5rem; border-radius: 15px; border-bottom: 5px solid var(--accent); transition: transform .3s; text-align: left; }
.review-card:hover { transform: translateY(-6px); }
.review-card .quote-icon { font-size: 2rem; color: #ddd; margin-bottom: 1rem; display: block; }
.review-card p { font-size: 1rem; line-height: 1.6; color: #555; font-style: italic; margin-bottom: 1.5rem; }
.review-card h4 { color: var(--primary); font-weight: 800; margin-bottom: .2rem; }
.review-card span { font-size: .85rem; color: #888; }

/* ===================== RECENT MOMENTS ===================== */
.recent-moments-section { background: #fdfbf7; position: relative; overflow: hidden; }
.moments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 800px; margin: 0 auto; }
.moment-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; border: 4px solid #fff; }
.moment-item.featured { grid-column: span 2; aspect-ratio: 16/9; }
.moment-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.moment-item:hover { box-shadow: 0 15px 35px rgba(251, 192, 45, 0.4); z-index: 5; }
.moment-item:hover img { transform: scale(1.05); filter: brightness(1.05); }

.btn-gallery { display: inline-block; background: var(--accent); color: var(--primary); padding: 14px 35px; font-size: 0.95rem; border-radius: 50px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 5px 15px rgba(251,192,45,.4); text-decoration: none; position: relative; }
.btn-gallery:hover { transform: translateY(-5px) scale(1.05); background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(10,37,64,.3); }
@media (min-width: 768px) { .moment-item.featured { aspect-ratio: 21/9; } .moment-item { aspect-ratio: 1/1; } }

/* ===================== FAQ ===================== */
.faq-section { background: #f4f7f6; padding: 5rem 5%; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.05); border-left: 5px solid transparent; transition: .3s; }
.faq-item.active { border-left-color: var(--accent); box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.faq-question { padding: 1.5rem 2rem; width: 100%; text-align: left; background: none; border: none; font-size: 1.05rem; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; }
.faq-answer p { padding: 0 2rem 2rem; color: #555; line-height: 1.7; font-size: 1rem; }

/* ===================== APPLY FORM ===================== */
.apply-section { padding: 5rem 5%; background: white; }
.form-container { max-width: 700px; margin: 0 auto; background: #f4f7f6; border-radius: 20px; padding: 3rem; }
.form-container h2 { font-family:'Poppins',sans-serif; color: var(--primary); margin-bottom: 2rem; text-align: center; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); font-size: .9rem; }
.form-group input, .form-group select { width: 100%; padding: 14px 16px; border: 2px solid #ddd; border-radius: 10px; font-size: .95rem; font-family: inherit; transition: border-color .3s; background: white; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.submit-btn { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .3s; font-family: inherit; margin-top: .5rem; }
.submit-btn:hover { background: var(--accent); color: var(--primary); }
.form-message { padding: 14px; border-radius: 8px; text-align: center; font-weight: 600; margin-bottom: 1rem; display: none; }
.form-message.success { background: #d4edda; color: #155724; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; display: block; }
.honeypot { display: none !important; }

/* ===================== ACCREDITATION ===================== */
.accreditation-section { background: #f4f7f6; padding: 4rem 5%; text-align: center; }
.accreditation-header { font-family:'Poppins',sans-serif; color: var(--primary); margin-bottom: 2.5rem; }
.logo-grid { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; }
.logo-item img { height: 70px; width: auto; object-fit: contain; filter: grayscale(50%); opacity: .7; transition: .3s; }
.logo-item img:hover { filter: grayscale(0%); opacity: 1; }

/* ===================== DASHBOARD & PORTAL PAGES (RESTORED) ===================== */
.contact-hero { position: relative; background: linear-gradient(rgba(10,37,64,.9),rgba(10,37,64,.8)), url('https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?q=80&w=1600') center/cover fixed; padding: 8rem 5% 10rem; text-align: center; color: white; overflow: hidden; }
.contact-hero h1 { font-size: clamp(2.5rem,5vw,4rem); color: white; margin-bottom: 1rem; font-weight: 800; font-family:'Poppins',sans-serif; }
.contact-hero p { font-size: 1.2rem; opacity: .9; max-width: 700px; margin: 0 auto; line-height: 1.6; }
.contact-grid-section { margin-top: -6rem; padding-bottom: 6rem; position: relative; z-index: 10; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.contact-widget { background: white; padding: 2.5rem 2rem; border-radius: 20px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.1); transition: all .4s; border-top: 6px solid var(--accent); }
.contact-widget:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(0,0,0,.15); }
.widget-icon { width: 80px; height: 80px; background: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary); font-size: 2rem; transition: .4s; }
.contact-widget:hover .widget-icon { background: var(--primary); color: var(--accent); transform: scale(1.1) rotate(5deg); }
.contact-widget h3 { color: var(--primary); font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; font-family:'Poppins',sans-serif; }
.contact-widget p { color: #666; margin-bottom: 1.5rem; line-height: 1.5; }
.widget-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: .3s; }
.widget-btn:hover { background: var(--accent); color: var(--primary); }
.map-wrapper { max-width: 1200px; margin: 0 auto 5rem; padding: 0 5%; }
.modern-map-container { background: white; padding: 1.5rem; border-radius: 25px; box-shadow: 0 15px 40px rgba(0,0,0,.08); position: relative; }
.modern-map-container iframe { border-radius: 15px; width: 100%; height: 450px; display: block; border: 0; }

.portal-section { min-height: 85vh; background: linear-gradient(rgba(10,37,64,.85),rgba(10,37,64,.9)), url('https://debrighttalentedkidsschool.online/wp-content/uploads/2026/01/IMG_2312.jpeg') center/cover; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.portal-card { background: white; padding: 3.5rem 3rem; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5); max-width: 480px; width: 100%; text-align: center; border-top: 6px solid var(--accent); animation: slideUp .8s ease-out; }
@keyframes slideUp { from{opacity:0;transform:translateY(30px);}to{opacity:1;transform:translateY(0);} }
.portal-card h2 { color: var(--primary); font-family:'Poppins',sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.portal-card .sub { color: #888; margin-bottom: 2rem; font-size: .95rem; }
.portal-card input { width: 100%; padding: 14px 18px; border: 2px solid #eee; border-radius: 10px; font-size: .95rem; margin-bottom: 1rem; font-family: inherit; box-sizing: border-box; transition: border-color .3s; }
.portal-card input:focus { outline: none; border-color: var(--primary); }
.portal-card button[type="submit"] { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .3s; }
.portal-card button[type="submit"]:hover { background: var(--accent); color: var(--primary); }

body.dashboard-page { background: #F3F4F6; font-family: 'Space Grotesk', sans-serif; }
.ai-header { background: #111827; padding: 30px 20px 80px; border-radius: 0 0 40px 40px; color: white; position: relative; overflow: hidden; }
.ai-header::after { content:''; position:absolute; top:0; right:0; width:200px; height:200px; background:radial-gradient(circle,#7C3AED 0%,transparent 70%); opacity:.4; }
.ai-header h2 { font-size: 1.4rem; font-weight: 700; position: relative; z-index: 2; }
.ai-header p { opacity: .7; font-size: .9rem; margin-top: 4px; position: relative; z-index: 2; }
.view-container { padding: 0 20px; margin-top: -60px; position: relative; z-index: 10; padding-bottom: 120px; }
.tech-card { background: white; border-radius: 20px; padding: 25px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.1); margin-bottom: 20px; border: 1px solid #E5E7EB; }
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.mini-stat { background: white; border-radius: 16px; padding: 18px; text-align: center; border: 1px solid #E5E7EB; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.mini-stat .val { font-size: 1.6rem; font-weight: 800; color: #7C3AED; }
.mini-stat .lbl { font-size: .75rem; color: #9CA3AF; margin-top: 4px; }
.dock { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1F2937; padding: 15px 30px; border-radius: 40px; display: flex; gap: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.3); z-index: 999; }
.dock i { font-size: 1.4rem; color: #9CA3AF; cursor: pointer; transition: .2s; background: none; border: none; }
.dock i.active { color: #A78BFA; transform: scale(1.2); }
.view { display: none; animation: popIn .3s cubic-bezier(.175,.885,.32,1.275); }
.view.active { display: block; }
@keyframes popIn { from{opacity:0;transform:scale(.95);}to{opacity:1;transform:scale(1);} }
.quiz-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #F9FAFB; border-radius: 12px; margin-bottom: 10px; border: 1px solid #E5E7EB; }
.btn-start { background: #7C3AED; color: white; padding: 8px 20px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: .8rem; border: none; cursor: pointer; }

body.teacher-page { background: #111827; color: #E5E7EB; font-family: 'Space Grotesk', sans-serif; }
.teacher-wrap { max-width: 900px; margin: 40px auto; padding: 20px; }
.teacher-card { background: #1F2937; border-radius: 20px; padding: 30px; margin-bottom: 30px; border: 1px solid #374151; }
.teacher-card h2 { color: white; border-bottom: 1px solid #374151; padding-bottom: 15px; margin-bottom: 20px; font-family:'Poppins',sans-serif; }
.teacher-card input, .teacher-card select, .teacher-card textarea { width: 100%; padding: 15px; background: #111827; border: 1px solid #374151; border-radius: 10px; color: white; margin-bottom: 15px; font-family: inherit; font-size: .95rem; }
.teacher-card input:focus, .teacher-card select:focus, .teacher-card textarea:focus { outline: none; border-color: #7C3AED; }
.teacher-btn { width: 100%; padding: 15px; background: #7C3AED; color: white; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 1rem; transition: background .3s; }
.teacher-btn:hover { background: #6D28D9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.success-msg { padding: 15px; background: #059669; color: white; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }

.not-found-wrap { height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--light); padding: 2rem; }
.big-404 { font-size: 8rem; font-weight: 800; color: var(--primary); line-height: 1; font-family:'Poppins',sans-serif; }

/* ===================== SHARED SUBPAGE HERO ===================== */
.page-hero { background: linear-gradient(rgba(10,37,64,.6), rgba(10,37,64,.7)), url('https://debrighttalentedkidsschool.online/wp-content/uploads/2026/01/IMG_2312.jpeg') center/cover; padding: 7rem 5% 9rem; text-align: center; color: white; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; font-family: 'Poppins', sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.page-hero .accent-line { width: 80px; height: 5px; background: var(--accent); margin: 1rem auto 0; border-radius: 2px; }
.page-hero .back-link { display: inline-block; color: white; text-decoration: none; font-weight: 600; background: rgba(0,0,0,.3); padding: 8px 15px; border-radius: 50px; font-size: .85rem; backdrop-filter: blur(5px); }

/* ===================== ABOUT PAGE ===================== */
#progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 5px; background: transparent; z-index: 9999; }
#progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width .1s ease-out; box-shadow: 0 0 10px var(--accent); }
.page-header-wrapper { position: relative; height: 50vh; min-height: 350px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--primary); }
.page-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .4; animation: kenBurns 20s infinite alternate; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.15); } }
.page-header-content { position: relative; z-index: 2; width: 100%; padding: 0 1rem; }
.page-header-content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; color: white; text-shadow: 0 5px 15px rgba(0,0,0,.5); font-family: 'Poppins', sans-serif; }
.about-card { max-width: 1000px; background: white; padding: 4rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.08); margin: -6rem auto 5rem; position: relative; z-index: 10; }
.about-card h2 { color: var(--primary); font-family: 'Poppins', sans-serif; margin-top: 2rem; margin-bottom: 1rem; }
.about-card p { color: #444; line-height: 1.8; margin-bottom: 1rem; }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.mission-item { background: #f4f7f6; padding: 2rem; border-radius: 12px; border-left: 5px solid var(--accent); }
.mission-item h4 { color: var(--primary); font-family: 'Poppins', sans-serif; margin-bottom: .5rem; }
.mission-item p { color: #666; font-size: .95rem; line-height: 1.6; margin: 0; }

/* ===================== ARTICLES PAGE ===================== */
.article-header-section { padding: 7rem 5% 9rem; color: white; text-align: center; position: relative; }
.article-card { max-width: 850px; background: white; padding: 4rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.08); margin: -6rem auto 5rem; position: relative; z-index: 10; }
.entry-content { font-size: 1.15rem; line-height: 1.8; color: #2c3e50; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { font-size: 1.8rem; color: var(--primary); margin: 2.5rem 0 1rem; border-bottom: 2px solid #f4f7f6; padding-bottom: 10px; }
.entry-content blockquote { background: #f8f9fa; border-left: 5px solid var(--accent); padding: 1.5rem; margin: 2rem 0; font-style: italic; color: #555; }

.page-card { max-width: 1100px; background: white; padding: 4rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.08); margin: -6rem auto 5rem; position: relative; z-index: 10; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.news-card { background: white; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform .3s; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-content { padding: 1.5rem; }
.news-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; display: block; letter-spacing: 1px; }
.news-content h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: .5rem; line-height: 1.4; font-family: 'Poppins', sans-serif; }
.news-content p { font-size: .9rem; color: #666; margin-bottom: 1rem; line-height: 1.5; }
.news-content a.read-more { color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; }
.news-content a.read-more:hover { color: var(--accent); }

/* ===================== GALLERY PAGE ===================== */
.gallery-wrap { max-width: 1200px; margin: -6rem auto 5rem; position: relative; z-index: 10; padding: 0 5%; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.gallery-grid a { display: block; height: 220px; overflow: hidden; border-radius: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.1); }

/* ===================== FOOTER ===================== */
footer { background: var(--primary); color: white; padding: 4rem 5% 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-section h3 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-section p, .footer-section li { font-size: .9rem; opacity: .8; margin-bottom: .6rem; line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .3s; }
.footer-section a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: background .3s; }
.social-icons a:hover { background: var(--accent); color: var(--primary); }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; opacity: .6; }

/* ===================== SKIP NAV (ACCESSIBILITY FIX) ===================== */
.skip-nav { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-nav:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; background: var(--accent); color: var(--primary); padding: 12px 24px; border-radius: 0 0 8px 8px; font-weight: 700; z-index: 100000; text-decoration: none; }

#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); color: var(--primary); border-radius: 50%; border: none; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,.3); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .4s; font-size: 1.2rem; }
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { background: white; transform: translateY(-5px); }

/* ===================== SECTION UTILS ===================== */
.section-padding { padding: 5rem 5%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section-title { font-family:'Poppins',sans-serif; font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 800; color: var(--primary); }
.text-center { text-align: center; }
.accent-bar { width: 60px; height: 5px; background: var(--accent); border-radius: 3px; margin: 1rem auto; }

/* ===================== MOBILE OPTIMIZATION ===================== */
@media (max-width: 900px) {
  .hero { 
    min-height: 100vh; 
    align-items: flex-end; /* Anchors the glass card cleanly to the bottom */
    padding-bottom: 2rem;
  }
  
  /* THE IMAGE FIX: Shifts focus to the left so the student is fully visible on the top half */
  .hero-bg-image {
    background-position: 25% top; 
  }

  .hero-container { 
    justify-content: center;
    padding: 0 1rem;
  }

  /* Adjusts the Glass box to fit phone screens without squishing the text */
  .hero-content { 
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(10, 37, 64, 0.85); /* Slightly darker for optimal readability */
  }
  
  /* THE TEXT FIX: Uses clamp() to dynamically scale the font so words never break */
  .hero h1 { 
    font-size: clamp(2rem, 8vw, 2.8rem); 
    margin-bottom: 0.5rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-separator {
    margin: 1.2rem auto; 
  }

  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-actions { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem; 
  }
  
  .cta-button { 
    width: 100% !important; 
    max-width: none; /* Allows the button to perfectly fill the mobile container */
    padding: 1.1rem 2rem;
  }
}
