/* =============================================================
   SPHL Assam — Modern Gradient Design System v2
   Deep Blue → Teal | Glassmorphism | Smooth Animations
   ============================================================= */

/* --- Reset & Base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core gradient palette — Theme: Ocean (default) */
  --g-start:    #0b2545;
  --g-mid:      #134b7a;
  --g-end:      #0e8c8c;
  --g-accent:   #00c9b1;
  --g-gold:     #f5c842;

  /* UI colours */
  --blue:       #0b2545;
  --blue-light: #1a6fa8;
  --blue-pale:  #dff4f4;
  --teal:       #0e8c8c;
  --teal-light: #00c9b1;
  --accent:     #e05252;

  /* Text & surfaces */
  --text:       #1a1a2e;
  --text-light: #4a5568;
  --muted:      #718096;
  --border:     #e2e8f0;
  --bg:         #f7fafc;
  --bg-alt:     #eef6f6;
  --white:      #ffffff;
  --card-bg:    rgba(255,255,255,0.85);

  /* Gradients */
  --grad-main:  linear-gradient(135deg, #0b2545 0%, #134b7a 50%, #0e8c8c 100%);
  --grad-hero:  linear-gradient(135deg, #0b2545 0%, #0e4f7a 40%, #0a7f7f 100%);
  --grad-card:  linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(223,244,244,0.7) 100%);
  --grad-teal:  linear-gradient(135deg, #0e8c8c 0%, #00c9b1 100%);
  --grad-gold:  linear-gradient(135deg, #f5c842 0%, #f0a500 100%);

  /* Layout */
  --max-w:      1140px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(11,37,69,.08);
  --shadow:     0 8px 32px rgba(11,37,69,.12);
  --shadow-lg:  0 20px 60px rgba(11,37,69,.18);
  --glass:      rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.2);
  /* Header colour used in media queries */
  --header-bg:  rgba(11,37,69,0.97);
  --header-bg-solid: rgba(11,37,69,0.98);
}

/* ============================================================
   Theme: Forest — Deep Green + Gold (Assam Tea Garden palette)
   ============================================================ */
[data-theme="forest"] {
  --g-start:    #1a3d2b;
  --g-mid:      #246b40;
  --g-end:      #2e9e5e;
  --g-accent:   #f5c842;
  --g-gold:     #e8950f;

  --blue:       #1a3d2b;
  --blue-light: #2d7a47;
  --blue-pale:  #e4f4ea;
  --teal:       #246b40;
  --teal-light: #2e9e5e;
  --accent:     #e05252;

  --bg:         #f5faf6;
  --bg-alt:     #eaf4ee;
  --border:     #d4e8db;
  --card-bg:    rgba(255,255,255,0.88);

  --grad-main:  linear-gradient(135deg, #1a3d2b 0%, #246b40 50%, #2e9e5e 100%);
  --grad-hero:  linear-gradient(135deg, #1a3d2b 0%, #1e5535 40%, #267a4a 100%);
  --grad-card:  linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(228,244,234,0.7) 100%);
  --grad-teal:  linear-gradient(135deg, #246b40 0%, #2e9e5e 100%);
  --grad-gold:  linear-gradient(135deg, #f5c842 0%, #e8950f 100%);

  --shadow-sm:  0 2px 8px rgba(26,61,43,.08);
  --shadow:     0 8px 32px rgba(26,61,43,.13);
  --shadow-lg:  0 20px 60px rgba(26,61,43,.2);
  --glass:      rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.22);
  --header-bg:  rgba(26,61,43,0.97);
  --header-bg-solid: rgba(26,61,43,0.98);
}

/* ============================================================
   Theme: Dark — Midnight / Space Dark
   ============================================================ */
[data-theme="dark"] {
  /* Keep the teal/ocean gradient for hero & header but go darker */
  --g-start:    #060d1a;
  --g-mid:      #0b1f3a;
  --g-end:      #0a5a5a;
  --g-accent:   #00e5cc;
  --g-gold:     #ffd166;

  /* Interactive colours — lighter so they read on dark surfaces */
  --blue:       #7ecec4;
  --blue-light: #4db8ad;
  --blue-pale:  #0d1f2d;
  --teal:       #00c9b1;
  --teal-light: #00e5cc;
  --accent:     #ff6b6b;

  /* Surfaces — dark backgrounds, light text */
  --text:       #e2e8f0;
  --text-light: #94a3b8;
  --muted:      #64748b;
  --border:     #1e2d3d;
  --bg:         #0a0e1a;
  --bg-alt:     #0f1625;
  --white:      #111827;
  --card-bg:    rgba(17,24,39,0.96);

  --grad-main:  linear-gradient(135deg, #060d1a 0%, #0b1f3a 50%, #0a5a5a 100%);
  --grad-hero:  linear-gradient(135deg, #060d1a 0%, #091830 40%, #083d3d 100%);
  --grad-card:  linear-gradient(135deg, rgba(17,24,39,0.96) 0%, rgba(10,14,26,0.85) 100%);
  --grad-teal:  linear-gradient(135deg, #009688 0%, #00e5cc 100%);
  --grad-gold:  linear-gradient(135deg, #ffd166 0%, #f4a400 100%);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.5);
  --shadow:     0 8px 32px rgba(0,0,0,.6);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.7);
  --glass:      rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --header-bg:       rgba(6,10,22,0.98);
  --header-bg-solid: rgba(6,10,22,0.99);
}

/* Dark-theme tweaks that can't be done via variables alone */
[data-theme="dark"] .card,
[data-theme="dark"] .post-item,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .blog-card { background: var(--card-bg); border-color: var(--border); }

[data-theme="dark"] .blog-card h3 a,
[data-theme="dark"] .contact-card h4,
[data-theme="dark"] .section h2,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .post-header h1,
[data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--blue); }

[data-theme="dark"] .post-item h2 a { color: var(--blue); }
[data-theme="dark"] .post-item h2 a:hover { color: var(--teal-light); }

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background: #0f1625; color: var(--text); border-color: var(--border); }

[data-theme="dark"] .fee-step,
[data-theme="dark"] .fee-option,
[data-theme="dark"] .test-item,
[data-theme="dark"] .fee-summary { background: var(--card-bg); border-color: var(--border); color: var(--text); }

[data-theme="dark"] .notice-box,
[data-theme="dark"] blockquote { background: rgba(17,24,39,.9); border-color: var(--border); }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--g-end); }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

/* --- Top Bar ----------------------------------------------- */
.topbar {
  background: var(--g-start);
  color: rgba(255,255,255,.75);
  font-size: .83rem;
  padding: .5rem 1.5rem;
  text-align: right;
  letter-spacing: .01em;
}
.topbar a { color: var(--g-accent); font-weight: 600; }
.topbar a:hover { color: #fff; }

/* --- Header ------------------------------------------------- */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.site-logo img {
  height: 58px;
  width: auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.15);
  display: block;
}
.site-logo-text { display: none; }

/* --- Theme Toggle Button ----------------------------------- */
#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad-teal);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s, background .4s;
}
#theme-toggle:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
#theme-toggle title { display: none; }
/* Tooltip label */
#theme-toggle::after {
  content: attr(data-label);
  position: absolute;
  right: 56px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .75rem;
  white-space: nowrap;
  padding: .3rem .6rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#theme-toggle:hover::after { opacity: 1; }

/* --- Navigation -------------------------------------------- */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: .15rem;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  padding: .45rem .9rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: background .18s, color .18s;
  letter-spacing: .01em;
}
nav ul li a:hover,
nav ul li a.active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,201,177,.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 8px;
  padding: .4rem .7rem;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

/* --- Hero --------------------------------------------------- */
.hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,201,177,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(20,107,180,.2) 0%, transparent 50%);
  pointer-events: none;
}
/* Animated mesh pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: .5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero h1 .accent-line {
  display: block;
  background: linear-gradient(90deg, var(--g-accent), var(--g-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-style: italic;
  opacity: .82;
  margin: .75rem auto 1.5rem;
  font-size: 1rem;
  max-width: 620px;
}
.hero .intro {
  font-size: 1.08rem;
  opacity: .9;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero stat strip */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  position: relative;
  z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--g-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat .label { font-size: .82rem; opacity: .7; margin-top: .3rem; letter-spacing: .04em; text-transform: uppercase; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .18s, box-shadow .18s, filter .18s;
  box-shadow: 0 4px 20px rgba(0,201,177,.35);
  border: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,201,177,.45);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  box-shadow: none;
  filter: none;
}
.btn-dark {
  background: var(--grad-main);
  box-shadow: 0 4px 20px rgba(11,37,69,.3);
}
.btn-dark:hover { box-shadow: 0 8px 30px rgba(11,37,69,.4); }

/* --- Feature Cards ----------------------------------------- */
.features {
  background: var(--bg-alt);
  padding: 5rem 1.5rem;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-teal);
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--blue); margin-bottom: .5rem; }
.section-header p { color: var(--muted); max-width: 540px; margin: 0 auto; }
.section-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--grad-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-teal);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px; height: 56px;
  background: var(--grad-main);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(11,37,69,.2);
}
.card h3 { color: var(--blue); margin-bottom: .5rem; }
.card p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* --- Accreditation Strip ------------------------------------ */
.accred-strip {
  background: var(--grad-main);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.accred-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,201,177,.12) 0%, transparent 60%);
}
.accred-strip > * { position: relative; z-index: 1; }
.accred-strip h2 { color: #fff; margin-bottom: 1rem; }
.accred-strip p { opacity: .88; max-width: 760px; margin: 0 auto 1.5rem; line-height: 1.7; }
.accred-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: .6rem 1.4rem;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}
.accred-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.accred-links a {
  background: var(--glass);
  color: #fff;
  padding: .6rem 1.3rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  font-size: .9rem;
  font-weight: 500;
  transition: background .18s, transform .18s;
  backdrop-filter: blur(8px);
}
.accred-links a:hover {
  background: rgba(255,255,255,.22);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- Main Layout ------------------------------------------- */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.page-content { min-width: 0; }

/* --- Page Hero (inner pages) -------------------------------- */
.page-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 80%, rgba(0,201,177,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(20,107,180,.12) 0%, transparent 50%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero > div { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .35rem; }
.page-hero .breadcrumb { font-size: .85rem; opacity: .7; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: var(--g-accent); }

/* --- Sections --------------------------------------------- */
.section { margin-bottom: 2.75rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; margin-bottom: 0; }
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 20px;
  margin-bottom: .7rem;
}

/* --- Tables ----------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th {
  background: var(--grad-main);
  color: #fff;
  padding: .8rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: .9rem;
}
td { padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--bg-alt); }
tr:hover td { background: var(--blue-pale); }

/* --- Download Links --------------------------------------- */
.download-list { list-style: none; padding: 0; }
.download-list li { margin-bottom: .65rem; }
.download-list a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--grad-card);
  border: 1px solid var(--border);
  padding: .6rem 1.15rem;
  border-radius: 50px;
  color: var(--blue);
  font-weight: 600;
  font-size: .92rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.download-list a::before { content: "⬇"; font-size: .85rem; opacity: .7; }
.download-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
  background: var(--blue-pale);
}

/* --- Notice Banner ---------------------------------------- */
.notice {
  background: linear-gradient(135deg, #fffbeb, #fef3cd);
  border-left: 4px solid #f0a500;
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  font-size: .94rem;
  box-shadow: var(--shadow-sm);
}

/* --- Staff List ------------------------------------------- */
.staff-list { list-style: none; padding: 0; }
.staff-list li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: baseline;
}
.staff-list li:last-child { border-bottom: none; }
.staff-name { font-weight: 700; color: var(--blue); }
.staff-role { color: var(--muted); font-size: .9rem; }

/* --- Contact Cards ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.contact-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-teal);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .icon { font-size: 1.75rem; margin-bottom: .6rem; }
.contact-card h4 { color: var(--blue); margin-bottom: .4rem; }

/* --- Contact Form ----------------------------------------- */
.contact-form { max-width: 580px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .93rem; color: var(--blue); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,140,140,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--grad-main);
  color: #fff;
  border: none;
  padding: .8rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 20px rgba(11,37,69,.25);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(11,37,69,.35); }

/* --- Sidebar ---------------------------------------------- */
.sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
  color: var(--blue);
  font-size: .95rem;
  padding-bottom: .6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--blue-pale);
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.recent-posts { list-style: none; padding: 0; }
.recent-posts li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.recent-posts li:last-child { border-bottom: none; }
.recent-posts a { color: var(--blue); font-weight: 500; }
.recent-posts a:hover { color: var(--teal); }
.recent-posts .post-date { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }

/* --- Post List (Notices page) ----------------------------- */
.post-list { list-style: none; padding: 0; }
.post-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.post-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-teal);
  border-radius: 4px 0 0 4px;
}
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-item h2 { font-size: 1.2rem; margin-bottom: .35rem; color: var(--blue); }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.post-meta .cat-tag {
  background: var(--blue-pale);
  color: var(--teal);
  padding: .1rem .6rem;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 700;
  margin-left: .4rem;
}
.read-more { font-size: .9rem; font-weight: 700; color: var(--teal); }
.read-more:hover { color: var(--g-end); }

/* --- Single Post ------------------------------------------ */
.post-header { margin-bottom: 2rem; }
.post-header h1 { color: var(--blue); margin-bottom: .4rem; }
.post-body { font-size: 1.01rem; }
.post-body h2, .post-body h3 { margin-top: 1.75rem; margin-bottom: .5rem; color: var(--blue); }

/* --- Blog Grid -------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  position: relative;
}
.blog-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-teal);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-type {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-bottom: .7rem;
}
.type-article { background: linear-gradient(135deg,#d5f5e3,#a8e6d3); color: #0a5c3c; }
.type-poem    { background: linear-gradient(135deg,#fdebd0,#f9c584); color: #7d3a0a; }
.type-essay   { background: linear-gradient(135deg,#e8daef,#d5a8e0); color: #5b1b7a; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: .4rem; line-height: 1.35; }
.blog-card h3 a { color: var(--blue); }
.blog-card h3 a:hover { color: var(--teal); text-decoration: none; }
.blog-card .author { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.blog-card p { font-size: .91rem; color: var(--text-light); flex: 1; margin-bottom: 1rem; }
.blog-card .read-more { font-size: .88rem; font-weight: 700; color: var(--teal); margin-top: auto; }

/* Blog filter tabs */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--blue);
  transition: all .18s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--grad-teal);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,201,177,.3);
}

/* Blog post extras */
.blog-post-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.75rem; }
.blog-post-meta .author-name { font-weight: 700; color: var(--blue); }
.blog-post-meta .author-role { color: var(--muted); font-size: .9rem; }
.blog-body { font-size: 1.01rem; line-height: 1.82; }
.blog-body h2, .blog-body h3 { color: var(--blue); margin-top: 2rem; margin-bottom: .6rem; }
.blog-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  background: var(--blue-pale);
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--blue);
}
.poem-body {
  font-size: 1.1rem;
  line-height: 2.1;
  font-family: Georgia, 'Times New Roman', serif;
  white-space: pre-line;
  background: linear-gradient(135deg, var(--bg-alt), var(--blue-pale));
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--teal);
  color: var(--blue);
}
.assamese-text { font-family: 'Noto Sans Bengali', 'Vrinda', sans-serif; }

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--grad-main);
  color: rgba(255,255,255,.8);
  padding: 3rem 1.5rem 1.25rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,201,177,.08) 0%, transparent 60%);
  pointer-events: none;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links-title { font-size:.72rem; color:rgba(255,255,255,.45); text-transform:uppercase; letter-spacing:.07em; margin-bottom:.65rem; }
.footer-imp-links { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.55rem; }
.footer-imp-links a { font-size:.85rem; color:rgba(255,255,255,.75); text-decoration:none; transition:color .2s; white-space:nowrap; display:flex; align-items:center; gap:.55rem; }
.footer-imp-links a:hover { color:var(--g-accent); }
.footer-imp-links a:hover .fi { background:rgba(0,201,177,.25); }
.footer-imp-links .fi { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; background:rgba(255,255,255,.12); border-radius:6px; flex-shrink:0; transition:background .2s; }
.footer-imp-links .fi img { width:16px; height:16px; border-radius:2px; }

/* --- Testimonials / Public Feedback ----------------------------- */
.testimonials {
  background: var(--bg-alt);
  padding: 4rem 1.5rem;
  text-align: center;
}
.testimonials .section-header { margin-bottom: 2.5rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto 1.5rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.review-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: .05em; }
.review-text {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-light);
  flex: 1;
}
.review-text::before { content: '\201C'; font-size: 1.6rem; line-height: 0; vertical-align: -0.4em; color: var(--g-accent); margin-right: .15em; }
.review-text::after  { content: '\201D'; font-size: 1.6rem; line-height: 0; vertical-align: -0.4em; color: var(--g-accent); margin-left: .15em; }
.review-author { display: flex; align-items: center; gap: .6rem; margin-top: .25rem; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: .88rem; color: var(--blue); }
.review-meta { font-size: .78rem; color: var(--muted); }
.testimonials-source {
  font-size: .8rem;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: .5rem;
}
.testimonials-source a { color: var(--teal); text-decoration: none; }
.testimonials-source a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.footer-brand p { font-size: .9rem; opacity: .72; max-width: 380px; margin-top: .5rem; line-height: 1.6; }
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.footer-logo img {
  height: 44px;
  width: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.footer-logo-name { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}
.footer-nav a {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  padding: .25rem .65rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.footer-nav a:hover { color: #fff; background: var(--glass); }
.footer-copy {
  font-size: .82rem;
  opacity: .6;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-copy a { color: var(--g-accent); }
.footer-copy a:hover { color: #fff; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  /* Blog: 2 columns on tablet/small desktop instead of jumping 4→1 */
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
/* Nav + topbar: hide on phones, show full nav on tablets (768px+) */
@media (max-width: 767px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; order: 3; }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    padding: .5rem 0 .75rem;
    gap: 0;
    background: var(--header-bg-solid);
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: .5rem;
  }
  nav ul li a {
    border-radius: 0;
    padding: .7rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .header-inner { flex-wrap: wrap; }
  .hero { padding: 4rem 1.25rem 3rem; }
  /* Hero stats: compact 3-column grid on phone */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
  }
  .hero .intro { font-size: .97rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .accred-links { flex-direction: column; align-items: stretch; max-width: 320px; margin: 1.5rem auto 0; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  /* Contact: 1 column on phone so address text has room to breathe */
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
