/*=================================================
  JAMILA WELFARE FOUNDATION - MODERN CUSTOM CSS
  Version: 2.0 (2024-2025 Design Trends)

  INSTRUCTIONS:
  Copy this entire file and paste into:
  WordPress Admin > Appearance > Customize > Additional CSS

  DO NOT modify WordPress core files!
  All customizations are contained in this file.
  =================================================*/

/* ========== CSS CUSTOM PROPERTIES (Variables) ========== */
:root {
  /* Brand Colors */
  --jwf-primary: #D9006C;           /* Primary Pink */
  --jwf-primary-light: #FF1A8C;     /* Lighter Pink */
  --jwf-primary-dark: #A00052;      /* Darker Pink */
  --jwf-secondary: #3B82F6;         /* Primary Blue */
  --jwf-secondary-light: #60A5FA;   /* Lighter Blue */
  --jwf-secondary-dark: #2563EB;    /* Darker Blue */

  /* Neutral Colors */
  --jwf-dark: #1F2937;              /* Text Color */
  --jwf-gray-800: #374151;          /* Dark Gray */
  --jwf-gray-600: #6B7280;          /* Medium Gray */
  --jwf-gray-400: #9CA3AF;          /* Light Gray */
  --jwf-gray-200: #E5E7EB;          /* Very Light Gray */
  --jwf-gray-100: #F3F4F6;          /* Background Gray */
  --jwf-gray-50: #F9FAFB;           /* Lightest Gray */
  --jwf-white: #FFFFFF;             /* White */

  /* Gradients */
  --jwf-gradient-primary: linear-gradient(135deg, #D9006C 0%, #FF1A8C 100%);
  --jwf-gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  --jwf-gradient-mixed: linear-gradient(135deg, #D9006C 0%, #3B82F6 100%);
  --jwf-gradient-overlay: linear-gradient(135deg, rgba(217, 0, 108, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);

  /* Shadows */
  --jwf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --jwf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --jwf-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --jwf-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --jwf-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --jwf-shadow-colored: 0 10px 30px rgba(217, 0, 108, 0.3);

  /* Spacing */
  --jwf-spacing-xs: 0.5rem;    /* 8px */
  --jwf-spacing-sm: 1rem;      /* 16px */
  --jwf-spacing-md: 1.5rem;    /* 24px */
  --jwf-spacing-lg: 2rem;      /* 32px */
  --jwf-spacing-xl: 3rem;      /* 48px */
  --jwf-spacing-2xl: 4rem;     /* 64px */
  --jwf-spacing-3xl: 6rem;     /* 96px */

  /* Border Radius */
  --jwf-radius-sm: 0.375rem;   /* 6px */
  --jwf-radius-md: 0.5rem;     /* 8px */
  --jwf-radius-lg: 0.75rem;    /* 12px */
  --jwf-radius-xl: 1rem;       /* 16px */
  --jwf-radius-2xl: 1.5rem;    /* 24px */
  --jwf-radius-full: 9999px;   /* Fully rounded */

  /* Transitions */
  --jwf-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --jwf-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --jwf-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --jwf-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --jwf-font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Z-Index Layers */
  --jwf-z-dropdown: 100;
  --jwf-z-sticky: 200;
  --jwf-z-fixed: 300;
  --jwf-z-modal: 400;
  --jwf-z-popover: 500;
  --jwf-z-tooltip: 600;
}

/* ========== MODERN TYPOGRAPHY ========== */

body {
  font-family: var(--jwf-font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--jwf-dark);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--jwf-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--jwf-dark);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--jwf-spacing-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--jwf-spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--jwf-spacing-md);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--jwf-spacing-sm);
}

p {
  margin-bottom: var(--jwf-spacing-md);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--jwf-gray-600);
}

/* ========== MODERN HEADER & NAVIGATION ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--jwf-z-sticky);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--jwf-shadow-sm);
  transition: all var(--jwf-transition-base);
}

.site-header.scrolled {
  box-shadow: var(--jwf-shadow-md);
}

/* Logo Styling */
.site-logo img {
  transition: transform var(--jwf-transition-base);
}

.site-logo:hover img {
  transform: scale(1.05);
}

/* Modern Navigation Menu */
.main-navigation ul {
  display: flex;
  gap: var(--jwf-spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  position: relative;
  display: block;
  padding: var(--jwf-spacing-xs) var(--jwf-spacing-sm);
  color: var(--jwf-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--jwf-transition-base);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--jwf-gradient-primary);
  transition: transform var(--jwf-transition-base);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--jwf-primary);
}

/* Special Donate Menu Button */
.menu-item.menu-donate-button a {
  background: var(--jwf-gradient-primary);
  color: var(--jwf-white) !important;
  padding: 0.625rem 1.5rem !important;
  border-radius: var(--jwf-radius-full);
  font-weight: 600;
  box-shadow: var(--jwf-shadow-colored);
  transition: all var(--jwf-transition-base);
}

.menu-item.menu-donate-button a::after {
  display: none;
}

.menu-item.menu-donate-button a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px rgba(217, 0, 108, 0.4);
}

/* ========== MODERN BUTTONS ========== */

.wp-block-button {
  margin: var(--jwf-spacing-xs);
}

.wp-block-button__link,
.wp-block-button .wp-block-button__link {
  border-radius: var(--jwf-radius-full);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--jwf-transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Primary Button (Filled) */
.is-style-fill .wp-block-button__link,
.wp-block-button:not([class*="is-style"]) .wp-block-button__link {
  background: var(--jwf-gradient-primary);
  color: var(--jwf-white);
  box-shadow: var(--jwf-shadow-colored);
}

.is-style-fill .wp-block-button__link::before,
.wp-block-button:not([class*="is-style"]) .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--jwf-gradient-secondary);
  opacity: 0;
  transition: opacity var(--jwf-transition-base);
  z-index: -1;
}

.is-style-fill .wp-block-button__link:hover,
.wp-block-button:not([class*="is-style"]) .wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(217, 0, 108, 0.4);
}

.is-style-fill .wp-block-button__link:hover::before,
.wp-block-button:not([class*="is-style"]) .wp-block-button__link:hover::before {
  opacity: 1;
}

/* Outline Button */
.is-style-outline .wp-block-button__link {
  border: 2px solid var(--jwf-primary);
  color: var(--jwf-primary);
  background: transparent;
  box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--jwf-primary);
  color: var(--jwf-white);
  transform: translateY(-3px);
  box-shadow: var(--jwf-shadow-colored);
}

/* Secondary Button */
.is-style-fill.has-secondary-background .wp-block-button__link {
  background: var(--jwf-gradient-secondary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Button Loading State (optional) */
.wp-block-button__link.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ========== MODERN HERO SECTION ========== */

.wp-block-cover.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wp-block-cover.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--jwf-gradient-overlay);
  opacity: 0.85;
  z-index: 1;
}

.wp-block-cover.hero-section .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--jwf-spacing-xl);
  animation: fadeInUp 1s ease-out;
}

.wp-block-cover.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--jwf-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--jwf-spacing-lg);
  font-weight: 800;
  line-height: 1.1;
}

.wp-block-cover.hero-section p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto var(--jwf-spacing-xl);
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wp-block-cover.hero-section .wp-block-buttons {
  margin-top: var(--jwf-spacing-xl);
  display: flex;
  gap: var(--jwf-spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Parallax Effect for Hero (optional - requires JS) */
.hero-section.parallax {
  background-attachment: fixed;
}

/* ========== MODERN PROGRAM CARDS ========== */

.program-cards-container {
  padding: var(--jwf-spacing-3xl) var(--jwf-spacing-md);
  background: var(--jwf-gray-50);
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--jwf-spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  background: var(--jwf-white);
  border-radius: var(--jwf-radius-2xl);
  padding: var(--jwf-spacing-xl);
  text-align: center;
  box-shadow: var(--jwf-shadow);
  transition: all var(--jwf-transition-base);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--jwf-gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--jwf-transition-base);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--jwf-shadow-xl);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--jwf-spacing-lg);
  background: var(--jwf-gradient-primary);
  border-radius: var(--jwf-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--jwf-transition-base);
}

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

.program-card-icon img,
.program-card-icon svg {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--jwf-spacing-sm);
  color: var(--jwf-dark);
}

.program-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--jwf-gray-600);
  margin-bottom: var(--jwf-spacing-md);
}

/* Alternate Card Colors */
.program-card:nth-child(2n) .program-card-icon {
  background: var(--jwf-gradient-secondary);
}

.program-card:nth-child(2n)::before {
  background: var(--jwf-gradient-secondary);
}

/* ========== MODERN IMPACT NUMBERS ========== */

.impact-section {
  background: var(--jwf-dark);
  color: var(--jwf-white);
  padding: var(--jwf-spacing-3xl) var(--jwf-spacing-md);
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--jwf-gradient-mixed);
  opacity: 0.1;
}

.impact-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--jwf-spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.impact-number {
  text-align: center;
  padding: var(--jwf-spacing-lg);
  transition: transform var(--jwf-transition-base);
}

.impact-number:hover {
  transform: scale(1.05);
}

.impact-number .number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  background: var(--jwf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: var(--jwf-spacing-sm);
  font-family: var(--jwf-font-display);
}

.impact-number .label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Counter Animation (requires JS) */
.impact-number .number {
  animation: countUp 2s ease-out;
}

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

/* ========== MODERN URGENT APPEAL SECTION ========== */

.urgent-appeal {
  background: linear-gradient(135deg, rgba(217, 0, 108, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: none;
  border-left: 5px solid var(--jwf-primary);
  border-radius: var(--jwf-radius-xl);
  padding: var(--jwf-spacing-xl);
  margin: var(--jwf-spacing-3xl) auto;
  max-width: 1000px;
  box-shadow: var(--jwf-shadow-md);
  position: relative;
  overflow: hidden;
}

.urgent-appeal::before {
  content: '🚨';
  position: absolute;
  top: var(--jwf-spacing-md);
  right: var(--jwf-spacing-md);
  font-size: 3rem;
  opacity: 0.1;
}

.urgent-appeal h2 {
  color: var(--jwf-primary);
  margin-bottom: var(--jwf-spacing-md);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.urgent-appeal p {
  color: var(--jwf-gray-800);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: var(--jwf-spacing-lg);
}

/* Progress Bar */
.progress-bar-container {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--jwf-radius-full);
  height: 12px;
  margin: var(--jwf-spacing-lg) 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--jwf-gradient-primary);
  border-radius: var(--jwf-radius-full);
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(217, 0, 108, 0.5);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: var(--jwf-spacing-sm);
  font-size: 0.875rem;
  color: var(--jwf-gray-600);
  font-weight: 600;
}

/* ========== MODERN TESTIMONIALS ========== */

.testimonials-section {
  padding: var(--jwf-spacing-3xl) var(--jwf-spacing-md);
  background: var(--jwf-white);
}

.wp-block-quote,
.testimonial-card {
  background: var(--jwf-gray-50);
  border: none;
  border-left: 5px solid var(--jwf-primary);
  border-radius: var(--jwf-radius-xl);
  padding: var(--jwf-spacing-xl);
  margin: var(--jwf-spacing-lg) 0;
  box-shadow: var(--jwf-shadow);
  transition: all var(--jwf-transition-base);
  position: relative;
}

.wp-block-quote:hover,
.testimonial-card:hover {
  box-shadow: var(--jwf-shadow-lg);
  transform: translateY(-5px);
}

.wp-block-quote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--jwf-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.wp-block-quote p {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--jwf-gray-800);
  margin-bottom: var(--jwf-spacing-md);
  position: relative;
  z-index: 1;
}

.wp-block-quote cite {
  color: var(--jwf-primary);
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  display: block;
  margin-top: var(--jwf-spacing-md);
}

.wp-block-quote cite::before {
  content: '— ';
}

/* ========== STICKY DONATE BUTTON (Fixed) ========== */

.sticky-donate-btn {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: var(--jwf-z-fixed);
}

.sticky-donate-btn a {
  background: var(--jwf-gradient-primary);
  color: var(--jwf-white);
  padding: 1rem 1.75rem;
  border-radius: var(--jwf-radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: block;
  text-align: center;
  box-shadow: var(--jwf-shadow-colored);
  transition: all var(--jwf-transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 3s infinite;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sticky-donate-btn a:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(217, 0, 108, 0.5);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(217, 0, 108, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(217, 0, 108, 0.6);
  }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--jwf-z-fixed);
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  color: var(--jwf-white);
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--jwf-transition-base);
  animation: bounceIn 1s ease-out;
}

.whatsapp-float a:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* WhatsApp Icon */
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ========== MODERN FORMS ========== */

.wpcf7-form,
.wp-block-contact-form-7 {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--jwf-dark);
  margin-bottom: var(--jwf-spacing-xs);
  font-size: 0.9375rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--jwf-gray-200);
  border-radius: var(--jwf-radius-lg);
  font-size: 1rem;
  font-family: var(--jwf-font-sans);
  transition: all var(--jwf-transition-base);
  margin-bottom: var(--jwf-spacing-md);
  background: var(--jwf-white);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--jwf-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 0, 108, 0.1);
  transform: translateY(-2px);
}

.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  background: var(--jwf-gradient-primary);
  color: var(--jwf-white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--jwf-radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--jwf-transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--jwf-shadow-colored);
  width: 100%;
  margin-top: var(--jwf-spacing-md);
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(217, 0, 108, 0.4);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(-1px);
}

/* Form Validation Messages */
.wpcf7-not-valid-tip {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7-response-output {
  border-radius: var(--jwf-radius-lg);
  padding: var(--jwf-spacing-md);
  margin: var(--jwf-spacing-md) 0;
  font-weight: 500;
}

.wpcf7-mail-sent-ok {
  background: #D1FAE5;
  border: 2px solid #10B981;
  color: #065F46;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #FEE2E2;
  border: 2px solid #EF4444;
  color: #991B1B;
}

/* ========== MODERN FOOTER ========== */

.site-footer {
  background: var(--jwf-dark);
  color: var(--jwf-white);
  padding: var(--jwf-spacing-3xl) var(--jwf-spacing-md) var(--jwf-spacing-lg);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--jwf-gradient-mixed);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--jwf-spacing-xl);
  margin-bottom: var(--jwf-spacing-xl);
}

.footer-widget h3 {
  color: var(--jwf-white);
  font-size: 1.25rem;
  margin-bottom: var(--jwf-spacing-md);
  font-weight: 700;
}

.footer-widget p,
.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  transition: color var(--jwf-transition-base);
}

.footer-widget a:hover {
  color: var(--jwf-primary);
  text-decoration: none;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Footer Social Icons */
.footer-social-icons {
  display: flex;
  gap: var(--jwf-spacing-sm);
  margin-top: var(--jwf-spacing-md);
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--jwf-transition-base);
}

.footer-social-icons a:hover {
  background: var(--jwf-primary);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--jwf-spacing-lg);
  margin-top: var(--jwf-spacing-xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

/* ========== MODERN CARDS & CONTAINERS ========== */

.wp-block-group,
.wp-block-columns {
  margin-bottom: var(--jwf-spacing-xl);
}

.modern-card {
  background: var(--jwf-white);
  border-radius: var(--jwf-radius-xl);
  padding: var(--jwf-spacing-xl);
  box-shadow: var(--jwf-shadow);
  transition: all var(--jwf-transition-base);
  border: 1px solid var(--jwf-gray-200);
}

.modern-card:hover {
  box-shadow: var(--jwf-shadow-lg);
  transform: translateY(-5px);
  border-color: var(--jwf-primary);
}

/* ========== MODERN SECTION HEADERS ========== */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--jwf-spacing-2xl);
  padding: 0 var(--jwf-spacing-md);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--jwf-spacing-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--jwf-gradient-primary);
  border-radius: var(--jwf-radius-full);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--jwf-gray-600);
  line-height: 1.75;
}

/* ========== MEDIA & TEXT BLOCKS ========== */

.wp-block-media-text {
  border-radius: var(--jwf-radius-xl);
  overflow: hidden;
  box-shadow: var(--jwf-shadow-md);
  margin-bottom: var(--jwf-spacing-xl);
}

.wp-block-media-text__media img {
  transition: transform var(--jwf-transition-slow);
}

.wp-block-media-text:hover .wp-block-media-text__media img {
  transform: scale(1.05);
}

/* ========== MODERN TABLES ========== */

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--jwf-radius-lg);
  overflow: hidden;
  box-shadow: var(--jwf-shadow);
  margin: var(--jwf-spacing-xl) 0;
}

thead {
  background: var(--jwf-gradient-primary);
  color: var(--jwf-white);
}

th {
  padding: var(--jwf-spacing-md);
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

td {
  padding: var(--jwf-spacing-md);
  border-bottom: 1px solid var(--jwf-gray-200);
}

tbody tr:hover {
  background: var(--jwf-gray-50);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ========== MODERN ANIMATIONS ========== */

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

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

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

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

/* Apply animations to elements as they come into view */
.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out;
}

/* ========== MODERN ACCESSIBILITY ========== */

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--jwf-primary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--jwf-primary);
  color: var(--jwf-white);
  padding: var(--jwf-spacing-sm) var(--jwf-spacing-md);
  text-decoration: none;
  z-index: var(--jwf-z-tooltip);
  border-radius: 0 0 var(--jwf-radius-md) 0;
  font-weight: 600;
  transition: top var(--jwf-transition-base);
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --jwf-shadow: 0 0 0 2px var(--jwf-dark);
    --jwf-shadow-md: 0 0 0 3px var(--jwf-dark);
    --jwf-shadow-lg: 0 0 0 4px var(--jwf-dark);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== RESPONSIVE DESIGN (Mobile First) ========== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .program-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .program-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .impact-numbers {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Specific (below 768px) */
@media (max-width: 767px) {
  /* Typography */
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Hero Section */
  .wp-block-cover.hero-section {
    min-height: 70vh;
  }

  .wp-block-cover.hero-section h1 {
    font-size: 2rem;
  }

  .wp-block-cover.hero-section p {
    font-size: 1rem;
  }

  /* Buttons */
  .wp-block-button__link {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Impact Numbers */
  .impact-number .number {
    font-size: 2.5rem;
  }

  .impact-number .label {
    font-size: 0.9375rem;
  }

  /* Sticky Donate Button */
  .sticky-donate-btn {
    right: 15px;
  }

  .sticky-donate-btn a {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  /* WhatsApp Button */
  .whatsapp-float {
    bottom: 20px;
    right: 15px;
  }

  .whatsapp-float a {
    width: 55px;
    height: 55px;
  }

  /* Spacing */
  .program-cards-container,
  .impact-section,
  .testimonials-section {
    padding: var(--jwf-spacing-xl) var(--jwf-spacing-sm);
  }

  /* Cards */
  .program-card {
    padding: var(--jwf-spacing-lg);
  }

  /* Forms */
  .wpcf7-form input[type="submit"] {
    padding: 0.875rem 2rem;
  }
}

/* Very Small Devices (below 480px) */
@media (max-width: 479px) {
  :root {
    --jwf-spacing-xl: 2rem;
    --jwf-spacing-2xl: 2.5rem;
    --jwf-spacing-3xl: 3rem;
  }

  .wp-block-cover.hero-section h1 {
    font-size: 1.75rem;
  }

  .urgent-appeal {
    padding: var(--jwf-spacing-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--jwf-spacing-lg);
  }
}

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

@media print {
  .sticky-donate-btn,
  .whatsapp-float,
  .site-header,
  .site-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

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

  img {
    max-width: 100% !important;
  }
}

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

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--jwf-spacing-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--jwf-spacing-md);
}

.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;
}

.gradient-text {
  background: var(--jwf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-sm { box-shadow: var(--jwf-shadow-sm); }
.shadow { box-shadow: var(--jwf-shadow); }
.shadow-md { box-shadow: var(--jwf-shadow-md); }
.shadow-lg { box-shadow: var(--jwf-shadow-lg); }
.shadow-xl { box-shadow: var(--jwf-shadow-xl); }

/*=================================================
  END OF MODERN CUSTOM CSS
  Version: 2.0
  Last Updated: November 6, 2024
  =================================================*/
