/* ===================================================================
   B.D. JAIN MODERN SCHOOL (H.S.) - MAIN STYLESHEET
   Clean, Modern, Responsive, and Easily Editable CSS
   =================================================================== */

:root {
  --primary: #1d3557;
  --primary-dark: #0f1d30;
  --primary-light: #2a4d7d;
  --secondary: #457b9d;
  --accent: #e63946;
  --accent-hover: #c92a37;
  --gold: #f4a261;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --transition: all 0.25s ease-in-out;
  --container-max: 1200px;
  --radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===================================================================
   TOP UTILITY BAR
   =================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
}

.top-info-item a {
  color: #e2e8f0;
}

.top-info-item a:hover {
  color: var(--gold);
}

.top-badge {
  background: rgba(230, 57, 70, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ===================================================================
   MAIN NAVIGATION HEADER
   =================================================================== */
.main-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background-color: #f1f5f9;
}

.nav-cta {
  background-color: var(--accent);
  color: #ffffff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.hamburger-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.close-nav-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ===================================================================
   HERO BANNER
   =================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.92) 0%, rgba(69, 123, 157, 0.85) 100%),
              url('../assets/images/dsc_1423-dOq85QLMovSBxDK6.JPG') center/cover no-repeat;
  color: #ffffff;
  padding: 5.5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}

.hero h2 {
  font-size: 2.8rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #366582;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(230, 57, 70, 0.4);
}

.btn-outline-light {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-light {
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

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

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===================================================================
   ADMISSION BANNER SECTION
   =================================================================== */
.admission-banner-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--accent);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
}

.admission-badge {
  display: inline-block;
  background-color: #fee2e2;
  color: var(--accent);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.admission-text h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.admission-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.admission-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* ===================================================================
   CORE PILLARS & FEATURES GRID
   =================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  background: #ffffff;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===================================================================
   PRINCIPAL'S MESSAGE
   =================================================================== */
.principal-section {
  background: #ffffff;
}

.principal-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--light-bg);
  padding: 3rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.principal-image-wrap {
  text-align: center;
}

.principal-image {
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.principal-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.principal-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.principal-quote-box {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #334155;
  font-weight: 500;
}

.principal-body {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
}

.principal-body p {
  margin-bottom: 1rem;
}

/* ===================================================================
   FACILITIES & VALUES
   =================================================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.facility-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.facility-content {
  padding: 1.75rem;
}

.facility-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.facility-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===================================================================
   DOCUMENTS & DISCLOSURES
   =================================================================== */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.doc-card {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.doc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fee2e2;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.doc-btn {
  background: #f1f5f9;
  color: var(--primary);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.doc-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ===================================================================
   GALLERY & LIGHTBOX
   =================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 29, 48, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 1.75rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ===================================================================
   CONTACT & INQUIRY
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.contact-info-entry {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-entry h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-entry p,
.contact-info-entry a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  margin-top: 3.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.main-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 4.5rem 0 1.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-info li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact-info a {
  color: #94a3b8;
}

.footer-contact-info a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ===================================================================
   RESPONSIVENESS / MEDIA QUERIES
   =================================================================== */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .mobile-nav {
    display: block;
  }
  .principal-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .principal-image-wrap {
    text-align: center;
  }
  .principal-image {
    max-width: 260px;
    margin: 0 auto 1rem auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .admission-banner-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
