* {
    margin: 0;
    
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif, 'Merriweather', serif;


}
html {
  scroll-behavior: smooth;
}


.navbar {
    height: 100px;
    background-color: #d5281c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    

}

.logo {
    height: 90px;
    width: 110px;
    background-image: url("https://scontent.fixc1-4.fna.fbcdn.net/v/t39.30808-1/299787845_463773389094691_3088887667167649128_n.jpg?stp=dst-jpg_s480x480_tt6&_nc_cat=101&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=HQcKLvOBB60Q7kNvwFVzpmk&_nc_oc=Adko6vJ01R_G4alE48rxo9SzEryi9Kj_6LI5a4eRckwMIGfkCGALC2knhXCIaMA-HYE&_nc_zt=24&_nc_ht=scontent.fixc1-4.fna&_nc_gid=IOHXTSTZwv_rV7Vcueh0wQ&oh=00_AfjoYX3o0pYU2jSq31WGSMHBCUJ9uDuA9ZiknwmeZMdR7g&oe=6912BBA8");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 20px;
    
}


.name {
    color: #212121;
    margin-left: 30px;

}

.n1 {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    margin-top: 20px;

}

.n2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 25px;
    margin-left: 5px;

}

.n3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 25px;
    margin-left: 15px;
    margin-bottom: 5px;

}

.down-name {
    display: flex;
    margin-bottom: 10px;
}


.contact-nav {
    display: flex;
    align-items: center;
}

.button-contact {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.button-contact button {
    background-color: #FFD700;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.button-contact button:hover {
    background-color: #e6c200;
}

.icon-contact {
    height: 32px;
    width: 30px;
    margin-right: 60px;
    margin-top: 10px;
}


.sub-navbar {
  background-color: #B71C1C;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-navbar ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.sub-navbar a {
  text-decoration: none;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s;
}

.sub-navbar a:hover {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 4px;
}


/* =========================
   HERO SLIDER (WOW FACTOR)
========================= */
/* =========================
   HERO SLIDER - WOW EDITION
========================= */

/* =========================
   HERO SLIDER - ELEGANT VERSION
========================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background-color: #111;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease, transform 8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

/* Elegant dark red overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(211, 47, 47, 0.35); /* subtle school red tint */
  z-index: 1;
}

/* Caption - refined look */
.caption {
  position: absolute;
  bottom: 18%;
  left: 8%;
  color: #fff;
  z-index: 3;
  max-width: 600px;
  animation: fadeUp 1.5s ease forwards;
}

.caption h1 {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.caption p {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #FFD700;
  opacity: 0.9;
}

/* Navigation arrows */
.nav-buttons span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 38px;
  cursor: pointer;
  z-index: 5;
  padding: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.nav-buttons .prev { left: 25px; }
.nav-buttons .next { right: 25px; }

.nav-buttons span:hover {
  color: #FFD700;
  transform: scale(1.1);
}

/* Dots */
.dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dots span.active {
  background: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}

/* Fade-up effect */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .caption h1 { font-size: 32px; }
  .caption p { font-size: 16px; }
}





.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  background-color: #F5F5F5;
  padding: 60px 0;
  text-align: center;
}

.stat-box {
  width: 200px;
  margin: 20px;
}

.stat-box h2 {
  font-size: 48px;
  color: #D32F2F;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  animation: pop 2s ease-in-out;
}

.stat-box p {
  font-size: 18px;
  color: #212121;
  margin-top: 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

/* simple pop animation */
@keyframes countUp {
  from { content: "0"; }
  to { content: attr(data-target); }
}

/* Section styling */
.photo-collage {
  background: #fff;
  padding: 80px 0;
  text-align: center;
}

.gallery-title {
  font-family: 'Cinzel', serif;
  color: #D32F2F;
  font-size: 36px;
  margin-bottom: 40px;
  position: relative;
}

.gallery-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #FFD700;
  margin: 10px auto 0;
  border-radius: 5px;
}

/* Collage grid */
.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 15px;
  width: 90%;
  margin: 0 auto;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effects */
.collage-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #FFD700, 0 0 10px #D32F2F;
}

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  border: 4px solid #FFD700;
  border-radius: 10px;
  box-shadow: 0 0 25px #D32F2F;
}

#lightbox .close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

#lightbox .close:hover {
  color: #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
  .collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

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


/* =========================
   ABOUT SECTION
========================= */
.about {
  background-color: #ffffff;
  padding: 80px 0;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
  margin: 0 auto;
  gap: 50px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #FFD700, 0 0 15px #D32F2F;
}

.about-text {
  flex: 1 1 500px;
  font-family: 'Poppins', sans-serif;
}

.about-text h2 {
  color: #D32F2F;
  font-family: 'Cinzel', serif;
  font-size: 36px;
  margin-bottom: 10px;
}

.about-text .underline {
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin-bottom: 25px;
  border-radius: 3px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #212121;
  margin-bottom: 30px;
}

.learn-btn {
  background-color: #D32F2F;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.learn-btn:hover {
  background-color: #B71C1C;
  transform: translateY(-2px);
}


@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    margin-top: 20px;
  }
  .about-text h2 {
    font-size: 30px;
  }
  .about-text p {
    font-size: 16px;
  }
}

/* =========================
   MODAL POPUP
========================= */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 15px;
  width: 80%;
  max-width: 700px;
  box-shadow: 0 0 25px #D32F2F, 0 0 10px #FFD700;
  text-align: left;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.4s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-content h2 {
  color: #D32F2F;
  font-family: 'Cinzel', serif;
  margin-bottom: 15px;
}

.modal-content p {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 17px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  color: #D32F2F;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #FFD700;
}

/* fade background animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #FFD700, #D32F2F);
  width: 0%;
  z-index: 999;
}


/* =========================
   FACILITIES SECTION
========================= */

.facilities {
  background-color: #F5F5F5;
  padding: 80px 0;
  text-align: center;
}

.facilities-title {
  font-family: 'Cinzel', serif;
  color: #D32F2F;
  font-size: 36px;
  margin-bottom: 10px;
}

.facilities .underline {
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 40px;
  border-radius: 3px;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 90%;
  margin: 0 auto;
}

.facility-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 40px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border-top: 5px solid #FFD700;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #FFD700, 0 0 15px #D32F2F;
}

.facility-card i {
  font-size: 40px;
  color: #D32F2F;
  margin-bottom: 15px;
}

.facility-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
  color: #212121;
}

.facility-card p {
  font-family: 'Poppins', sans-serif;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
}

/* =========================
   SCROLL REVEAL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


.academics {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.academics-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #D32F2F, #FFD700);
  background-size: 400% 400%;
  animation: bgShift 10s ease-in-out infinite;
  z-index: -2;
}

@keyframes bgShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.academics-content {
  width: 85%;
  margin: auto;
}

.academics h2 {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  margin-bottom: 10px;
}

.academics .underline {
  width: 80px;
  height: 4px;
  background-color: #fff;
  margin: 10px auto 40px;
  border-radius: 3px;
}

.academics .intro {
  font-family: 'Poppins', sans-serif;
  max-width: 800px;
  margin: auto;
  font-size: 18px;
  color: #fff;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 60px;
}

/* stats counters */
.academics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.academics-stats .stat h3 {
  font-size: 56px;
  color: #fff;
  text-shadow: 0 0 20px #FFD700;
  margin-bottom: 10px;
}

.academics-stats .stat p {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

/* subject cards */
.subjects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.subject-card {
  background: rgba(255,255,255,0.15);
  border-radius: 15px;
  padding: 35px 25px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s, box-shadow 0.4s;
  text-align: center;
}

.subject-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #FFD700;
}

.subject-card i {
  font-size: 42px;
  color: #FFD700;
  margin-bottom: 15px;
}

.subject-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.subject-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #f1f1f1;
  opacity: 0.9;
  line-height: 1.6;
}

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CONTACT SECTION
========================= */

.contact {
  background: linear-gradient(120deg, #D32F2F, #FFD700);
  padding: 100px 0;
  color: #fff;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

.contact-info h2 {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  margin-bottom: 10px;
}

.contact-info .underline {
  width: 80px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  margin-bottom: 25px;
}

.contact-info p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.info-block i {
  font-size: 24px;
  color: #FFD700;
}

.info-block h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-form {
  background: rgba(255,255,255,0.15);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  outline: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  background: rgba(255,255,255,0.8);
  color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #555;
}

.send-btn {
  background: linear-gradient(90deg, #FFD700, #D32F2F);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px #FFD700;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER SECTION
========================= */

.footer {
  background: linear-gradient(90deg, #D32F2F, #B71C1C);
  color: #fff;
  padding: 70px 0 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 1;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}

.footer-about h3 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: #FFD700;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  color: #FFD700;
  margin-bottom: 15px;
  font-family: 'Cinzel', serif;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #FFD700;
  padding-left: 5px;
}

.footer-contact p {
  font-size: 15px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

.footer-contact i {
  color: #FFD700;
  width: 20px;
  text-align: center;
}

.footer-social {
  margin-top: 15px;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  color: #fff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #FFD700;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  opacity: 0.9;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .footer-container {
    text-align: center;
  }
  .footer-contact p {
    justify-content: center;
  }
  .footer-social a {
    margin: 0 8px;
  }
}


/* =========================
   DIRECTIONS PAGE
========================= */
.directions-page {
  font-family: 'Poppins', sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* Hero Section */
.direction-hero {
  height: 60vh;
  background: linear-gradient(rgba(211, 47, 47, 0.6), rgba(0, 0, 0, 0.6)),
              url('https://images.unsplash.com/photo-1596496057980-5b2d7f8b6d2f') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.direction-hero .hero-content {
  max-width: 700px;
  padding: 0 20px;
}

.direction-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 46px;
  margin-bottom: 15px;
}

.direction-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* Branch Cards */
.branches {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 80px 5%;
}

.branch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  max-width: 1200px;
}

.branch-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(211,47,47,0.2);
}

.branch-info {
  flex: 1;
  padding: 50px;
}

.branch-info h2 {
  color: #D32F2F;
  font-family: 'Cinzel', serif;
  margin-bottom: 20px;
}

.branch-info p {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.map-btn {
  background-color: #D32F2F;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.map-btn:hover {
  background-color: #B71C1C;
  transform: translateY(-3px);
}

.branch-map {
  flex: 1;
  height: 400px;
}

.branch-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .branch-card {
    flex-direction: column;
  }
  .branch-info, .branch-map {
    width: 100%;
  }
}


/* =========================
   DIRECTIONS / CAMPUS SECTION
========================= */
.campus-section {
  background: #fdfdfd;
  padding: 100px 5%;
  text-align: center;
}
.campus-title {
  font-family: 'Cinzel', serif;
  color: #D32F2F;
  font-size: 40px;
  margin-bottom: 10px;
}
.campus-section .underline {
  width: 80px;
  height: 4px;
  background: #FFD700;
  margin: 0 auto 50px;
  border-radius: 3px;
}

.branch-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.branch-btn {
  background: rgba(211,47,47,0.1);
  border: 2px solid #D32F2F;
  color: #D32F2F;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .4s ease;
}
.branch-btn.active,
.branch-btn:hover {
  background: #D32F2F;
  color: #fff;
  transform: translateY(-2px);
}

.branch-display {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1200px;
}

.branch-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 20px;
  overflow: hidden;
  transform: rotateY(90deg);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  position: absolute;
  width: 100%;
}
.branch-content.active {
  transform: rotateY(0);
  opacity: 1;
  position: relative;
}

.branch-info {
  flex: 1;
  padding: 50px;
  text-align: left;
}
.branch-info h3 {
  font-family: 'Cinzel', serif;
  color: #D32F2F;
  margin-bottom: 15px;
  font-size: 26px;
}
.branch-info p {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.map-btn {
  background: #D32F2F;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}
.map-btn:hover {
  background: #B71C1C;
  transform: translateY(-3px);
}

.branch-map {
  flex: 1;
  height: 400px;
}
.branch-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(110%) brightness(95%);
  border-left: 3px solid #FFD700;
}

@media (max-width: 900px) {
  .branch-content {
    flex-direction: column;
  }
  .branch-info { text-align: center; }
  .branch-map iframe { border-left: none; border-top: 3px solid #FFD700; }
}


/* =========================
   DIRECTOR'S MESSAGE (WOW)
========================= */
.director {
  position: relative;
  padding: 110px 5%;
  overflow: hidden;
  color: #fff;
}

/* parallax background (solid elegance) */
.director-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(19,19,19,.85), rgba(19,19,19,.85)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1600&auto=format&fit=crop')
      center/cover no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

/* particles behind content */
#directorParticles {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}

.director-wrap {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 340px 1fr;
  gap: 50px; align-items: center;
}

/* portrait */
.director-pfp {
  display: grid; place-items: center;
  filter: drop-shadow(0 10px 30px rgba(255,215,0,.25));
  transform: translateY(40px); opacity: 0;
  transition: all .9s ease;
}
.director-pfp img{
  width: 320px; height: 320px; object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 6px rgba(255,215,0,.25), 0 0 35px rgba(211,47,47,.25);
}

/* message card (glass) */
.director-card{
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(40px); opacity: 0;
  transition: all .9s ease .15s;
}
.director-card h2{
  font-family: 'Cinzel', serif;
  font-size: 40px; color: #FFD700; margin-bottom: 10px;
}
.director-card .underline{
  width: 80px; height: 4px; background: #FFD700;
  border-radius: 3px; margin-bottom: 22px;
}
.director-card p{
  font-family: 'Poppins', sans-serif;
  font-size: 18px; line-height: 1.85; color: #f1f1f1;
}
.director-meta{ margin-top: 22px; }
.director-name{ color:#FFD700; font-weight:600; margin-bottom: 6px; }

/* signature writes itself */
.signature{ width: 100%; max-width: 640px; height: 120px; display:block; }
.signature text{ animation: drawSig 3s ease forwards; }
@keyframes drawSig { to { stroke-dashoffset: 0; } }

/* reveal when in view */
.reveal.visible, .reveal.visible img { transform: translateY(0); opacity: 1; }

/* responsive */
@media (max-width: 1024px){
  .director-wrap{ grid-template-columns: 1fr; text-align: center; }
  .director-card{ padding: 34px 26px; }
  .director-pfp img{ width: 260px; height: 260px; }
}

/* optional: anchor offset for fixed headers */
#director{ scroll-margin-top: 120px; }


/* =========================
   DIRECTOR SECTION (THEME-MATCHED)
========================= */

/* =========================
   DIRECTOR SECTION (INTERACTIVE)
========================= */
.director-section {
  position: relative;
  background: linear-gradient(120deg, #D32F2F, #FFD700);
  color: #fff;
  padding: 120px 5%;
  overflow: hidden;
  perspective: 1000px;
}

.director-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

#directorParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.director-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  padding: 60px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.director-photo img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5),
              0 0 60px rgba(211, 47, 47, 0.3);
  transition: all 0.8s ease;
  transform: translateZ(50px);
}

.director-photo img:hover {
  box-shadow: 0 0 35px #FFD700, 0 0 25px #D32F2F;
  transform: scale(1.05) translateZ(80px);
}

.director-message {
  max-width: 600px;
  text-align: left;
  transform: translateZ(40px);
}

.director-message h2 {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  color: #FFD700;
  margin-bottom: 15px;
}

.director-message .underline {
  width: 80px;
  height: 4px;
  background-color: #fff;
  margin-bottom: 25px;
  border-radius: 3px;
}

.director-message p {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #f9f9f9;
  margin-bottom: 30px;
}

.signature-area {
  margin-top: 30px;
  text-align: left;
}

.signature {
  width: 100%;
  max-width: 600px;
  height: 120px;
  display: block;
}

.signature text {
  animation: drawSignature 3s ease forwards, glow 2s 3s infinite alternate;
  filter: drop-shadow(0 0 10px #FFD700);
}

@keyframes drawSignature {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glow {
  from { stroke: #FFD700; opacity: 0.9; }
  to { stroke: #fff8b0; opacity: 1; filter: drop-shadow(0 0 20px #FFD700); }
}

.director-name {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-top: -10px;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 900px) {
  .director-container {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }
  .director-message,
  .signature-area {
    text-align: center;
  }
  .director-photo img {
    width: 240px;
    height: 240px;
  }
}

/* =========================
   PRELOADER SCREEN
========================= */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #D32F2F, #FFD700);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.loader-content {
  text-align: center;
  color: #fff;
  font-family: 'Cinzel', serif;
  position: relative;
}

.loader-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 8px;
}

.loader-logo .letter {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s forwards;
}

.loader-logo .letter:nth-child(1) { animation-delay: 0s; }
.loader-logo .letter:nth-child(2) { animation-delay: 0.3s; }
.loader-logo .letter:nth-child(3) { animation-delay: 0.6s; }

.loader-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: 4px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

/* Rotating ring */
.loader-ring {
  margin-top: 40px;
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1.2s linear infinite, glow 2s ease-in-out infinite alternate;
  margin-left: auto;
  margin-right: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes glow {
  from { box-shadow: 0 0 10px #FFD700; }
  to { box-shadow: 0 0 25px #fff; }
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Hide preloader */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}


.notice-bar {
  background: #c04141;
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}
.notice-bar marquee {
  font-family: 'Poppins', sans-serif;
}


/* =========================
   ACHIEVEMENTS / TOPPERS
========================= */
.achievements {
  background-color: #ffffff;
  padding: 90px 5%;
  text-align: center;
}

.achievements-title {
  font-family: 'Cinzel', serif;
  color: #D32F2F;
  font-size: 36px;
  margin-bottom: 10px;
}

.achievements .underline {
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 25px;
  border-radius: 3px;
}

.achievements-intro {
  max-width: 750px;
  margin: 0 auto 45px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

.achievers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.achiever-card {
  position: relative;
  background: #fdfdfd;
  border-radius: 18px;
  overflow: hidden;
  padding: 22px 20px 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-top: 4px solid #FFD700;
}

.achiever-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6),
              0 0 15px rgba(211, 47, 47, 0.4);
}

.rank-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(120deg, #D32F2F, #FFD700);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 0 10px rgba(0,0,0,0.18);
}

.achiever-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 20px auto 10px;
  display: block;
  border: 4px solid #FFD700;
}

.achiever-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #212121;
}

.ach-year {
  font-size: 13px;
  color: #757575;
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif;
}

.ach-score {
  font-size: 15px;
  font-weight: 600;
  color: #D32F2F;
  font-family: 'Poppins', sans-serif;
}

/* Make it match your scroll reveal */
.achievements.reveal {
  opacity: 0;
  transform: translateY(50px);
}
.achievements.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .achievements {
    padding: 70px 6%;
  }
  .achievements-title {
    font-size: 30px;
  }
}


/* =========================
   STUDENT CORNER
========================= */
.student-corner {
  padding: 90px 5%;
  background: #f9fafb;
  text-align: center;
}

.student-title {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  color: #D32F2F;
  margin-bottom: 10px;
}

.student-corner .underline {
  width: 80px;
  height: 4px;
  background: #FFD700;
  margin: 10px auto 40px;
  border-radius: 3px;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.student-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  text-align: left;
  position: relative;
  overflow: hidden;
  border-top: 4px solid #D32F2F;
}

.student-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.5), transparent);
  opacity: 0.7;
}

.student-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: #212121;
}

#quoteText {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #444;
  margin-bottom: 8px;
}

#quoteAuthor {
  display: block;
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-bottom: 14px;
}

#newQuoteBtn,
#newQuizBtn {
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #FFD700, #D32F2F);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#newQuoteBtn:hover,
#newQuizBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

#quizQuestion {
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #444;
  margin-bottom: 12px;
}

#quizOptions button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#quizOptions button:hover {
  background: #fffbe6;
  border-color: #FFD700;
}

#quizFeedback {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}
#quizFeedback.correct {
  color: #2e7d32;
}
#quizFeedback.incorrect {
  color: #c62828;
}

@media (max-width: 600px) {
  .student-corner {
    padding: 70px 6%;
  }
  .student-title {
    font-size: 30px;
  }
}
