/* ==========================================================
   Samridhi One — shared design system (teal + academic gold)
   Linked by every page. Page-specific components (course
   cards, portal table, hero graphics) stay inline per page.
   ========================================================== */
:root{
  --teal-900:  #0b3d36;
  --teal-800:  #0f4a41;
  --teal-700:  #12594f;
  --teal-500:  #1f7a6c;
  --teal-tint: #e3f2ee;
  --gold:      #c8932b;
  --gold-deep: #a97815;
  --gold-tint: #f7ecd3;
  --plum:      #4d3f72;
  --plum-tint: #ece8f5;
  --bg:        #f7f6f1;
  --ink:       #1c2b27;
  --muted:     #5f6f68;
  --card-text: #46534d;
  --card:      #ffffff;
  --border:    #dde6e1;
  --shadow-sm: 0 2px 10px rgba(11,61,54,0.08);
  --shadow-md: 0 10px 30px rgba(11,61,54,0.10);
  --shadow-lg: 0 18px 46px rgba(11,61,54,0.20);
  --node-color: 31,122,108;
}

*{margin:0; padding:0; box-sizing:border-box; font-family:'Plus Jakarta Sans', sans-serif;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.01ms !important; transition-duration:.01ms !important;}
}
body{background:var(--bg); color:var(--ink); position:relative;}
a{color:inherit;}
button{font-family:inherit; cursor:pointer;}
img{max-width:100%; display:block;}
p{line-height:1.75;}
h1, h2, h3{font-family:'Fraunces', serif;}
svg{flex-shrink:0;}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--teal-500);
  outline-offset:3px;
}

/* ---------- Header ---------- */
header{position:sticky; top:0; z-index:1000; background:rgba(247,246,241,0.92); backdrop-filter:blur(10px); box-shadow:var(--shadow-sm); transition:padding .25s ease;}
.nav-row{max-width:1200px; margin:0 auto; padding:16px 30px; display:flex; align-items:center; justify-content:space-between; gap:24px;}
header.shrink .nav-row{padding:10px 30px;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand img{width:38px; height:38px; object-fit:contain; border-radius:8px;}
.brand span{font-size:22px; font-weight:800; color:var(--teal-900); letter-spacing:-0.01em; font-family:'Plus Jakarta Sans', sans-serif;}
.nav-links{display:flex; align-items:center; gap:6px; list-style:none;}
.nav-links a{position:relative; display:block; padding:10px 16px; font-size:15px; font-weight:600; color:var(--ink); text-decoration:none; border-radius:30px; transition:background .2s ease, color .2s ease; white-space:nowrap;}
.nav-links a:hover{background:var(--teal-tint); color:var(--teal-900);}
.nav-links a.active{color:#fff; background:var(--teal-900);}
.header-cta{display:flex; align-items:center; gap:14px;}

.btn-apply{padding:12px 26px; border:none; border-radius:40px; background:var(--gold); color:#2a1d02; font-size:15px; font-weight:700; box-shadow:0 10px 24px rgba(200,147,43,0.35); transition:background .2s ease, transform .15s ease; white-space:nowrap; text-decoration:none; display:inline-block;}
.btn-apply:hover{background:var(--gold-deep); transform:translateY(-1px);}
.btn-ghost{padding:12px 24px; border-radius:40px; border:1.5px solid rgba(255,255,255,0.55); color:#fff; font-size:15px; font-weight:700; text-decoration:none; display:inline-block; transition:background .2s ease, border-color .2s ease; background:none;}
.btn-ghost:hover{background:rgba(255,255,255,0.12); border-color:#fff;}
.btn-secondary{padding:13px 24px; border-radius:30px; border:1.5px solid var(--teal-700); background:#fff; color:var(--teal-700); font-weight:700; font-size:14.5px; transition:background .2s ease, color .2s ease;}
.btn-secondary:hover{background:var(--teal-tint);}
.btn-submit{padding:15px; border:none; border-radius:40px; background:var(--teal-900); color:#fff; font-size:15.5px; font-weight:700; transition:background .2s ease, transform .15s ease;}
.btn-submit:hover{background:var(--teal-800); transform:translateY(-1px);}

.menu-btn{display:none; font-size:26px; color:var(--teal-900); background:none; border:none; line-height:1; padding:6px;}
@media (max-width:900px){ .nav-links{display:none;} .menu-btn{display:block;} }

/* ---------- Mobile drawer ---------- */
.drawer{position:fixed; top:0; right:-280px; width:270px; height:100%; background:var(--teal-900); padding:90px 0 30px; z-index:1300; transition:right .35s ease;}
.drawer.open{right:0;}
.drawer a{display:block; padding:16px 28px; color:#fff; text-decoration:none; font-size:16px; font-weight:600; border-bottom:1px solid rgba(255,255,255,0.1); transition:background .2s ease, padding-left .2s ease;}
.drawer a:hover{background:var(--teal-800); padding-left:36px;}
.drawer-close{position:absolute; top:20px; right:22px; background:none; border:none; color:#fff; font-size:26px;}
.overlay{position:fixed; inset:0; background:rgba(10,25,22,0.5); z-index:1200; display:none;}
.overlay.active{display:block;}

/* ---------- Page hero ---------- */
.page-hero{position:relative; overflow:hidden; background:linear-gradient(135deg, var(--teal-900), var(--teal-700)); color:#fff; border-radius:28px; max-width:1200px; margin:56px auto 0; box-shadow:var(--shadow-lg); padding:60px 50px;}
.page-hero::before{content:""; position:absolute; top:-130px; right:-110px; width:380px; height:380px; border-radius:50%; background:radial-gradient(circle at 35% 35%, rgba(200,147,43,0.35), transparent 70%);}
.page-hero-inner{position:relative; z-index:2;}
.page-hero.centered .page-hero-inner{max-width:720px; margin:0 auto; text-align:center;}
.page-hero h1{font-size:44px; font-weight:600; line-height:1.14; margin-bottom:18px;}
.page-hero p{font-size:17px; color:rgba(255,255,255,0.88); margin-bottom:14px;}
.page-hero p:last-of-type{margin-bottom:0;}
.hero-actions{display:flex; flex-wrap:wrap; gap:14px; margin-top:22px; justify-content:inherit;}
@media (max-width:860px){ .page-hero{padding:44px 26px; margin:32px 16px 0; border-radius:20px;} .page-hero h1{font-size:32px;} }

/* ---------- Trust badge strip ---------- */
.badge-strip{position:relative; z-index:3; max-width:1040px; margin:-46px auto 0; background:#fff; border-radius:20px; box-shadow:var(--shadow-md); display:flex; flex-wrap:wrap; justify-content:space-around; padding:22px 30px;}
.badge-item{display:flex; align-items:center; gap:10px; padding:6px 14px; font-size:14px; font-weight:700; color:var(--teal-900);}
.badge-item svg{width:20px; height:20px; color:var(--gold-deep);}
@media (max-width:860px){ .badge-strip{margin:-38px 16px 0; padding:18px 16px; gap:6px;} .badge-item{font-size:12.5px; padding:6px 8px;} }

/* ---------- Quick-link tiles ---------- */
.quick-tiles{max-width:1200px; margin:56px auto 0; padding:0 30px; display:grid; grid-template-columns:repeat(4, 1fr); gap:18px;}
.quick-tile{background:var(--card); border-radius:18px; box-shadow:var(--shadow-sm); padding:22px 18px; text-align:center; text-decoration:none; color:var(--ink); transition:transform .2s ease, box-shadow .2s ease;}
.quick-tile:hover{transform:translateY(-4px); box-shadow:var(--shadow-md);}
.quick-tile svg{width:26px; height:26px; margin:0 auto 10px; color:var(--teal-700);}
.quick-tile span{display:block; font-size:14px; font-weight:700;}
@media (max-width:700px){ .quick-tiles{grid-template-columns:repeat(2,1fr);} }

/* ---------- Section shell ---------- */
.section{max-width:1200px; margin:0 auto; padding:70px 30px;}
.section-eyebrow{text-align:center; color:var(--gold-deep); font-weight:700; font-size:14px; margin-bottom:8px;}
.section-title{text-align:center; font-size:36px; font-weight:600; color:var(--teal-900); margin-bottom:14px;}
.section-sub{text-align:center; max-width:720px; margin:0 auto 44px; color:var(--muted); line-height:1.8;}

/* ---------- Generic icon-card grid (about, why-us style) ---------- */
.grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:24px;}
.card{background:#fff; padding:30px 28px; border-radius:20px; box-shadow:var(--shadow-sm); border-top:4px solid var(--teal-500); transition:transform .25s ease, box-shadow .25s ease;}
.card:hover{transform:translateY(-6px); box-shadow:var(--shadow-md);}
.card-icon{width:46px; height:46px; border-radius:14px; background:var(--teal-tint); color:var(--teal-700); display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.card-icon svg{width:24px; height:24px;}
.card h3{color:var(--teal-900); margin-bottom:10px; font-size:18px; font-weight:600;}
.card p{color:var(--card-text); font-size:15px; margin:0;}

/* ---------- Forms (contact, portal, admission share this) ---------- */
.field{margin-bottom:18px;}
.field label{display:block; font-size:13.5px; font-weight:700; color:var(--teal-800); margin-bottom:6px;}
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border-radius:12px; border:1px solid var(--border);
  font-size:15px; outline:none; transition:border-color .2s ease, box-shadow .2s ease;
  background:#fff; color:var(--ink); font-family:inherit;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--teal-500); box-shadow:0 0 0 4px rgba(31,122,108,0.14);}
.field input[readonly]{background:var(--teal-tint); font-weight:700; color:var(--teal-900);}
.field textarea{resize:vertical; min-height:120px;}
.form-msg{margin-top:14px; font-size:14px; min-height:18px;}
.form-msg.ok{color:var(--teal-700);}
.form-msg.err{color:#b3261e;}

/* ---------- CTA band (reach-us style) ---------- */
.cta-band{background:linear-gradient(135deg, var(--teal-900), var(--teal-700)); border-radius:28px; color:#fff; padding:50px 40px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:20px;}
.cta-band h2{font-size:30px; font-weight:600;}
.cta-band p{color:rgba(255,255,255,0.85); max-width:560px;}
.cta-contacts{display:flex; flex-wrap:wrap; justify-content:center; gap:28px;}
.cta-contacts a{color:#fff; text-decoration:none; font-weight:600; display:inline-flex; align-items:center; gap:8px;}
.cta-contacts a:hover{text-decoration:underline;}

/* ---------- Back to top ---------- */
.to-top{position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%; background:var(--teal-900); color:#fff; border:none; font-size:18px; box-shadow:var(--shadow-md); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .25s ease, transform .2s ease; z-index:900;}
.to-top.show{opacity:1; pointer-events:auto;}
.to-top:hover{transform:translateY(-3px);}

/* ---------- Footer ---------- */
footer{background:var(--teal-900); color:#cdded8;}
.footer-top{max-width:1200px; margin:0 auto; padding:56px 30px 36px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px;}
.footer-col h4{color:#fff; font-size:15px; margin-bottom:16px; font-weight:700;}
.footer-col p{font-size:14px; line-height:1.7; color:#b7cbc4;}
.footer-col ul{list-style:none; display:flex; flex-direction:column; gap:10px;}
.footer-col a{font-size:14px; text-decoration:none; color:#cdded8; transition:color .2s ease;}
.footer-col a:hover{color:#fff;}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.footer-brand img{width:32px; height:32px; border-radius:8px;}
.footer-brand span{font-weight:800; color:#fff; font-size:18px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.12); padding:20px 30px; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; font-size:14px;}
.footer-bottom a{display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:#cdded8; font-weight:600; transition:color .2s ease;}
.footer-bottom a:hover{color:#fff;}
@media (max-width:860px){ .footer-top{grid-template-columns:1fr 1fr; gap:30px;} }
@media (max-width:520px){ .footer-top{grid-template-columns:1fr;} }

/* ---------- Ambient network background (home page) ---------- */
#bgCanvas{position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:0.5;}
.bg-glow{position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(560px circle at 12% 8%, rgba(31,122,108,0.10), transparent 60%),
    radial-gradient(620px circle at 92% 78%, rgba(11,61,54,0.09), transparent 62%);
  animation:driftGlow 22s ease-in-out infinite alternate;
}
@keyframes driftGlow{ 0%{background-position:0 0, 0 0;} 100%{background-position:40px 30px, -30px -40px;} }
header, main, footer{position:relative; z-index:1;}
@media (prefers-reduced-motion: reduce){ #bgCanvas{opacity:0.32;} .bg-glow{animation:none;} }
@media (max-width:600px){ #bgCanvas{opacity:0.35;} }
