/* ============================================================
   Mahila Samarth Sansthan Award — Public Portal Stylesheet
   Complements Bootstrap 5.3 — DO NOT duplicate Bootstrap utilities
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --primary: #000080;
  --primary-dark: #00005a;
  --primary-light: #1a1aaa;
  --secondary: #d8251e;
  --secondary-dark: #a81b15;
  --accent: #c9952c;
  --accent-light: #f4d58d;

  --text: #1a2332;
  --text-muted: #546878;
  --border: #dde4ec;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --focus: #2563eb;

  --nav-h: 56px;
  --header-h: 88px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 128, .08);
  --shadow-md: 0 4px 20px rgba(0, 0, 128, .12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 128, .16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

img {
  max-width: 100%;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 9999;
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top .2s;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   HEADER
   ================================================================ */
.top-banner {
  background: linear-gradient(135deg, #fffbf0 0%, #fff3d4 100%) !important;
  border-bottom: 3px solid var(--accent) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.site-title {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary) !important;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.brand-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: none;
  /* mobile toggle bar hidden on desktop */
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  margin: 8px 16px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  content: "";
  margin: 0 auto;
}

.menu-icon::before {
  transform: translateY(-7px);
}

.menu-icon::after {
  transform: translateY(5px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0, 0, 128, .35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--nav-h);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a,
.login-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  letter-spacing: .01em;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.nav-list a.active {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
}

.login-button {
  background: var(--secondary);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(216, 37, 30, .4);
}

.login-button:hover {
  background: var(--secondary-dark);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(216, 37, 30, .5);
  transform: translateY(-1px);
}

/* ================================================================
   EYEBROW / SECTION LABELS
   ================================================================ */
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  color: var(--secondary);
  background: rgba(216, 37, 30, .08);
  border: 1px solid rgba(216, 37, 30, .2);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #f8faff 0%, #eaf0ff 50%, #f0f4fb 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 0, 128, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216, 37, 30, .04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: 500px;
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(0, 0, 128, .08), rgba(0, 0, 128, .04));
  border: 1px solid rgba(0, 0, 128, .15);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge i {
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.08;
  color: var(--primary-dark);
  font-weight: 900;
  letter-spacing: -.02em;
}

.hero h1 .highlight {
  color: var(--secondary);
  position: relative;
}

.hero .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

/* ── Notice Panel ── */
.notice-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--accent);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.notice-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(201, 149, 44, .08), transparent 70%);
  pointer-events: none;
}

.notice-panel .notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e6b040);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(201, 149, 44, .35);
}

.notice-panel .notice-icon.success {
  background: linear-gradient(135deg, #198754, #20c997);
  box-shadow: 0 4px 12px rgba(25, 135, 84, .35);
}

.notice-panel .notice-icon.info {
  background: linear-gradient(135deg, #0dcaf0, #0d6efd);
  box-shadow: 0 4px 12px rgba(13, 202, 240, .35);
}

.notice-panel .notice-icon.muted {
  background: linear-gradient(135deg, #6c757d, #adb5bd);
  box-shadow: 0 4px 12px rgba(108, 117, 125, .35);
}

.status-label {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

.status-label.success {
  color: #198754;
}

.status-label.info {
  color: #0d6efd;
}

.status-label.muted {
  color: #6c757d;
}

.notice-panel p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ================================================================
   STAT COUNTERS SECTION
   ================================================================ */
.stats-section {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: -32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 0, 128, .1), rgba(0, 0, 128, .06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--primary);
  font-size: 1.3rem;
}

.stat-card strong {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-card span {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================================================================
   GENERIC SECTIONS
   ================================================================ */
.section {
  padding: 30px 0;
}

.section.bg-muted {
  background: var(--surface-2);
}

.section.bg-white {
  background: var(--surface);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--primary-dark);
}

.section-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  margin: 14px 0 0;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin: 4px;
  transition: var(--transition);
}

.feature-pill i {
  color: var(--primary);
}

.feature-pill:hover {
  background: rgba(0, 0, 128, .05);
  border-color: rgba(0, 0, 128, .2);
}

/* ================================================================
   AWARD CATEGORIES CARDS
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.award-card-num {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 128, .07);
  position: absolute;
  top: 12px;
  right: 16px;
  pointer-events: none;
}

.award-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.award-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-family: 'Inter', sans-serif;
}

.award-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: auto;
}

.award-card .text-link {
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.award-card .text-link:hover {
  color: var(--secondary);
}

.award-card .text-link i {
  font-size: .75rem;
  transition: transform .2s;
}

.award-card .text-link:hover i {
  transform: translateX(4px);
}

.award-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 128, .15);
}

.award-card:hover .award-card-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

/* ================================================================
   PRIZE TABLE
   ================================================================ */
.prize-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prize-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.prize-table-wrap caption {
  padding: 14px 20px;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.prize-table-wrap th {
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  text-align: left;
  letter-spacing: .02em;
  border: none;
}

.prize-table-wrap td {
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: .925rem;
  color: var(--text);
}

.prize-table-wrap tbody tr:nth-child(1) td {
  font-weight: 700;
  color: var(--accent);
}

.prize-table-wrap tbody tr:nth-child(2) td {
  color: var(--text-muted);
}

.prize-table-wrap tbody tr:hover td {
  background: rgba(0, 0, 128, .02);
}

.prize-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

/* Generic table fallback */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

caption {
  padding: 8px 0;
  color: var(--text-muted);
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--primary-dark);
}

/* ================================================================
   EVALUATION FRAMEWORK GRID
   ================================================================ */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.score-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.score-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(216, 37, 30, .3);
}

.score-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.total-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 28px;
  box-shadow: 0 4px 16px rgba(216, 37, 30, .3);
}

/* ================================================================
   APPLICATION PROCESS LIST
   ================================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  padding: 24px 18px 18px;
  min-height: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
}

.process-list li::before {
  counter-increment: steps;
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.process-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--secondary);
}

/* ================================================================
   TIMELINE TABLE
   ================================================================ */
.timeline-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timeline-table-wrap table {
  min-width: 0;
}

.timeline-table-wrap th {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 20px;
  font-size: .875rem;
  letter-spacing: .02em;
  border: none;
}

.timeline-table-wrap td {
  padding: 13px 20px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.timeline-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.timeline-table-wrap tbody tr:hover td {
  background: rgba(0, 0, 128, .02);
}

/* ================================================================
   FINAL CTA SECTION
   ================================================================ */
.final-cta {
  padding: 72px 0;
  background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary) 60%, #1a1aaa 100%);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(216, 37, 30, .15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin: 0;
}

.final-cta p {
  color: rgba(255, 255, 255, .7);
  margin-top: 8px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(216, 37, 30, .35);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 37, 30, .45);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transform: translateY(-2px);
}

.button.disabled,
.button[disabled] {
  opacity: 0.65;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

/* On white background secondary */
.hero .button.secondary,
.hero-cta .button.secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.hero .button.secondary:hover {
  background: var(--surface-2);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.disabled {
  cursor: not-allowed !important;
  opacity: .6;
  pointer-events: none;
}

/* ================================================================
   TEXT LINKS
   ================================================================ */
.text-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--secondary);
  gap: 8px;
}

.text-link i {
  font-size: .8em;
  transition: transform .2s;
}

.text-link:hover i {
  transform: translateX(3px);
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, #f8faff 0%, #eaf0ff 100%);
  padding-top: 56px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--primary-dark);
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.breadcrumbs {
  padding-top: 18px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li+li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

/* ================================================================
   CONTACT / FORM
   ================================================================ */
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  /* min-height: 30px;
  padding: 10px 14px; */
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  background: var(--surface);
  transition: border-color .2s;
}

.form-check-input {
  margin-top: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, .12);
}

textarea {
  resize: vertical;
}

.contact-form,
.contact-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #6c757d);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color, #212529);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.full {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.alert.success {
  border-color: #80b59e;
  background: #e8f5ef;
}

.alert.info {
  border-color: #83afd8;
  background: #edf6ff;
}

.alert.error {
  border-color: #e4a0a9;
  background: #fff1f2;
}

/* ================================================================
   TAG GRID / CATEGORY PANELS (inner pages)
   ================================================================ */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.tag-grid span,
.inline-list li {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .875rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.category-stack,
.framework-stack {
  display: grid;
  gap: 24px;
}

.category-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.category-panel article {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
}

.framework-stack h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.35rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.workflow-list li {
  position: relative;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  border-top: 3px solid var(--primary);
}

.workflow-list li::before {
  counter-increment: steps;
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.check-list li,
.inline-list li {
  margin-bottom: 8px;
}

.empty-state {
  padding: 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.note {
  color: var(--text-muted);
  font-size: .875rem;
  margin-top: 16px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: linear-gradient(180deg, #0e1d2e 0%, #0a1520 100%);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}

.site-footer h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
}

.site-footer a {
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}

.site-footer a:hover {
  color: #fff;
}

.footer-placeholder {
  color: rgba(255, 255, 255, .4);
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.footer-tagline {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  gap: 16px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {

  .hero-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .two-column,
  .contact-grid,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .framework-grid,
  .content-grid,
  .summary-strip,
  .tag-grid,
  .workflow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    display: grid;
  }

  .hero-grid {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .brand-bar {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: static;
  }

  .nav-inner {
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-inner.open {
    display: flex;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-list a {
    justify-content: flex-start;
    border-radius: 0;
  }

  .login-button {
    justify-content: center;
  }

  .hero-grid {
    padding: 48px 0;
  }

  .stats-grid,
  .framework-grid,
  .content-grid,
  .summary-strip,
  .tag-grid,
  .filter-row,
  .form-grid,
  .footer-grid,
  .workflow-list,
  .card-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 4px;
  }

  .final-cta {
    padding: 48px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {

  .stat-card,
  .award-card,
  .score-card,
  .process-list li {
    animation: fadeUp .5s ease both;
  }

  .stat-card:nth-child(2) {
    animation-delay: .08s;
  }

  .stat-card:nth-child(3) {
    animation-delay: .16s;
  }

  .stat-card:nth-child(4) {
    animation-delay: .24s;
  }

  .award-card:nth-child(2) {
    animation-delay: .06s;
  }

  .award-card:nth-child(3) {
    animation-delay: .12s;
  }

  .award-card:nth-child(4) {
    animation-delay: .18s;
  }

  .award-card:nth-child(5) {
    animation-delay: .24s;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}