/* ==========================================================================
   Home Popup Modal Styles
   ========================================================================== */
.home-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 16, 34, 0.85);
  /* Premium dark overlay */
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  overflow-y: auto;
}

.home-popup-overlay.show {
  opacity: 1;
}

.home-popup-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg, 26px);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  width: auto;
  max-width: min(460px, 92vw);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-popup-overlay.show .home-popup-container {
  transform: scale(1);
}

.home-popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 25px;
  height: 25px;
  background: var(--maroon-900);
  color: var(--white);
  border: 2px solid var(--blanchedalmond);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 10;
}

.home-popup-close:hover {
  background: var(--blanchedalmond);
  color: var(--maroon-950);
  transform: scale(1.1) rotate(90deg);
}

.home-popup-content {
  border-radius: var(--radius-lg, 26px);
  overflow: hidden;
  display: block;
  line-height: 0;
}

.home-popup-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(80vh, 80dvh);
  object-fit: contain;
}

@media (max-width: 576px) {
  .home-popup-close {
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ==========================================================================
   Academic Policy Presentation Layout (Inspired by About Story section)
   ========================================================================== */
.policy-subtitle-text {
  font-weight: 600;
  color: var(--maroon-800);
  margin-bottom: 24px;
  font-size: 1.15rem;
}

.policy-body-content {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-700);
}

.policy-fallback-icon {
  font-size: 5rem;
  color: var(--gold-500);
}
/* ==========================================================================
   CSS Fallback to Prevent Full-Width/Full-Height Slides Before JS Initializes
   ========================================================================== */

/* Layout wrapper as flex with wrap when Swiper is not yet active */
.swiper:not(.swiper-initialized) > .swiper-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

/* Column sizes matching the design constraints */
@media (min-width: 1024px) {
  .facilities-swiper:not(.swiper-initialized) .swiper-slide,
  .achievements-swiper:not(.swiper-initialized) .swiper-slide,
  .photos-swiper:not(.swiper-initialized) .swiper-slide,
  .videos-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(25% - 15px) !important;
  }
  .news-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(33.333% - 14px) !important;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .facilities-swiper:not(.swiper-initialized) .swiper-slide,
  .achievements-swiper:not(.swiper-initialized) .swiper-slide,
  .photos-swiper:not(.swiper-initialized) .swiper-slide,
  .videos-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(33.333% - 14px) !important;
  }
  .news-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(50% - 10px) !important;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .facilities-swiper:not(.swiper-initialized) .swiper-slide,
  .achievements-swiper:not(.swiper-initialized) .swiper-slide,
  .photos-swiper:not(.swiper-initialized) .swiper-slide,
  .videos-swiper:not(.swiper-initialized) .swiper-slide,
  .news-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(50% - 10px) !important;
  }
}

@media (max-width: 575px) {
  .facilities-swiper:not(.swiper-initialized) .swiper-slide,
  .achievements-swiper:not(.swiper-initialized) .swiper-slide,
  .photos-swiper:not(.swiper-initialized) .swiper-slide,
  .videos-swiper:not(.swiper-initialized) .swiper-slide,
  .news-swiper:not(.swiper-initialized) .swiper-slide {
    width: 100% !important;
  }
}



.fa-phone {transform: rotate(90deg);}

/* ==========================================================================
   Filter/category tab bars on mobile: scroll horizontally instead of
   wrapping to multiple lines (gallery.php .filter-bar, mandatory-disclosure.php .tabs-nav)
   ========================================================================== */
@media (max-width: 767px) {
  .filter-bar,
  .tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .filter-bar::-webkit-scrollbar,
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .filter-bar .filter-chip,
  .tabs-nav .tab-btn {
    flex: none;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Default Check-List Styling for Unclassed <ul> Elements
   (mirrors .check-list: gold check-circle icon + spaced rows).
   Site header/footer nav lists are intentionally excluded — they're also
   bare <ul> elements but use their own link-list layout.
   ========================================================================== */
ul:not([class]):not(header *):not(footer *) > li {
  display: inline-block;
  /* display: flex; */
  /* align-items: flex-start; */
  /* gap: 12px; */
  /* padding: 4px 0; */
  /* color: var(--ink-700); */
}

ul:not([class]):not(header *):not(footer *) > li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  flex: none;
  padding-right: 10px;
  /* margin-top: 3px; */
  color: var(--gold-600);
}

/* ==========================================================================
   Alternating content/image list rows (facilities.php, infrastructure.php)
   ========================================================================== */
.alt-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.alt-row {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.alt-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* On mobile the two columns stack; always show the image above the text
   (rather than alternating above/below) and tighten the vertical rhythm. */
@media (max-width: 991px) {
  .alt-list {
    gap: 32px;
  }

  .alt-row {
    padding-bottom: 32px;
  }

  /* Flex items default to min-width:auto, which stops them shrinking below
     their content's intrinsic width — without this reset, the fallback
     icon box/image column could push wider than the viewport instead of
     stacking to 100% width like col-12 intends. */
  .alt-row > [class*="col-"] {
    min-width: 0;
  }

  .alt-row .split-media {
    order: -1;
    margin-bottom: 20px;
  }
}

.site-name {
  font-size: 25px;
}
.site-name-1 {
  font-size: 24px;
}