:root {
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #0a0908;
  --red: #e63946;
  --accent: #4ecdc4;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --border-radius: 10px;
  --transition: all 0.4s ease;
  --overlay: rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

section {
  overflow: hidden;
  padding: 4rem 0;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.highlight {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

.button {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button:hover {
  background: #ca2936;
  transform: translateY(-2px);
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* --- Header / Navbar --- */
header {
  background: var(--white);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  padding: 0.8rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 0.5rem 0;
  position: relative;
  z-index: 2;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: var(--transition);
}

.logo-link:hover .logo-img {
  filter: brightness(1.1);
}

.logo-link span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  color: var(--dark);
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 4px;
}

.nav-toggle-btn:focus {
  outline: 2px solid var(--red);
}

.nav-toggle-btn:hover {
  background: rgba(230, 57, 70, 0.1);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .nav-toggle-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
    border-radius: 0 0 10px 10px;
    z-index: 100;
    text-align: center;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    padding: 0.6rem 1.5rem;
  }

  .nav-links a:after {
    width: 100%;
    opacity: 0;
    height: 1px;
    background: rgba(230, 57, 70, 0.15);
  }

  .nav-links a:hover:after {
    opacity: 1;
  }
}

/* --- Banner (Hero) --- */
.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner-slide {
  width: 100%;
  height: 100%;
}

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

.banner-text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  /* color: var(--white); */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
 
  align-items: center;
  /* background: var(--overlay); */
  border-radius: var(--border-radius);
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
  /* backdrop-filter: blur(6px); */
}

.banner-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.7rem;
  margin: 0.7rem 0 0.4rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.banner-text h2 {
  font-size: 1.4rem;
  margin: 0.2rem 0 0.5rem;
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.banner-text p {
  font-size: 1.1rem;
  margin: 0.2rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile Banner */
@media (max-width: 768px) {
  .banner {
    min-height: 50vh;
    margin-top: 70px;
  }
  .banner-text h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0 0.2rem;
  }
  .banner-text h2 {
    font-size: 1.1rem;
    margin: 0.2rem 0;
  }
  .banner-text p {
    font-size: 0.9rem;
    margin: 0.1rem 0;
  }
  .banner-text {
    padding: 2rem 1rem;
  }
  .banner-slide img {
    filter: brightness(0.55);
  }
}

/* --- About Section --- */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--dark);
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
  width: auto;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--red);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.focus-card {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.focus-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--dark);
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.5rem;
}

.focus-card ul {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
  list-style: none;
}

.focus-card li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.4rem;
}

.focus-card li:before {
  content: '→';
  color: var(--red);
  position: absolute;
  left: 0;
}

.focus-card li:last-child {
  margin-bottom: 0;
}

/* --- Mission / Vision / Motto Section --- */
.mvm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto 3rem;
  max-width: 1200px;
}

@media (min-width: 992px) {
  .mvm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mvm-card {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.mvm-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.mvm-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.mvm-icon {
  background: var(--red);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.7rem;
  box-shadow: 0 5px 16px rgba(230, 57, 70, 0.3);
}

.mvm-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--dark);
  position: relative;
}

.mvm-card h3:after {
  content: '';
  display: inline-block;
  width: 45px;
  height: 2px;
  background: var(--red);
  margin: 0.8rem auto;
}

.mvm-card p {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.6;
}

.mvm-card .tags {
  color: var(--accent);
  font-style: italic;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* --- Timeline (Horizontal) --- */
.horizontal-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem 1rem;
  margin: 3rem auto;
  position: relative;
}

.horizontal-timeline:before {
  content: '';
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(230, 57, 70, 0.1);
}

.htimeline-dot {
  background: var(--red);
  color: white;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.7rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 16px rgba(230, 57, 70, 0.3);
  border: 4px solid white;
  position: relative;
  z-index: 2;
}

.htimeline-content {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

@media (min-width: 768px) {
  .htimeline-content {
    margin-top: -30px;
  }
}

.htimeline-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.htimeline-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
}

.stat {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  min-width: 180px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .horizontal-timeline {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .htimeline-dot {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
  .htimeline-content {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
}

/* --- Academics / Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  background: var(--red);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
  transition: var(--transition);
}

.feature-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.feature h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature p {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.academics-why {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.academics-why h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark);
  text-align: center;
}

.academics-why ul {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}

.academics-why li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.4rem;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.academics-why li:before {
  content: '•';
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.academics-why li:last-child {
  margin-bottom: 0;
}

/* --- Gallery Section --- */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.4rem;
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  filter: brightness(1.05);
  transform: scale(1.035);
}

.gallery-view-all {
  margin: 2rem 0;
  text-align: center;
}

.gallery-view-all button {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-view-all button:hover {
  background: #d52c3a;
  transform: translateY(-2px);
}

.gallery-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.gallery-viewer.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.gallery-swiper {
  width: 100%;
  max-width: 1000px;
  height: 80vh;
  position: relative;
  z-index: 9999;
}

.gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto;
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.25);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--red);
}

.swiper-pagination {
  bottom: 20px !important;
  z-index: 10;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
  background: var(--red);
  opacity: 1;
}

.gallery-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
}

.gallery-close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .gallery-swiper {
    height: 70vh;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.contact-form {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.contact-info {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.contact-info p {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

.contact-info p i {
  color: var(--red);
  min-width: 1.2rem;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--dark);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--red);
  transform: translateY(-3px);
}

.map-container {
  height: 230px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.2rem;
}

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

@media (max-width: 576px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form,
  .contact-info {
    padding: 1.6rem;
  }
}

/* --- Footer --- */
footer {
  background: var(--dark);
  color: #e9e9e9;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-school {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-school .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  margin: 0;
}

.footer-school p {
  color: #ccc;
  font-weight: 500;
}

.footer-contact {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--accent);
  min-width: 1.2rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1.5rem;
}

.copyright .highlight {
  color: var(--accent);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pop-in {
  animation: fadeIn 0.3s ease-in-out both;
}

.slide-up {
  animation: fadeInUp 0.4s ease-out both;
}
.highlight {
  color: #007acc;
  text-decoration: none;
}

.highlight:hover {
  text-decoration: underline;
}
