/* ============================================================
   SchoolUtility.com — Shared Theme
   Mobile-first, modern, accessible. Used by every page.
   ============================================================ */

:root {
  --primary: #1e3a8a;       /* deep indigo */
  --primary-700: #1d3578;
  --secondary: #3b82f6;     /* bright blue */
  --accent: #ec4899;        /* magenta */
  --accent-600: #db2777;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f6f8fc;
  --card: #ffffff;

  --grad-brand: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #6366f1 100%);
  --grad-accent: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(30, 58, 138, .18);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.odia, .odia-font { font-family: 'Noto Sans Oriya', 'Poppins', sans-serif; }

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

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

.su-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */
.su-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(17, 24, 60, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.su-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.su-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.2rem; color: #fff; letter-spacing: -.02em;
}
.su-brand .dot { color: var(--accent); }
.su-brand .emoji { font-size: 1.45rem; }

.su-burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.su-burger span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.su-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.su-burger.open span:nth-child(2) { opacity: 0; }
.su-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.su-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.su-menu a {
  color: rgba(255, 255, 255, .82); font-weight: 500; font-size: .94rem;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.su-menu a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.su-menu a.active { color: #fff; background: rgba(255, 255, 255, .16); }

@media (max-width: 900px) {
  .su-burger { display: inline-flex; }
  .su-menu {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(17, 24, 60, .98);
    padding: 12px 16px 18px;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .su-menu.open { max-height: 80vh; }
  .su-menu a { padding: 12px 14px; font-size: 1rem; }
}
@media (min-width: 901px) { .su-burger { display: none; } }

/* keep fixed header from covering content */
body { padding-top: 66px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  border: 0; border-radius: 12px; padding: 12px 22px; font-size: .98rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(59,130,246,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(59,130,246,.45); color: #fff; }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 22px rgba(236,72,153,.35); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(236,72,153,.5); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.su-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-brand);
  padding: 86px 0 96px;
}
.su-hero::before, .su-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35;
}
.su-hero::before { width: 420px; height: 420px; background: #6366f1; top: -120px; right: -80px; }
.su-hero::after { width: 320px; height: 320px; background: var(--accent); bottom: -140px; left: -60px; opacity: .25; }
.su-hero .su-container { position: relative; z-index: 2; }
.su-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  margin-bottom: 18px;
}
.su-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px;
}
.su-hero p { font-size: clamp(1rem, 2.4vw, 1.18rem); opacity: .92; max-width: 620px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .kicker { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Card grid ---------- */
.su-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.su-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.su-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.su-card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: var(--grad-brand); margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(59,130,246,.3);
}
.su-card h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.su-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; flex: 1; }

/* ---------- Prose / legal pages ---------- */
.su-prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow-sm); }
.su-prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 6px; letter-spacing: -.02em; }
.su-prose .lead { color: var(--muted); margin-bottom: 26px; }
.su-prose h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--primary); }
.su-prose p { color: #334155; margin-bottom: 12px; }
.su-prose a { color: var(--secondary); font-weight: 500; }
.su-page-head { padding: 54px 0 18px; text-align: center; }
.su-page-head .kicker { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }

/* ---------- Footer ---------- */
.su-footer { background: #0b1224; color: #cbd5e1; padding: 58px 0 24px; }
.su-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.su-footer .f-brand { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.su-footer .f-brand .dot { color: var(--accent); }
.su-footer ul { list-style: none; }
.su-footer li { margin-bottom: 9px; }
.su-footer a { color: #cbd5e1; transition: color .2s; }
.su-footer a:hover { color: #fff; }
.su-foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.su-social { display: flex; gap: 10px; margin-top: 14px; }
.su-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s;
}
.su-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.su-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; color: #94a3b8; font-size: .9rem; }

@media (max-width: 820px) { .su-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .su-foot-grid { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px;
}
