:root {
  --primary-red: #CF161A;
  --primary-red-hover: #b01216;
  --dark-navy: #132238;
  --navy: #152745;
  --navy-light: #0F294A;
  --text-gray: #556577;
  --text-dark: #211F24;
  --bg-light: #F4F7F8;
  --bg-blue-light: #EEF5FC;
  --border-color: #C9D8E7;
  --white: #FFFFFF;
  --yellow: #FFF700;
  --blue-accent: #025095;
  --dark-blue-accent: #1D4E89;

  --font-sora: 'Sora', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-inter: 'Inter', sans-serif;

  --container-max-width: 1300px;
  --padding-x: 5%;
}

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

body {
  font-family: var(--font-sora);
  color: var(--text-gray);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: clip;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}


.text-navy {
  color: var(--navy);
}



.max-w-lg {
  max-width: 700px;
}

.mt-auto {
  margin-top: auto;
}

.fw-bold {
  font-weight: 600;
}

.section-padding {
  padding: 70px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .flex-row {
    flex-direction: column;
  }

  .flex-1 {
    width: 100%;
    flex: none;
    /* Prevents height collapsing in column layout */
  }
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-blue-light {
  background-color: var(--bg-blue-light);
}

.bg-light-gradient {
  background: linear-gradient(0deg, #EEF5FC 0%, #EEF5FC 100%), #FFFFFF;
}

/* Typography */
.section-tag {
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  color: var(--dark-navy);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-lg {
  font-size: 20px;
}

.text-md {
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .section-title {
    font-size: 32px;
  }
}

/* Buttons & Links */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .btn-primary {
    padding: 12px 20px;
    font-size: 14px;
  }
}

.btn-primary .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.link-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red) !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 16px;
}

.link-primary:hover {
  color: var(--primary-red-hover) !important;
}

.link-primary:visited {
  color: var(--primary-red) !important;
}

.link-primary:focus,
.link-primary:active {
  color: #000000 !important;
}

.link-primary .arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23CF161A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.link-primary:hover .arrow {
  border-color: var(--primary-red-hover);
}

.link-primary:focus .arrow,
.link-primary:active .arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
}

custom-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1030;
}

custom-footer {
  display: block;
}

/* Navbar */
.navbar {
  display: block;
  background-color: var(--white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  max-height: 55px;
  width: auto;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: #152745;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 6px;
  margin: 0 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-search-icon {
  color: var(--dark-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity 0.3s;
}

.nav-contact-icon:hover {
  opacity: 0.8;
}

.nav-contact-icon.whatsapp {
  background-color: #25D366;
}

.nav-contact-icon.phone {
  background-color: #007BFF;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background-color: #D1D5DB;
  margin: 0 8px;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-navy);
}

@media (max-width: 991px) {



  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  background: linear-gradient(90deg, rgba(7, 26, 51, 0.6) 0%, rgba(7, 26, 51, 0) 60%), url('../assets/optimized/956a40cb8c8c08b0d8455b96.webp') bottom center/cover no-repeat;
  display: flex;
  align-items: center;
}


.hero-tag {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hero-title {
  color: var(--white);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
}

.hero-subtitle .separator {
  color: var(--primary-red);
}


.hero-tag {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 1.68px;
  text-transform: uppercase;
}

.hero-title {
  color: var(--white);
  font-size: 48px;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
}

.hero-subtitle .dot {
  color: var(--primary-red);
  font-size: 32px;
  font-family: var(--font-montserrat);
}

/* About Section */
.about-image img {
  border-radius: 12px;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.staff-photo-card {
  overflow: hidden;
  border-radius: 18px;
  background: #eef4f9;
  box-shadow: 0 12px 30px rgba(13, 39, 77, 0.12);
}

.staff-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Leadership Profile */
.title-with-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.line-divider {
  height: 1px;
  width: 30px;
  background-color: var(--border-color);
}

.profile-card {
  position: relative;
  display: inline-block;
}

.profile-img-wrap {
  width: 442px;
  height: 391px;
  max-width: 100%;
  border-radius: 100px 12px 12px 100px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #E2E8F0;
}

.profile-img-wrap.alt-radius {
  border-radius: 100px 12px 12px 100px;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-accent {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 140px;
  height: 140px;
  background-color: var(--primary-red);
  border-top-left-radius: 100%;
  border-bottom-right-radius: 12px;
  border-top: 6px solid var(--white);
  border-left: 6px solid var(--white);
  z-index: 3;
}

.profile-info {
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 8px;
  margin-top: 16px;
  display: inline-block;
}

.profile-info h3 {
  color: var(--navy);
  font-size: 28px;
  font-weight: 400;
}

.profile-info .role {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 18px;
  margin-top: 4px;
}

.profile-info .org {
  color: var(--text-gray);
  display: block;
}

@media (max-width: 768px) {
  .profile-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .profile-card {
    width: 100%;
  }
}

/* Teachers Section */
.teachers-content {
  padding-right: 40px;
}

.rounded-alt-large {
  border-radius: 120px 0px 120px 0px;
}

.rounded-lg {
  border-radius: 12px;
}

.shadow-md {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.shadow-sm {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.gallery-img-h {
  height: 260px;
}

.position-relative {
  position: relative;
}

.absolute-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.absolute-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.px-5 {
  padding-left: 48px;
  padding-right: 48px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.absolute-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}





.gallery-grid-3 img {
  width: 100%;
  height: 315px;
  object-fit: contain;
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}



.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dots .dot.active {
  width: 16px;
  height: 16px;
  background-color: var(--primary-red);
}

.carousel-dots .dot.active-red {
  background-color: var(--primary-red);
}

.carousel-dots .dot.dark {
  background-color: #062B61;
}

/* Gallery Grid / Slider */












/* Reverse Flex row */
.flex-row.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .flex-row.reverse {
    flex-direction: column;
  }
}

/* Highlights Grid */






.highlight-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E6E9EE;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.highlight-card .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.highlight-card h4 {
  color: var(--dark-navy);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.highlight-card p {
  color: var(--text-gray);
  margin-bottom: 20px;
  flex: 1;
}

/* Campus Gallery */
.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar slider for gallery filters */
.gallery-filters::-webkit-scrollbar {
  height: 4px;
}
.gallery-filters::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}
.gallery-filters::-webkit-scrollbar-thumb {
  background: #CF161A;
  border-radius: 10px;
}

.filter-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--dark-navy);
  font-weight: 600;
  font-family: var(--font-sora);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}



.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #062B61;
}

.control-btn.prev::after {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 4px;
}

.control-btn.next::after {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}

@media (min-width: 992px) {
  .slider-wrapper {
    position: relative;
  }

  .carousel-controls {
    justify-content: center;
  }

  .control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .control-btn.prev {
    left: -20px;
  }

  .control-btn.next {
    right: -20px;
  }

  .testimonials-wrapper .control-btn.prev {
    left: -50px;
  }

  .testimonials-wrapper .control-btn.next {
    right: -50px;
  }
}

/* Testimonials 1 */








.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 24px 30px;
  border: 1px solid #E6E9EE;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 48px;
}

.testimonial-card.featured {
  border-color: var(--primary-red);
  border-width: 2px;
  transform: scale(1.05);
  z-index: 2;
}

.testimonial-card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #EAF5FF;
  border: 4px solid #EDF7FF;
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.testimonial-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card .quote-icon {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CF161A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .772-2 2v12c0 4 2.5 5 2.5 5zm13 0c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2h-4c-1.25 0-2 .772-2 2v12c0 4 2.5 5 2.5 5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  margin-bottom: 16px;
  margin-top: 20px;
}

.testimonial-card .quote-text {
  color: #062B61;
  font-size: 16px;
  line-height: 1.8;
  flex: 1;
}

.testimonial-card .author-info {
  margin-top: 24px;
  padding-top: 16px;
  position: relative;
  width: 100%;
}

.testimonial-card .author-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

.testimonial-card .author-info h4 {
  color: #062B61;
  font-size: 18px;
  margin-bottom: 4px;
}

.testimonial-card .author-info span {
  color: #46607E;
  font-size: 14px;
}

/* Impact Section */






.impact-box {
  padding: 40px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.impact-box.bg-blue {
  background-color: var(--blue-accent);
}

.impact-box.bg-red {
  background-color: var(--primary-red);
}

.impact-box .top-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.impact-box .top-border.bg-red {
  background-color: var(--primary-red);
}

.impact-box .top-border.bg-blue {
  background-color: var(--blue-accent);
}

.impact-box.border-left {
  /* No border in new design */
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: inherit;
}

.impact-box .number {
  color: var(--white);
  font-family: var(--font-inter);
  font-size: 36px;
  font-weight: 700;
}

.impact-box .divider-white {
  width: 40px;
  height: 2px;
  background: var(--white);
  margin: 8px 0;
}

.impact-box .label {
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
}

/* FAQs */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark-navy);
}

.plus-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.plus-icon::before,
.plus-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.plus-icon::before {
  width: 16px;
  height: 2px;
}

.plus-icon::after {
  width: 2px;
  height: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion-item.active .plus-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #4B5563;
  /* slightly lighter than dark navy for body text */
  font-size: 15px;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  padding: 0 20px 20px 20px;
  max-height: 500px;
}

/* Typing cursor animation */
.typewriter-text::after {
  content: '|';
  opacity: 1;
  animation: cursor-blink 0.8s step-end infinite;
}

.typewriter-text.typing-done::after {
  display: none;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

/* News Section */








.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  height: 100%;
  min-height: 468px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card-img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-desc {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 29px;
}

.news-card-link {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: auto;
}

.news-card-link svg {
  stroke: var(--primary-red);
}

/* Testimonials 2 */
.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.review-card .stars {
  color: var(--primary-red);
  font-size: 20px;
  margin-bottom: 16px;
}

.review-card p {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 24px;
  flex: 1;
}

.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card .reviewer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.review-card .reviewer h5 {
  color: var(--dark-navy);
  font-size: 16px;
}

.review-card .reviewer span {
  font-size: 14px;
  color: var(--text-gray);
}

/* Admissions Form */
.admissions-form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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



@media (max-width: 768px) {
  }

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sora);
  font-size: 16px;
  color: var(--text-gray);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CF161A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-red);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: #F9FBFD;
}

.footer-top {
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
  gap: 40px;
  text-align: left;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-logo {
  max-width: 220px;
  margin-bottom: 16px;
}

.footer-motto {
  margin-bottom: 20px;
  font-size: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-blue-accent);
  border-radius: 4px;
  color: var(--dark-blue-accent);
}

.social-icon:hover {
  background: var(--dark-blue-accent);
  color: var(--white);
}

.footer-heading {
  color: var(--dark-navy);
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary-red);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info svg {
  color: var(--dark-blue-accent);
  flex-shrink: 0;
}

.map-container img {
  width: 100%;
  border-radius: 8px;
}

.footer-bottom {
  background: var(--dark-blue-accent);
  padding: 20px 0;
  color: var(--white);
  font-size: 14px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-links a {
  margin: 0 8px;
}

.legal-links a:hover {
  text-decoration: underline;
}

.heart {
  font-size: 12px;
}

/* ===========================
   RESPONSIVE DESIGN (MOBILE FIRST OVERRIDES)
   =========================== */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-search-icon,
  .nav-divider {
    display: none;
  }

  .navbar-right {
    gap: 12px;
    margin-right: 12px;
  }

  .navbar-logo img {
    max-height: 55px;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    gap: 12px;
  }
  .nav-link {
    margin: 0 20px;
    font-size: 16px;
    border: none;
  }

  .navbar-right {
    margin-right: 16px;
  }

  .flex-row {
    flex-direction: column !important;
    align-items: stretch;
    gap: 40px;
  }

  .hero-section {
    height: auto;
    padding: 120px 5%;
  }

  }

html,
body {
  overflow-x: clip;
  max-width: 100vw;
}

@media (max-width: 767px) {
  .section-padding {
    padding: 48px 16px !important;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
  }

  .mobile-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Remove negative margins that cause horizontal scroll */
    width: 100%;
    max-width: 100%;
  }

  .mobile-slider::-webkit-scrollbar {
    display: none;
  }

  .mobile-slider>* {
    flex: 0 0 100% !important;
    /* One complete card at a time */
    scroll-snap-align: start;
    /* Align correctly for full width cards */
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-subtitle {
    flex-wrap: wrap;
  }

  .hero-section {
    background: linear-gradient(180deg, rgba(7, 26, 51, 0.8) 0%, rgba(7, 26, 51, 0.4) 100%), url('../assets/images/mobile-hero.jpg') center/cover no-repeat !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  

  .impact-box {
    padding: 24px 12px;
  }

  .form-row-2 {
    flex-wrap: wrap;
    gap: 10px;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .testimonial-card {
    /* Let .featured class handle the red border dynamically */
  }

  .about-image,
  .leadership-profile,
  .teachers-group-img {
    margin-bottom: 16px;
    width: 100%;
  }

  .footer-bottom-flex {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .legal-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .legal-links a {
    margin: 0;
  }

  .legal-links span {
    display: inline-block;
  }

  .flex-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .accordion-header {
    padding: 16px 20px !important;
  }

  .carousel-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .faq-accordion {
    margin-top: 30px;
  }
}

/* Standardize all inner page hero banners to have the same exact size and look */
.page-hero,
.contact-hero,
.about-hero {
  height: 400px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.page-hero .container,
.contact-hero .container,
.about-hero .container {
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hover effect for blue cards */
.hover-blue-card {
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.hover-blue-card:hover {
  background-color: #CF161A !important;
  outline-color: #CF161A !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(207, 22, 26, 0.2);
}

.hover-blue-card:hover span {
  color: white !important;
}


/* Hover effect for white cards (Daily Routine) */
.hover-white-card {
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.hover-white-card:hover {
  background-color: #CF161A !important;
  outline-color: #CF161A !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(207, 22, 26, 0.2);
}

.hover-white-card:hover h4,
.hover-white-card:hover span {
  color: white !important;
}

.hover-white-card:hover>div:first-child {
  background-color: white !important;
}

.hover-white-card:hover>div:first-child svg {
  stroke: #CF161A !important;
}


/* Hover effect for Care cards */
.hover-care-card {
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.hover-care-card:hover {
  background-color: #CF161A !important;
  outline-color: #CF161A !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(207, 22, 26, 0.2);
}

.hover-care-card:hover h4,
.hover-care-card:hover span {
  color: white !important;
}

.hover-care-card:hover div[style*="width: 48px"] {
  background-color: white !important;
}

.hover-care-card:hover svg {
  stroke: #CF161A !important;
}


/* Hover effect for purpose-card (about.html) */
.purpose-card {
  transition: all 0.3s ease !important;
}

.purpose-card:hover {
  background-color: #CF161A !important;
  color: white !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(207, 22, 26, 0.2) !important;
}

.purpose-card:hover h3,
.purpose-card:hover p,
.purpose-card:hover p {
  color: white !important;
}

.purpose-card:hover span.badge {
  color: #000 !important;
}

.purpose-card:hover .icon-wrap {
  background-color: white !important;
}

.purpose-card:hover .icon-wrap svg {
  stroke: #CF161A !important;
}

/* Hover effect for impact-box (index.html) */
.impact-box {
  transition: all 0.3s ease !important;
}

.impact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
  background-color: #CF161A !important;
  /* Make all impact boxes red on hover */
}

.impact-box:hover .icon-circle {
  background-color: white !important;
}

.impact-box:hover .icon-circle svg {
  stroke: #CF161A !important;
}
/* --- CONSOLIDATED PAGE STYLES --- */


/* --- about.css --- */

/* Board Grid and Cards (About Page) */
.board-grid {
}
@media (max-width: 992px) {
  .board-grid {
  }
}
@media (max-width: 768px) {
  .board-grid {
  }
}

.board-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 48px;
  text-align: center;
  box-shadow: 0px 4px 6px -1px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid transparent;
}
.board-card.alt-bg {
  background: var(--bg-blue-light);
}

.board-img {
  width: 176px;
  height: 176px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.board-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-tag {
  color: var(--primary-red);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.board-card h4 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.board-card p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 0;
}

.advisor-card {
  min-height: 190px;
  justify-content: center;
  gap: 14px;
  padding: 32px 28px;
  background: var(--bg-blue-light);
  border: 1px solid #dce7f2;
  border-top: 4px solid var(--primary-red);
  box-shadow: 0 10px 24px rgba(21, 39, 69, 0.08);
}

.advisor-card h3 {
  color: var(--navy);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.advisor-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.management-feature {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid #dce7f2;
  box-shadow: 0 12px 30px rgba(21, 39, 69, 0.1);
  text-align: left;
}

.management-feature-photo {
  min-height: 300px;
  background: #edf4fa;
}

.management-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.management-feature-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.management-feature-info h3,
.management-text-card h3 {
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}

.management-feature-info h3 {
  font-size: clamp(25px, 3vw, 36px);
}

.management-feature-info p {
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 0;
}

.management-members-slider {
  padding: 10px 8px 24px;
}

.management-text-card {
  min-height: 170px;
  justify-content: center;
  gap: 12px;
  padding: 30px 24px;
  border: 1px solid #dce7f2;
  border-top: 4px solid var(--primary-red);
}

.management-text-card h3 {
  font-size: 20px;
  line-height: 1.35;
}

.management-text-card p {
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .management-feature {
    grid-template-columns: 42% 58%;
  }

  .management-feature-photo {
    min-height: 220px;
  }

  .management-feature-info {
    padding: 24px 18px;
  }

  .management-feature-info p {
    font-size: 15px;
  }
}

/* Enquire Now Banner */
.enquire-banner {
  background: var(--navy);
  border-radius: 46px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.enquire-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.enquire-banner h2 {
  color: white;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.enquire-banner p {
  color: white;
  font-size: 16px;
}

.enquire-banner-btn {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .enquire-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    border-radius: 24px;
    gap: 24px;
  }
  .enquire-banner h2 {
    font-size: 32px;
  }
}


/* --- achievements.css --- */

/* Categories (Tabs) */
.achievement-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.category-btn {
  width: 175px;
  height: 80px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
  color: var(--navy);
}
.category-btn svg {
  stroke: var(--dark-blue-accent);
}
.category-btn.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}
.category-btn.active svg {
  stroke: var(--white);
}
.category-btn span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Timeline Accordion */
.timeline-accordion {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
}
.timeline-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  background: var(--white);
  color: var(--navy);
  transition: all 0.3s;
}
.timeline-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline-header h3 svg {
  stroke: var(--dark-blue-accent);
}
.timeline-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.timeline-icon::before,
.timeline-icon::after {
  content: '';
  position: absolute;
  background: var(--dark-blue-accent);
  transition: all 0.3s;
}
.timeline-icon::before {
  width: 14px;
  height: 2px;
}
.timeline-icon::after {
  width: 2px;
  height: 14px;
}
.timeline-item.active .timeline-header {
  background: var(--dark-blue-accent);
  color: var(--white);
}
.timeline-item.active .timeline-header h3 svg {
  stroke: var(--white);
}
.timeline-item.active .timeline-icon::before {
  background: var(--white);
}
.timeline-item.active .timeline-icon::after {
  transform: rotate(90deg);
  background: var(--white);
}

.timeline-content {
  display: none;
  padding: 0 24px;
}
.timeline-item.active .timeline-content {
  display: block;
}
.timeline-entry {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.timeline-entry:last-child {
  border-bottom: none;
}
.timeline-date {
  width: 140px;
  flex-shrink: 0;
  color: var(--dark-blue-accent);
  font-size: 16px;
  font-weight: 600;
}
.timeline-desc {
  flex-grow: 1;
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-entry {
    flex-direction: column;
    gap: 8px;
  }
  .timeline-date {
    width: 100%;
  }
}


/* --- contact.css --- */
/* Contact Page Specific Styles */

/* General utility classes */
.bg-light-blue {
  background-color: #F4F9FD;
}
.section-padding {
  padding: 60px 0;
}

/* Hero Section */
.contact-hero {
  position: relative;
  min-height: 532px;
  background: url('../assets/optimized/d298628c94f4f4c35d65b571.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.contact-hero .overlay {
  position: absolute;
  inset: 0;
  background: #152745;
  opacity: 0.65;
}

.contact-hero .gradient {
  position: absolute;
  inset: 0;
  width: 75%;
  background: linear-gradient(90deg, #152745 0%, rgba(21, 39, 69, 0.95) 50%, rgba(21, 39, 69, 0.10) 100%);
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

/* Contact Info Cards */
.contact-info-section {
  background-color: var(--bg-blue-light, #F4F9FD);
  padding: 60px 0;
}

.section-tag {
  color: var(--primary-red);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.section-title {
  color: var(--navy);
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 28px;
}

.contact-cards-grid {
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--primary-red);
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: #F1EEEC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-red);
  stroke-width: 2;
  fill: none;
}

.contact-card-tag {
  color: var(--primary-red);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card-desc {
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

/* Location Section */
.location-section {
  padding: 60px 0;
  background-color: var(--white);
}

.location-wrapper {
  display: flex;
  gap: 48px;
  align-items: center;
}

.location-map {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border-color);
}

.location-map img {
  width: 100%;
  height: auto;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(21, 39, 69, 0.70) 0%, rgba(21, 39, 69, 0) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-icon svg {
  stroke: var(--white);
}

.location-content {
  flex: 1;
}

.location-address-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.location-address-desc {
  color: var(--text-gray);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.location-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 16px;
}

.location-contact-item svg {
  stroke: var(--primary-red);
  stroke-width: 1.5;
}

.location-divider {
  color: #DCE7F0;
}

/* Form Section */
.form-section {
  background-color: var(--bg-blue-light, #F4F9FD);
  padding: 60px 0;
}

.form-wrapper {
  display: flex;
  gap: 40px;
}

.form-left {
  flex: 1;
}

.form-right {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
}

.form-left-desc {
  color: var(--text-gray);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.enquiry-callout {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.enquiry-icon {
  width: 44px;
  height: 44px;
  background: #F1EEEC;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enquiry-callout h4 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.enquiry-callout p {
  color: var(--text-gray);
  font-size: 16px;
  margin: 0;
}

.contact-options-title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.contact-options-grid {
  gap: 12px;
}

.contact-option-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-option-icon {
  width: 44px;
  height: 44px;
  background: #F1EEEC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option-card h5 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-option-card p {
  color: var(--text-gray);
  font-size: 14px;
  margin: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-label span {
  color: var(--primary-red);
}

.form-control, .form-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--navy);
  font-size: 16px;
  font-family: inherit;
}

.form-control::placeholder {
  color: rgba(21, 39, 69, 0.5);
}

textarea.form-control {
  height: 128px;
  resize: vertical;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 48px 0;
  background: #152745;
  overflow: hidden;
}

.cta-section .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.cta-section .gradient {
  position: absolute;
  inset: 0;
  width: 75%;
  background: linear-gradient(90deg, #152745 0%, rgba(21, 39, 69, 0.95) 50%, rgba(21, 39, 69, 0.10) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  color: var(--white);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
}

.cta-divider {
  width: 44px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 4px;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--white);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-cards-grid {
  }
  .location-wrapper, .form-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .contact-cards-grid {
  }
  .contact-options-grid {
  }
  .section-title, .cta-title {
    font-size: 32px;
  }
}


/* Hover effect for contact-card */
.contact-card {
  transition: all 0.3s ease !important;
}
.contact-card:hover {
  background-color: #CF161A !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(207, 22, 26, 0.2) !important;
}
.contact-card:hover::before {
  background-color: white !important; /* Top border becomes white */
}
.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover .contact-card-tag {
  color: white !important;
}
.contact-card:hover .card-icon-wrapper {
  background-color: white !important;
}
.contact-card:hover .card-icon-wrapper svg {
  stroke: #CF161A !important;
}


/* --- gallery.css --- */
/* Gallery Page specific styles */
.gallery-section {
  background-color: var(--bg-blue-light);
  padding: 60px 0;
}

.gallery-container {
  display: flex;
  gap: 32px;
}

/* Sidebar */
.gallery-sidebar {
  width: 292px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
  height: max-content;
}

.gallery-sidebar-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 12px 12px;
  margin: 0;
}

.gallery-categories {
  display: flex;
  flex-direction: column;
}

.gallery-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-category-btn:last-child {
  border-bottom: none;
}

.gallery-category-btn .category-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon svg {
  stroke: var(--text-gray);
  stroke-width: 1.5;
  fill: none;
}

.category-arrow svg {
  stroke: var(--text-gray);
  stroke-width: 1.5;
  fill: none;
}

.gallery-category-btn.active {
  background: var(--primary-red);
  border-radius: 12px;
  color: var(--white);
  border-bottom: none;
}

.gallery-category-btn.active .category-icon svg,
.gallery-category-btn.active .category-arrow svg {
  stroke: var(--white);
}

/* Main Grid */
.gallery-main {
  flex: 1;
  min-width: 0;
}

.gallery-main-header {
  margin-bottom: 28px;
}

.gallery-tag {
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-bottom: 8px;
}

.gallery-main-title {
  color: var(--navy);
  font-size: 38px;
  font-weight: 600;
  margin: 0;
}

.gallery-grid {
  gap: 28px 16px; /* Row gap 28px, col gap 16px approx */
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-item-title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

/* Pagination */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.page-btn, .page-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  box-shadow: 0px 4px 6px -1px rgba(0,0,0,0.1);
}

.page-arrow svg {
  stroke: var(--navy);
  stroke-width: 1.5;
  fill: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .gallery-grid {
  }
}

@media (max-width: 992px) {
  .gallery-container {
    flex-direction: column;
  }
  .gallery-sidebar {
    width: 100%;
  }
  .gallery-sidebar-title {
    display: none;
  }
  .gallery-sidebar {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .gallery-categories {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .gallery-categories::-webkit-scrollbar {
    display: none;
  }
  .gallery-category-btn {
    border: 1px solid var(--border-color);
    border-radius: 50px !important;
    padding: 8px 16px;
    white-space: nowrap;
    background: var(--white);
  }
  .gallery-category-btn.active {
    border: 1px solid var(--primary-red);
  }
  .gallery-category-btn .category-arrow {
    display: none;
  }

  .gallery-grid {
  }
}

@media (max-width: 768px) {
  .gallery-grid {
  }
  .gallery-main-title {
    font-size: 28px;
  }
}


/* --- layout.css --- */
/* ==========================================================================
   layout.css — small Bootstrap 5 helper layer for the Rahmath School site.
   Loaded AFTER Bootstrap, style.css and the page stylesheets.

   Layout itself is done with Bootstrap's grid (container / row / col-*),
   navbar, collapse and utility classes. This file only holds the things
   Bootstrap has no utility for:
     1. Navbar theming (via Bootstrap's own --bs-navbar-* variables)
     2. Gutter sizes that match the original design
     3. Scroll-snap carousel rows (.scroll-row / .mobile-slider)
   ========================================================================== */

/* ---------- 1. Header: Bootstrap navbar, themed ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .navbar {
  --bs-navbar-padding-y: 20px;
  --bs-navbar-color: var(--navy);
  --bs-navbar-hover-color: var(--primary-red);
  --bs-navbar-active-color: var(--primary-red);
  --bs-navbar-nav-link-padding-x: 6px;
  --bs-nav-link-padding-y: 4px;
  --bs-nav-link-font-size: 14px;
  --bs-nav-link-font-weight: 600;
  background: var(--white);
}

.site-header .navbar-brand {
  padding: 0;
  margin: 0;
}

.site-header .navbar-logo img {
  max-height: 55px;
  width: auto;
}

.site-header .navbar-nav {
  gap: 2px;
}

.site-header .nav-link {
  margin: 0 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.site-header .navbar-toggler {
  border: 0;
  padding: 0;
  color: var(--dark-navy);
}

.site-header .navbar-toggler:focus {
  box-shadow: none;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background-color: #D1D5DB;
  margin: 0 8px;
}

@media (max-width: 991.98px) {
  .site-header .navbar-logo img {
    max-height: 40px;
  }

  /* dropdown panel under the bar, like the original design */
  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .site-header .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-header .nav-link {
    margin: 0 20px;
    font-size: 16px;
    border-bottom: 0;
  }
}

/* ---------- 2. Gutters that match the original spacing ----------
   (Bootstrap's g-0 … g-5 cover most grids; these cover the odd ones.
   The x-gutter is 0 while columns are stacked so rows never overflow.) */
.gutter-12 { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
.gutter-16 { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
.gutter-20 { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
.gutter-gallery { --bs-gutter-x: 16px; --bs-gutter-y: 28px; }
.gutter-40 { --bs-gutter-x: 0; --bs-gutter-y: 40px; }
.gutter-60 { --bs-gutter-x: 0; --bs-gutter-y: 40px; }

@media (min-width: 768px) {
  .gutter-40 { --bs-gutter-x: 40px; }
}

@media (min-width: 992px) {
  .gutter-60 { --bs-gutter-x: 60px; }
}

/* ---------- 3. Scroll-snap carousel rows ----------
   .scroll-row     → horizontal carousel at every width
   .mobile-slider  → carousel below md, normal wrapping grid from md up
   Both are Bootstrap .row elements whose children are Bootstrap columns. */
.scroll-row,
.mobile-slider {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar,
.mobile-slider::-webkit-scrollbar {
  display: none;
}

.scroll-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
}

.scroll-row > * {
  scroll-snap-align: start;
}

@media (max-width: 767.98px) {
  .mobile-slider {
    --bs-gutter-x: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
  }

  .mobile-slider > * {
    scroll-snap-align: start;
  }
}

/* ---------- 4. Pieces that lost their old grid rule ---------- */
.impact-grid {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-grid-3 {
  padding: 20px 4px;
}

.gallery-grid-5 img,
.gallery-slide-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.gallery-grid-5 img:hover,
.gallery-slide-item img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(6, 43, 97, 0.12);
}

.event-highlights-grid img {
  flex-shrink: 0;
}

/* carousel breathing room (room for card shadows / the featured-card pop) */
.testimonials-grid {
  padding: 30px 8px;
}

.news-grid {
  padding: 24px 8px;
}

@media (max-width: 767.98px) {
  .testimonials-grid,
  .news-grid.mobile-slider {
    padding-bottom: 24px;
  }
}

/* the "Life at Rahmath" photo strip had no bottom padding on larger screens */
@media (min-width: 768px) {
  .gallery-grid-5.scroll-row {
    padding-bottom: 0;
  }
}


/* --- news-detail.css --- */
/* News Detail Page specific styles */

.news-detail-container {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.news-detail-main {
  flex: 1;
  min-width: 0;
}

.news-detail-sidebar {
  width: 350px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .news-detail-container {
    flex-direction: column;
  }
  .news-detail-sidebar {
    width: 100%;
  }
}

.news-detail-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-gray);
  font-weight: 600;
  margin-bottom: 16px;
}

.news-detail-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.25;
}

.news-detail-content {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.6;
}

.news-detail-content p {
  margin-bottom: 24px;
}

.news-blockquote {
  background: var(--bg-blue-light);
  border-radius: 12px;
  padding: 44px 28px;
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.blockquote-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.blockquote-icon svg {
  stroke: var(--primary-red);
  stroke-width: 3px;
}

.blockquote-text {
  font-size: 18px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blockquote-author {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray);
}

/* Sidebar */
.sidebar-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 32px;
}

.related-news-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}
.related-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-news-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-news-info {
  flex-grow: 1;
}

.related-news-date {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.related-news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.related-news-arrow {
  color: var(--primary-red);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-news-arrow svg {
  stroke: var(--primary-red);
  stroke-width: 2px;
}

/* Event Highlights */
.event-highlights-section {
  padding-bottom: 60px;
}

.event-highlights-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 32px;
}

.event-highlights-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.event-highlights-grid img {
  width: 183px;
  height: 144px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.event-highlights-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}
.dot.active {
  width: 16px;
  height: 16px;
  background: var(--primary-red);
}


/* --- news.css --- */
/* News & Events specific styles */

.featured-story-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.05);
  display: flex;
  overflow: hidden;
  position: relative;
  margin-top: -60px; /* To overlap hero section if needed, or just margin-top */
  z-index: 2;
}

.featured-img-wrapper {
  width: 300px;
  flex-shrink: 0;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-upcoming {
  width: 250px;
  background: var(--bg-blue-light);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left: 1px solid var(--border-color);
  flex-shrink: 0;
}

.upcoming-tag {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upcoming-date {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.upcoming-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

@media (max-width: 992px) {
  .featured-story-card {
    flex-direction: column;
  }
  .featured-img-wrapper {
    width: 100%;
    height: 300px;
  }
  .featured-upcoming {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

/* Category Filter Buttons */
.news-categories {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.news-category-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.05);
}
.news-category-btn svg {
  stroke: var(--navy);
}

.news-category-btn.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}
.news-category-btn.active svg {
  stroke: var(--white);
}

/* News Cards Grid */
.news-grid {
}

@media (max-width: 992px) {
  .news-grid {
  }
}

@media (max-width: 768px) {
  .news-grid {
  }
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 6px -1px rgba(0,0,0,0.1), 0px 2px 4px -2px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  height: 468px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card-img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 260px;
}

.news-card-meta {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-desc {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 29px;
}

.news-card-link {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: auto;
}
.news-card-link svg {
  stroke: var(--primary-red);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.page-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 4px 6px -1px rgba(0,0,0,0.1), 0px 2px 4px -2px rgba(0,0,0,0.1);
  transition: all 0.3s;
  text-decoration: none;
}

.page-item.active {
  background: var(--primary-red);
  color: var(--white);
}

.page-item:hover:not(.active):not(.dots) {
  background: var(--bg-blue-light);
}

.page-item.dots {
  background: transparent;
  box-shadow: none;
  cursor: default;
}


/* Custom utility classes */
.icon-md { width: 44px; height: 44px; }
.icon-lg { width: 48px; height: 48px; }
.img-cover-lg { height: 391px; object-fit: cover; }
.img-cover-xl { height: 665px; object-fit: cover; }
.hero-wrapper { position: relative; z-index: 1; padding: 60px 5%; height: 410px; }
.card-outline { outline: 1px solid #DCE8F3; }
.min-h-176 { min-height: 176px; }
.min-w-140 { min-width: 140px; }
.max-w-576 { max-width: 576px; }
.max-w-672 { max-width: 672px; }
.max-w-768 { max-width: 768px; }
.max-w-1000 { max-width: 1000px; }
.max-w-1300 { max-width: 1300px; }
.grid-200 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-280 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); width: 100%; }
.bg-overlay { position: absolute; inset: 0; background: rgba(21, 39, 69, 0.9); }
.bg-overlay-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, #152745 0%, rgba(21, 39, 69, 0.4) 100%); }
.bg-hero-hostel { background: url('../assets/optimized/bcca1e46a7cd9ab42e7dec2e.webp') center 30%/cover no-repeat; position: relative; }
.bg-banner-campus { background: url('../assets/optimized/d298628c94f4f4c35d65b571.webp') center/cover no-repeat; position: relative; height: 364px; }
.scroll-x-container { flex-wrap: nowrap; overflow-x: auto; padding-top: 15px; margin-top: -15px; padding-bottom: 20px; width: 100%; }
.red-bar { width: 48px; height: 4px; background: #CF161A; }

/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* --- 1. Reusable Scroll Reveal Classes --- */
.reveal, .reveal-up, .reveal-scale, .reveal-card, .reveal-fade {
  opacity: 0;
  will-change: opacity, transform;
}

/* For Text (Smooth slide up) */
.reveal-up {
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* For Images (Elegant soft scale) */
.reveal-scale {
  transform: scale(0.95);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* For Cards (Unique 3D swing-up entrance) */
.reveal-card {
  transform: perspective(1000px) translateY(60px) rotateX(-10deg) scale(0.95);
  transform-origin: bottom center;
  transition: opacity 0.8s ease-out, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* For small Tags (Simple fade) */
.reveal-fade {
  transition: opacity 0.8s ease-in;
}

.reveal.active, .reveal-up.active, .reveal-scale.active, .reveal-card.active, .reveal-fade.active {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0) scale(1);
}

/* --- 2. Button Micro-interactions --- */
.btn-primary, .btn-secondary {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(21, 39, 69, 0.2);
}

.btn-primary .icon, .btn-secondary .icon {
  transition: transform 0.3s ease;
}

.btn-primary:hover .icon, .btn-secondary:hover .icon {
  transform: translateX(4px);
}

/* Primary Link Arrow Hover */
.link-primary.arrow span {
  transition: transform 0.3s ease;
}

.link-primary.arrow:hover span {
  transform: translateX(4px);
}

/* --- 3. Card Hover Interactions --- */
.highlight-card, .feature-card, .achievement-card, .news-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.highlight-card:hover, .feature-card:hover, .news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(7, 26, 51, 0.1) !important;
}

/* Image zoom inside cards */
.highlight-card img, .news-card img, .feature-card img, .gallery-item img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.highlight-card:hover img, .news-card:hover img, .gallery-item:hover img {
  transform: scale(1.04);
}

/* Homepage dynamic news cards */
.home-news-grid{align-items:stretch;padding-top:16px}.home-news-grid .news-col{display:flex}.home-news-card{width:100%;height:auto!important;min-height:0;border:1px solid #e3e9f0;border-radius:16px;box-shadow:0 10px 30px rgba(15,42,78,.08);overflow:hidden;background:#fff}.home-news-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(15,42,78,.13)}.home-news-image{display:block;overflow:hidden;background:#eaf0f6}.home-news-card .news-card-img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:transform .35s ease}.home-news-card:hover .news-card-img{transform:scale(1.025)}.home-news-card .news-card-content{height:auto!important;min-height:290px;padding:24px;justify-content:flex-start}.home-news-card .news-card-meta{min-height:24px;margin:0 0 13px;gap:7px;flex-wrap:wrap;color:#68788d;font-size:13px;line-height:1.4}.home-news-category{color:#bf202a;font-weight:700}.home-news-card .news-card-title{margin:0 0 12px;font:650 21px/1.35 Sora,sans-serif}.home-news-card .news-card-title a{color:#152745;text-decoration:none}.home-news-card .news-card-title a:hover,.home-news-card .news-card-title a:focus-visible{color:#bf202a}.home-news-card .news-card-desc{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;margin:0 0 22px;color:#59697e;font-size:15px;line-height:1.65}.home-news-card .news-card-link{margin-top:auto;padding-top:4px;width:max-content;font-size:15px}.home-news-card .news-card-link:hover,.home-news-card .news-card-link:focus-visible{color:#971922;text-decoration:underline;text-underline-offset:4px}.home-news-card .news-card-link:hover svg{transform:translateX(4px)}.home-news-card .news-card-link svg{transition:transform .2s ease}@media(max-width:767.98px){.home-news-grid .news-col{min-width:min(86vw,380px)}.home-news-card .news-card-content{min-height:275px;padding:21px}.home-news-card .news-card-title{font-size:19px}}

/* --- 4. Navbar Sticky Animation --- */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(7, 26, 51, 0.08);
}

/* Nav Link Underline Hover */
.navbar-nav .nav-link {
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
  width: 100%;
}
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* --- 5. About / Who We Are Image Scale --- */
.about-images img {
  transition: transform 0.5s ease;
}
.about-images:hover img {
  transform: scale(1.02);
}

/* --- 6. FAQ Accordion Transitions --- */
.accordion-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.accordion-item.active {
  border-color: var(--primary-red);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.08);
}
.accordion-header .icon svg {
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header .icon svg {
  transform: rotate(45deg);
}

/* --- 7. Management / Profile subtle effects --- */
.profile-card img {
  transition: transform 0.5s ease, filter 0.5s ease;
}
.profile-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* --- 8. Social Icons --- */
.social-links a {
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.social-links a:hover {
  transform: translateY(-2px) scale(1.05);
}



/* --- 10. Mobile Adjustments --- */
@media (max-width: 767px) {
  /* Reduce motion distance on mobile */
  .reveal-up { transform: translateY(15px); }
  .reveal-left { transform: translateX(0); opacity: 0; }
  .reveal-right { transform: translateX(0); opacity: 0; }
  
  .highlight-card:hover, .feature-card:hover, .news-card:hover {
    transform: none; /* Avoid horizontal scrolling or jumping on touch devices */
  }
}

/* --- 11. Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- FACILITIES PAGE SPECIFIC STYLES --- */
* {
  box-sizing: border-box;
}

.facility-section {
  padding: 70px 0;
  position: relative;
}

@media (max-width: 1199px) {
  .facility-section { padding: 55px 0; }
}

@media (max-width: 767px) {
  .facility-section { padding: 40px 0; }
}

.facility-section .container {
  width: calc(100% - 140px);
  max-width: 1300px;
  margin-inline: auto;
  padding: 0;
}

@media (max-width: 1199px) {
  .facility-section .container {
    width: 100%;
    padding-inline: 40px;
  }
}

@media (max-width: 767px) {
  .facility-section .container {
    padding-inline: 20px;
  }
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  align-items: center;
}

.facility-grid.reverse .facility-column:first-child {
  order: 2;
}

@media (max-width: 1199px) {
  .facility-grid { gap: 40px; }
}

@media (max-width: 767px) {
  .facility-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .facility-grid.reverse .facility-column:first-child {
    order: 0;
  }
}

.facility-title {
  color: var(--dark-navy);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.facility-title-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-blue-light);
  border-radius: 50%;
  color: var(--primary-red);
  flex-shrink: 0;
}

.facility-line {
  width: 46px;
  height: 4px;
  background: var(--primary-red);
  margin-top: 16px;
  margin-bottom: 24px;
  border-radius: 10px;
}

.facility-desc {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 580px;
}

/* Feature Cards */
.feature-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-mini-card {
  background: #E8F1FA;
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.facility-section.bg-blue-light .feature-mini-card {
  background: var(--white);
}

.feature-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-icon-wrapper {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-navy);
}

.facility-section.bg-blue-light .feature-icon-wrapper {
  background: var(--bg-blue-light);
}

.feature-mini-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .feature-mini-cards {
    grid-template-columns: 1fr;
  }
}

/* Facility Images */
.facility-img-wrapper {
  position: relative;
  z-index: 1;
}

.facility-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.5s ease;
}

.facility-img-wrapper:hover .facility-img {
  transform: scale(1.02);
}

.facility-img.shape-1 {
  border-radius: 120px 0 120px 0;
}

.facility-img.shape-2 {
  border-radius: 0 120px 0 120px;
}

.facility-img.shape-3 {
  border-radius: 30px;
}

@media (max-width: 991px) {
  .facility-img.shape-1, .facility-img.shape-2 {
    border-radius: 60px 0 60px 0;
  }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.badge-blue { background: var(--dark-blue-accent); color: var(--white); }
.badge-white-red { background: var(--white); color: var(--primary-red); }
.badge-red { background: var(--primary-red); color: var(--white); }
.badge-yellow { background: #FFB300; color: var(--white); }
.badge-green { background: #10B981; color: var(--white); }

.badge-bottom-right { bottom: -20px; right: 20px; }
.badge-bottom-left { bottom: -20px; left: 20px; }
.badge-bottom-center { bottom: -20px; left: 50%; transform: translateX(-50%); }
.badge-top-left { top: -20px; left: 20px; }

@media (max-width: 767px) {
  .floating-badge {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    margin-top: -20px;
    margin-bottom: 20px;
    width: max-content;
    transform: none;
    margin-inline: auto;
  }
  .facility-img-wrapper {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .facility-img { margin-bottom: 0; }
}

/* Sports Section */
.sports-collage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/1;
  margin-inline: auto;
}

.sports-main-img {
  width: 65%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 5%;
  right: 5%;
  border: 8px solid var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 1;
}

.sports-sub-img {
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  aspect-ratio: 1/1;
  border: 6px solid var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 2;
  transition: transform 0.3s ease;
}

.sports-sub-img:hover { transform: scale(1.05); }

.sports-sub-1 { width: 38%; bottom: 10%; left: 0; }
.sports-sub-2 { width: 35%; bottom: -5%; left: 40%; z-index: 3; }
.sports-sub-3 { width: 30%; bottom: 15%; right: -5%; }

.sports-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sport-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 8px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 108px;
}

.sport-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--primary-red);
}

.sport-icon-card img {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.sport-icon-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.2;
}

@media (max-width: 991px) {
  .sports-icons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .sports-collage { margin-bottom: 32px; }
}

/* Transport Section */
.transport-section {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: visible; /* Waves will overflow outside slightly or stay inside */
  color: var(--white);
  z-index: 1;
}

.transport-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 Q720,48 1440,0 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center top / 100% 100%;
  z-index: 2;
}

.transport-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,48 Q720,0 1440,48 L1440,48 L0,48 Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
  z-index: 2;
}

.transport-section .container {
  max-width: 1300px;
  margin: auto;
}

.transport-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.transport-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.transport-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  border: 12px solid var(--white);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.transport-title-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transport-title {
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 0;
}

.transport-line {
  width: 48px;
  height: 4px;
  background: var(--primary-red);
  margin-top: 16px;
  margin-bottom: 24px;
  border-radius: 2px;
}

.transport-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.transport-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.transport-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--white);
}

.transport-feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.transport-bus-icon {
  position: absolute;
  right: 0;
  bottom: -4px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--white);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

/* Icons */
.feature-mini-card svg, .facility-title-icon svg, .transport-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 991px) {
  .transport-features { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .route-line-wrapper { display: none !important; }
}

@media (max-width: 767px) {
  .transport-img-wrapper { margin-bottom: 32px; }
  .transport-features { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Custom CSS filters to color Flaticon PNGs based on their parent color */
/* removed */ .foo {
  filter: invert(19%) sepia(85%) saturate(7181%) hue-rotate(352deg) brightness(101%) contrast(106%);
  width: 32px;
  height: 32px;
  object-fit: contain;
}
/* removed */ .bar {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
  width: 32px;
  height: 32px;
  object-fit: contain;
}



/* Red Hover Effect for all Feature Cards */
.hover-red-card {
  transition: all 0.3s ease !important;
  cursor: pointer;
}
.hover-red-card:hover {
  background: var(--primary-red) !important;
  outline-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(207, 22, 26, 0.2) !important;
}
.hover-red-card:hover p,
.hover-red-card:hover span,
.hover-red-card:hover h6,
.hover-red-card:hover div {
  color: white !important;
}
.hover-red-card:hover svg {
  color: white !important;
}
/* Keep icon backgrounds nice when hovered */
.hover-red-card:hover .feature-icon-wrapper,
.hover-red-card:hover div[style*="width: 48px"],
.hover-red-card:hover div[style*="width: 40px"],
.hover-red-card:hover div[style*="width:48px"],
.hover-red-card:hover div[style*="width:40px"] {
  background: rgba(255,255,255,0.2) !important;
}


@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-scale, .reveal-card, .reveal-fade, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Keep the expanded navigation readable with the Staff menu entry. */
@media (min-width:1200px) and (max-width:1399.98px){.site-header .nav-link{font-size:12px;margin:0 3px}.site-header .navbar-logo img{max-width:145px}}
@media (min-width:992px) and (max-width:1199.98px){.site-header .navbar-collapse{position:absolute;top:100%;left:0;right:0;background:#fff;padding:20px 0;box-shadow:0 10px 15px #0000001a}.site-header .navbar-nav{flex-direction:column;align-items:flex-start;gap:16px}.site-header .nav-link{margin:0 20px;font-size:16px;border-bottom:0}}

/* Shared contact actions and responsive school branding. */
.school-contact-link { color: inherit; overflow-wrap: anywhere; }
.school-contact-link:hover { color: inherit; text-decoration: underline; }
.school-contact-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.site-header .navbar-logo { flex-shrink: 0; }
.site-header .navbar-logo img { width: auto; height: 64px; max-height: 64px; max-width: none; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .navbar-logo img { height: 60px; max-height: 60px; }
}
@media (max-width: 991.98px) {
  .site-header .navbar-logo img { height: 46px; max-height: 46px; }
}

/* Shared reference navigation dropdowns. */
.site-header button.nav-link { background: none; border: 0; font-family: inherit; }
.site-header .dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.site-header .nav-dropdown-arrow { flex-shrink: 0; }
.site-header .dropdown-toggle::after { border: 0; margin: 0; }
.site-header .dropdown-menu { border-radius: 8px; padding: 8px 0; min-width: 220px; }
.site-header .dropdown-item { padding: 10px 18px; font-size: 15px; font-weight: 500; color: var(--navy); }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: #f0f5fb; color: var(--primary-red); }
.site-header .dropdown-item.active { background: var(--primary-red); color: #fff; }
.site-header .nav-link:focus-visible { outline: 2px solid var(--primary-red); outline-offset: 4px; }
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { max-height: calc(100dvh - 100px); overflow-y: auto; }
  .site-header .dropdown-menu { position: static; margin: 6px 20px 0; box-shadow: none !important; background: #f5f7fb; }
  .site-header .navbar-nav > .nav-item { width: 100%; }
}

/* Expand the full school history without JavaScript. */
.history-read-more > summary { width: fit-content; list-style: none; cursor: pointer; }
.history-read-more > summary::-webkit-details-marker { display: none; }
.history-read-more > summary .history-read-close { display: none; }
.history-read-more[open] > summary .history-read-open { display: none; }
.history-read-more[open] > summary .history-read-close { display: inline; }
.history-read-more > summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
