/* ==========================================================================
   Laxmi Devi Public Residential School - Official Stylesheet
   Classes: 1 to 5 | Agra, Uttar Pradesh
   Colors: 
     Primary: #0B3D91 (Deep Royal Blue)
     Secondary: #1E88E5 (Bright Blue)
     Accent: #F9B233 (Warm Gold)
     Background: #F8F9FA (Soft Neutral)
     Text: #212529 (Charcoal Dark)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
  --ldps-primary: #0B3D91;
  --ldps-primary-dark: #07275f;
  --ldps-secondary: #1E88E5;
  --ldps-secondary-light: #e3f2fd;
  --ldps-accent: #F9B233;
  --ldps-accent-hover: #e09b1f;
  --ldps-bg: #F8F9FA;
  --ldps-text: #212529;
  --ldps-text-muted: #59616a;
  --ldps-white: #ffffff;
  --ldps-border: #e2e8f0;
  --ldps-shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.06);
  --ldps-shadow-md: 0 8px 24px rgba(11, 61, 145, 0.10);
  --ldps-shadow-lg: 0 14px 35px rgba(11, 61, 145, 0.14);
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ldps-text);
  background-color: var(--ldps-bg);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--ldps-primary);
  letter-spacing: -0.01em;
}

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

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

/* Global Utility for Text Containers */
.max-w-750 {
  max-width: 750px;
}

/* Prevent iOS WebKit auto-zoom on input focus */
.form-control, .form-select {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   2. Top Contact Bar
   -------------------------------------------------------------------------- */
.top-contact-bar {
  background-color: var(--ldps-primary-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--ldps-accent);
}

.top-contact-bar a {
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-contact-bar a:hover {
  color: var(--ldps-accent);
}

.top-contact-bar .bi {
  color: var(--ldps-accent);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   3. Main Header & Navbar
   -------------------------------------------------------------------------- */
.navbar-custom {
  background-color: var(--ldps-white);
  box-shadow: var(--ldps-shadow-sm);
  padding: 10px 0;
  transition: var(--ldps-transition);
}

.navbar-custom.scrolled {
  box-shadow: var(--ldps-shadow-md);
  padding: 6px 0;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  max-width: calc(100% - 64px);
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .navbar-brand-wrapper {
    max-width: 38%;
    margin-right: 0.5rem;
  }
}

@media (min-width: 1200px) {
  .navbar-brand-wrapper {
    max-width: none;
    margin-right: 1.25rem;
  }
}

.school-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.school-brand-title {
  font-size: clamp(0.88rem, 1.15vw, 1.12rem);
  font-weight: 800;
  color: var(--ldps-primary);
  line-height: 1.15;
  margin-bottom: 2px;
  white-space: nowrap;
}

.school-brand-subtitle {
  font-size: clamp(0.60rem, 0.75vw, 0.72rem);
  font-weight: 600;
  color: var(--ldps-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.15;
}

/* Custom Responsive Navbar Toggler */
.navbar-toggler {
  padding: 8px 10px;
  border: 1.5px solid rgba(11, 61, 145, 0.25) !important;
  border-radius: 8px;
  background-color: rgba(11, 61, 145, 0.04);
  transition: var(--ldps-transition);
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background-color: rgba(11, 61, 145, 0.08);
  border-color: var(--ldps-primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15) !important;
}

.navbar-toggler-icon {
  width: 22px;
  height: 22px;
}

.navbar-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.navbar-custom .nav-link {
  font-size: clamp(0.78rem, 0.88vw, 0.90rem);
  font-weight: 600;
  color: #334155;
  padding: 6px 7px !important;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--ldps-transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--ldps-primary);
  background-color: rgba(11, 61, 145, 0.06);
}

.nav-cta-btn {
  background-color: var(--ldps-accent);
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: clamp(0.78rem, 0.88vw, 0.88rem) !important;
  padding: 6px 12px !important;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(249, 178, 51, 0.35);
  border: 1px solid rgba(0,0,0,0.05);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 1200px) {
  .navbar-custom .nav-link {
    padding: 7px 9px !important;
    font-size: 0.91rem;
  }
  .nav-cta-btn {
    padding: 8px 16px !important;
    font-size: 0.90rem !important;
  }
}

.nav-cta-btn:hover {
  background-color: var(--ldps-accent-hover) !important;
  color: #000 !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 560px;
  background-color: var(--ldps-primary);
  background-image: linear-gradient(135deg, rgba(11, 61, 145, 0.92) 0%, rgba(14, 40, 92, 0.85) 100%), url('../images/ground.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: var(--ldps-white);
  padding: 70px 0;
}

.hero-tagline-badge {
  display: inline-block;
  background-color: rgba(249, 178, 51, 0.2);
  border: 1px solid var(--ldps-accent);
  color: var(--ldps-accent);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--ldps-white);
  line-height: 1.18;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subheading {
  font-size: 1.35rem;
  color: #ffde8a;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-location-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-school-primary {
  background-color: var(--ldps-accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(249, 178, 51, 0.35);
  transition: var(--ldps-transition);
}

.btn-school-primary:hover {
  background-color: var(--ldps-accent-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 178, 51, 0.45);
}

.btn-school-outline {
  background-color: transparent;
  color: var(--ldps-white);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 50px;
  border: 2px solid var(--ldps-white);
  transition: var(--ldps-transition);
}

.btn-school-outline:hover {
  background-color: var(--ldps-white);
  color: var(--ldps-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Quick Information Cards
   -------------------------------------------------------------------------- */
.quick-info-section {
  margin-top: -55px;
  position: relative;
  z-index: 10;
}

.quick-info-card {
  background: var(--ldps-white);
  border: none;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: var(--ldps-shadow-md);
  height: 100%;
  border-bottom: 4px solid var(--ldps-secondary);
  transition: var(--ldps-transition);
  text-align: center;
}

.quick-info-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--ldps-accent);
  box-shadow: var(--ldps-shadow-lg);
}

.quick-info-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--ldps-secondary-light);
  color: var(--ldps-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px auto;
}

.quick-info-title {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ldps-text-muted);
  margin-bottom: 4px;
}

.quick-info-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ldps-primary);
  margin-bottom: 4px;
}

.quick-info-sub {
  font-size: 0.86rem;
  color: var(--ldps-text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. Section Titles & Standard Cards
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 70px 0;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ldps-secondary);
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--ldps-primary);
  margin-bottom: 12px;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--ldps-accent);
  border-radius: 2px;
  margin: 0 auto 20px auto;
}

.section-divider.start {
  margin: 0 0 20px 0;
}

.section-description {
  font-size: 1.05rem;
  color: var(--ldps-text-muted);
  max-width: 680px;
  margin: 0 auto 35px auto;
}

/* Cards */
.feature-card {
  background: var(--ldps-white);
  border: 1px solid var(--ldps-border);
  border-radius: 12px;
  padding: 28px 24px;
  height: 100%;
  transition: var(--ldps-transition);
  box-shadow: var(--ldps-shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ldps-shadow-md);
  border-color: rgba(30, 136, 229, 0.4);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--ldps-secondary-light);
  color: var(--ldps-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ldps-primary);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.94rem;
  color: var(--ldps-text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Page Header / Breadcrumb Hero (for Inner Pages)
   -------------------------------------------------------------------------- */
.inner-page-header {
  background: linear-gradient(135deg, var(--ldps-primary) 0%, #0e2b65 100%);
  color: var(--ldps-white);
  padding: 50px 0;
  position: relative;
}

.inner-page-header h1 {
  color: var(--ldps-white);
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.inner-page-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.breadcrumb-custom {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.88rem;
}

.breadcrumb-custom a {
  color: var(--ldps-accent);
}

.breadcrumb-custom .active {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   8. Academics Section
   -------------------------------------------------------------------------- */
.class-badge-card {
  background: var(--ldps-white);
  border-radius: 12px;
  padding: 22px;
  border-left: 5px solid var(--ldps-secondary);
  box-shadow: var(--ldps-shadow-sm);
  transition: var(--ldps-transition);
  height: 100%;
}

.class-badge-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--ldps-accent);
  box-shadow: var(--ldps-shadow-md);
}

.class-number-tag {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ldps-primary);
  margin-bottom: 4px;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--ldps-white);
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ldps-primary);
  margin: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: var(--ldps-transition);
}

.subject-pill:hover {
  background-color: var(--ldps-secondary-light);
  border-color: var(--ldps-secondary);
}

.subject-pill .bi {
  color: var(--ldps-secondary);
}

/* --------------------------------------------------------------------------
   9. Principal's Message Section
   -------------------------------------------------------------------------- */
.principal-section {
  background-color: #f1f5f9;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--ldps-shadow-sm);
}

.principal-image-box {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ldps-shadow-md);
  border: 4px solid var(--ldps-white);
  background: #fff;
}

.principal-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  position: relative;
}

/* --------------------------------------------------------------------------
   10. Gallery & Filter
   -------------------------------------------------------------------------- */
.gallery-filter-btn {
  background: var(--ldps-white);
  border: 1px solid var(--ldps-border);
  color: var(--ldps-text);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin: 4px;
  transition: var(--ldps-transition);
}

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

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ldps-shadow-sm);
  cursor: pointer;
  height: 260px;
  background-color: #e2e8f0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 61, 145, 0.88) 0%, rgba(11, 61, 145, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--ldps-white);
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.gallery-category-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ldps-accent);
}

/* --------------------------------------------------------------------------
   11. Notices & Announcements
   -------------------------------------------------------------------------- */
.notice-card {
  background: var(--ldps-white);
  border-radius: 12px;
  border: 1px solid var(--ldps-border);
  border-left: 5px solid var(--ldps-primary);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--ldps-shadow-sm);
  transition: var(--ldps-transition);
}

.notice-card:hover {
  transform: translateX(4px);
  box-shadow: var(--ldps-shadow-md);
  border-left-color: var(--ldps-accent);
}

.notice-date-badge {
  background-color: var(--ldps-secondary-light);
  color: var(--ldps-primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   12. Admission Steps & Forms
   -------------------------------------------------------------------------- */
.admission-step-box {
  background: var(--ldps-white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--ldps-border);
  box-shadow: var(--ldps-shadow-sm);
  position: relative;
  height: 100%;
}

.admission-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ldps-accent);
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.enquiry-form-card {
  background: var(--ldps-white);
  border-radius: 16px;
  padding: 35px;
  box-shadow: var(--ldps-shadow-lg);
  border: 1px solid var(--ldps-border);
}

.form-control:focus, .form-select:focus {
  border-color: var(--ldps-secondary);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.2);
}

/* --------------------------------------------------------------------------
   13. Contact Page & Map
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: var(--ldps-white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--ldps-shadow-sm);
  border-top: 4px solid var(--ldps-primary);
  height: 100%;
}

.contact-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--ldps-secondary-light);
  color: var(--ldps-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.map-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ldps-shadow-md);
  border: 1px solid var(--ldps-border);
  background: #e2e8f0;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer-main {
  background-color: #071f49;
  color: #cbd5e1;
  padding-top: 60px;
  padding-bottom: 25px;
  font-size: 0.92rem;
  border-top: 4px solid var(--ldps-accent);
}

.footer-title {
  color: var(--ldps-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background-color: var(--ldps-accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

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

.footer-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--ldps-accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item .bi {
  color: var(--ldps-accent);
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: var(--ldps-accent);
}

.footer-udise-badge {
  background: rgba(249, 178, 51, 0.15);
  border: 1px dashed var(--ldps-accent);
  color: #ffde8a;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   15. Floating Action Buttons (Call, WhatsApp, Back to Top)
   -------------------------------------------------------------------------- */
.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ldps-white);
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--ldps-transition);
  text-decoration: none;
  position: relative;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.06);
  color: var(--ldps-white);
}

.floating-btn-call {
  background-color: var(--ldps-secondary);
}

.floating-btn-call:hover {
  background-color: #1976d2;
}

.floating-btn-whatsapp {
  background-color: #25d366;
}

.floating-btn-whatsapp:hover {
  background-color: #20ba59;
}

.floating-btn-top {
  background-color: var(--ldps-primary);
  display: none;
  border: none;
  cursor: pointer;
}

.floating-btn-top:hover {
  background-color: var(--ldps-primary-dark);
}

/* Tooltip for floating buttons */
.floating-btn[data-label]::before {
  content: attr(data-label);
  position: absolute;
  right: 60px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.floating-btn:hover[data-label]::before {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   16. Hostel & Mess Facilities Section Styles
   -------------------------------------------------------------------------- */
.facility-jump-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--ldps-border);
  padding: 12px 0;
  position: sticky;
  top: 72px;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(11, 61, 145, 0.05);
}

.facility-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.facility-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ldps-primary);
  background-color: rgba(11, 61, 145, 0.06);
  border: 1px solid rgba(11, 61, 145, 0.12);
  transition: var(--ldps-transition);
}

.facility-pill-link:hover,
.facility-pill-link.active {
  background-color: var(--ldps-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.2);
}

.facility-pill-link.pill-highlight {
  background-color: var(--ldps-accent);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.08);
}

.facility-pill-link.pill-highlight:hover {
  background-color: var(--ldps-accent-hover);
  color: #000;
}

/* Facility Highlight Badge & Hero Image Card */
.facility-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ldps-shadow-md);
  transition: var(--ldps-transition);
}

.facility-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ldps-shadow-lg);
}

.facility-visual-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.facility-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 61, 145, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--ldps-accent);
  max-width: 85%;
}

.facility-floating-badge-top {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--ldps-accent);
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Routine & Timeline Card */
.routine-timeline {
  position: relative;
  padding-left: 24px;
}

.routine-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #cbd5e1;
}

.routine-item {
  position: relative;
  margin-bottom: 20px;
}

.routine-item:last-child {
  margin-bottom: 0;
}

.routine-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ldps-accent);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--ldps-primary);
}

.routine-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ldps-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.routine-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ldps-primary);
  margin-bottom: 2px;
}

.routine-desc {
  font-size: 0.86rem;
  color: var(--ldps-text-muted);
  margin-bottom: 0;
}

/* Meal Plan Cards */
.meal-plan-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--ldps-border);
  box-shadow: var(--ldps-shadow-sm);
  padding: 24px 20px;
  height: 100%;
  transition: var(--ldps-transition);
  position: relative;
  overflow: hidden;
}

.meal-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ldps-shadow-md);
  border-color: var(--ldps-secondary);
}

.meal-plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ldps-border);
}

.meal-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ldps-secondary-light);
  color: var(--ldps-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.meal-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ldps-primary);
  margin-bottom: 2px;
}

.meal-timing {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.meal-items-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.meal-items-list li {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.meal-items-list li:last-child {
  margin-bottom: 0;
}

.meal-items-list li i {
  color: #10b981;
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Hygiene & Nutrition Highlights */
.hygiene-badge-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid var(--ldps-border);
  box-shadow: var(--ldps-shadow-sm);
  height: 100%;
  transition: var(--ldps-transition);
}

.hygiene-badge-box:hover {
  border-color: var(--ldps-primary);
  transform: translateY(-3px);
  box-shadow: var(--ldps-shadow-md);
}

.hygiene-badge-icon {
  font-size: 1.8rem;
  color: var(--ldps-secondary);
  margin-bottom: 8px;
}

/* Home Boarding Showcase Banner */
.boarding-home-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--ldps-border);
  box-shadow: var(--ldps-shadow-sm);
  overflow: hidden;
  transition: var(--ldps-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.boarding-home-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ldps-shadow-lg);
  border-color: var(--ldps-secondary);
}

.boarding-home-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.boarding-home-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   17. Comprehensive Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablets and Mobile Devices (up to 991.98px) - Clean Nav Drawer */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--ldps-white);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 12px;
    box-shadow: 0 12px 30px rgba(11, 61, 145, 0.14);
    border: 1px solid var(--ldps-border);
    max-height: 82vh;
    overflow-y: auto;
  }

  .navbar-nav {
    gap: 2px;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-custom .nav-link {
    padding: 10px 12px !important;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-cta-btn {
    width: 100%;
    margin-top: 10px;
    text-align: center;
    display: block;
    padding: 11px 18px !important;
    font-size: 0.95rem !important;
  }
}

/* Tablet Portrait & Smaller (up to 991.98px) */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 55px 0 65px 0;
  }

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.45rem);
  }

  .hero-subheading {
    font-size: 1.15rem;
  }

  .quick-info-section {
    margin-top: 20px;
  }

  .inner-page-header {
    padding: 40px 0;
  }

  .inner-page-header h1 {
    font-size: 2rem;
  }

  /* Facilities Sticky Jump Bar becomes smooth horizontal scrollable pill bar */
  .facility-jump-bar {
    top: 58px;
    padding: 8px 0;
  }

  .facility-jump-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 10px 8px 10px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .facility-jump-pills::-webkit-scrollbar {
    display: none;
  }

  .facility-pill-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 6px 14px;
  }
}

/* Mobile Devices (up to 767.98px) */
@media (max-width: 767.98px) {
  .top-contact-bar {
    font-size: 0.78rem;
    padding: 6px 0;
    text-align: center;
  }

  .top-contact-bar .container {
    padding: 0 12px;
  }

  .top-contact-bar .d-inline-flex {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    padding: 45px 0 55px 0;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.98rem;
  }

  .hero-location-text {
    justify-content: center;
    font-size: 0.88rem;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .section-title {
    font-size: 1.65rem;
  }

  .section-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .inner-page-header {
    padding: 32px 0;
    text-align: center;
  }

  .inner-page-header h1 {
    font-size: 1.65rem;
  }

  .inner-page-header p {
    font-size: 0.92rem;
  }

  .breadcrumb-custom {
    justify-content: center;
  }

  .principal-section {
    padding: 24px 18px;
    border-radius: 12px;
    text-align: center;
  }

  .principal-section .section-divider.start {
    margin: 0 auto 20px auto;
  }

  .principal-image-box img {
    max-width: 190px !important;
    height: auto !important;
    margin: 0 auto;
  }

  .facility-visual-img {
    height: 250px;
  }

  .facility-floating-badge {
    position: static;
    margin: 12px 14px 14px 14px;
    max-width: calc(100% - 28px);
    border-radius: 10px;
    padding: 10px 14px;
  }

  .facility-floating-badge-top {
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .enquiry-form-card {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .floating-actions-container {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    gap: 8px;
  }

  .floating-btn {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  /* Disable hover tooltip popups on mobile touch screens */
  .floating-btn[data-label]::before {
    display: none !important;
  }

  .table-responsive table {
    font-size: 0.88rem;
  }

  .table-responsive td {
    word-break: break-word;
  }
}

/* Small Smartphones (up to 575.98px) */
@media (max-width: 575.98px) {
  .quick-info-card {
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .quick-info-icon-wrapper {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .quick-info-title {
    font-size: 0.74rem;
  }

  .quick-info-value {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .quick-info-sub {
    font-size: 0.74rem;
  }

  .gallery-card {
    height: 220px;
  }

  .gallery-filter-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .notice-card {
    padding: 18px 15px;
  }

  .notice-date-badge {
    font-size: 0.78rem;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .boarding-home-card .boarding-home-img {
    height: 180px;
  }

  .boarding-home-body {
    padding: 18px 15px;
  }

  .subject-pill {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

/* Extra Small Smartphones (up to 480px) */
@media (max-width: 480px) {
  .navbar-custom {
    padding: 8px 0;
  }

  .school-logo-img {
    width: 38px;
    height: 38px;
  }

  .school-brand-title {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .school-brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.2px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subheading {
    font-size: 0.96rem;
  }

  .hero-tagline-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 11px 18px;
  }

  .enquiry-form-card {
    padding: 18px 12px;
  }

  .contact-info-card {
    padding: 18px 14px;
  }

  .footer-main {
    padding-top: 40px;
    padding-bottom: 20px;
  }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
  .floating-btn[data-label]::before {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Residential Campus Badges, Top Strip & Highlights
   -------------------------------------------------------------------------- */
.top-residential-alert-strip {
  background: linear-gradient(90deg, #07265e 0%, #0b3d91 50%, #104ba9 100%);
  color: #ffffff;
  padding: 6px 0;
  border-bottom: 2px solid var(--ldps-accent);
  font-size: 0.84rem;
}

.top-residential-alert-strip .alert-pill-tag {
  background-color: var(--ldps-accent);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.top-residential-alert-strip .alert-strip-link {
  color: #1a1a1a;
  background-color: #ffde8a;
  padding: 3px 14px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--ldps-transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-residential-alert-strip .alert-strip-link:hover {
  background-color: #ffffff;
  color: var(--ldps-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pulse-live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: ldps-live-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes ldps-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-residential-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 61, 145, 0.85);
  border: 1.5px solid rgba(249, 178, 51, 0.7);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 6px 16px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--ldps-transition);
}

.hero-residential-badge:hover {
  border-color: var(--ldps-accent);
  background: rgba(11, 61, 145, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 178, 51, 0.35);
  color: #ffffff;
}

.residential-highlight-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1.5px solid rgba(11, 61, 145, 0.2);
  border-left: 5px solid var(--ldps-primary);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(11, 61, 145, 0.06);
  transition: var(--ldps-transition);
}

.residential-highlight-card:hover {
  border-color: var(--ldps-primary);
  box-shadow: 0 8px 24px rgba(11, 61, 145, 0.12);
  transform: translateY(-2px);
}

.residential-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ==========================================================================
   Welcome Popup Modal Styling
   ========================================================================== */
.welcome-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 39, 95, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.welcome-popup-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.welcome-popup-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  box-shadow: 0 25px 60px -12px rgba(11, 61, 145, 0.35), 0 0 0 1px rgba(249, 178, 51, 0.3);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-align: center;
}

.welcome-popup-backdrop.show .welcome-popup-dialog {
  transform: scale(1) translateY(0);
}

.welcome-popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.welcome-popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
  color: #ffffff;
}

.welcome-popup-header {
  background: linear-gradient(135deg, #07275f 0%, #0B3D91 60%, #1E88E5 100%);
  padding: 32px 24px 28px;
  color: #ffffff;
  position: relative;
}

.welcome-popup-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 16px;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.welcome-popup-emblem {
  width: 82px;
  height: 82px;
  background: #ffffff;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(249, 178, 51, 0.9);
  display: inline-block;
  margin-bottom: 12px;
  animation: floatEmblem 3s ease-in-out infinite alternate;
}

@keyframes floatEmblem {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.welcome-popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 178, 51, 0.22);
  border: 1px solid rgba(249, 178, 51, 0.6);
  color: #FFD54F;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.welcome-popup-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-popup-body {
  padding: 16px 28px 28px;
  background: #ffffff;
}

.welcome-popup-text {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.welcome-popup-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.welcome-popup-badge {
  background: #f1f5f9;
  color: #0B3D91;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e2e8f0;
}

.welcome-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-popup-btn-primary {
  background: linear-gradient(135deg, #F9B233 0%, #f59e0b 100%);
  color: #07275f !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 16px rgba(249, 178, 51, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.welcome-popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 178, 51, 0.45);
  background: linear-gradient(135deg, #fbbF24 0%, #d97706 100%);
}

.welcome-popup-btn-secondary {
  background: #e3f2fd;
  color: #0B3D91 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-popup-btn-secondary:hover {
  background: #dbeafe;
}
