/*
 * महर्षि भारद्वाज सेवा संस्थान
 * Custom Styles + Design System
 * Light Red Theme | Mobile-First | Accessible
 */

/* Import FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ==================== ROOT VARIABLES ==================== */
:root {
  /* Light Red Theme Colors */
  --color-bg-primary: #FFF5F5;
  --color-bg-secondary: #FFFAFA;
  --color-bg-white: #FFFFFF;
  
  --color-red-50: #FEF2F2;
  --color-red-100: #FEE2E2;
  --color-red-200: #FECACA;
  --color-red-300: #FCA5A5;
  --color-red-600: #DC2626;
  --color-red-700: #B91C1C;
  --color-red-800: #991B1B;
  --color-red-900: #7F1D1D;
  
  --color-text-primary: #7F1D1D;
  --color-text-secondary: #991B1B;
  --color-text-muted: #B91C1C;
  
  --color-border: #FECACA;
  --color-border-light: #FEE2E2;
  
  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Noto Sans Devanagari", "Apple Color Emoji", "Segoe UI Emoji";
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(127, 29, 29, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(127, 29, 29, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(127, 29, 29, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(127, 29, 29, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ==================== BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Devanagari Font Optimization */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* Fluid media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  width: 100%;
  border: none;
}

/* Table responsiveness */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
  vertical-align: top;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > table {
  min-width: 600px;
}

/* Donation page wider layout */
body.donation-page .content-container,
body.donation-page .container,
body.donation-page .section .content-container,
body.donation-page .top-bar .content-container,
body.donation-page .logo-bar .content-container,
body.donation-page .menu-bar .content-container {
  max-width: 1320px;
}

body.donation-page .container-narrow {
  max-width: 900px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--color-red-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-red-800);
}

a:focus-visible {
  outline: 2px solid var(--color-red-700);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Content width to match menu bar exactly */
.content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

/* Ensure header sections also use same width */
.header .content-container,
.header .container,
.top-bar .content-container,
.top-bar .container,
.logo-bar .content-container,
.logo-bar .container,
.menu-bar .content-container,
.menu-bar .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

/* Make sure content takes full available width within container */
.content-container > * {
  max-width: none;
}

/* Hero section specific styling for full width utilization */
.hero .content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-title,
.hero-subtitle,
.hero-cta {
  max-width: none !important;
  width: 100% !important;
}

/* Ensure all content sections use full available width */
.section .content-container h1,
.section .content-container h2,
.section .content-container h3,
.section .content-container p {
  max-width: none;
}

/* Remove any restrictive max-width on content elements */
.content-container * {
  max-width: none !important;
}

/* Ensure all sections use consistent width matching menu container */
.section {
  width: 100%;
}

.section .content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure all text content containers match menu width */
.text-center,
.hero-subtitle,
.slider-text,
.mission-statement,
.about-content,
.contact-content,
.footer-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* But keep specific elements that should be centered */
.text-center {
  text-align: center;
  max-width: none;
}

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1200px;
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-sm {
  padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-xl) 0;
  }
  .section-sm {
    padding: var(--spacing-lg) 0;
  }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-red-700);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--color-red-700);
  color: white;
  border-color: var(--color-red-700);
}

.btn-primary:hover {
  background-color: var(--color-red-800);
  border-color: var(--color-red-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: white;
  color: var(--color-red-800);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-red-50);
  border-color: var(--color-red-300);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-red-700);
  border-color: var(--color-red-700);
}

.btn-outline:hover {
  background-color: var(--color-red-700);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ==================== CARDS ==================== */
.card {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-border);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red-50);
  border-radius: var(--radius-md);
  color: var(--color-red-700);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

/* ==================== HEADER/NAVBAR ==================== */
.header {
  background: white;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Top Bar (Contact + Social) */
.top-bar {
  background: var(--color-red-700);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.top-bar-contact:hover {
  color: var(--color-red-100);
}

.top-bar-separator {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.top-bar-info {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
}

.top-bar-social a:hover {
  background: white;
  color: var(--color-red-700);
}

/* Section 2: Logo Bar */
.logo-bar {
  background: white;
  border-bottom: 2px solid var(--color-border-light);
  padding: var(--spacing-md) 0;
}

.logo-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img,
.logo .logo-img,
.logo .logo-icon img {
  display: block;
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 4rem;
  height: 4rem;
  background: var(--color-red-700);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-red-800);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.action-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-red-700);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--color-red-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section 3: Menu Bar */
.menu-bar {
  background: var(--color-red-700);
  padding: var(--spacing-sm) 0;
}

.menu-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: var(--spacing-md);
}

.menu-bar-content > .nav-menu {
  margin-left: auto;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-red-700);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.nav-link.active {
  background: white;
  color: var(--color-red-700);
  border-color: white;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

.donation-link {
  background: white;
  color: var(--color-red-700);
  font-weight: 700;
}

.donation-link:hover {
  background: var(--color-red-50);
  color: var(--color-red-800);
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) 0;
  margin-top: 0.5rem;
  z-index: 1000;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-link:hover {
  background: var(--color-red-50);
  color: var(--color-red-700);
  padding-left: calc(var(--spacing-md) + 0.5rem);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* Mobile Menu */
/* Medium screens - optimize menu spacing */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-menu {
    gap: 0.5rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .top-bar-left {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
  }

  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .top-bar {
    text-align: left;
  }
  
  .top-bar-separator {
    display: none;
  }
  
  .top-bar-social {
    gap: 0.35rem;
  }
  
  .top-bar-social a {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
  }
  
  .logo-bar-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .logo {
    justify-content: center;
    width: 100%;
  }
  
  .logo-text {
    text-align: center;
  }
  
  .logo-title {
    font-size: 1.2rem;
  }
  
  .logo-subtitle {
    font-size: 0.8rem;
  }
  
  .action-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-red-700);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    color: white;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Mobile Dropdown Styles */
  .nav-dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    box-shadow: none;
  }
  
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-link {
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: white;
    border-radius: 999px;
    margin: 0.4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
  }
  
  .dropdown-link:hover {
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }

  .menu-bar-content {
    flex-wrap: wrap;
  }

  .content-container,
  .container,
  .header .content-container,
  .header .container,
  .top-bar .content-container,
  .logo-bar .content-container,
  .menu-bar .content-container {
    padding: 0 var(--spacing-sm);
  }

  .card {
    padding: var(--spacing-lg);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .hero,
  .hero[style*="min-height"] {
    min-height: auto !important;
    height: auto !important;
    padding: var(--spacing-xl) 0 !important;
  }

  .hero[style*="padding"] {
    padding: var(--spacing-xl) 0 !important;
  }

  .hero[style*="display: flex"] {
    flex-direction: column !important;
    justify-content: center !important;
  }

  .hero [style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: var(--spacing-lg) !important;
  }

  .section [style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
    gap: var(--spacing-md) !important;
  }

  .hero [style*="font-size: 8rem"] {
    font-size: 4rem !important;
  }
}

@media (max-width: 480px) {
  .top-bar-content {
    align-items: stretch;
    gap: 0.4rem;
  }

  .top-bar-left,
  .top-bar-social {
    width: 100%;
    justify-content: flex-start;
  }

  .top-bar-contact {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .slider-text {
    padding: 1.5rem;
  }

  .slider-text h1 {
    font-size: 1.8rem;
  }

  .slider-text h2 {
    font-size: 1.2rem;
  }

  .slider-buttons {
    flex-direction: column;
  }

  .card {
    padding: var(--spacing-md);
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-text {
    font-size: 0.95rem;
  }

  .metrics {
    padding: var(--spacing-lg);
  }

  .metric-value {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.85rem;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .hero [style*="font-size: 8rem"] {
    font-size: 3rem !important;
  }

  .hero [style*="min-width: 300px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: transparent;
  padding: 0;
  text-align: center;
  position: relative;
  height: 70vh;
  min-height: 450px;
}

.hero h1,
.hero .hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem) !important;
  line-height: 1.25 !important;
}

.hero h2,
.hero .hero-subtitle {
  font-size: clamp(1.3rem, 4vw, 2rem) !important;
  line-height: 1.3 !important;
}

.hero p,
.hero .hero-description {
  font-size: clamp(1rem, 3.2vw, 1.25rem) !important;
  line-height: 1.7 !important;
}

.hero .btn,
.hero .btn-primary,
.hero .btn-secondary {
  font-size: clamp(0.95rem, 2.8vw, 1.1rem) !important;
  padding: 0.75rem 1.75rem !important;
}

/* Hero sections for pages with breadcrumbs (all pages except home) */
.hero:not(.hero-slider) {
  height: 250px;
  min-height: 250px;
}

/* Hero Image Slider */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.slider-text {
  text-align: center;
  color: white;
  max-width: 1200px;
  padding: 3rem;
  z-index: 3;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slider-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
  color: #FFFFFF;
}

.slider-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(255,215,0,0.3);
}

.slider-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.4);
  color: #F0F0F0;
}

.slider-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 3;
}

.slider-nav:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 2rem;
}

.slider-nav.next {
  right: 2rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-red-900);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
    height: 60vh;
    min-height: 400px;
  }
  
  /* Mobile: Hero sections with breadcrumbs */
  .hero:not(.hero-slider) {
    height: 200px;
    min-height: 200px;
  }
  
  .slider-text {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .slider-text h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.4);
  }
  
  .slider-text h2 {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8), 0 0 10px rgba(255,215,0,0.2);
  }
  
  .slider-text p {
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.3);
  }
  
  .slider-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .slider-buttons .btn-primary,
  .slider-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .slider-nav {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
  }
  
  .slider-nav.prev {
    left: 1rem;
  }
  
  .slider-nav.next {
    right: 1rem;
  }
}

/* ==================== GRID LAYOUTS ==================== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==================== METRICS/COUNTERS ==================== */
.metrics {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-red-700);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.metric-label {
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .metric-value {
    font-size: 2rem;
  }
}

/* ==================== QUOTES SLIDER ==================== */
.quotes-slider {
  position: relative;
  overflow: hidden;
}

.quote-card {
  background: white;
  border-left: 4px solid var(--color-red-700);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.quote-sanskrit {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.quote-transliteration {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.quote-meaning {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.quote-source {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-red-700);
  margin-top: var(--spacing-sm);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-red-900);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
}

.footer-section {
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==================== FLOATING SOCIAL ==================== */
.floating-social {
  position: fixed;
  right: var(--spacing-md);
  bottom: var(--spacing-md);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-red-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.social-btn:hover {
  transform: scale(1.1);
  background: var(--color-red-800);
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: white;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-red-700);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-red-700);
}

/* ==================== NOTICES ==================== */
.notice {
  background: white;
  border-left: 4px solid var(--color-red-700);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.notice-title {
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.notice-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden { display: none !important; }
.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;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ==================== ACCESSIBILITY ==================== */
*:focus-visible {
  outline: 2px solid var(--color-red-700);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .header,
  .floating-social,
  .hero-cta {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

