/* ============================================
   Digital School System — Global Styles
   Theme: TestSetu warm pastels
   ============================================ */

:root {
  --blue-pale:   #D9ECFD;
  --cream:       #F6E6C8;
  --pink:        #D5A6BD;
  --yellow:      #FFE599;
  --navy:        #0D1B4B;
  --blue-mid:    #1A3A8C;
  --blue-accent: #0EA5C9;
  --blue-deep:   #0369A1;
  --gray-light:  #F0F5FF;
  --white:       #FFFFFF;
  --text-dark:   #1a1a2e;
  --text-mid:    #3d4566;
  --text-muted:  #6b7280;
  --shadow-sm:   0 2px 8px rgba(13,27,75,.08);
  --shadow-md:   0 4px 20px rgba(13,27,75,.12);
  --shadow-lg:   0 8px 40px rgba(13,27,75,.16);
  --radius:      12px;
  --radius-lg:   20px;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-mid); }
a  { text-decoration: none; color: inherit; }

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(13,27,75,.1);
  box-shadow: var(--shadow-sm);
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  white-space: nowrap;
}
.navbar-brand .logo-dot {
  width: 32px; height: 32px;
  background: var(--blue-accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-pale);
  color: var(--navy);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--navy);
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(14,165,201,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(26,58,140,.25) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 780px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero p  { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2.2rem; }
.hero-badge {
  display: inline-block;
  background: rgba(14,165,201,.25);
  border: 1px solid rgba(14,165,201,.4);
  color: #7dd3fc;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--blue-accent); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}
.page-hero h1 { margin-bottom: .8rem; }
.page-hero p  { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Section Wrappers ── */
.section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  max-width: 600px;
  margin: .8rem auto 0;
  font-size: 1.05rem;
}
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: .7rem;
}

/* Pastel section backgrounds */
.bg-blue-pale  { background: var(--blue-pale); }
.bg-cream      { background: var(--cream); }
.bg-pink       { background: var(--pink); }
.bg-yellow     { background: var(--yellow); }
.bg-gray       { background: var(--gray-light); }
.bg-white      { background: var(--white); }
.bg-navy       { background: var(--navy); }

/* Tag colors */
.tag-blue   { background: rgba(14,165,201,.15); color: var(--blue-deep); }
.tag-pink   { background: rgba(213,166,189,.35); color: #7b3d5e; }
.tag-yellow { background: rgba(255,229,153,.6);  color: #7a5c00; }
.tag-cream  { background: rgba(246,230,200,.6);  color: #7a5830; }
.tag-green  { background: rgba(34,197,94,.15);   color: #166534; }
.tag-navy   { background: rgba(13,27,75,.12);    color: var(--navy); }

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p  { font-size: .95rem; }

/* icon bg variants */
.icon-blue   { background: var(--blue-pale); }
.icon-pink   { background: var(--pink); background: rgba(213,166,189,.35); }
.icon-yellow { background: rgba(255,229,153,.5); }
.icon-cream  { background: var(--cream); }
.icon-green  { background: rgba(187,247,208,.5); }
.icon-navy   { background: rgba(13,27,75,.08); }

/* ── Role Cards ── */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.role-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.role-card.admin    { border-top-color: var(--navy); }
.role-card.teacher  { border-top-color: var(--blue-mid); }
.role-card.student  { border-top-color: var(--blue-accent); }
.role-card.parent   { border-top-color: var(--blue-deep); }

.role-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.role-card.admin   .role-avatar { background: rgba(13,27,75,.1); }
.role-card.teacher .role-avatar { background: rgba(26,58,140,.1); }
.role-card.student .role-avatar { background: rgba(14,165,201,.15); }
.role-card.parent  .role-avatar { background: rgba(3,105,161,.1); }

.role-card ul { list-style: none; margin-top: .8rem; }
.role-card ul li {
  font-size: .9rem;
  color: var(--text-mid);
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex; align-items: flex-start; gap: 6px;
}
.role-card ul li::before { content: '✓'; color: var(--blue-accent); font-weight: 700; flex-shrink: 0; }

/* ── Numbered Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
  width: 40px; height: 40px;
  background: var(--blue-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: .5rem; }
.step-card p  { font-size: .9rem; }

/* ── Two-column feature blocks ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.feature-block h3 { margin-bottom: 1rem; }
.feature-block ul { list-style: none; }
.feature-block ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .95rem;
  color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 8px;
}
.feature-block ul li::before { content: '→'; color: var(--blue-accent); font-weight: 700; flex-shrink: 0; }

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
  background: var(--navy);
}
.stat-item { text-align: center; }
.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--blue-accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* ── Security Compliance List ── */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}
.compliance-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  font-size: .95rem; font-weight: 500; color: var(--text-dark);
}
.compliance-item .icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  font-size: .9rem;
}
.footer a { color: var(--blue-accent); }
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-bottom: 1.2rem;
  list-style: none;
}
.footer-nav a { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-nav a:hover { color: var(--white); }

/* ── Overview Grid (homepage) ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.overview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s, box-shadow .2s;
}
.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.overview-card a.learn-more {
  margin-top: auto; padding-top: .8rem;
  font-size: .88rem; font-weight: 600; color: var(--blue-accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.overview-card a.learn-more:hover { gap: 8px; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 1rem; box-shadow: var(--shadow-md); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .feature-split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-bar { gap: 2rem; }
}
