/* ===========================
   Hoerskool Elliot - Main CSS (maroon / black / gold / white)
   Save as: assets/css/style.css
   =========================== */

:root{
  /* School palette */
  --maroon: #7b1620;      /* primary maroon */
  --black:  #0b0b0b;
  --gold:   #c79a2c;
  --white:  #ffffff;

/* total height including logo + padding */
  --navbar-height: 115px;

  /* usage tokens */
  --surface: var(--black);
  --muted: #bdbdbd;
  --accent: var(--maroon);
  --accent-2: var(--gold);
  --glass: rgba(255,255,255,0.035);
  --radius: 12px;
  --shadow-sm: 0 6px 18px rgba(2,6,23,0.45);
  --font: "Poppins",sans-serif;
}

/* ---------- Reset & base ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--black);
  background:#fbf9f7;
  -webkit-font-smoothing:antialiased;
   margin-top: 110px; /* Adjust to match your navbar height */
}
a{color:inherit}
img{display:block;max-width:100%;height:auto}

/* Apply to all anchor target sections */
section, header {
  scroll-margin-top: var(--navbar-height);
}

/* ---------- containers ---------- */
.container{max-width:1200px;margin:0 auto;padding:0 1.25rem}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: var(--black);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.navbar.scrolled {
  background: var(--black);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.nav-container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0.3rem 1rem;
}
.logo{
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin-left: 20px;
  text-decoration:none;
}
.logo img{
  height:105px;
  width:auto;
  border-radius:5px;
  margin:0;
  padding:0;
}

.logo span{font-weight:700;
  font-size:1.55rem;
  color:var(--gold)}

/* Desktop links */
.nav-links{display:flex;align-items:center;gap:14px}
.nav-links a{
  text-decoration:none;padding:.45rem .85rem;border-radius:10px;font-weight:600;font-size:.98rem;color:var(--white);
  transition:all .22s ease;display:inline-block;
  opacity:0.95;
}
.nav-links a:hover,
.nav-links a:focus{color:var(--gold);background:var(--glass);transform:translateY(-2px)}
.apply-btn{
  background:linear-gradient(90deg,var(--maroon),var(--gold)); padding:.55rem 1rem;border-radius:10px;color:var(--white);font-weight:700;
  box-shadow:0 6px 18px rgba(123,22,32,0.16);
}

/* Mobile toggle */
.menu-toggle{display:none;background:transparent;border:0;padding:.4rem;border-radius:8px;color:var(--white)}
.menu-toggle:focus{outline:2px solid rgba(255,255,255,0.08)}

/* Mobile panel */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,7,9,0.7);
  backdrop-filter: blur(6px);
  z-index: 1200;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.mobile-panel.active {
  display: block;
  opacity: 1;
}
.mobile-panel .panel-inner {
  width: 85%;
  max-width: 360px;
  background: var(--surface);
  height: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.mobile-panel .panel-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}
.mobile-panel a {
  padding: .7rem .8rem;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
}
.mobile-panel a:hover {
  background: var(--glass);
  color: var(--gold);
}

/* =========================
   HERO + SLIDESHOW (75% width / 75vh height)
   ========================= */
header.hero {
  height: 75vh; /* hero fills 75% of the viewport height */
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 75%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.12));
  box-shadow: 0 18px 40px rgba(2,6,23,0.18);
  will-change: transform, opacity;
}

/* Slides: ensure proper stacking so images are visible under overlay + content */
.slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .9s cubic-bezier(.2,.9,.2,1);will-change:opacity;z-index:0}
.slide img{width:100%;height:100%;object-fit:cover;display:block}
.slide.active{opacity:1;z-index:0}

/* overlay & content: overlay sits above slides but is translucent; content sits on top */
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.18));z-index:1;pointer-events:none}
.hero-content{
  position:relative;z-index:2;max-width:720px;padding:2rem;text-align:left;color:var(--white);
  margin-left:6%;
}
.hero h1{font-size:clamp(1.5rem,3vw,2.6rem);margin:0 0 .4rem;line-height:1.05;font-weight:700;color:var(--white)}
.hero p{margin:0 0 1.2rem;color:rgba(255,255,255,0.95);font-size:1rem}
.hero-cta{display:inline-block;padding:.65rem 1.1rem;border-radius:10px;background:linear-gradient(90deg,var(--maroon),var(--gold));color:var(--white);font-weight:700;text-decoration:none}

/* controls / indicators */
.controls{position:absolute;right:1rem;bottom:1rem;z-index:3;display:flex;gap:.5rem;align-items:center}
.dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.28);cursor:pointer;transition:all .18s}
.dot.active{transform:scale(1.25);background:var(--maroon)}

.arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  border:0;
  background:rgba(0,0,0,0.35);
  color:var(--white);
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.arrow.left{left:8px}
.arrow.right{right:8px}
.arrow:focus{outline:2px solid rgba(255,255,255,0.08)}

/* =========================
   Sections & Cards (unchanged styling adapted for palette)
   ========================= */
.section{padding:60px 0;transition:background 0.4s ease}
.white-section{background:var(--white)}
.green-section{background:#f6eef0} /* subtle warm background */
.lightgreen-section{background:#fff7f0}

.about-section{background:#faf9f7;padding:80px 0;color:#222}
.about-content{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap}
.about-text{flex:1 1 500px;line-height:1.7}
.about-image{flex:1 1 400px;text-align:center}
.about-image img{width:100%;max-width:500px;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,0.08);transition:transform .5s}
.about-image img:hover{transform:scale(1.03)}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.card{background:#ffffff;padding:20px;border-radius:15px;box-shadow:0 6px 18px rgba(2,6,23,0.04);transition:transform .3s,box-shadow .3s}
.card:hover{transform:translateY(-8px);box-shadow:0 12px 28px rgba(0,0,0,0.06)}

/* Basic news card style (kept for fallback) */
.news-card{overflow:hidden;border-radius:12px;transition:transform .3s}
.news-card img{width:100%;height:180px;object-fit:cover;display:block;border-bottom:3px solid var(--gold);transition:transform .3s}
.news-card:hover img{transform:scale(1.04)}
.news-body{padding:15px}

/* ---------- NEWS HORIZONTAL SLIDER (inserted) ---------- */
.news-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 0px 0;
}

.news-track {
  display: flex;
  gap: 20px;
  transition: transform 0.48s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  padding: 0px 0px;
  box-sizing: border-box;
  align-items: stretch;
}

/* Each horizontal card */
/* Make each news card occupy 25% (4 per row) on desktop */
.news-card {
  /* 4 visible on desktop -> each card ~25% minus gap */
  flex: 0 0 calc(25% - 15px);
  display: flex;
  flex-direction: column;
  background: #0b0b0b;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
   justify-content: space-between; /* ensures content is spaced top-to-bottom */
}

/* Responsive breakpoints: 4 / 3 / 2 / 1 */
@media (max-width: 1024px) {
  .news-card { flex: 0 0 calc(33.333% - 14px); } /* 3 visible */
}
@media (max-width: 768px) {
  .news-card { flex: 0 0 calc(50% - 12px); } /* 2 visible */
  .news-track { padding: 8px 36px; }
}
@media (max-width: 480px) {
  .news-card { flex: 0 0 100%; } /* 1 visible on phones */
  .news-track { padding: 8px 18px; gap:12px; }
  .arrow.news-prev, .arrow.news-next { width:44px; height:44px; font-size:1.6rem; }
}


.news-card img { width:100%; height:180px; object-fit:cover; border-bottom:3px solid var(--gold); }
.news-body { padding: 15px; flex:1 1 auto;  display: flex;
  flex-direction: column;
  height: 100%; }
.news-body h4 { color: var(--gold); margin: 0 0 8px; font-weight:700; }
.news-body p { margin:0 0 10px; color:#ffffff; line-height:1.5; }
.news-body small { color:#dddbdb; 
   margin-top: auto;        /* pushes date to the bottom */
  display: flex;
  align-items: center;
  gap: 6px; 
}

.news-card:hover, .news-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  outline: none;
}

/* Arrows for news (matching hero but bigger) */
.arrow.news-prev,
.arrow.news-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  border: 0;
  background: var(--white);;
  color: var(--black);
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 2.4rem;
  cursor: pointer;
  transition: background .22s ease, transform .12s ease;
  box-shadow: 0 8px 26px rgba(0,0,0,0.2);
}
.arrow.news-prev { left: 12px; }
.arrow.news-next { right: 12px; }
.arrow.news-prev:hover, .arrow.news-next:hover { background: var(--maroon); transform: translateY(-50%) scale(1.05); }
.arrow:focus { outline: 2px solid rgba(255,255,255,0.06); }

/* Responsive adjustments for news */
/* 5 visible at >= 1200px, 4 at >= 1024px, then 3/2/1 as before */
@media (max-width: 1280px) {
  /* At slightly smaller than very-wide screens keep 5 until 1200 px fallbacks */
}
@media (max-width: 1200px) {
  /* If you want to force 5 only for >=1200, you can leave this empty */
}
@media (max-width: 1024px) {
  .news-card { flex: 0 0 calc(25% - 14px); } /* 4 visible */
}
@media (max-width: 768px) {
  .news-card { flex: 0 0 calc(33.333% - 14px); } /* 3 visible */
  .news-track { padding: 8px 36px; }
}
@media (max-width: 480px) {
  .news-card { flex: 0 0 calc(50% - 12px); } /* 2 visible on small phones in landscape */
  .news-track { padding: 8px 18px; gap:12px; }
  .arrow.news-prev, .arrow.news-next { width:44px; height:44px; font-size:1.6rem; }
}
@media (max-width: 360px) {
  .news-card { flex: 0 0 100%; } /* 1 visible on very small screens */
}

/* ---------- GALLERY: album cards with thumbs (horizontal slider) ---------- */
section#gallery {
  background: #fff; /* clean white */
  padding: 60px 0; /* spacing top/bottom */
}


.gallery-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
  padding: 8px 0;
  box-sizing: border-box;
  align-items: stretch;
}

/* each card similar sizing to news cards (4-per-row desktop) */
.gallery-card {
  flex: 0 0 calc(20% - 16px); /* 5 visible at a time */
  display: flex;
  flex-direction: column;
  background: #0b0b0b;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}

/* main image area */
.gallery-main {
  position: relative;
  width: 100%;
  height: 300px;
  background: #000000;
  overflow: hidden;

}
.gallery-main img { width:100%; height:100%; object-fit:cover; display:block; }

/* Transparent gradient overlay */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.gallery-overlay h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.gallery-overlay .photo-count {
  font-size: 0.9rem;
  color: #ddd;
  opacity: 0.9;
  margin-top: 2px;
}

/* body area with title and thumbs */
.gallery-body {
  padding: 12px 14px 18px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background: linear-gradient(180deg, rgba(11,11,11,0.02), rgba(0,0,0,0.06));
}
.gallery-body h4 {
  margin:0;
  color: var(--gold);
  font-weight:700;
  font-size:1.05rem;
  z-index:1;
}

/* thumbs row */
.thumbs {
  display:flex;
  gap:8px;
  align-items:center;
  overflow-x:auto;
  padding-bottom:2px;
}
.thumbs::-webkit-scrollbar{ height:6px; }
.thumbs::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.2); border-radius:6px; }

/* each thumbnail button */
.thumb {
  background:transparent;
  border:0;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:60px;
  height:44px;
  border-radius:6px;
  overflow:hidden;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* active thumb style (will be toggled by JS) */
.thumb.active {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-4px);
  outline: 2px solid var(--gold);
}

/* hover/focus on card */
.gallery-card:hover, .gallery-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  outline: none;
}

/* arrows (reuse hero style but bigger) */
.arrow.gallery-prev,
.arrow.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: 0;
  background: var(--white);
  color: var(--black);
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 2.4rem;
  cursor: pointer;
  transition: background .22s ease, transform .12s ease;
  box-shadow: 0 8px 26px rgba(0,0,0,0.2);
}
.arrow.gallery-prev { left: 12px; }
.arrow.gallery-next { right: 12px; }
.arrow.gallery-prev:hover, .arrow.gallery-next:hover { background: var(--maroon); transform: translateY(-50%) scale(1.05); }

/* ensure main image area has smooth swap */
.gallery-main img { transition: opacity .18s ease; }

/* small tweak: ensure modal arrows show on dark background */
#gallery-modal .modal-arrow { color:var(--white); background:transparent; border-radius:8px; }

/* See All button */
.see-all-container {
  text-align: center;
  margin-top: 40px;
}
.see-all-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.see-all-btn:hover {
  background: var(--maroon);
  color: white;
}

/* Full Gallery Page */
.gallery-page .albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.album-card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.album-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.album-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.album-info {
  padding: 16px 18px;
}
.album-info h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.album-info p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 10px;
}
.album-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.album-thumbs img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}



/* responsive breakpoints */
@media (max-width: 1024px) {
  .gallery-card { flex: 0 0 calc(33.333% - 14px); }  /* 3 visible */
}
@media (max-width: 768px) {
  .gallery-card { flex: 0 0 calc(50% - 12px); } /* 2 visible */
  .gallery-track { padding: 8px 36px; }
}
@media (max-width: 480px) {
  .gallery-card { flex: 0 0 100%; } /* 1 visible */
  .gallery-track { padding: 8px 18px; gap:12px; }
  .arrow.gallery-prev, .arrow.gallery-next { width:44px; height:44px; font-size:1.6rem; left:6px; right:6px; }
}


/* Modal styling (viewer) */
#gallery-modal .modal-content { max-width: 900px; padding: 18px; background: #111; border-radius: 12px; }
#gallery-modal .gallery-modal-inner { display:flex;align-items:center;gap:12px;position:relative; }
#gallery-modal .modal-arrow { background: transparent;border:0;color:var(--white);font-size:2.6rem;cursor:pointer;padding:8px 12px; }
#gallery-modal #gallery-modal-counter { color:var(--muted); font-size:0.95rem; margin-top:8px; }


/* Forms */
input,select,textarea{width:100%;padding:12px;border-radius:10px;border:1px solid #ddd;background:#fff;color:#333;transition:all .25s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--maroon);box-shadow:0 0 8px rgba(123,22,32,0.08)}

/* Footer */
.footer{background:black;color:#fff;padding:25px 0 10px;font-family:var(--font);box-shadow:0 -4px 10px rgba(0,0,0,0.08)}
.footer .container{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:15px}
.footer-col{flex:1 1 200px;min-width:180px}
.footer h4{color:#fff;font-size:1.1em;margin-bottom:10px;font-weight:600}
.footer p,.footer li,.footer a{color:#fff;font-size:.9em;line-height:1.6;text-decoration:none;transition:all .3s}
.footer a:hover{color:#111;background:rgba(255,255,255,0.9);padding:2px 6px;border-radius:5px}
.footer-bottom{border-top:1px solid rgba(255, 255, 255, 0.28);padding-top:8px;margin-top:10px;text-align:center}
/* Social Media Icons */
.social-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: black; /* text color */
  font-weight: bold;
  margin-bottom: 8px;
}

.social-link i.white-icon {
  position: absolute;
  left: 0;
  color: white;
  opacity: 1;
  transition: opacity 0.3s;
}

.social-link:hover i.white-icon {
  opacity: 1;
}

.social-link span {
  padding-left: 25px; /* spacing for icon */
}

/* Responsive tweaks */
@media (max-width:1100px){ .hero-inner{width:90%} .hero-content{margin-left:4%} }
@media (max-width:820px){
  .nav-links{display:none}
  .menu-toggle{display:inline-flex}
  .hero{padding:1rem}
  .hero-inner{width:100%;border-radius:10px}
  .hero-content{position:absolute;left:14px;bottom:18px;color:var(--white);max-width:calc(100% - 40px);margin:0}
  .controls{right:12px;bottom:12px}
}
@media (max-width: 1024px) {
  .nav-container {
    padding: 0.45rem 1rem; /* slightly more padding on tablets */
  }
  .logo img {
    height: 55px;
  }
}
@media (max-width: 600px) {
  .nav-container {
    padding: 0.6rem 1rem; /* more breathing space on mobile */
  }
  .logo img {
    height: 48px;
  }
  .logo span {
    font-size: 1rem;
  }
}
@media (max-width:480px){
  .hero h1{font-size:1.25rem}
  .hero p{font-size:.95rem}
  .logo span{display:none}
}
@media (max-width: 600px) {
  .logo img {
    height: 50px;
  }
}

/* CTA Section Full Width Black Background */
.cta-section {
  width: 100%;
  padding: 60px 1rem;
  text-align: center;
  background: var(--black);
  color: var(--gold);
}

.cta-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.cta-section h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--gold); }
.cta-section .cta-name { font-weight: 700; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--white); }
.cta-section .cta-subtitle { font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem; color: var(--gold); }
.cta-section .cta-text { font-size: 1rem; margin-bottom: 1.2rem; color: var(--white); }
.cta-section .cta-links { margin-bottom: 1.5rem; color: var(--gold); }

.cta-button {
  padding: 0.65rem 1.4rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

/* Highlight the Applications Open text */
.cta-section .cta-subtitle {
  font-size: 2.8rem; /* biggest text in section */
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

@media (max-width: 820px) {
  .cta-section .cta-subtitle {
    font-size: 2rem; /* responsive for tablets/mobile */
  }
}

@media (max-width: 480px) {
  .cta-section .cta-subtitle {
    font-size: 1.6rem; /* smaller on small phones */
  }
}


.cta-button:hover { background: var(--white); color: var(--black); }

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal.active { display: block; }

.modal-content {
  background: #111; /* dark background */
  color: var(--white);
  max-width: 600px;
  margin: 5% auto;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  border-left: 6px solid var(--gold);
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  text-align: center;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  background: rgba(255,255,255,0.05);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.steps-list li:hover { transform: translateX(3px); }

.step-icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.modal-content a { color: var(--gold); font-weight: 600; text-decoration: underline; }

.modal-note { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); text-align: center; }

/* Close button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  transition: color 0.25s;
}
.modal-close:hover { color: var(--gold); }

/* Responsive adjustments */
@media (max-width:600px) {
  .modal-content { padding: 1.5rem 1.8rem; }
  .cta-section h2 { font-size: 1.6rem; }
  .cta-section .cta-name { font-size: 1.2rem; }
}

/* Academics Section Enhancements */
/* =========================
   Enhanced Academics Section with Glow
   ========================= */

/* Card container */
#academics .card {
  position: relative;
  display: block;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-size 0.5s ease;
  background-size: 110%;
  background-position: center center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

/* Dark blur overlay */
#academics .card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 0;
  transition: background 0.5s ease;
}

/* Card content */
#academics .card .content {
  position: relative;
  z-index: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

/* Card text */
#academics .card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: "Poppins", sans-serif;
  position: relative;
  transition: text-shadow 0.4s ease;
}

/* Animated underline for h4 */
#academics .card h4::after {
  content: '';
  position: absolute;
  width: 0;
  height: 4px;
  left: 0;
  bottom: -4px;
  background: var(--gold);
  transition: width 0.3s ease;
}

#academics .card p {
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
  position: relative;
  z-index: 1;
}

/* Tooltip */
#academics .card::after {
  content: "Click to learn more";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease, text-shadow 0.3s ease;
  z-index: 2;
}

/* Hover effects */
#academics .card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background-size: 120%;
}

#academics .card:hover .overlay {
  background: rgba(0,0,0,0.3);
}

#academics .card:hover .content {
  transform: translateY(0);
}

#academics .card:hover h4::after {
  width: 100%;
}

/* Gold glow on title */
#academics .card:hover h4 {
  text-shadow: 0 0 8px var(--gold), 0 0 16px var(--gold);
}

/* Tooltip appears with subtle glow */
#academics .card:hover::after {
  opacity: 1;
  bottom: 25px;
  text-shadow: 0 0 6px var(--gold);
}

/* Responsive tweaks */
@media (max-width: 820px) {
  #academics .card h4 { font-size: 1.4rem; }
  #academics .card p { font-size: 0.95rem; }
  #academics h2 { font-size: 2.2rem; }
  }
/* =========================
   Academics Section - Pulsing Gold Glow
   ========================= */

/* Keyframes for pulsing glow */
@keyframes pulseGlow {
  0% { text-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold); }
  50% { text-shadow: 0 0 12px var(--gold), 0 0 24px var(--gold); }
  100% { text-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold); }
}

@keyframes pulseTooltip {
  0% { text-shadow: 0 0 3px var(--gold); }
  50% { text-shadow: 0 0 6px var(--gold); }
  100% { text-shadow: 0 0 3px var(--gold); }
}

/* Card hover effects */
#academics .card:hover h4 {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

#academics .card:hover::after {
  opacity: 1;
  bottom: 25px;
  animation: pulseTooltip 1.8s infinite ease-in-out;
}

/* Accessibility */
a:focus{outline:2px solid rgba(255,255,255,0.06);outline-offset:2px;border-radius:6px}


#gallery {
  background: #0b0b0b;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.gallery-title {
  font-size: 2.4rem;
  color: var(--black);
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 40px;
}

.album-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
}

.album-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.25);
}

.album-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 0 0 14px 14px;
}

.album-overlay h3 {
  font-size: 1.2rem;
  color: var(--gold);
}

.album-overlay p {
  font-size: 0.9rem;
  color: #ddd;
}

/* Lightbox */
.album-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow-y: auto;
  padding: 40px;
}

.album-lightbox img {
  width: 90%;
  max-width: 800px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.album-lightbox .close {
  position: fixed;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* =========================
   Gallery Modal Styles
   ========================= */
#gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

#gallery-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

#gallery-modal #gallery-modal-counter {
  color: #ccc;
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
}

/* Close button */
#gallery-modal #gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  font-weight: bold;
  transition: color 0.2s ease;
}
#gallery-modal #gallery-modal-close:hover {
  color: var(--gold);
}

/* Navigation arrows */
#gallery-modal .modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

#gallery-modal .modal-arrow:hover {
  color: var(--gold);
}

#gallery-modal #gallery-modal-prev { left: 10px; }
#gallery-modal #gallery-modal-next { right: 10px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  #gallery-modal img { max-width: 95%; max-height: 70%; }
  #gallery-modal #gallery-modal-close { top: 10px; right: 20px; }
}
@media (max-width: 480px) {
  #gallery-modal img { max-width: 100%; max-height: 60%; }
  #gallery-modal #gallery-modal-close { font-size: 1.6rem; }
  #gallery-modal .modal-arrow { font-size: 1.6rem; }
}

