/* =============================================
   E-Vidya Academy — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Sanskrit&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary:    #1a4f8a;
  --accent:     #f4a61c;
  --dark:       #0d1b2a;
  --light:      #f5f8fc;
  --text:       #2c3e50;
  --muted:      #6c7a89;
  --border:     #d5e3f0;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(26,79,138,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  background: var(--primary);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 1rem 0;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav-brand-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ── HERO BANNER ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 60%, #1b6ca8 100%);
  color: var(--white);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  position: relative;
  margin-bottom: 0.6rem;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.8;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.page-hero .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  position: relative;
}

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.container.wide { max-width: 1100px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.75rem;
}

.card h2 {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card h2 .icon {
  background: #e8f1fb;
  color: var(--primary);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card p { margin-bottom: 0.85rem; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 1.4rem; margin-bottom: 0.85rem; }
.card li { margin-bottom: 0.4rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.highlight-box {
  background: #e8f1fb;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.highlight-box.warning {
  background: #fff8e7;
  border-color: var(--accent);
}

.effective-date {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding: 0.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--light);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
}

.contact-item .ci-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-item a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.9;
}

footer strong { color: var(--white); }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  nav { flex-direction: column; padding: 0.75rem 1rem; gap: 0.5rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .container { padding: 2rem 1rem; }
  .card { padding: 1.25rem; }
}
