/* ============================================================
   ALARM Nepal — Complete Design System Stylesheet
   Professional · Authoritative · Warm Nepali Cultural Identity
   Based on DESIGN_SYSTEM_1.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Primary — Deep Crimson (Nepal flag red, authority) */
  --primary-50:  #FFF5F5;
  --primary-100: #FEE2E2;
  --primary-200: #FECACA;
  --primary-300: #FCA5A5;
  --primary-500: #DC2626;
  --primary-700: #B91C1C;
  --primary-800: #991B1B;
  --primary-900: #7F1D1D;

  /* Secondary — Forest Green (Lalitpur hills, growth) */
  --secondary-50:  #F0FDF4;
  --secondary-100: #DCFCE7;
  --secondary-500: #16A34A;
  --secondary-600: #15803D;
  --secondary-700: #166534;
  --secondary-900: #14532D;

  /* Accent — Himalayan Gold */
  --accent-300: #FCD34D;
  --accent-400: #FBBF24;
  --accent-500: #D97706;
  --accent-600: #B45309;

  /* Neutrals */
  --neutral-50:  #FAFAFA;
  --neutral-100: #F4F4F5;
  --neutral-200: #E4E4E7;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  --neutral-950: #0A0A0F;

  /* Semantic */
  --success: #16A34A;
  --warning: #D97706;
  --error:   #DC2626;
  --info:    #2563EB;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-nepali:  'Noto Sans Devanagari', sans-serif;

  /* Shadows */
  --shadow-card:       0 2px 12px 0 rgba(0,0,0,0.07);
  --shadow-card-hover: 0 8px 24px 0 rgba(0,0,0,0.12);
  --shadow-modal:      0 20px 60px 0 rgba(0,0,0,0.22);
  --shadow-soft:       0 4px 16px 0 rgba(0,0,0,0.06);
}

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-900);
  background-color: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--neutral-900);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--neutral-900);
}

p {
  color: var(--neutral-700);
  line-height: 1.7;
}

label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
}

.font-nepali {
  font-family: var(--font-nepali);
  line-height: 1.8;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container-custom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container-custom { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: var(--primary-700);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: var(--primary-800);
  box-shadow: 0 4px 12px rgba(185,28,28,0.3);
  color: #fff;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: var(--secondary-700);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-secondary:hover {
  background-color: var(--secondary-900);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--primary-700);
  color: var(--primary-700);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background-color: var(--primary-700);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  color: var(--primary-700);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  transition: background-color 0.2s ease;
}
.btn-ghost:hover {
  background-color: var(--primary-50);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: var(--accent-500);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent:hover {
  background-color: var(--accent-600);
  color: #fff;
}

/* Button sizes */
.btn-sm { padding: 0.375rem 1rem; font-size: 0.75rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ============================================================
   6. FORM ELEMENTS
   ============================================================ */
.input-field {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: 6px;
  color: var(--neutral-900);
  background-color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
}
.input-field::placeholder { color: var(--neutral-400); }
.input-field:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--primary-500);
}

.input-field-error {
  border-color: var(--primary-500);
}
.input-field-error:focus {
  box-shadow: 0 0 0 2px var(--primary-500);
}

/* ============================================================
   7. NAVBAR
   ============================================================ */
#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-navbar.scrolled,
#main-navbar[class*="bg-white"] {
  background-color: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Navbar container */
#main-navbar .container-custom > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Nav link base */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* ============================================================
   8. NOTICE TICKER
   ============================================================ */
.ticker-bar {
  width: 100%;
  background-color: var(--accent-400);
  color: var(--neutral-900);
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden;
  z-index: 20;
  margin-top: 5rem;
}

.ticker-bar .container-custom > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* For the Blade component's bg-accent-400 class */
[class*="bg-accent-400"],
.bg-accent-400 {
  background-color: var(--accent-400) !important;
}

/* Ticker label */
.ticker-label {
  display: inline-block;
  background-color: var(--primary-700);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-content:hover {
  animation-play-state: paused;
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover,
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Event card */
.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.event-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.event-card:hover img {
  transform: scale(1.05);
}

/* ============================================================
   10. SECTION HEADER PATTERN
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-100);
  color: var(--primary-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--neutral-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--neutral-800) 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.8), rgba(10,10,15,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   12. STAT COUNTERS
   ============================================================ */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
}

/* ============================================================
   13. COMMITTEE / PROFILE CARD
   ============================================================ */
.committee-card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.committee-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.committee-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid var(--primary-100);
}

.committee-avatar-placeholder {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background-color: var(--primary-700);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  border: 4px solid var(--primary-100);
}

.committee-name {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--neutral-900);
  font-size: 1rem;
}

.committee-position {
  font-size: 0.875rem;
  color: var(--primary-700);
  font-weight: 500;
  margin-top: 0.125rem;
}

.committee-school {
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-top: 0.25rem;
}

/* ============================================================
   14. SCHOOL CARD
   ============================================================ */
.school-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--neutral-100);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.school-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.school-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 9999px;
  border: 1px solid var(--neutral-200);
  padding: 0.25rem;
}

.school-logo-placeholder {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* ============================================================
   15. NOTICE / ALERT COMPONENTS
   ============================================================ */
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-700);
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}
.notice-item:hover {
  box-shadow: var(--shadow-card);
}

.notice-item.pinned {
  border-left-color: var(--accent-500);
  background-color: var(--accent-300);
}

.notice-date {
  font-size: 0.75rem;
  color: var(--neutral-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-900);
  line-height: 1.4;
}
.notice-title:hover { color: var(--primary-700); }

/* Alert flash messages */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
  margin-bottom: 1rem;
}
.alert-success {
  background-color: var(--secondary-50);
  border-color: var(--secondary-500);
  color: var(--secondary-700);
}
.alert-error {
  background-color: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-800);
}
.alert-info {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #1e40af;
}
.alert-warning {
  background-color: #FFFBEB;
  border-color: var(--accent-500);
  color: #92400e;
}

/* ============================================================
   16. BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
  padding: 0.75rem 0;
  background-color: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--neutral-500);
  flex-wrap: wrap;
}
.breadcrumb-item:last-child {
  color: var(--neutral-900);
  font-weight: 500;
}
.breadcrumb-link:hover { color: var(--primary-700); }
.breadcrumb-sep { color: var(--neutral-300); }

/* ============================================================
   17. GALLERY GRID
   ============================================================ */
.gallery-grid {
  columns: 2;
  gap: 0.75rem;
}
@media (min-width: 768px) { .gallery-grid { columns: 3; } }
@media (min-width: 1024px) { .gallery-grid { columns: 4; } }

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10,10,15,0);
  transition: background-color 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.gallery-item:hover .gallery-overlay {
  background-color: rgba(10,10,15,0.4);
}

.gallery-caption {
  color: #fff;
  font-size: 0.75rem;
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
footer {
  background-color: var(--neutral-900);
  color: #fff;
}

footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: var(--neutral-400);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
footer a:hover { color: var(--accent-400); }

footer p {
  color: var(--neutral-400);
}

/* ============================================================
   19. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes subtle-pan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scale-in {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Scroll-triggered animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ============================================================
   20. UTILITY CLASSES (z-index, overlays, gradients)
   ============================================================ */
.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.8), rgba(10,10,15,0.4));
}
.overlay-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.6), rgba(10,10,15,0.2), transparent);
}

.glass {
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-dark {
  background-color: rgba(10,10,15,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.text-gradient-primary {
  background: linear-gradient(to right, var(--primary-700), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--primary-700);
  transition: width 0.3s ease;
}
.link-underline:hover::after { width: 100%; }

/* ============================================================
   21. HERO GRADIENT ANIMATED BACKGROUND
   ============================================================ */
.hero-gradient-animated {
  background: linear-gradient(270deg, #7F1D1D, #B91C1C, #DC2626, #B91C1C);
  background-size: 400% 400%;
  animation: subtle-pan 15s ease infinite;
}

/* ============================================================
   22. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background-color: var(--neutral-100); }
::-webkit-scrollbar-thumb {
  background-color: var(--neutral-400);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--neutral-500); }

/* ============================================================
   23. SELECTION COLOR
   ============================================================ */
::selection {
  background-color: var(--primary-200);
  color: var(--primary-900);
}

/* ============================================================
   24. FOCUS & ACCESSIBILITY
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ============================================================
   25. RESPONSIVE GRID HELPERS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   26. ADMIN SIDEBAR NAV (scrollbar thin)
   ============================================================ */
.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 9999px;
}

/* ============================================================
   27. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  padding: 0.75rem;
  background-color: var(--primary-700);
  color: #fff;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(185,28,28,0.35);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.back-to-top:hover {
  background-color: var(--primary-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185,28,28,0.45);
}

/* ============================================================
   28. PRINT STYLES
   ============================================================ */
@media print {
  .no-print { display: none !important; }
  body { color: var(--neutral-900); }
  a { text-decoration: underline; }
}

/* ============================================================
   29. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   30. LINE CLAMP UTILITIES
   ============================================================ */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
