/* ==========================================================================
   Swami Vivekanand Govt. Model School, Detani (Sheo), Barmer
   Complete Flat-Folder Stylesheet (All files in same root directory)
   ========================================================================== */

:root {
  --navy: #0f295c;
  --navy-dark: #091a3d;
  --blue: #1d4ed8;
  --saffron: #d97706;
  --gold: #f59e0b;
  --red: #dc2626;
  --green: #059669;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(15, 41, 92, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 41, 92, 0.14);
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Top Utility Bar */
.top-bar {
  background: var(--navy-dark);
  color: #e2e8f0;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 2px solid var(--gold);
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.top-bar-left span,
.top-bar-right a {
  margin-right: 14px;
}

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

.badge-cbse {
  background: var(--saffron);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4px;
}

/* Main Header with Uploaded School Logo */
.school-header {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.school-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(15, 41, 92, 0.15);
  border: 2px solid var(--navy);
  flex-shrink: 0;
}

.school-title-group .govt-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.school-title-group h1 {
  font-size: 24px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0;
}

.school-title-group .hindi-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}

.school-title-group .sub-location {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.header-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.aff-pill {
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.aff-pill span {
  display: block;
  color: #fde047;
  font-size: 11px;
}

/* Navigation Bar */
.main-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 13px 15px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--gold);
  color: #fde047;
}

.nav-cta {
  background: var(--saffron);
  color: var(--white) !important;
  padding: 8px 14px !important;
  border-radius: 4px;
  margin: 6px 0;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: #b45309 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 7px 12px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  margin: 8px 0;
}

/* News Ticker */
.news-ticker {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 8px 0;
}

.ticker-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-label {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.ticker-track span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}

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

@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Hero Slider */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.slide-controls {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
}

.slide-btn {
  background: rgba(15, 41, 92, 0.85);
  color: var(--white);
  border: 1px solid var(--gold);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 700;
}

/* Quick Stats Strip */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 22px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item {
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fde047;
}

.stat-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
}

/* Sections & Cards */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 28px;
  color: var(--navy);
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 8px auto 0;
  font-size: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-accent-top {
  border-top: 4px solid var(--navy);
}

.card-accent-gold {
  border-top: 4px solid var(--saffron);
}

.card h3 {
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 10px;
}

/* Notice Board & Principal Box */
.notice-list {
  list-style: none;
}

.notice-list li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-date {
  background: #eff6ff;
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.principal-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.principal-photo {
  width: 150px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

/* Page Banner for Inner Pages */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e40af 100%);
  color: var(--white);
  padding: 38px 0;
  border-bottom: 4px solid var(--gold);
}

.page-banner h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
}

.breadcrumb {
  font-size: 13px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #fde047;
}

/* Tables (Mandatory Disclosure, Staff, Fee, Results) */
.table-responsive {
  overflow-x: auto;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

tr:nth-child(even) {
  background: #f8fafc;
}

tr:hover {
  background: #eff6ff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-gold {
  background: var(--saffron);
  color: var(--white);
}

.btn-gold:hover {
  background: #b45309;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Gallery */
.gallery-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.gallery-caption {
  padding: 12px 15px;
}

.gallery-caption h4 {
  color: var(--navy);
  font-size: 15px;
}

.gallery-caption p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 46px 0 0;
  border-top: 4px solid var(--saffron);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 34px;
}

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

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 17px;
  line-height: 1.3;
}

.site-footer h4 {
  color: #fde047;
  font-size: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 14px;
}

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

.footer-bottom {
  background: #050f26;
  padding: 15px 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4, .stats-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    text-align: center;
  }
  .brand-box {
    flex-direction: column;
  }
  .header-badges {
    align-items: center;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu.open {
    display: flex;
  }
  .grid-2, .grid-3, .grid-4, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .principal-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .slide img {
    height: 260px;
  }
}
