/**
 * Kailashpat Singhania High School (LKSHS)
 * Modern Institutional Design System & Component Stylesheet (v2.2)
 * Palette: Deep Emerald (#0b2e1f), Forest Green (#198754), Warm Gold (#ffc107)
 * Typography: 'Outfit' (Headings) & 'Plus Jakarta Sans' (Body)
 */

:root {
  --primary-dark: #0b3d26;
  --primary-deeper: #072316;
  --primary-emerald: #146c43;
  --primary-light: #198754;
  --primary-soft: #e8f5e9;
  --accent-gold: #ffc107;
  --gold-hover: #e0a800;
  --gold-light: #fff8e1;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-alt: #f1f8f3;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 30px -10px rgba(15, 81, 50, 0.15);
  --border-color: #e2e8f0;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   1. Top Contact Bar
   ========================================================================== */
.top-contact-bar {
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-contact-bar a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

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

.top-contact-bar .top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

/* ==========================================================================
   2. Main Header & Navigation
   ========================================================================== */
#header,
.site-header {
  background: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 0;
  transition: var(--transition);
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 58px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.school-brand-text {
  display: flex;
  flex-direction: column;
}

.school-brand-text .title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.school-brand-text .subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 1px;
}

.navbar .navbar-nav .nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  padding: 24px 12px;
  transition: var(--transition);
  position: relative;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary-light);
}

.navbar .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.navbar .dropdown-menu {
  border: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 0;
}

.navbar .dropdown-item {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  padding: 8px 20px;
  transition: var(--transition);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  padding-left: 24px;
}

.btn-admission {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #1e293b !important;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-admission:hover {
  background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.45);
}

/* ==========================================================================
   3. Urgent Notice Ticker Bar
   ========================================================================== */
.notice-ticker-bar {
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
  padding: 7px 0;
  overflow: hidden;
}

.ticker-label {
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-content-wrapper {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.ticker-marquee {
  display: inline-flex;
  gap: 25px;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: #1e293b;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.ticker-item:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   4. Hero Banner Section
   ========================================================================== */
.hero-banner-modern {
  background: linear-gradient(rgba(11, 61, 38, 0.88), rgba(15, 81, 50, 0.92)), url('../../img/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 90px 0 110px 0;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 50px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin-bottom: 2rem;
}

.hero-cta-btn {
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
}

/* ==========================================================================
   5. Key Stats Strip
   ========================================================================== */
.stats-strip {
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 26px 20px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  border-right: 1px solid #f1f5f9;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   6. Section Headers & Feature Cards
   ========================================================================== */
.section-header-modern {
  text-align: center;
  margin-bottom: 2.75rem;
}

.badge-tag {
  display: inline-block;
  background: rgba(25, 135, 84, 0.1);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-header-modern h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-header-modern p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.feature-card-modern {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px 24px;
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.feature-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(25, 135, 84, 0.35);
}

.feature-card-modern .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(25, 135, 84, 0.1);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.feature-card-modern:hover .icon-box {
  background: var(--primary-light);
  color: #ffffff;
}

/* ==========================================================================
   7. News & Article Cards
   ========================================================================== */
.article-card-modern {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.article-card-modern .thumb-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.article-card-modern:hover .thumb-wrapper img {
  transform: scale(1.05);
}

.article-card-modern .card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ==========================================================================
   8. Breadcrumbs Banner for Subpages
   ========================================================================== */
.breadcrumbs-banner {
  background: linear-gradient(rgba(11, 61, 38, 0.9), rgba(15, 81, 50, 0.92)), url('../../img/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--primary-dark);
  padding: 50px 0;
  color: #ffffff;
  margin-bottom: 2rem;
}

.breadcrumbs-banner h2 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.breadcrumbs-banner .breadcrumb {
  margin-bottom: 0;
}

.breadcrumbs-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs-banner .breadcrumb-item a:hover {
  color: var(--accent-gold);
}

.breadcrumbs-banner .breadcrumb-item.active {
  color: var(--accent-gold);
  font-weight: 600;
}

.breadcrumbs-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   9. Document Tables & Download Cards
   ========================================================================== */
.doc-table-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.doc-table-card .table {
  margin-bottom: 0;
}

.doc-table-card .table thead th {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 16px;
  border: none;
}

.doc-table-card .table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  font-size: 14px;
}

/* ==========================================================================
   10. Photo Gallery & Filters
   ========================================================================== */
.gallery-filter-btn {
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
}

.gallery-item-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  position: relative;
  height: 240px;
  background: #e2e8f0;
}

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

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

/* ==========================================================================
   11. Executive Institutional Footer (#footer & .site-footer)
   ========================================================================== */
#footer,
footer.site-footer,
.site-footer {
  background: linear-gradient(180deg, #0b2e1f 0%, #071f14 100%) !important;
  background-color: #0b2e1f !important;
  color: #cbd5e1 !important;
  font-size: 14px;
  padding: 0 !important;
  position: relative;
}

.footer-accent-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #198754 0%, #ffc107 50%, #198754 100%);
}

.footer-main {
  padding: 65px 0 55px 0;
}

/* Col 1: Brand & Identity */
.footer-logo-banner {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.footer-logo-banner:hover {
  transform: translateY(-2px);
}

.footer-logo-banner img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.footer-logo-box {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.footer-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-school-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.footer-school-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.footer-affiliation-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #e2e8f0;
}

.footer-affiliation-badge strong {
  color: #ffffff;
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.75;
}

/* Column Headings */
#footer .footer-heading,
.site-footer .footer-heading {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 1.4rem;
  padding-bottom: 10px;
  position: relative;
}

#footer .footer-heading::after,
.site-footer .footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

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

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

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  font-size: 13.8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links li a i {
  font-size: 11px;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
}

.footer-links li a:hover {
  color: var(--accent-gold) !important;
  transform: translateX(4px);
}

.footer-links li a:hover i {
  transform: translateX(2px);
}

/* Contact List with Icon Badges */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer-contact-list .contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-list .contact-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-list .contact-text strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1px;
}

.footer-contact-list .contact-text a {
  color: var(--accent-gold) !important;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-list .contact-text a:hover {
  text-decoration: underline;
  color: #ffffff !important;
}

/* Social Buttons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b2e1f !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

/* Bottom Strip */
.footer-bottom {
  background: #04140d !important;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-copy strong {
  color: #ffffff;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom-links .divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  color: #ffffff !important;
  border-radius: 50%;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--accent-gold);
  color: #0b2e1f !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   12. Responsive Overrides
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-banner-modern {
    padding: 60px 0 80px 0;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .stats-strip {
    margin-top: -30px;
  }

  .stat-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .footer-main {
    padding: 45px 0 35px 0;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-item h3 {
    font-size: 1.75rem;
  }

  .stat-item p {
    font-size: 0.8rem;
  }

  .site-logo img {
    height: 42px;
  }
}
