/* ==========================================================================
   MAZVAL - Magyar Zsidó Vallási Alapítvány
   FIXED Comprehensive CSS Stylesheet

   FIXES APPLIED:
   - Added vendor prefixes for cross-browser compatibility
   - Fixed responsive design breakpoint gaps
   - Enhanced WCAG AA color contrast compliance
   - Fixed touch target sizes (minimum 44x44px)
   - Added CSS fallbacks for modern properties
   - Optimized print styles
   - Fixed z-index stacking context
   - Removed duplicate CSS rules
   - Added missing focus states
   - Enhanced reduced-motion support
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Color Palette - FIXED: Enhanced contrast for WCAG AA compliance */
  --color-primary: #003876;
  --color-primary-light: #0055A4;
  --color-primary-dark: #002855;
  --color-secondary: #FFD700;
  --color-secondary-light: #FFE44D;
  --color-secondary-dark: #B8960A; /* FIXED: Darker for better contrast */

  --color-white: #FFFFFF;
  --color-off-white: #F8F9FA;
  --color-light-gray: #E9ECEF;
  --color-gray: #6C757D;
  --color-dark-gray: #343A40;
  --color-black: #212529;

  /* Semantic Colors */
  --color-text: #212529;
  --color-text-light: #495057; /* FIXED: Darker for better contrast (was #6C757D) */
  --color-background: #FFFFFF;
  --color-background-alt: #F8F9FA;
  --color-border: #DEE2E6;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hebrew: 'Noto Sans Hebrew', 'Arial Hebrew', sans-serif;

  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* FIXED: Proper z-index stacking order */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================================================
   CSS Reset and Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* FIXED: Added text-size-adjust for better mobile rendering */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  /* FIXED: Improved text rendering */
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--color-primary-dark);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  -webkit-transition: color var(--transition-base);
  -moz-transition: color var(--transition-base);
  -o-transition: color var(--transition-base);
  transition: color var(--transition-base);
}

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

/* FIXED: Added focus state for keyboard navigation */
a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--spacing-md);
}

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

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* FIXED: Added address styling */
address {
  font-style: normal;
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* FIXED: Added skip link styling for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Star of David Pattern Background
   ========================================================================== */
@-webkit-keyframes star-pulse {
  0%, 100% {
    opacity: 0.03;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    opacity: 0.05;
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }
}

@keyframes star-pulse {
  0%, 100% {
    opacity: 0.03;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
  50% {
    opacity: 0.05;
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
  }
}

.star-pattern-bg {
  position: relative;
  overflow: hidden;
}

.star-pattern-bg::before {
  content: '✡';
  position: absolute;
  font-size: 150px;
  color: var(--color-primary);
  opacity: 0.03;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-animation: star-pulse 8s ease-in-out infinite;
  animation: star-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  z-index: var(--z-fixed);
  -webkit-transition: background var(--transition-base), box-shadow var(--transition-base);
  -moz-transition: background var(--transition-base), box-shadow var(--transition-base);
  -o-transition: background var(--transition-base), box-shadow var(--transition-base);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: var(--spacing-md) 0;
  gap: var(--spacing-lg);
}

.nav-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-md);
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.nav-logo {
  width: 50px;
  height: 50px;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-transition: transform var(--transition-base);
  -moz-transition: transform var(--transition-base);
  -o-transition: transform var(--transition-base);
  transition: transform var(--transition-base);
}

.nav-logo:hover {
  -webkit-transform: scale(1.05) rotate(5deg);
  -ms-transform: scale(1.05) rotate(5deg);
  transform: scale(1.05) rotate(5deg);
}

.nav-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  padding: var(--spacing-sm) 0;
  -webkit-transition: color var(--transition-base);
  -moz-transition: color var(--transition-base);
  -o-transition: color var(--transition-base);
  transition: color var(--transition-base);
  /* FIXED: Minimum touch target size for mobile */
  min-height: 44px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  -webkit-transition: width var(--transition-base);
  -moz-transition: width var(--transition-base);
  -o-transition: width var(--transition-base);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: var(--spacing-sm) 0;
  border-radius: var(--border-radius);
  z-index: var(--z-dropdown);
  border: 1px solid var(--color-border);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-menu a:hover {
  background-color: var(--color-background-alt);
  color: var(--color-primary);
}

.dropdown-menu a.active {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

.dropdown-menu a::after {
  display: none;
}

.nav-toggle {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
  z-index: var(--z-fixed);
  /* FIXED: Minimum touch target size */
  min-width: 44px;
  min-height: 44px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1),
.nav-toggle.active span:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
  -ms-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2),
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3),
.nav-toggle.active span:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  -ms-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

.lang-toggle {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-white);
  -webkit-border-radius: var(--border-radius-sm);
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-semibold);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  /* FIXED: Minimum touch target size */
  min-width: 44px;
  min-height: 44px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.lang-toggle:hover {
  background: var(--color-primary-light);
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
}

.lang-toggle:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* FIXED: CSS fallback for older browsers */
  background: #003876;
  background: -webkit-linear-gradient(315deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  background: -moz-linear-gradient(315deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  background: -o-linear-gradient(315deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  padding: var(--spacing-4xl) 0;
  margin-top: 82px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* FIXED: Fallback for older browsers */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  /* FIXED: Fallback for older browsers */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(255, 215, 0, 0.03) 100px, rgba(255, 215, 0, 0.03) 102px),
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(255, 215, 0, 0.03) 100px, rgba(255, 215, 0, 0.03) 102px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  -webkit-animation: fadeInUp 1s ease-out;
  animation: fadeInUp 1s ease-out;
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
    -ms-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--spacing-xl);
  -webkit-animation: logoFloat 3s ease-in-out infinite;
  animation: logoFloat 3s ease-in-out infinite;
  -webkit-filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@-webkit-keyframes logoFloat {
  0%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}

@keyframes logoFloat {
  0%, 100% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-secondary-light);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
}

.hero-location {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.hero-location::before,
.hero-location::after {
  content: '✡';
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
}

.hero-cta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: var(--spacing-md);
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: var(--spacing-2xl);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  -webkit-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  /* FIXED: Minimum touch target size */
  min-height: 44px;
  min-width: 44px;
}

.btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--spacing-4xl) 0;
  position: relative;
}

.section-alt {
  background: var(--color-background-alt);
}

.section-title {
  text-align: center;
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-divider {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.star-of-david {
  display: inline-block;
  font-size: var(--font-size-3xl);
  color: var(--color-secondary);
  -webkit-animation: starRotate 20s linear infinite;
  animation: starRotate 20s linear infinite;
}

@-webkit-keyframes starRotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes starRotate {
  from {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.about-text h3 {
  color: var(--color-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-sm);
}

.about-text h3::before {
  content: '✡';
  color: var(--color-secondary);
  font-size: var(--font-size-lg);
}

.about-text p {
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.values-list {
  list-style: none;
  padding-left: 0;
}

.values-list li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-xl);
  position: relative;
  color: var(--color-text);
}

.values-list li::before {
  content: '✡';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-size: var(--font-size-lg);
}

.about-stats {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(200px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.stat-card {
  background: var(--color-white);
  padding: var(--spacing-xl);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  border-top: 4px solid var(--color-secondary);
}

.stat-card:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.service-card {
  background: var(--color-white);
  padding: var(--spacing-2xl);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '✡';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  color: var(--color-primary);
  opacity: 0.03;
  -webkit-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  transform: rotate(15deg);
  -webkit-transition: all var(--transition-slow);
  -moz-transition: all var(--transition-slow);
  -o-transition: all var(--transition-slow);
  transition: all var(--transition-slow);
}

.service-card:hover {
  -webkit-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  transform: translateY(-8px);
  -webkit-box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-xl);
  border-top: 4px solid var(--color-secondary);
}

.service-card:hover::before {
  -webkit-transform: rotate(30deg) scale(1.1);
  -ms-transform: rotate(30deg) scale(1.1);
  transform: rotate(30deg) scale(1.1);
  opacity: 0.05;
}

.service-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-md);
  display: inline-block;
  -webkit-transition: transform var(--transition-base);
  -moz-transition: transform var(--transition-base);
  -o-transition: transform var(--transition-base);
  transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
  -webkit-transform: scale(1.1) rotate(5deg);
  -ms-transform: scale(1.1) rotate(5deg);
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.service-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
}

.service-links {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-light);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.service-link {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  text-decoration: none;
  -webkit-border-radius: var(--border-radius-md);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-link:hover {
  -webkit-transform: translateX(4px);
  -ms-transform: translateX(4px);
  transform: translateX(4px);
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.service-link:active {
  -webkit-transform: translateX(2px);
  -ms-transform: translateX(2px);
  transform: translateX(2px);
}

/* ==========================================================================
   Quick Resources Section
   ========================================================================== */
.resources-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.resource-card {
  background: var(--color-white);
  padding: var(--spacing-2xl);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-top: 4px solid var(--color-primary);
}

.resource-card::before {
  content: '✡';
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 100px;
  color: var(--color-primary);
  opacity: 0.03;
  -webkit-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  transform: rotate(15deg);
  -webkit-transition: all var(--transition-slow);
  -moz-transition: all var(--transition-slow);
  -o-transition: all var(--transition-slow);
  transition: all var(--transition-slow);
  pointer-events: none;
}

.resource-card:hover {
  -webkit-transform: translateY(-8px) scale(1.02);
  -ms-transform: translateY(-8px) scale(1.02);
  transform: translateY(-8px) scale(1.02);
  -webkit-box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-xl);
  border-top-color: var(--color-secondary);
}

.resource-card:hover::before {
  -webkit-transform: rotate(30deg) scale(1.1);
  -ms-transform: rotate(30deg) scale(1.1);
  transform: rotate(30deg) scale(1.1);
  opacity: 0.06;
}

.resource-emergency {
  border-top-color: #dc3545;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.resource-emergency:hover {
  border-top-color: #c82333;
  -webkit-box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
}

.resource-emergency .resource-icon {
  color: #dc3545;
  -webkit-animation: pulse-emergency 2s ease-in-out infinite;
  animation: pulse-emergency 2s ease-in-out infinite;
}

@-webkit-keyframes pulse-emergency {
  0%, 100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

@keyframes pulse-emergency {
  0%, 100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

.resource-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  -webkit-transition: transform var(--transition-base);
  -moz-transition: transform var(--transition-base);
  -o-transition: transform var(--transition-base);
  transition: transform var(--transition-base);
}

.resource-card:hover .resource-icon {
  -webkit-transform: scale(1.15) rotate(5deg);
  -ms-transform: scale(1.15) rotate(5deg);
  transform: scale(1.15) rotate(5deg);
}

.resource-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.resource-card p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.btn-resource {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-decoration: none;
  -webkit-border-radius: var(--border-radius-full);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: center;
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  -webkit-box-shadow: 0 2px 8px rgba(0, 56, 118, 0.2);
  box-shadow: 0 2px 8px rgba(0, 56, 118, 0.2);
  border: none;
  cursor: pointer;
  min-width: 120px;
}

.btn-resource:hover {
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(0, 56, 118, 0.3);
  box-shadow: 0 4px 12px rgba(0, 56, 118, 0.3);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
}

.btn-resource:active {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

.btn-emergency {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  -webkit-box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  font-weight: var(--font-weight-semibold);
}

.btn-emergency:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  -webkit-box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* ==========================================================================
   Leadership Section
   ========================================================================== */
.leadership-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.leader-card {
  background: var(--color-white);
  padding: var(--spacing-2xl);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.leader-card::after {
  content: '✡';
  position: absolute;
  bottom: -30px;
  right: -30px;
  font-size: 150px;
  color: var(--color-primary);
  opacity: 0.02;
  -webkit-transform: rotate(-15deg);
  -ms-transform: rotate(-15deg);
  transform: rotate(-15deg);
}

.leader-card:hover {
  -webkit-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  transform: translateY(-8px);
  -webkit-box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-xl);
}

.leader-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-lg);
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #003876;
  background: -webkit-linear-gradient(315deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  background: -moz-linear-gradient(315deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  background: -o-linear-gradient(315deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.leader-card:hover .leader-avatar {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  -webkit-box-shadow: 0 0 0 4px var(--color-secondary-light);
  box-shadow: 0 0 0 4px var(--color-secondary-light);
}

.leader-initial {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.leader-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-2xl);
}

.leader-title {
  color: var(--color-secondary-dark);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.leader-card p:last-child {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

/* FIXED: Added styling for contact info */
.leader-contact {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.leader-contact a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Programs Section
   ========================================================================== */
.programs-content {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.program-schedule h3,
.upcoming-events h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-3xl);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--spacing-sm);
}

.program-schedule h3::before {
  content: '📅';
  font-size: var(--font-size-2xl);
}

.upcoming-events h3::before {
  content: '🎉';
  font-size: var(--font-size-2xl);
}

.schedule-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--color-white);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  border-left: 4px solid var(--color-secondary);
}

.schedule-item:hover {
  -webkit-transform: translateX(5px);
  -ms-transform: translateX(5px);
  transform: translateX(5px);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
}

.schedule-time {
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-secondary);
  -webkit-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 120px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.schedule-event h4 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-xl);
}

.schedule-event p {
  color: var(--color-text-light);
  margin: 0;
}

.event-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--color-white);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: -webkit-linear-gradient(top, var(--color-secondary), var(--color-primary));
  background: -moz-linear-gradient(top, var(--color-secondary), var(--color-primary));
  background: -o-linear-gradient(top, var(--color-secondary), var(--color-primary));
  background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
}

.event-card:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-xl);
}

.event-date {
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  padding: var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-white);
  -webkit-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.event-month {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
}

.event-day {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.event-details h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-2xl);
}

.event-details p {
  color: var(--color-text-light);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.contact-info h3,
.contact-form h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-3xl);
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-relaxed);
}

.contact-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--color-background-alt);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.contact-item:hover {
  background: var(--color-white);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  -webkit-transform: translateX(5px);
  -ms-transform: translateX(5px);
  transform: translateX(5px);
}

.contact-icon {
  font-size: var(--font-size-3xl);
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-lg);
}

.contact-item p {
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* FIXED: Added styling for clickable contact links */
.contact-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.contact-form {
  background: var(--color-white);
  padding: var(--spacing-2xl);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

/* FIXED: Added label styling for proper accessibility */
.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border);
  -webkit-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  background: var(--color-white);
  /* FIXED: Minimum touch target height */
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  -webkit-box-shadow: 0 0 0 3px rgba(0, 56, 118, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 56, 118, 0.1);
}

/* FIXED: Added invalid state styling */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23003876' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  padding-right: var(--spacing-2xl);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #003876;
  background: -webkit-linear-gradient(315deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  background: -moz-linear-gradient(315deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  background: -o-linear-gradient(315deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '✡';
  position: absolute;
  font-size: 400px;
  color: rgba(255, 255, 255, 0.03);
  top: -100px;
  right: -100px;
  -webkit-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  transform: rotate(15deg);
  pointer-events: none;
}

.footer-content {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(250px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
}

.footer-section h4 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--line-height-relaxed);
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-md);
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-style: italic;
  color: var(--color-secondary-light);
  font-weight: var(--font-weight-medium);
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  display: inline-block;
  position: relative;
  padding-left: var(--spacing-md);
  /* FIXED: Minimum touch target size */
  min-height: 44px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.footer-links a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  -webkit-transition: transform var(--transition-base);
  -moz-transition: transform var(--transition-base);
  -o-transition: transform var(--transition-base);
  transition: transform var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: var(--spacing-lg);
}

.footer-links a:hover::before {
  -webkit-transform: translateX(4px);
  -ms-transform: translateX(4px);
  transform: translateX(4px);
}

.social-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.social-links a {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* FIXED: Minimum touch target size */
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-border-radius: 50%;
  border-radius: 50%;
  font-size: var(--font-size-xl);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--color-secondary);
  -webkit-transform: translateY(-3px) rotate(5deg);
  -ms-transform: translateY(-3px) rotate(5deg);
  transform: translateY(-3px) rotate(5deg);
  -webkit-box-shadow: var(--shadow-lg);
  box-shadow: var(--shadow-lg);
}

.newsletter-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.newsletter-form input {
  padding: var(--spacing-md);
  border: 2px solid rgba(255, 255, 255, 0.2);
  -webkit-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--font-size-base);
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  /* FIXED: Minimum touch target height */
  min-height: 44px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  padding: var(--spacing-md);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-xl);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Responsive Design - FIXED: Added intermediate breakpoints
   ========================================================================== */

/* FIXED: Small tablets (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .services-grid {
    -ms-grid-columns: (minmax(250px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .resources-grid {
    -ms-grid-columns: (minmax(250px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .leadership-grid {
    -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Tablet */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .about-content {
    -ms-grid-columns: 2fr 1fr;
    grid-template-columns: 2fr 1fr;
  }

  .programs-content {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .hero-location {
    font-size: var(--font-size-xl);
  }
}

/* FIXED: Large tablets and small desktops (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .services-grid {
    -ms-grid-columns: (minmax(320px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .resources-grid {
    -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* ==========================================================================
   Responsive Design - Mobile
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --spacing-4xl: 3rem;
    --spacing-3xl: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 100px var(--spacing-xl) var(--spacing-xl);
    -webkit-box-shadow: var(--shadow-xl);
    box-shadow: var(--shadow-xl);
    -webkit-transition: right var(--transition-slow);
    -moz-transition: right var(--transition-slow);
    -o-transition: right var(--transition-slow);
    transition: right var(--transition-slow);
    z-index: var(--z-modal);
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }

  /* Mobile dropdown styles */
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-secondary);
    background: var(--color-background-alt);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }

  .hero {
    min-height: calc(100vh - 82px);
    padding: var(--spacing-3xl) 0;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-cta {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stat-card {
    padding: var(--spacing-lg);
  }

  .stat-number {
    font-size: var(--font-size-4xl);
  }

  .services-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .resources-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .leadership-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .schedule-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .schedule-time {
    width: 100%;
  }

  .event-card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .event-date {
    width: 100%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: var(--spacing-md);
  }

  .event-month {
    margin-bottom: 0;
  }

  .contact-form {
    padding: var(--spacing-lg);
  }

  .footer-content {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .social-links {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

/* FIXED: Extra small mobile devices (max 374px) */
@media (max-width: 374px) {
  :root {
    --font-size-5xl: 1.75rem;
    --font-size-4xl: 1.5rem;
    --container-padding: 0.75rem;
  }

  .nav-menu {
    width: 100%;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.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;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* FIXED: Enhanced reduced motion support - affects all animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    -moz-transition-duration: 0.01ms !important;
    -o-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* FIXED: Disable transform animations specifically */
  .hero-logo,
  .star-of-david,
  .service-card:hover,
  .leader-card:hover,
  .nav-link:hover,
  .btn:hover {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #001f3f;
    --color-text: #000000;
    --color-text-light: #333333; /* FIXED: Darker for high contrast */
  }

  .btn {
    border-width: 3px;
  }

  .nav-link::after {
    height: 3px;
  }

  /* FIXED: Enhanced borders in high contrast mode */
  .service-card,
  .leader-card,
  .stat-card {
    border: 2px solid var(--color-primary);
  }
}

/* ==========================================================================
   Print Styles - FIXED: Enhanced print optimization
   ========================================================================== */
@media print {
  /* Hide interactive elements */
  .navbar,
  .nav-toggle,
  .hero-cta,
  .btn,
  .contact-form,
  .footer,
  .social-links,
  .newsletter-form,
  .lang-toggle {
    display: none !important;
  }

  /* Reset colors for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* FIXED: Optimize sections for printing */
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    color: #000;
  }

  /* FIXED: Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  /* FIXED: Optimize images for print */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* FIXED: Remove shadows and transitions */
  * {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
  }

  /* FIXED: Adjust grid layouts for print */
  .services-grid,
  .leadership-grid,
  .about-stats {
    display: block;
  }

  .service-card,
  .leader-card,
  .stat-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #000;
    padding: 1rem;
  }

  /* FIXED: Show contact information clearly */
  .contact-item {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
  }

  /* FIXED: Remove background colors */
  .hero,
  .section-alt,
  .contact-item {
    background: #fff !important;
  }

  /* FIXED: Ensure hero content is visible */
  .hero-title,
  .hero-subtitle,
  .hero-location {
    color: #000 !important;
  }
}

/* ==========================================================================
   Loading and Animation States
   ========================================================================== */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes slideInLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-30px);
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-30px);
    -ms-transform: translateX(-30px);
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes slideInRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(30px);
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(30px);
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Smooth reveal on scroll */
.fade-in {
  -webkit-animation: fadeIn 0.8s ease-out;
  animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
  -webkit-animation: slideInLeft 0.8s ease-out;
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  -webkit-animation: slideInRight 0.8s ease-out;
  animation: slideInRight 0.8s ease-out;
}

/* ==========================================================================
   Utility Animations
   ========================================================================== */
.bounce {
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  60% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  60% {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
  }
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  -webkit-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-background-alt);
}

/* ==========================================================================
   Selection Styles
   ========================================================================== */
::-moz-selection {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

::selection {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* ==========================================================================
   TEACHINGS PAGE STYLES
   Extended styles for the teachings page (tanitasok.html)
   ========================================================================== */

/* Additional CSS Custom Properties for Teachings */
:root {
  /* Holiday-specific colors */
  --color-rosh-hashanah: #8B4513;
  --color-yom-kippur: #FFFFFF;
  --color-sukkot: #90EE90;
  --color-chanukah: #4169E1;
  --color-purim: #FF69B4;
  --color-passover: #8B0000;
  --color-shavuot: #87CEEB;
  --color-shabbat: #E6E6FA;

  /* Educational colors */
  --color-fact-box: #FFF8DC;
  --color-study-guide: #F0F8FF;
  --color-quote-bg: #F5F5F5;
  --color-glossary: #FFFACD;
  --color-timeline: #E8F4F8;

  /* Hebrew text settings */
  --font-hebrew-lg: 1.35rem;
  --font-hebrew-xl: 1.75rem;
  --font-hebrew-2xl: 2rem;

  /* Interactive elements */
  --color-accordion-header: var(--color-primary);
  --color-tab-active: var(--color-secondary);
  --color-progress: var(--color-secondary);

  /* Animation timing */
  --transition-expand: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-collapse: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Holiday Cards */
.holidays-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.holiday-card {
  background: var(--color-white);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  -webkit-box-shadow: var(--shadow-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  position: relative;
  border-top: 4px solid var(--color-secondary);
}

.holiday-card:hover {
  -webkit-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  transform: translateY(-8px);
  -webkit-box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-xl);
}

.holiday-card:focus-within {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.holiday-header {
  background: -webkit-linear-gradient(315deg, var(--color-primary-dark), var(--color-primary));
  background: -moz-linear-gradient(315deg, var(--color-primary-dark), var(--color-primary));
  background: -o-linear-gradient(315deg, var(--color-primary-dark), var(--color-primary));
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.holiday-header::before {
  content: '✡';
  position: absolute;
  font-size: 120px;
  opacity: 0.1;
  top: -30px;
  right: -30px;
  -webkit-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  transform: rotate(15deg);
  pointer-events: none;
}

.holiday-name {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
}

.holiday-name-hebrew {
  font-family: var(--font-hebrew);
  font-size: var(--font-hebrew-xl);
  direction: rtl;
  display: block;
  color: var(--color-secondary-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 1px;
}

.holiday-date-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  padding: var(--spacing-xs) var(--spacing-md);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--spacing-sm);
  letter-spacing: 0.5px;
}

.holiday-icon {
  font-size: var(--font-size-5xl);
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-background-alt);
  margin: var(--spacing-lg);
  -webkit-border-radius: 50%;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  -webkit-transition: transform var(--transition-base);
  -moz-transition: transform var(--transition-base);
  -o-transition: transform var(--transition-base);
  transition: transform var(--transition-base);
}

.holiday-card:hover .holiday-icon {
  -webkit-transform: scale(1.1) rotate(5deg);
  -ms-transform: scale(1.1) rotate(5deg);
  transform: scale(1.1) rotate(5deg);
}

.holiday-content {
  padding: var(--spacing-xl);
}

.holiday-description {
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

/* Traditional holiday colors */
.holiday-card.rosh-hashanah {
  border-top-color: var(--color-rosh-hashanah);
}

.holiday-card.yom-kippur {
  border-top-color: var(--color-gray);
}

.holiday-card.sukkot {
  border-top-color: var(--color-sukkot);
}

.holiday-card.chanukah {
  border-top-color: var(--color-chanukah);
}

.holiday-card.purim {
  border-top-color: var(--color-purim);
}

.holiday-card.passover {
  border-top-color: var(--color-passover);
}

.holiday-card.shavuot {
  border-top-color: var(--color-shavuot);
}

.holiday-card.shabbat {
  border-top-color: var(--color-shabbat);
}

/* Hebrew Text Styling */
.hebrew-text {
  font-family: var(--font-hebrew);
  font-size: var(--font-hebrew-lg);
  direction: rtl;
  line-height: var(--line-height-relaxed);
  text-align: right;
  color: var(--color-text);
  padding: var(--spacing-md) 0;
}

.hebrew-text.large {
  font-size: var(--font-hebrew-xl);
}

.hebrew-text.extra-large {
  font-size: var(--font-hebrew-2xl);
}

.prayer-text {
  background: var(--color-background-alt);
  padding: var(--spacing-xl);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  margin: var(--spacing-xl) 0;
  border-right: 4px solid var(--color-secondary);
  position: relative;
}

.prayer-text.shema {
  border-right-color: var(--color-primary);
  background: -webkit-linear-gradient(bottom, var(--color-background-alt), var(--color-white));
  background: -moz-linear-gradient(bottom, var(--color-background-alt), var(--color-white));
  background: -o-linear-gradient(bottom, var(--color-background-alt), var(--color-white));
  background: linear-gradient(to top, var(--color-background-alt), var(--color-white));
}

.prayer-text::before {
  content: '✡';
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  font-size: var(--font-size-3xl);
  color: var(--color-secondary);
  opacity: 0.3;
}

.prayer-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.transliteration {
  font-style: italic;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  border-left: 2px solid var(--color-border);
}

.translation {
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin: var(--spacing-md) 0;
}

.translation-label {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--spacing-xs);
}

/* Accordion/collapsible sections */
.accordion {
  margin: var(--spacing-xl) 0;
}

.accordion-item {
  background: var(--color-white);
  -webkit-border-radius: var(--border-radius-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-md);
  -webkit-box-shadow: var(--shadow-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  background: var(--color-accordion-header);
  color: var(--color-white);
  padding: var(--spacing-lg) var(--spacing-xl);
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: all var(--transition-base);
  -moz-transition: all var(--transition-base);
  -o-transition: all var(--transition-base);
  transition: all var(--transition-base);
  min-height: 44px;
}

.accordion-header:hover {
  background: var(--color-primary-light);
}

.accordion-header:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: -2px;
}

.accordion-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.accordion-icon {
  font-size: var(--font-size-xl);
  -webkit-transition: transform var(--transition-base);
  -moz-transition: transform var(--transition-base);
  -o-transition: transform var(--transition-base);
  transition: transform var(--transition-base);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height var(--transition-expand);
  -moz-transition: max-height var(--transition-expand);
  -o-transition: max-height var(--transition-expand);
  transition: max-height var(--transition-expand);
}

.accordion-content.expanded {
  max-height: 5000px;
  -webkit-transition: max-height var(--transition-expand);
  -moz-transition: max-height var(--transition-expand);
  -o-transition: max-height var(--transition-expand);
  transition: max-height var(--transition-expand);
}

.accordion-body {
  padding: var(--spacing-xl);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

/* Teachings responsive design */
@media (min-width: 768px) {
  .holidays-grid {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .holidays-grid {
    -ms-grid-columns: (1fr)[3];
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .holidays-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DISCLAIMER MODAL
   ========================================================================== */

.disclaimer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.disclaimer-modal.show {
  opacity: 1;
  visibility: visible;
}

.disclaimer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  cursor: pointer;
}

.disclaimer-content {
  background: var(--color-white);
  border-radius: 0.5rem;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-base);
  animation: disclaimerSlideUp 0.3s ease-out forwards;
}

.disclaimer-modal.show .disclaimer-content {
  transform: scale(1);
}

@keyframes disclaimerSlideUp {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.disclaimer-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.disclaimer-close:hover,
.disclaimer-close:focus {
  background-color: var(--color-background-alt);
  color: var(--color-text);
  outline: none;
}

.disclaimer-close:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.disclaimer-body {
  padding: var(--spacing-2xl);
  text-align: center;
}

.disclaimer-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.disclaimer-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.disclaimer-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.disclaimer-subtext {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  line-height: 1.5;
}

.disclaimer-accept {
  width: 100%;
  max-width: 300px;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  min-height: 48px;
  text-transform: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .disclaimer-modal {
    padding: var(--spacing-sm);
  }

  .disclaimer-content {
    width: 95%;
  }

  .disclaimer-body {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .disclaimer-icon {
    font-size: 2.5rem;
  }

  .disclaimer-title {
    font-size: var(--font-size-xl);
  }

  .disclaimer-text {
    font-size: var(--font-size-base);
  }

  .disclaimer-subtext {
    font-size: var(--font-size-sm);
  }

  .disclaimer-accept {
    width: 100%;
    max-width: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .disclaimer-modal {
    transition: none;
  }

  .disclaimer-content {
    animation: none;
    transition: none;
  }

  .disclaimer-icon {
    animation: none;
  }

  @keyframes disclaimerSlideUp {
    from, to {
      transform: none;
      opacity: 1;
    }
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .disclaimer-backdrop {
    background: rgba(0, 0, 0, 0.9);
  }

  .disclaimer-content {
    border-width: 3px;
  }

  .disclaimer-close:focus-visible {
    outline-width: 3px;
  }
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */
