/* Premium Header Customization – Warm Institutional Palette */

:root {
  /* ── Core Palette (Change here = change everywhere) ── */
  --school-primary: #1F2A44;
  --school-accent: #F25C3A;
  --school-accent-dark: #d94e2e;
  --school-bg-warm: #F4F1DE;
  --school-bg-light: #F7F7F7;
  --school-text-primary: #1F2A44;
  --school-text-secondary: #555555;
  --school-border: #E0E0E0;
  --school-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --school-card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  /* Legacy aliases for backward compatibility */
  --school-orange: #F25C3A;
  --school-deep-orange: #d94e2e;
  --school-yellow: #F25C3A;
  --school-blue: #1F2A44;
  --school-deep-blue: #151d33;
  --school-red: #F25C3A;
  --school-deep-red: #d94e2e;
  --school-blue-light: rgba(31, 42, 68, 0.1);
}

/* 1. Branding Row (Top) */
#header {
  position: relative;
  /* Key for absolute positioning the menu perfectly */
}

.header-middle {
  background-color: #ffffff !important;
  position: relative;
  z-index: 100;
  height: auto !important;
  padding: 0 0 23px 0 !important;
  overflow: hidden !important;
  /* Ensure floats are cleared so it doesn't collapse */
}

.header-logo {
  max-width: 130px;
  height: auto;
}

/* Title */
.school-name {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #1F2A44 !important;
  margin: 0;
  line-height: 1.1;
}

/* ICSE */
.icse-text {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--school-accent);
  text-align: right;
  max-width: 520px;
  margin: -8px auto 6px auto;
}

/* Address */
.school-address {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1F2A44 !important;
  margin: 0;
}

.header-nav {
  position: relative !important;
  /* Pull out of document flow to stop it crushing the header */
  top: auto !important;
  /* Sit exactly at the bottom of the white branding row */
  width: 100% !important;
  left: 0;
  z-index: 110 !important;
}

.header-nav-wrapper {
  width: 100% !important;
  background: transparent !important;
}

.menuzord {
  width: 100% !important;
  background: var(--school-primary) !important;
  background-image: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menuzord-menu>li>a {
  padding: 16px 12px !important;
  line-height: normal !important;
  font-size: 14px !important;
  color: #fff !important;
  text-shadow: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menuzord-menu>li>a:hover {
  color: var(--school-accent) !important;
}

/* 2.1 Dropdown Redesign (Premium Dark Theme) */
.menuzord-menu ul.dropdown {
  background: var(--school-primary) !important;
  border-top: 3px solid var(--school-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  padding: 5px 0;
  border-radius: 0 0 5px 5px;
}

.menuzord-menu ul.dropdown li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menuzord-menu ul.dropdown li:last-child {
  border-bottom: none;
}

.menuzord-menu ul.dropdown li a {
  background: transparent !important;
  color: #ffffff !important;
  font-family: 'Public Sans', sans-serif !important;
  font-size: 14px !important;
  padding: 12px 25px !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menuzord-menu ul.dropdown li:hover > a {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--school-accent) !important;
  padding-left: 30px !important;
}

/* Sticky State Dropdown Adjustments */
.header-nav-wrapper.scroll-to-fixed-fixed .menuzord-menu ul.dropdown {
  background: #ffffff !important;
  box-shadow: 0 5px 20px rgba(31, 42, 68, 0.1) !important;
}

.header-nav-wrapper.scroll-to-fixed-fixed .menuzord-menu ul.dropdown li a {
  color: var(--school-primary) !important;
}

.header-nav-wrapper.scroll-to-fixed-fixed .menuzord-menu ul.dropdown li:hover > a {
  background: #f8f9fa !important;
}

/* 3. Sticky State (On Scroll) */
.header-nav-wrapper.scroll-to-fixed-fixed {
  z-index: 1000 !important;
  background-color: transparent !important;
  /* No black edges */
}

.header-nav-wrapper.scroll-to-fixed-fixed .menuzord {
  background: #fff !important;
  box-shadow: 0 2px 15px rgba(31, 42, 68, 0.08) !important;
  border-bottom: 1px solid var(--school-border);
}

.header-nav-wrapper.scroll-to-fixed-fixed .menuzord-menu>li>a {
  color: var(--school-primary) !important;
  text-shadow: none !important;
  padding: 15px 12px !important;
}

.header-nav-wrapper.scroll-to-fixed-fixed .menuzord-menu>li>a:hover {
  color: var(--school-accent) !important;
}

/* 4. Layout Fix for Slider Overlap */
#mu-slider {
  margin-top: 0 !important;
  /* Slider naturally sits below the white header-middle */
  z-index: 1 !important;
  position: relative;
}

/* 5. Mobile Responsiveness */
@media (max-width: 991px) {

  /* Safe, Predictable Vertical Stacking on Tablets & Mobile */
  .header-middle .row {
    display: block !important;
  }

  /* Prevent Bootstrap pseudo-elements from breaking the layout */
  .header-middle .row::before,
  .header-middle .row::after {
    display: none !important;
  }

  .header-middle [class*="col-"] {
    width: 100% !important;
    float: none !important;
    display: block !important;
    text-align: center !important;
    margin: 5px 0 !important;
    padding: 0 !important;
  }

  .header-middle .widget {
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-middle img {
    max-height: 80px !important;
    /* Bigger responsive logo */
    width: auto !important;
    display: inline-block !important;
    margin: 0 auto !important;
  }

  /* ===== MOBILE HEADER FIX (CORRECT) ===== */

  .header-logo {
    max-width: 70px;
  }

  .school-name {
    font-size: 26px;
  }

  .icse-text {
    text-align: center;
    font-size: 13px;
    margin: 2px 0;
  }

  .school-address {
    font-size: 15px;
  }

  /* Mobile Nav Fixes */
  .header-nav {
    position: relative !important;
    /* Stop absolute overlapping on mobile */
    top: auto !important;
  }

  .menuzord {
    background: var(--school-blue) !important;
    /* Solid dark blue for mobile */
    background-image: none !important;
  }

  .menuzord-responsive .menuzord-menu {
    background-color: #ffffff !important;
    width: 100% !important;
  }

  .menuzord-responsive .menuzord-menu>li>a {
    color: #333333 !important;
    background-color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 12px 15px !important;
    text-shadow: none !important;
  }

  .menuzord-responsive .menuzord-menu>li>a:hover {
    color: var(--school-blue) !important;
  }
}


/* =========================================
   7. SLIDER OVERLAY OVERRIDE
========================================= */
/* The base template enforces a 50% black overlay on all slider images (rgba(0,0,0,0.5)) */
/* The following reduces the dark overlay to a very subtle 10% opacity so the images are fully bright while keeping text slightly readable */
#mu-slider .mu-slider-single .mu-slider-img:after {
  display: none !important;
}

/* Ensure floating buttons stay above everything */
.button-container,
.right-button-container {
  z-index: 1001 !important;
}

/* =========================================
   8. NOTICE BOARD & EVENTS REDESIGN
========================================= */
.campus-updates-section {
  padding: 30px 0;
  background-color: #F7F7F7;
  clear: both;
  display: block;
  width: 100%;
}

.section-heading-v2 {
  color: var(--school-blue);
  font-weight: 700;
  font-size: 28px;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading-v2 i {
  color: var(--school-orange);
}

.section-heading-v2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--school-orange);
  border-radius: 2px;
}

.heading-no-line::after {
  display: none !important;
}

.notice-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid transparent;
  border: 1px solid var(--school-border);
  text-decoration: none !important;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--school-orange);
}

.date-badge {
  flex-shrink: 0;
  width: 65px;
  height: 70px;
  background: var(--school-accent);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  margin-right: 20px;
  box-shadow: 0 4px 8px rgba(231, 111, 81, 0.3);
}

.date-badge .day {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.date-badge .month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.notice-details {
  flex: 1;
}

.notice-details h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

.notice-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--school-blue);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  margin-top: 5px;
  transition: background 0.3s;
}

.btn-view-all:hover {
  background: var(--school-deep-blue);
}

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

  .section-heading-v2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .notice-card {
    padding: 12px;
  }

  .date-badge {
    width: 55px;
    height: 60px;
    margin-right: 15px;
  }

  .date-badge .day {
    font-size: 20px;
  }

  .notice-details h5 {
    font-size: 14px;
  }
}

/* =========================================
   9. WHY CHOOSE US SECTION
========================================= */
.why-us-section {
  padding: 60px 0;
  background-color: #F4F1DE;
  clear: both;
  display: block;
  width: 100%;
}

.why-card {
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--school-border);
}

.why-title {
  color: var(--school-blue);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.why-text {
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

.why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.point-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

.point-item i {
  color: var(--school-orange);
  font-size: 18px;
}

/* Image Stack / Collage Effect */
.image-stack {
  position: relative;
  height: 450px;
  width: 100%;
}

.img-stack-item {
  position: absolute;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 5px solid #fff;
  transition: transform 0.3s ease;
}

.img-stack-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.img-main {
  width: 320px;
  height: 380px;
  top: 0;
  left: 20px;
  z-index: 2;
}

.img-top {
  width: 200px;
  height: 200px;
  top: -30px;
  right: 50px;
  z-index: 3;
}

.img-bottom {
  width: 240px;
  height: 240px;
  bottom: 0px;
  right: 10px;
  z-index: 1;
}

.img-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   10. STATS STRIP SECTION
========================================= */
.stats-strip {
  background: linear-gradient(135deg, var(--school-primary) 0%, var(--school-deep-blue) 100%);
  padding: 30px 0;
  color: #fff;
  clear: both;
  display: block;
  width: 100%;
}

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

.stat-icon {
  font-size: 40px;
  color: var(--school-orange);
  margin-bottom: 15px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  display: block;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

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

  .image-stack {
    height: 350px;
    margin-bottom: 50px;
  }

  .img-main {
    width: 280px;
    height: 320px;
    left: 0;
  }

  .img-top {
    width: 150px;
    height: 150px;
    top: -20px;
    right: 20px;
  }

  .img-bottom {
    width: 180px;
    height: 180px;
    bottom: -20px;
    right: 0;
  }

  .why-points {
    grid-template-columns: 1fr;
  }

  .stat-item {
    margin-bottom: 30px;
  }
}

/* =========================================
   11. INFRASTRUCTURE & FACILITIES
========================================= */
.infra-section {
  padding: 40px 0 10px 0;
  background-color: #F7F7F7;
  clear: both;
  display: block;
  width: 100%;
}

.infra-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
  border-bottom: 4px solid transparent;
  border: 1px solid var(--school-border);
}

.infra-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--school-orange);
}

.infra-icon {
  width: 80px;
  height: 80px;
  background: rgba(242, 92, 58, 0.1);
  color: var(--school-accent);
  font-size: 32px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

/* Menu Bar Colors – Institutional Dark Blue */
.menuzord {
  background: var(--school-primary) !important;
  transition: background-color 0.4s ease;
}

.scroll-to-fixed-fixed .menuzord {
  background: #fff !important;
}

/* ── Reusable Service Card Styles ── */
.service-card {
  background: #fff;
  color: var(--school-text-primary);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: var(--school-card-shadow);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--school-border);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--school-card-hover-shadow);
}

.service-card .card-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--school-accent);
  display: block;
}

.service-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--school-primary);
}

/* ── Primary / Secondary Buttons ── */
.btn-primary-school {
  display: inline-block;
  background: var(--school-accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
  border: none;
}

.btn-primary-school:hover {
  background: var(--school-accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-secondary-school {
  display: inline-block;
  background: transparent;
  color: var(--school-primary);
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--school-primary);
  transition: all 0.3s ease;
}

.btn-secondary-school:hover {
  background: var(--school-primary);
  color: #fff;
  text-decoration: none;
}

/* Force Slider to cover available width completely and break container bounds */
#mu-slider {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  padding: 0 !important;
  overflow: hidden;
}

#mu-slider .mu-slider-single {
  padding: 0 !important;
  margin: 0 !important;
}

#mu-slider .mu-slider-single .mu-slider-img figure {
  margin: 0 !important;
  padding: 0 !important;
}

#mu-slider .mu-slider-single .mu-slider-img figure img {
  width: 100vw !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.infra-card:hover .infra-icon {
  background: var(--school-accent);
  color: #fff;
}

.infra-card h4 {
  color: var(--school-blue);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.infra-card p {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

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

  .infra-card {
    margin-bottom: 30px;
    padding: 30px 20px;
  }
}

/* =========================================
   12. PROFILE CARDS (TOPPERS & TEACHERS)
========================================= */
.profile-card {
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
}

.profile-inner {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid var(--school-border);
  height: 100%;
}

.profile-card:hover .profile-inner {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
  border-color: var(--school-blue-light);
}

.profile-image-wrapper {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  position: relative;
  border-radius: 50%;
  padding: 5px;
  border: 2px dashed var(--school-orange);
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name {
  color: var(--school-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.profile-post {
  color: var(--school-orange);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 10px;
}

.profile-desc {
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

/* SlickDots Customization for Sections */
.infra-section .slick-dots,
.campus-updates-section .slick-dots,
#mu-our-teacher .slick-dots {
  bottom: -40px;
}

.slick-dots li button:before {
  color: var(--school-blue) !important;
  font-size: 10px !important;
  opacity: 0.25 !important;
}

.slick-dots li.slick-active button:before {
  color: var(--school-orange) !important;
  opacity: 1 !important;
}

/* =========================================
   13. TESTIMONIALS SECTION
========================================= */
.testimonials-section {
  padding: 40px 0;
  background: #F4F1DE;
  position: relative;
  overflow: visible; /* Prevent clipping */
  clear: both;
  display: block;
  width: 100%;
}

.testimonials-section::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 50px;
  font-size: 200px;
  font-family: 'serif';
  color: rgba(31, 42, 68, 0.05);
  line-height: 1;
  z-index: 0;
}

/* --- Testimonials Fresh Rewrite (T-Section V4) --- */
.testimonial-v4-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.t-v4-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}

.t-v4-item.active {
  opacity: 1;
  visibility: visible;
  position: relative; /* Take up space when active */
}

.t-v4-quote-box {
  position: relative;
  padding: 30px 60px;
  margin-bottom: 5px;
}

.t-v4-quote-box i {
  color: var(--school-accent);
  opacity: 0.2;
  font-size: 60px;
  position: absolute;
}

.t-v4-quote-box i.fa-quote-left { top: 0; left: 0; }
.t-v4-quote-box i.fa-quote-right { bottom: 0; right: 0; }

.t-v4-text {
  font-size: 17px;
  line-height: 1.7;
  color: #4b6584; /* Professional Slate Blue/Gray */
  font-style: normal; /* Matching screenshot's clean look */
  font-family: 'Public Sans', 'Roboto', sans-serif;
  margin: 0;
  font-weight: 400;
}

.t-v4-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.t-v4-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.t-v4-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-v4-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--school-primary);
  margin-bottom: 2px;
  font-family: 'Public Sans', sans-serif;
}

.t-v4-info {
  font-size: 13px;
  color: var(--school-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.t-v4-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

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

.t-v4-dot.active {
  background: var(--school-accent);
  transform: scale(1.2);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #eee;
}

.author-name {
  color: var(--school-blue);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.author-info {
  color: var(--school-orange);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

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

  .testimonial-quote {
    font-size: 16px;
  }
}

/* =========================================
   14. GALLERY POLISH
========================================= */
.gallery-section {
  padding: 60px 0;
  background: #fff;
  clear: both;
  display: block;
  width: 100%;
}

.mu-single-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mu-single-gallery:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15);
}

.mu-single-gallery-img img {
  width: 100%;
  transition: all 0.6s ease;
}

.mu-single-gallery:hover .mu-single-gallery-img img {
  transform: scale(1.1);
}

.mu-single-gallery-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(31, 42, 68, 0.9), rgba(31, 42, 68, 0.2));
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: all 0.4s ease;
}

.mu-single-gallery:hover .mu-single-gallery-info {
  opacity: 1;
}

.mu-single-gallery-info-inner h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.mu-single-gallery-info-inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-bottom: 15px;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.mu-single-gallery:hover .mu-single-gallery-info-inner h4,
.mu-single-gallery:hover .mu-single-gallery-info-inner p {
  transform: translateY(0);
}

.fancybox {
  display: inline-flex;
  width: 45px;
  height: 45px;
  background: var(--school-orange);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mu-single-gallery:hover .fancybox {
  transform: scale(1);
}

.fancybox:hover {
  background: #fff;
  color: var(--school-orange);
  transform: scale(1.1);
}

/* 12. Standardized Internal Page Hero (Version 3) */
.page-hero-v3 {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(31, 42, 68, 0.75) 100%), 
              url('../img/pattern-bg.png');
  background-size: cover;
  padding: 15px 0; /* Reduced by another 20%+ */
  color: #fff;
  position: relative;
  text-align: center; /* Back to centered */
}

.hero-content-v3 h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #F25C3A; /* Theme Orange */
}

/* 13. Dynamic Content Wrap & Cards */
.dynamic-page-wrap {
  padding: 10px 0 0 0; /* Minimized top, zero bottom */
  background-color: #f7f9fb;
}

.modern-card-container {
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
  position: relative;
  margin-bottom: 0 !important; /* Force zero margin */
}

.content-rich-wrapper {
  color: #4a5568;
  font-size: 17px;
  line-height: 1.85;
}

/* Featured Image Wrap (Right) */
.featured-image-wrap {
  width: 40%;
  margin-left: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.float-right {
  float: right;
}

.rounded-card-img {
  width: 100%;
  display: block;
}

/* CTA Buttons */
.page-top-cta {
  margin-bottom: 40px;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none !important;
}

.primary-cta {
  background-color: #F25C3A;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(242, 92, 58, 0.3);
}

.primary-cta:hover {
  background-color: #d64a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 92, 58, 0.4);
  color: #fff;
}

/* Rich Text Styling inside Cards */
.rich-text-body p {
  margin-bottom: 25px;
}

.rich-text-body h2, .rich-text-body h3, .rich-text-body h4 {
  color: var(--school-primary);
  margin: 30px 0 15px 0;
  font-weight: 700;
  position: relative;
  display: block; /* Reverted to block to prevent merging */
}

.rich-text-body h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--school-accent);
}

.rich-text-body ul {
  margin-bottom: 30px;
  padding-left: 15px;
}

.rich-text-body li {
  margin-bottom: 12px;
  list-style: none;
  position: relative;
  padding-left: 25px;
}

.rich-text-body li::before {
  content: '\f105';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  color: var(--school-accent);
  font-weight: 900;
}

.contact-card-fix .rich-text-body h3, 
.contact-card-fix .rich-text-body h4 { 
  display: block !important; 
  margin-top: 15px !important; 
  margin-bottom: 4px !important;
  color: var(--school-primary) !important;
}

.contact-card-fix .rich-text-body p { 
  margin-bottom: 5px !important; 
  line-height: 1.6 !important;
}

.contact-map-container {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  min-height: 400px;
}

/* Responsive Fixes */
@media (max-width: 991px) {
  .featured-image-wrap {
    width: 100%;
    float: none;
    margin-left: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-hero-v3 {
    padding: 30px 0;
    text-align: center;
  }
  .hero-content-v3 h1 {
    font-size: 28px;
  }
  .modern-card-container {
    padding: 30px 20px;
  }
}

/* 13. Contact Page Styling */
.mu-contact-info-single {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid var(--school-primary);
  border-radius: 4px;
}

.mu-contact-info-single h4 {
  color: var(--school-primary);
  margin-bottom: 15px;
  font-size: 18px;
}

.mu-contact-info-single h4 i {
  margin-right: 10px;
  width: 25px;
  text-align: center;
}

.mu-contact-info-single p {
  margin: 5px 0;
  font-size: 16px;
  color: #333;
}

.mu-contact-info-single a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.mu-contact-info-single a:hover {
  color: var(--school-primary);
}

.mu-contact-left h3 {
  color: var(--school-primary);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

/* 14. Mandatory Disclosure Page Styling */
.disclosure-table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.disclosure-table th,
.disclosure-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.disclosure-table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.disclosure-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.disclosure-section {
  margin: 30px 0;
}

.disclosure-section h4 {
  color: var(--school-primary);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.disclosure-section h5 {
  color: #333;
  margin: 20px 0 10px 0;
  font-size: 16px;
  font-weight: bold;
}

.pdf-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.pdf-link:hover {
  text-decoration: underline;
}

.no-pdf {
  color: #999;
  font-style: italic;
}