/* =======================================================
   SAHIL SCHOOLS — Public Website CSS
   Design: Premium Indian School Website
   Primary: #003399 (dark blue) | Accent: #FFB800 (gold/yellow)
   ======================================================= */

:root {
  --primary:       #003399;
  --primary-dark:  #002277;
  --primary-light: #e8eef9;
  --accent:        #b45309; /* High-contrast accessible amber (5.1:1 on white) */
  --accent-gold:   #f59e0b; /* Vibrant gold for dark-mode & dark backgrounds */
  --accent-dark:   #92400e;
  --accent-light:  #fff8e1;
  --dark:          #0a0f2c;
  --text:          #1e293b; /* Deep slate-800 for 13.5:1 WCAG AAA text contrast */
  --muted:         #475569; /* Slate-600 for 5.9:1 WCAG AA muted text contrast */
  --light-bg:      #f8fafc; /* Crisp slate-50 alternating section background */
  --white:         #ffffff;
  --border:        #cbd5e1; /* Slate-300 for 3:1 interactive boundary contrast */
  --radius:        10px;
  --shadow:        0 4px 24px rgba(0,51,153,.10);
  --shadow-lg:     0 12px 40px rgba(0,51,153,.14);
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  margin: 0;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* =====================================================
   TOP BAR
===================================================== */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  padding: .45rem 0;
  border-bottom: 2px solid var(--accent);
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .topbar-left { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar .topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar .tb-item { display: flex; align-items: center; gap: .35rem; }
.topbar .tb-item i { font-size: .85rem; color: var(--accent); }
.topbar-login a {
  padding: .25rem .65rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  font-size: .75rem;
  transition: background .15s;
}
.topbar-login a:hover { background: rgba(255,255,255,.12); }
.dark-toggle {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 20px; padding: .2rem .6rem;
  cursor: pointer; font-size: .75rem; display: flex; align-items: center; gap: .3rem;
}

/* =====================================================
   NAVBAR
===================================================== */
.main-navbar {
  background: var(--white) !important;
  border-bottom: 2px solid var(--border);
  padding: .55rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0,51,153,.08);
}
.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.brand-logo {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}
.brand-logo-icon { font-size: 1.8rem; line-height: 1; }
.brand-text .brand-name {
  font-size: 1.25rem; font-weight: 800;
  color: var(--primary); line-height: 1.1;
  letter-spacing: -.01em;
  display: block;
}
.brand-text .brand-name span { color: var(--accent); }
.brand-text .brand-tag {
  font-size: .65rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  display: block;
}

/* Nav links */
.main-navbar .navbar-nav .nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text) !important;
  padding: .45rem .7rem !important;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  position: relative;
}
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}
.main-navbar .navbar-nav .nav-link.active::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  bottom: -2px; left: .7rem; right: .7rem;
}

/* Dropdown toggle arrow color */
.main-navbar .dropdown-toggle::after {
  border-top-color: var(--muted);
  margin-left: .3rem;
  vertical-align: .15em;
}

/* Dropdown menu */
.main-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  border-radius: 10px;
  padding: .5rem;
  min-width: 200px;
  margin-top: .4rem !important;
}
.main-navbar .dropdown-item {
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .85rem;
  color: var(--text);
}
.main-navbar .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Toggler icon */
.main-navbar .navbar-toggler {
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  padding: .35rem .6rem;
}
.main-navbar .navbar-toggler:focus { box-shadow: none; }
.main-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C51%2C153%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Apply Now button */
.btn-apply-now {
  background: var(--accent);
  color: var(--primary) !important;
  border: none;
  border-radius: 25px;
  padding: .5rem 1.35rem !important;
  font-weight: 700;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(255,184,0,.35);
  white-space: nowrap;
  text-decoration: none !important;
}
.btn-apply-now:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,184,0,.45);
  color: var(--primary) !important;
}

/* Mobile collapse styles */
@media (max-width: 1199.98px) {
  .main-navbar .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: .75rem 0 1rem;
    margin-top: .4rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,51,153,.08);
  }
  .main-navbar .navbar-nav .nav-link { padding: .55rem 1rem !important; border-radius: 8px; }
  .main-navbar .navbar-nav .nav-link.active::after { display: none; }
  .main-navbar .dropdown-menu { box-shadow: none; border: 1px solid var(--border); margin-left: 1rem; }
  .btn-apply-now { margin: .5rem 1rem 0; }
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
  background: linear-gradient(105deg, var(--primary) 0%, #001f7a 55%, #0a0f2c 100%);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='3' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
}
.hero-right-badge {
  position: absolute;
  top: 2rem; right: 2rem;
  background: transparent;
  text-align: center;
  color: var(--accent);
}
.hero-right-badge .badge-line1 {
  font-size: 1.5rem; font-weight: 800;
  font-style: italic;
  display: block; line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.2);
}
.hero-right-badge .badge-line2 {
  font-size: 1.8rem; font-weight: 900;
  font-style: italic;
  display: block; color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.2);
}
.hero-right-badge .underline-stroke {
  height: 4px; background: var(--accent);
  border-radius: 2px; margin-top: .25rem;
  transform: rotate(-2deg);
}

.hero-content { position: relative; z-index: 2; color: #fff; padding: 3.5rem 0; }
.hero-welcome { font-size: .95rem; font-weight: 500; opacity: .85; margin-bottom: .4rem; }
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: .6rem;
}
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; opacity: .95; }
.hero-desc { font-size: .9rem; opacity: .8; max-width: 460px; margin-bottom: 1.75rem; line-height: 1.6; }

.hero-img-wrap {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.hero-img-placeholder {
  width: 100%;
  max-width: 520px;
  height: 380px;
  background: linear-gradient(145deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-students-illus {
  font-size: 8rem;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.2));
}
.hero-school-badge {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  background: var(--accent);
  color: var(--primary);
  padding: .6rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .85rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* Buttons */
.btn-hero-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: .7rem 1.75rem;
  font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(255,184,0,.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,184,0,.5); color: var(--primary); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 25px;
  padding: .65rem 1.6rem;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .15s, border-color .15s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* =====================================================
   FEATURE BADGES BAR (below hero)
===================================================== */
.feature-bar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,51,153,.06);
}
.feature-bar-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 0;
  border-right: 1px solid var(--border);
}
.feature-bar-item:last-child { border-right: none; }
.feature-bar-icon {
  width: 42px; height: 42px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-bar-text .fbt-label {
  font-weight: 700;
  font-size: .82rem;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.feature-bar-text .fbt-sub {
  font-size: .72rem;
  color: var(--muted);
}

/* =====================================================
   SECTION UTILITIES
===================================================== */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-bg { 
  background: var(--light-bg); 
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
}
.section-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); /* Accessible #b45309 */
  margin-bottom: .4rem;
  display: block;
}
.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text); /* Accessible #1e293b */
  margin-bottom: .4rem;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  color: var(--muted); /* Accessible #475569 */
  font-size: .95rem;
  max-width: 540px;
  margin: 0 auto .5rem;
}
.underline-accent {
  width: 50px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .5rem 0 1.5rem;
}
.text-center .underline-accent { margin-left: auto; margin-right: auto; }

/* =====================================================
   ABOUT SECTION
===================================================== */
.about-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #e8eef9, #d0e0ff);
  height: 300px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  position: relative;
}
.about-img-placeholder { font-size: 5rem; opacity: .7; }
.about-overlay-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .4rem .85rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
}
.btn-know-more {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: .55rem 1.5rem;
  font-weight: 700;
  font-size: .875rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .15s, transform .15s;
}
.btn-know-more:hover { background: var(--primary-dark); transform: translateX(3px); color: #fff; }

/* Highlights cards */
.highlight-card {
  text-align: center;
  padding: 1.25rem .75rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,51,153,.06);
  transition: transform .2s, box-shadow .2s;
}
.highlight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.highlight-card .hi-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
  display: block;
  color: var(--primary);
}
.highlight-card .hi-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.highlight-card .hi-label {
  font-size: .73rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
  display: block;
}

/* =====================================================
   ACADEMICS SECTION
===================================================== */
.academic-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.academic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.academic-card .ac-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3b8a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.academic-card .ac-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
}
.academic-card .ac-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: .6rem;
  font-weight: 700;
  font-size: .82rem;
  z-index: 2;
}
.ac-colors {
  classic:   linear-gradient(135deg, #1565c0, #0d47a1);
  secondary: linear-gradient(135deg, #1a237e, #311b92);
}

/* Admissions Banner */
.admissions-cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3b9e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.admissions-cta-box::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.admissions-cta-box .adm-year {
  font-size: 1.9rem; font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  display: block;
}
.admissions-cta-box .adm-title {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: .4rem;
}
.admissions-cta-box .adm-desc {
  font-size: .82rem;
  opacity: .8;
  margin-bottom: 1rem;
}
.btn-adm {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 25px;
  padding: .5rem 1.4rem;
  font-weight: 700;
  font-size: .82rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s;
  align-self: flex-start;
}
.btn-adm:hover { background: var(--accent-dark); color: var(--primary); }

/* =====================================================
   FACILITIES
===================================================== */
.facility-icon-card {
  text-align: center;
  padding: 1.25rem .5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.facility-icon-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.facility-icon-card .fac-icon {
  width: 54px; height: 54px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 auto .6rem;
  transition: background .2s;
}
.facility-icon-card:hover .fac-icon { background: var(--primary); color: #fff; }
.facility-icon-card .fac-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), #c5d5f5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform .2s;
  border: 2px solid transparent;
}
.gallery-item:hover { transform: scale(1.04); border-color: var(--accent); }

/* =====================================================
   NEWS & EVENTS
===================================================== */
.news-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date-box {
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  min-width: 42px;
  text-align: center;
  padding: .4rem .3rem;
  flex-shrink: 0;
}
.news-date-box .nd-day { font-size: 1.1rem; font-weight: 800; line-height: 1; display: block; }
.news-date-box .nd-mon { font-size: .62rem; font-weight: 700; text-transform: uppercase; display: block; }
.news-content .nc-title { font-weight: 700; font-size: .85rem; color: var(--text); display: block; margin-bottom: .15rem; }
.news-content .nc-desc { font-size: .78rem; color: var(--muted); }
.news-thumb {
  width: 58px; height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c5d5f5, #e8eef9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-box {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testimonial-box .quote-mark {
  font-size: 3.5rem;
  color: var(--accent);
  line-height: .8;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: .4rem;
}
.testimonial-box .t-text {
  font-size: .875rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.t-author-wrap { display: flex; align-items: center; gap: .85rem; }
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.t-name { font-weight: 700; font-size: .85rem; color: var(--text); display: block; }
.t-role { font-size: .75rem; color: var(--muted); }

/* Testimonial dots */
.t-dots { display: flex; gap: .4rem; margin-top: 1rem; }
.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .15s;
}
.t-dot.active { background: var(--accent); }

/* =====================================================
   JOIN CTA BOX
===================================================== */
.join-box {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1560 100%);
  border-radius: 14px;
  padding: 2rem;
  color: #fff;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.join-box::before {
  content: '🎓';
  position: absolute;
  bottom: -10px; right: 10px;
  font-size: 5rem;
  opacity: .12;
  pointer-events: none;
}
.join-box h4 { font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; }
.join-box p { font-size: .82rem; opacity: .8; margin-bottom: 1.25rem; }
.btn-contact {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 25px;
  padding: .5rem 1.4rem;
  font-weight: 700;
  font-size: .82rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s;
  align-self: flex-start;
}
.btn-contact:hover { background: var(--accent-dark); color: var(--primary); }

/* =====================================================
   FOOTER
===================================================== */
/* =====================================================
   MODERN HIGH-LEVEL FOOTER UI/UX DESIGN SYSTEM
===================================================== */
.site-footer {
  background: radial-gradient(circle at 85% 15%, rgba(30, 58, 138, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              #071527 !important;
  color: #cbd5e1;
  padding: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.5), transparent);
}

/* Pre-footer Ribbon High-Level */
.pre-footer-cta-ribbon {
  background: linear-gradient(135deg, #091e3a 0%, #0f172a 50%, #1e1b4b 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.pre-footer-cta-ribbon .pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffc107;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.pre-footer-cta-ribbon .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc107;
  box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Trust Pillar Cards & Responsive Grid */
.footer-trust-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.footer-trust-col {
  width: 100% !important;
  min-width: 0 !important;
}
.footer-trust-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.footer-trust-card:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.footer-trust-card .icon-chip {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
}
.icon-chip-gold {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ffc107 !important;
}
.icon-chip-emerald {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}
.icon-chip-blue {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
}
.icon-chip-rose {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #fb7185 !important;
}
.footer-trust-card strong {
  font-size: 0.88rem !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
.footer-trust-card span {
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  line-height: 1.3 !important;
  display: block !important;
  margin-top: 2px !important;
}

/* Tablet (max-width: 991px): 2x2 grid */
@media (max-width: 991.98px) {
  .footer-trust-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Mobile & Small Screens: Elegant 2x2 Compact Glass Grid */
@media (max-width: 767.98px) {
  .footer-trust-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 1.5rem !important;
  }
  .footer-trust-col {
    width: 100% !important;
    min-width: 0 !important;
  }
  .footer-trust-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 13px !important;
    padding: 10px 10px !important;
    gap: 9px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  }
  .footer-trust-card .icon-chip {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.9rem !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-trust-card strong {
    font-size: 0.77rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
  }
  .footer-trust-card span {
    font-size: 0.67rem !important;
    line-height: 1.25 !important;
    opacity: 0.75 !important;
  }
}

/* Very Small Mobile (< 360px): Maintain Sleek 2-Col with Micro Padding */
@media (max-width: 360px) {
  .footer-trust-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 7px !important;
  }
  .footer-trust-card {
    padding: 8px 8px !important;
    gap: 7px !important;
    border-radius: 11px !important;
  }
  .footer-trust-card .icon-chip {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.8rem !important;
  }
  .footer-trust-card strong {
    font-size: 0.72rem !important;
  }
  .footer-trust-card span {
    font-size: 0.62rem !important;
  }
}

/* Footer Section Headings with glowing accent bar */
.footer-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: linear-gradient(90deg, #ffc107, #f59e0b);
  border-radius: 2px;
}

/* Navigation Links */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.55rem;
}

.footer-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.footer-nav-link i {
  font-size: 0.72rem;
  color: #ffc107;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(4px);
  text-decoration: none;
}

.footer-nav-link:hover i {
  color: #ffc107;
  opacity: 1;
  transform: translateX(2px);
}

/* Social Media Squircle Hub */
.footer-social-hub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  color: #ffffff;
}

.footer-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4); }
.footer-social-btn.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4); }
.footer-social-btn.yt:hover { background: #ff0000; border-color: #ff0000; box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4); }
.footer-social-btn.li:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4); }
.footer-social-btn.tw:hover { background: #000000; border-color: #333333; box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2); }

/* Contact items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  margin-top: 2px;
}

/* Newsletter & Circulars Card */
.footer-newsletter-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-top: 1.2rem;
  backdrop-filter: blur(8px);
}

.footer-newsletter-input {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 50px 0 0 50px !important;
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-input:focus {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25) !important;
}

.footer-newsletter-btn {
  background: linear-gradient(135deg, #ffc107 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  border: none !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 0 50px 50px 0 !important;
  transition: all 0.2s ease;
}

.footer-newsletter-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Bottom Sub-Bar */
.footer-sub-bar {
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-sub-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-sub-bar a:hover {
  color: #ffc107;
}

.footer-affil-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #f1f5f9;
  letter-spacing: 0.25px;
}

/* =====================================================
   SCROLL TO TOP (Bottom-Left Placement)
===================================================== */
.scroll-top {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem; right: auto;
  width: 42px; height: 42px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.7);
  transition: background .2s, transform .2s;
  z-index: 998;
}
.scroll-top:hover { background: var(--accent-dark); transform: translateY(-3px) scale(1.05); }

/* =====================================================
   VIEW ALL LINK
===================================================== */
.view-all-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: .3rem;
  transition: gap .15s;
}
.view-all-link:hover { gap: .55rem; color: var(--primary-dark); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991.98px) {
  .topbar .topbar-left { gap: .75rem; }
  .hero-img-wrap { display: none; }
  .hero-section { min-height: auto; }
  .hero-content { padding: 2.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-bar-item { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-right-badge { display: none; }
}
@media (max-width: 767.98px) {
  .topbar { display: none; }
  .section { padding: 2.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-bar-item { padding: .65rem .5rem; }
  .feature-bar-text .fbt-label { font-size: .75rem; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 1.8rem; }
  .highlight-card .hi-num { font-size: 1.3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Shared polish, search and accessible themes */
:focus-visible {
  outline: 3px solid #e5a500;
  outline-offset: 3px;
}

.public-skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 2000;
  padding: .65rem 1rem;
  color: #0f172a;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 10px;
  transform: translateY(-160%);
}

.public-skip-link:focus { transform: translateY(0); }
.site-header {
  transition: background-color .2s ease, box-shadow .2s ease;
}

.site-nav-link,
.btn-header-apply,
.btn-user-icon,
.site-search-btn,
.theme-toggle-btn {
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.site-search-btn,
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--primary-blue, var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.site-search-btn:hover,
.theme-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-blue, var(--primary));
  transform: translateY(-1px);
}

.site-top-bar .dark-icon {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-top-bar .dark-icon:hover { transform: none; }

.site-search-modal {
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(11, 37, 69, .2);
}

.site-search-modal .modal-header,
.site-search-modal .modal-body {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.site-search-modal .modal-header { padding-top: 1.5rem; }
.site-search-modal .modal-body { padding-bottom: 1.5rem; }

.site-search-field {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .45rem .8rem;
  background: var(--white);
}

.site-search-field > i { color: var(--muted); }
.site-search-field .form-control {
  border: 0;
  box-shadow: none;
  background: transparent;
  min-width: 0;
  padding: .6rem 0;
}

.site-search-field kbd,
.site-search-modal kbd {
  color: var(--muted);
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .12rem .35rem;
  font-size: .72rem;
  white-space: nowrap;
}

.site-search-results {
  max-height: min(52vh, 430px);
  overflow: auto;
  overscroll-behavior: contain;
}

.site-search-result {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem;
  color: var(--text);
  border-radius: 12px;
  text-decoration: none;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  color: var(--primary);
  background: var(--primary-light);
}

.site-search-result-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-light);
}

.site-search-result-title,
.site-search-result-sub { display: block; }
.site-search-result-title { font-weight: 700; }
.site-search-result-sub { color: var(--muted); font-size: .78rem; }

.site-search-result[hidden],
.site-search-empty[hidden] { display: none; }

.hero-slide,
.highlight-card,
.academic-card,
.facility-icon-card,
.contact-card {
  will-change: transform;
}

@media (max-width: 575.98px) {
  .site-search-btn,
  .theme-toggle-btn { width: 36px; height: 36px; border-radius: 10px; }
  .site-search-modal { border-radius: 16px; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --text: #e5edf8;
  --muted: #a7b5ca;
  --light-bg: #17243a;
  --white: #111d30;
  --border: #2b3b53;
  --primary-light: #1c3559;
  --body-bg: #0c1525;
  --header-bg: #111d30;
  --text-dark: #e5edf8;
}

html[data-theme="dark"] body {
  color: var(--text);
  background-color: var(--body-bg);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .mobile-nav-offcanvas,
html[data-theme="dark"] .site-mega-menu,
html[data-theme="dark"] .user-dropdown-menu,
html[data-theme="dark"] .site-search-modal,
html[data-theme="dark"] .site-search-field,
html[data-theme="dark"] .site-search-btn,
html[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-form-wrap {
  color: var(--text);
  background-color: var(--white) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .site-logo-text,
html[data-theme="dark"] .site-nav-link,
html[data-theme="dark"] .mega-link-title,
html[data-theme="dark"] .mega-link-item,
html[data-theme="dark"] .contact-card h2,
html[data-theme="dark"] .contact-form-wrap h2 {
  color: var(--text) !important;
}

html[data-theme="dark"] .mega-link-item:hover,
html[data-theme="dark"] .site-search-result:hover {
  background-color: var(--primary-light);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  color: var(--text);
  background-color: #0c1525;
  border-color: var(--border);
}

html[data-theme="dark"] .text-dark:not(.btn-warning):not(.btn-warning *):not(.badge-warning):not(.badge-warning *):not(.bg-warning):not(.bg-warning *) { color: var(--text) !important; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .site-search-result-sub { color: var(--muted) !important; }
html[data-theme="dark"] .modal-backdrop.show { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
