/**
 * Swabhiman Samiti — Core Design System (2026 Architectural Spec)
 * Modern Editorial Impact Visual Language, Tokens, Google Icons & Tailwind Utilities
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons&display=swap');

/* Robust Local & CDN @font-face for Material Symbols Rounded & Material Icons */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('../fonts/material-symbols-rounded.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/materialsymbolsrounded/v376/sykg-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190Fjzag.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-icons.ttf') format('truetype'),
       url('https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.ttf') format('truetype');
}

:root {
  /* Brand Tokens */
  --brand-primary: #0D47A1;
  --brand-primary-dark: #0A3880;
  --brand-primary-light: #EBF2FC;
  --brand-primary-rgb: 13, 71, 161;

  --brand-accent: #F15A24;
  --brand-accent-hover: #D94815;
  --brand-accent-light: #FDF1EB;
  --brand-accent-rgb: 241, 90, 36;

  /* Aliases for backwards compatibility with widgets */
  --sw-primary: var(--brand-primary);
  --sw-primary-hover: var(--brand-primary-dark);
  --sw-primary-light: var(--brand-primary-light);
  --sw-primary-rgb: var(--brand-primary-rgb);

  --sw-accent: var(--brand-accent);
  --sw-accent-hover: var(--brand-accent-hover);
  --sw-accent-light: var(--brand-accent-light);
  --sw-accent-rgb: var(--brand-accent-rgb);

  /* Neutrals */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --surface-subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-focus: #0D47A1;

  --sw-dark: var(--text-primary);
  --sw-text-main: var(--text-secondary);
  --sw-text-muted: var(--text-muted);
  --sw-text-light: var(--text-light);
  --sw-surface: var(--surface);
  --sw-bg-alt: var(--surface-muted);
  --sw-bg-subtle: var(--surface-subtle);
  --sw-border: var(--border);
  --sw-border-light: #F1F5F9;

  /* Status Tokens */
  --sw-status-active: #0D47A1;
  --sw-status-ongoing: #0284C7;
  --sw-status-completed: #16A34A;
  --sw-status-upcoming: #7C3AED;
  --sw-status-archived: #64748B;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sw-font-heading: var(--font-heading);
  --sw-font-body: var(--font-body);

  /* Spacing Scale (Tailwind Principle: 4, 8, 12, 16, 24, 32, 48, 64, 80, 96, 120) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
  --section-spacing: 5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --sw-radius-sm: var(--radius-sm);
  --sw-radius-md: var(--radius-md);
  --sw-radius-lg: var(--radius-lg);
  --sw-radius-xl: var(--radius-xl);
  --sw-radius-full: var(--radius-full);

  /* Shadows (Restrained, Editorial, No Excessive Blur) */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 28px -4px rgba(13, 71, 161, 0.08), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
  --sw-shadow-xs: var(--shadow-sm);
  --sw-shadow-sm: var(--shadow-sm);
  --sw-shadow-md: var(--shadow-md);
  --sw-shadow-lg: var(--shadow-lg);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
  --sw-transition-fast: var(--transition-fast);
  --sw-transition-base: var(--transition-base);
  --sw-transition-smooth: var(--transition-smooth);

  /* Container */
  --container-max-width: 1280px;
  --sw-container-width: 1280px;
}

/* ============================================================
   GOOGLE MATERIAL SYMBOLS SYSTEM (Rounded Variant)
   ============================================================ */
.material-symbols-rounded,
.material-symbols-outlined,
.material-icons,
[class*="material-symbols"] {
  font-family: 'Material Symbols Rounded', 'Material Icons' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: 'liga' 1;
  font-feature-settings: 'liga' 1;
  vertical-align: middle;
  user-select: none;
}

/* Optical size variations */
.material-symbols-rounded.icon-sm {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}
.material-symbols-rounded.icon-md {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-rounded.icon-lg {
  font-size: 32px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 32;
}
.material-symbols-rounded.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* SVG Google Material Symbols System */
.sw-google-icon,
svg.material-symbols-rounded {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.sw-google-icon.icon-sm,
svg.material-symbols-rounded.icon-sm {
  width: 18px;
  height: 18px;
}

.sw-google-icon.icon-md,
svg.material-symbols-rounded.icon-md {
  width: 24px;
  height: 24px;
}

.sw-google-icon.icon-lg,
svg.material-symbols-rounded.icon-lg {
  width: 32px;
  height: 32px;
}

.sw-google-icon.icon-xl,
svg.material-symbols-rounded.icon-xl {
  width: 40px;
  height: 40px;
}

/* ============================================================
   BASE RESETS & TYPOGRAPHY WITHIN WIDGETS
   ============================================================ */
.sw-widget {
  font-family: var(--font-body);
  color: var(--text-secondary);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sw-widget *,
.sw-widget *::before,
.sw-widget *::after {
  box-sizing: inherit;
}

/* Container Constraint */
.sw-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .sw-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================================
   TYPOGRAPHY HIERARCHY
   ============================================================ */
/* H1 Hero Heading: 52-64px Desktop, 42-48px Tablet, 34-40px Mobile */
.sw-heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.125rem, 4.5vw, 3.75rem); /* 34px -> 60px */
  font-weight: 750;
  line-height: 1.15;
  color: var(--brand-primary);
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* H2 Section Heading: 32-40px */
.sw-heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.375rem); /* 28px -> 38px */
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* H3 Card Heading: 20-24px */
.sw-heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.sw-heading-sm {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Paragraph width constraints (65-72ch) */
.sw-text-lead {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); /* 17-19px */
  line-height: 1.7;
  color: #334155;
  max-width: 65ch;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.sw-text-body {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px */
  line-height: 1.68;
  color: #475569;
  max-width: 70ch;
  margin-top: 0;
  margin-bottom: 1rem;
}

.sw-highlight {
  color: var(--brand-accent);
}

/* ============================================================
   MICRO-COMPONENTS: BADGES, BUTTONS & CARDS
   ============================================================ */
/* Eyebrow / Badges */
.sw-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid rgba(13, 71, 161, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.sw-badge .material-symbols-rounded {
  font-size: 16px;
}

.sw-badge-accent {
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  border-color: rgba(241, 90, 36, 0.2);
}

/* Buttons (Minimum 44px touch target) */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1.4;
  white-space: nowrap;
}

.sw-btn:focus-visible {
  outline: 3px solid rgba(13, 71, 161, 0.4);
  outline-offset: 2px;
}

.sw-btn .material-symbols-rounded {
  font-size: 20px;
  transition: transform var(--transition-fast);
}

.sw-btn:hover .material-symbols-rounded {
  transform: translateX(2px);
}

.sw-btn-primary {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

.sw-btn-primary:hover {
  background-color: var(--brand-primary-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.22);
}

.sw-btn-secondary {
  background-color: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.sw-btn-secondary:hover {
  background-color: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  transform: translateY(-1px);
}

.sw-btn-accent {
  background-color: var(--brand-accent);
  color: #FFFFFF;
}

.sw-btn-accent:hover {
  background-color: var(--brand-accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(241, 90, 36, 0.25);
}

.sw-btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.sw-btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Card pattern */
.sw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.sw-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

/* Status Badges */
.sw-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: capitalize;
  line-height: 1;
}

.sw-status-active {
  background-color: rgba(13, 71, 161, 0.1);
  color: var(--sw-status-active);
}

.sw-status-ongoing {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--sw-status-ongoing);
}

.sw-status-completed {
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--sw-status-completed);
}

.sw-status-upcoming {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--sw-status-upcoming);
}

.sw-status-archived {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--sw-status-archived);
}

/* Section Header pattern */
.sw-section-header {
  margin-bottom: 2.5rem;
}

.sw-section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.sw-section-sub {
  margin-top: 0.5rem;
}

.sw-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sw-view-all-link:hover {
  color: var(--brand-accent);
  transform: translateX(3px);
}

.sw-view-all-link .material-symbols-rounded {
  font-size: 18px;
}

/* Icon container circle */
.sw-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.sw-icon-circle-accent {
  background: var(--brand-accent-light);
  color: var(--brand-accent);
}

/* ============================================================
   TAILWIND UTILITY HELPERS
   ============================================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.transition { transition: all var(--transition-base); }
