/**
 * VIT Bargarh - Design System
 * Version: 2.0.0
 *
 * This file contains all CSS custom properties (variables) and utility classes
 * for the redesigned VIT website. Import this file first in your main stylesheet.
 *
 * References: VSSUT.ac.in, BPUT.ac.in
 */

/* ================================================
   ROOT VARIABLES - DESIGN TOKENS
   ================================================ */

:root {
  /* ----------------------------------------
     BOOTSTRAP OVERRIDES - Fix template URLs
     ---------------------------------------- */
  --bs-breadcrumb-divider: '/';

  /* ----------------------------------------
     COLOR SYSTEM
     ---------------------------------------- */

  /* Primary Colors - VIT Brand (Academic Crimson/Maroon)
     Inspired by prestigious institutions like Harvard, Stanford */
  --vit-primary: #a51c30;
  --vit-primary-dark: #8c1515;
  --vit-primary-light: #c63b4a;
  --vit-primary-50: #fef7f7;
  --vit-primary-100: #fdeaea;
  --vit-primary-200: #fbd5d9;
  --vit-primary-300: #f5a8b0;
  --vit-primary-400: #ec7380;
  --vit-primary-500: #dc4555;
  --vit-primary-600: #a51c30;
  --vit-primary-700: #8c1515;
  --vit-primary-800: #6d1212;
  --vit-primary-900: #4a0d0d;

  /* Primary Gradients (Rich & Elegant) */
  --vit-primary-gradient: linear-gradient(135deg, #a51c30 0%, #8c1515 100%);
  --vit-primary-gradient-hover: linear-gradient(135deg, #8c1515 0%, #a51c30 100%);
  --vit-primary-gradient-vertical: linear-gradient(180deg, #a51c30 0%, #6d1212 100%);
  --vit-primary-gradient-soft: linear-gradient(135deg, #c63b4a 0%, #a51c30 100%);

  /* Secondary Colors - Professional Blue */
  --vit-secondary: #1e40af;
  --vit-secondary-dark: #1e3a8a;
  --vit-secondary-light: #3b82f6;
  --vit-secondary-50: #eff6ff;
  --vit-secondary-100: #dbeafe;
  --vit-secondary-200: #bfdbfe;
  --vit-secondary-300: #93c5fd;
  --vit-secondary-400: #60a5fa;
  --vit-secondary-500: #3b82f6;
  --vit-secondary-600: #2563eb;
  --vit-secondary-700: #1d4ed8;
  --vit-secondary-800: #1e40af;
  --vit-secondary-900: #1e3a8a;

  /* Secondary Gradient */
  --vit-secondary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);

  /* Accent Colors - Inspired by VSSUT */
  --vit-accent-orange: #f97316;
  --vit-accent-orange-light: #fb923c;
  --vit-accent-orange-dark: #ea580c;
  --vit-accent-gold: #f59e0b;
  --vit-accent-gold-light: #fbbf24;
  --vit-accent-gold-dark: #d97706;
  --vit-accent-gradient: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);

  /* Neutral Colors */
  --vit-dark: #0f172a;
  --vit-dark-gray: #334155;
  --vit-gray: #64748b;
  --vit-light-gray: #cbd5e1;
  --vit-lighter-gray: #e2e8f0;
  --vit-bg-gray: #f1f5f9;
  --vit-bg-light: #f8fafc;
  --vit-white: #ffffff;

  /* Neutral Scale */
  --vit-neutral-50: #f8fafc;
  --vit-neutral-100: #f1f5f9;
  --vit-neutral-200: #e2e8f0;
  --vit-neutral-300: #cbd5e1;
  --vit-neutral-400: #94a3b8;
  --vit-neutral-500: #64748b;
  --vit-neutral-600: #475569;
  --vit-neutral-700: #334155;
  --vit-neutral-800: #1e293b;
  --vit-neutral-900: #0f172a;

  /* Semantic Colors */
  --vit-success: #16a34a;
  --vit-success-light: #22c55e;
  --vit-success-dark: #15803d;
  --vit-success-bg: #f0fdf4;

  --vit-warning: #eab308;
  --vit-warning-light: #facc15;
  --vit-warning-dark: #ca8a04;
  --vit-warning-bg: #fefce8;

  --vit-error: #dc2626;
  --vit-error-light: #ef4444;
  --vit-error-dark: #b91c1c;
  --vit-error-bg: #fef2f2;

  --vit-info: #0284c7;
  --vit-info-light: #0ea5e9;
  --vit-info-dark: #0369a1;
  --vit-info-bg: #f0f9ff;

  /* ----------------------------------------
     TYPOGRAPHY
     ---------------------------------------- */

  /* Font Families */
  --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-headings: 'Poppins', 'Inter', sans-serif;
  --font-monospace: 'Fira Code', 'Consolas', 'Monaco', monospace;

  /* Font Sizes - Mobile First (Base: 16px) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Font Weights */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ----------------------------------------
     SPACING (8px Grid System)
     ---------------------------------------- */

  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;   /* 2px */
  --space-1: 0.25rem;      /* 4px */
  --space-1-5: 0.375rem;   /* 6px */
  --space-2: 0.5rem;       /* 8px */
  --space-2-5: 0.625rem;   /* 10px */
  --space-3: 0.75rem;      /* 12px */
  --space-3-5: 0.875rem;   /* 14px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-7: 1.75rem;      /* 28px */
  --space-8: 2rem;         /* 32px */
  --space-9: 2.25rem;      /* 36px */
  --space-10: 2.5rem;      /* 40px */
  --space-11: 2.75rem;     /* 44px */
  --space-12: 3rem;        /* 48px */
  --space-14: 3.5rem;      /* 56px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-28: 7rem;        /* 112px */
  --space-32: 8rem;        /* 128px */
  --space-36: 9rem;        /* 144px */
  --space-40: 10rem;       /* 160px */
  --space-44: 11rem;       /* 176px */
  --space-48: 12rem;       /* 192px */
  --space-52: 13rem;       /* 208px */
  --space-56: 14rem;       /* 224px */
  --space-60: 15rem;       /* 240px */
  --space-64: 16rem;       /* 256px */
  --space-72: 18rem;       /* 288px */
  --space-80: 20rem;       /* 320px */
  --space-96: 24rem;       /* 384px */

  /* ----------------------------------------
     LAYOUT
     ---------------------------------------- */

  /* Container Widths */
  --container-xs: 320px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;
  --container-full: 100%;

  /* Max Width */
  --max-w-prose: 65ch;
  --max-w-screen: 100vw;

  /* Breakpoints (for reference - use in media queries) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ----------------------------------------
     BORDERS & RADIUS
     ---------------------------------------- */

  /* Border Widths */
  --border-0: 0;
  --border-1: 1px;
  --border-2: 2px;
  --border-4: 4px;
  --border-8: 8px;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* ----------------------------------------
     SHADOWS
     ---------------------------------------- */

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-none: 0 0 #0000;

  /* Colored Shadows */
  --shadow-primary: 0 4px 14px 0 rgb(185 28 28 / 0.3);
  --shadow-secondary: 0 4px 14px 0 rgb(30 64 175 / 0.3);
  --shadow-accent: 0 4px 14px 0 rgb(249 115 22 / 0.3);

  /* ----------------------------------------
     TRANSITIONS & ANIMATIONS
     ---------------------------------------- */

  /* Durations */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;

  /* Timing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Common Transitions */
  --transition-none: none;
  --transition-all: all var(--duration-300) var(--ease-in-out);
  --transition-colors: color, background-color, border-color, text-decoration-color, fill, stroke var(--duration-300) var(--ease-in-out);
  --transition-opacity: opacity var(--duration-300) var(--ease-in-out);
  --transition-shadow: box-shadow var(--duration-300) var(--ease-in-out);
  --transition-transform: transform var(--duration-300) var(--ease-in-out);

  /* ----------------------------------------
     Z-INDEX SCALE
     ---------------------------------------- */

  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  --z-max: 9999;

  /* ----------------------------------------
     ASPECT RATIOS
     ---------------------------------------- */

  --aspect-square: 1 / 1;
  --aspect-video: 16 / 9;
  --aspect-photo: 4 / 3;
  --aspect-portrait: 3 / 4;
  --aspect-wide: 21 / 9;
}

/* ================================================
   DARK MODE VARIABLES (Future Enhancement)
   ================================================ */

@media (prefers-color-scheme: dark) {
  :root.auto-dark {
    --vit-bg-gray: #1e293b;
    --vit-bg-light: #0f172a;
    --vit-white: #1e293b;
    --vit-dark: #f8fafc;
    --vit-dark-gray: #e2e8f0;
    --vit-gray: #94a3b8;
  }
}

/* ================================================
   BASE RESET & DEFAULTS
   ================================================ */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--vit-dark-gray);
  background-color: var(--vit-white);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--vit-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Desktop heading sizes */
@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
  h4 { font-size: var(--text-2xl); }
  h5 { font-size: var(--text-xl); }
}

/* Links */
a {
  color: var(--vit-secondary);
  text-decoration: none;
  transition: color var(--duration-200) var(--ease-in-out);
}

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

/* Images */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elements */
input, button, textarea, select {
  font: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Flexbox Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text Colors */
.text-primary { color: var(--vit-primary); }
.text-secondary { color: var(--vit-secondary); }
.text-dark { color: var(--vit-dark); }
.text-gray { color: var(--vit-gray); }
.text-light { color: var(--vit-light-gray); }
.text-white { color: var(--vit-white); }
.text-success { color: var(--vit-success); }
.text-warning { color: var(--vit-warning); }
.text-error { color: var(--vit-error); }
.text-info { color: var(--vit-info); }

/* Background Colors */
.bg-primary { background-color: var(--vit-primary); }
.bg-secondary { background-color: var(--vit-secondary); }
.bg-dark { background-color: var(--vit-dark); }
.bg-gray { background-color: var(--vit-bg-gray); }
.bg-light { background-color: var(--vit-bg-light); }
.bg-white { background-color: var(--vit-white); }
.bg-transparent { background-color: transparent; }

/* Background Gradients */
.bg-gradient-primary { background: var(--vit-primary-gradient); }
.bg-gradient-secondary { background: var(--vit-secondary-gradient); }
.bg-gradient-accent { background: var(--vit-accent-gradient); }

/* Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* Font Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

/* Line Heights */
.leading-none { line-height: var(--leading-none); }
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* Letter Spacing */
.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Border Radius */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-none { box-shadow: var(--shadow-none); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Margins */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* Padding */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }

.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-10 { padding-top: var(--space-10); padding-bottom: var(--space-10); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-screen { width: 100vw; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-visible { overflow: visible; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Transitions */
.transition { transition: var(--transition-all); }
.transition-none { transition: none; }
.transition-colors { transition: var(--transition-colors); }
.transition-opacity { transition: var(--transition-opacity); }
.transition-shadow { transition: var(--transition-shadow); }
.transition-transform { transition: var(--transition-transform); }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }
.object-center { object-position: center; }

/* ================================================
   ACCESSIBILITY TEXT SIZE SUPPORT
   ================================================ */

html.text-size-small {
  font-size: 14px;
}

html.text-size-normal {
  font-size: 16px;
}

html.text-size-large {
  font-size: 18px;
}

html.text-size-xlarge {
  font-size: 20px;
}

/* ================================================
   HIGH CONTRAST MODE SUPPORT
   ================================================ */

html.high-contrast {
  /* Invert to dark background, light text for high contrast */
  --vit-dark: #ffffff;
  --vit-dark-gray: #e0e0e0;
  --vit-gray: #b0b0b0;
  --vit-white: #1a1a1a;
  --vit-bg-gray: #1a1a1a;
  --vit-bg-light: #2a2a2a;
  --vit-primary: #ff6b6b;
  --vit-secondary: #6b9fff;
  --vit-gold: #ffd93d;
  --vit-primary-rgb: 255, 107, 107;
}

html.high-contrast body {
  background-color: #121212;
  color: #ffffff;
}

html.high-contrast a {
  text-decoration: underline;
  color: var(--vit-secondary);
}

html.high-contrast .btn-primary,
html.high-contrast .btn-secondary {
  border: 2px solid currentColor;
}

/* High contrast header/nav */
html.high-contrast .top-bar,
html.high-contrast .main-header,
html.high-contrast .main-nav {
  background: #1a1a1a;
  border-color: #333;
}

html.high-contrast .main-nav .nav-link {
  color: #ffffff;
}

/* High contrast cards and sections */
html.high-contrast .card,
html.high-contrast .notice-card,
html.high-contrast .news-card,
html.high-contrast .about-content-card,
html.high-contrast .stat-card,
html.high-contrast .affiliation-item {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #ffffff;
}

/* High contrast footer */
html.high-contrast .site-footer {
  background: #0a0a0a;
}

/* High contrast section backgrounds */
html.high-contrast section {
  background-color: #1a1a1a;
}

html.high-contrast .section-header .section-title {
  color: #ffffff;
}

html.high-contrast .section-header .section-subtitle {
  color: #b0b0b0;
}

/* ================================================
   FOCUS STYLES FOR ACCESSIBILITY
   ================================================ */

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--vit-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--vit-primary);
  color: var(--vit-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: var(--z-max);
  font-weight: var(--font-semibold);
  transition: top var(--duration-200) var(--ease-out);
}

.skip-to-main:focus {
  top: var(--space-4);
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  img {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  .no-print {
    display: none !important;
  }
}

/* ================================================
   MOBILE RESPONSIVENESS FIXES
   ================================================ */

/* Prevent horizontal scroll on mobile */
#main-content,
main,
.main-content {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Fix for sections with decorative overflow elements */
section {
  max-width: 100vw;
}

/* Ensure images and videos don't overflow */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
  /* Prevent any element from causing horizontal scroll */
  * {
    max-width: 100vw;
  }

  /* Reduce padding on mobile to prevent overflow */
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  /* Fix pre and code blocks */
  pre,
  code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Fix tables on mobile */
  table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}