/* ==========================================================================
   Shiv Shakti College, Nadbai (Bharatpur) — Official Website Stylesheet
   Theme: Rajasthani Academic Heritage (Maroon, Gold, Marble, Ink)
   ========================================================================== */

:root {
  --maroon: #7A2A2A;
  --maroon-dark: #5C1F1F;
  --maroon-light: #9B3838;
  --gold: #C98A3B;
  --gold-hover: #B3782E;
  --gold-light: #F4E7D3;
  --ink: #22262B;
  --ink-light: #2D3238;
  --marble: #F1ECE0;
  --marble-dark: #E4DDCB;
  --stone: #8A8579;
  --white: #FFFDF9;
  
  --display: 'Zilla Slab', Georgia, serif;
  --deva: 'Noto Sans Devanagari', var(--display);
  --mono: 'IBM Plex Mono', monospace;
  --body: 'IBM Plex Sans', Arial, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(34, 38, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(34, 38, 43, 0.1);
  --shadow-lg: 0 16px 36px rgba(34, 38, 43, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-arch: 140px 140px 12px 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--marble);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Signature Jharokha Arch Shape */
.arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
}

/* Typography Utilities */
.hindi-text {
  font-family: var(--deva);
}

.text-gold {
  color: var(--gold);
}

.text-maroon {
  color: var(--maroon);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #C9C4B6;
  font-family: var(--mono);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-contact {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-contact a:hover {
  color: var(--gold);
}

.topbar-badge {
  background: rgba(201, 138, 59, 0.15);
  color: var(--gold);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid rgba(201, 138, 59, 0.3);
  font-size: 0.75rem;
}

/* ---------- Header & Nav ---------- */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--marble-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(8px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  background: var(--maroon);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  border-radius: 24px 24px 6px 6px;
  box-shadow: 0 4px 10px rgba(122, 42, 42, 0.25);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--maroon);
  line-height: 1.15;
}

.logo-text small {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--stone);
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  padding: 8px 0;
  color: var(--ink);
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links > li > a:hover::after,
.nav-links > li.active > a::after {
  width: 100%;
}

.nav-links > li > a:hover {
  color: var(--maroon);
}

/* Mobile Nav Open state */
.nav-links.mobile-open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 20px 28px;
  gap: 16px;
  border-bottom: 1px solid var(--marble-dark);
  box-shadow: var(--shadow-md);
  align-items: flex-start;
}

/* Dropdown Menu */
.dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--marble-dark);
  min-width: 210px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--ink);
}

.dropdown li a:hover {
  background: var(--marble);
  color: var(--maroon);
}

.nav-cta {
  background: var(--maroon);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 20px 20px 4px 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(122, 42, 42, 0.2);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.nav-cta:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 42, 42, 0.3);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(201, 138, 59, 0.16), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(122, 42, 42, 0.25), transparent 45%),
    repeating-linear-gradient(45deg, transparent, transparent 58px, rgba(201, 138, 59, 0.04) 59px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(201, 138, 59, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(201, 138, 59, 0.25);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  border-bottom: 2px solid rgba(201, 138, 59, 0.4);
}

.hero p.sub {
  margin-top: 22px;
  max-width: 500px;
  color: #C9C4B6;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 24px 24px 4px 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(201, 138, 59, 0.3);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(201, 138, 59, 0.4);
}

.btn-outline {
  border: 1px solid #4B4E45;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 24px 24px 4px 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 138, 59, 0.08);
}

/* Hero Campus Image Frame */
.hero-frame-container {
  position: relative;
}

.hero-frame {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #3A2F2F, #241C1C);
  border: 3px solid var(--gold);
  border-radius: 210px 210px 16px 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--maroon);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Section Shell ---------- */
section {
  padding: 90px 0;
}

.section-head {
  margin-bottom: 48px;
  max-width: 660px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  color: var(--maroon);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  font-weight: 600;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--ink);
  line-height: 1.25;
}

.section-head p {
  margin-top: 14px;
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Welcome Section ---------- */
.welcome {
  background: var(--white);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome p {
  color: #4B4A45;
  font-size: 1.02rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.welcome-fact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--marble-dark);
}

.welcome-fact div .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--maroon);
  line-height: 1;
}

.welcome-fact div .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.welcome-frame {
  aspect-ratio: 1/1;
  background: var(--marble);
  border: 2px solid var(--marble-dark);
  border-radius: 180px 180px 16px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Leadership Section ---------- */
.leadership {
  background: var(--marble);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.lead-card {
  background: var(--white);
  border: 1px solid var(--marble-dark);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lead-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 138, 59, 0.4);
}

.lead-photo {
  aspect-ratio: 16/11;
  background: linear-gradient(160deg, #EFE7D3, #E1D6B9);
  border-radius: 110px 110px 8px 8px;
  overflow: hidden;
}

.lead-body {
  padding: 24px 20px 24px;
}

.lead-body .role {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--maroon);
  text-transform: uppercase;
  font-weight: 600;
}

.lead-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 6px 0 14px;
  color: var(--ink);
}

.lead-body p {
  font-family: var(--deva);
  font-size: 0.98rem;
  color: #4B4A45;
  line-height: 1.7;
}

/* ---------- Facilities Section ---------- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fac-card {
  text-align: center;
  background: var(--white);
  padding: 32px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--marble-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.fac-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  background: var(--maroon);
  border-radius: 39px 39px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(122, 42, 42, 0.2);
  transition: var(--transition);
}

.fac-card:hover .fac-icon {
  background: var(--gold);
}

.fac-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--gold);
  transition: var(--transition);
}

.fac-card:hover .fac-icon svg {
  stroke: var(--ink);
}

.fac-card h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.fac-card p {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.5;
}

/* ---------- Course Details Section ---------- */
.course-section {
  background: var(--white);
}

.course-tabs-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--marble);
  border: 1px solid var(--marble-dark);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.subject-card {
  background: var(--marble);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--marble-dark);
  transition: var(--transition);
}

.subject-card:hover {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.subject-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--maroon);
  background: rgba(122, 42, 42, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.subject-card h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.subject-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

.course-band {
  background: var(--maroon);
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.course-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.course-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  color: var(--gold);
  text-transform: uppercase;
}

.course-inner h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 6px;
}

.course-inner p {
  color: #E7CFA9;
  margin-top: 6px;
  max-width: 480px;
  font-size: 0.92rem;
}

/* ---------- Staff / Faculty Section ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.staff-card {
  background: var(--white);
  border: 1px solid var(--marble-dark);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.staff-photo {
  aspect-ratio: 1/1;
  background: var(--marble);
  border-radius: 90px 90px 8px 8px;
  margin: 0 auto 16px;
  overflow: hidden;
  width: 110px;
  border: 2px solid var(--marble-dark);
}

.staff-card h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.staff-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 500;
}

.staff-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 6px;
}

/* ---------- Admission CTA Section ---------- */
.admit {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 138, 59, 0.12), transparent 70%);
  pointer-events: none;
}

.admit .kicker {
  color: var(--gold);
}

.admit h2 {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
}

.admit p {
  color: #C9C4B6;
  max-width: 500px;
  margin: 16px auto 32px;
  font-size: 1rem;
}

/* ---------- Gallery Section ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #EFE7D3, #E1D6B9);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--marble-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item svg,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 38, 43, 0.6);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
}

.gallery-overlay h6 {
  font-family: var(--display);
  font-size: 0.95rem;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}

.contact-list {
  margin-bottom: 32px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.contact-list .ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--marble);
  border-radius: 21px 21px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--marble-dark);
}

.contact-list .ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--maroon);
}

.contact-list strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  color: var(--stone);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.map-frame {
  border: 2px solid var(--marble-dark);
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-sm);
}

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

/* Contact Quick Form */
.quick-contact-form {
  background: var(--marble);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--marble-dark);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--marble-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(122, 42, 42, 0.12);
}

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

/* ---------- Modal Popup ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 38, 43, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: var(--maroon);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--display);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.form-status.success {
  display: block;
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-status.error {
  display: block;
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* Lightbox Modal */
.lightbox-content img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #9A9789;
  padding: 60px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #34372F;
}

.foot-grid h5 {
  font-family: var(--mono);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.foot-grid p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.foot-grid li {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.foot-grid a:hover {
  color: var(--gold);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.78rem;
  font-family: var(--mono);
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  border: 1px solid rgba(201, 138, 59, 0.3);
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .burger {
    display: flex;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-frame {
    aspect-ratio: 16/9;
  }
  
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  
  .lead-grid {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid,
  .staff-grid,
  .gallery-grid,
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .topbar .wrap {
    justify-content: center;
    text-align: center;
  }
  
  .facilities-grid,
  .staff-grid,
  .subjects-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .foot-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 60px 0;
  }
  
  .welcome-fact {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==========================================================================
   Official College Logo Enhancements
   ========================================================================== */
.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  background: var(--white);
  border: 2px solid var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.06) rotate(2deg);
}

.hero-logo-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: radial-gradient(circle at center, #4A3333 0%, #2E1F1F 70%, #201313 100%);
  text-align: center;
  color: var(--white);
}

.hero-logo-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(1); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
  100% { transform: scale(1.03); box-shadow: 0 16px 40px rgba(201, 138, 59, 0.35); }
}

.hero-logo-text {
  margin-top: 22px;
}

.hero-logo-text h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.hero-logo-text p {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 4px;
  letter-spacing: 1px;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--marble-dark);
  margin-top: 10px;
  background: rgba(201, 138, 59, 0.15);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 138, 59, 0.3);
}

.welcome-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 24px;
}

.welcome-logo-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}

.welcome-frame:hover .welcome-logo-img {
  transform: scale(1.05);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.foot-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}

/* ==========================================================================
   Downloads Table & Document Viewer Styles
   ========================================================================== */
.downloads-table-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--marble-dark);
  padding: 24px;
  overflow-x: auto;
}

.downloads-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  min-width: 650px;
}

.downloads-table th {
  background: var(--maroon);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 3px solid var(--gold);
}

.downloads-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--marble-dark);
  font-size: 0.9rem;
  vertical-align: middle;
}

.downloads-table tbody tr:hover {
  background: rgba(241, 236, 224, 0.4);
}

.doc-type-tag {
  background: rgba(122, 42, 42, 0.08);
  color: var(--maroon);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.doc-view-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.doc-view-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 138, 59, 0.3);
}

.doc-dl-btn {
  background: var(--maroon);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.doc-dl-btn:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(122, 42, 42, 0.3);
}

.doc-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Document Viewer Modal */
.doc-modal-card {
  background: var(--white);
  width: 92%;
  max-width: 980px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.doc-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.doc-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--marble-dark);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.doc-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.doc-data-table th {
  background: var(--maroon);
  color: var(--gold);
  font-family: var(--display);
  padding: 10px 12px;
  border-bottom: 2px solid var(--gold);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.doc-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--marble-dark);
}

.doc-data-table tr:nth-child(even) {
  background: rgba(241, 236, 224, 0.25);
}
