/**
 * MPFoundation Homepage Styles - Professional Version
 * Modern, accessible, and responsive design
 */

/* Mobile Video Hide - Force Override */
@media screen and (max-width: 768px) {
    .mpf-hero-video,
    .mpf-hero-youtube,
    .mpf-hero-youtube-container,
    .mpf-desktop-video-container,
    .mpf-hero-background video,
    .mpf-hero-background iframe {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
    }
    
    .mpf-hero-background {
        background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%) !important;
    }
    
    .mpf-hero-default-bg {
        display: block !important;
        background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%) !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

/* ===================================================================
   HERO SECTION - PROFESSIONAL DESIGN
   =================================================================== */

.mpf-hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%);
    overflow: hidden;
}

.mpf-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.mpf-hero-video,
.mpf-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* YouTube background video support */
.mpf-hero-youtube-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mpf-hero-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 100%;
}

.mpf-hero-default-bg {
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); */
    background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%);
}

.mpf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 123, 172, 0.4);
    z-index: 2;
}

.mpf-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .mpf-hero-content {
        /* grid-template-columns: 1fr 400px; */
        gap: 4rem;
        padding: 0 2rem;
    }
}

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

@media (min-width: 1024px) {
    .mpf-hero-text {
        text-align: left;
    }
}

.mpf-hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white !important;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .mpf-hero-text h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .mpf-hero-text h1 {
        font-size: 4rem;
    }
}

.mpf-hero-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .mpf-hero-text p {
        font-size: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ===================================================================
   QUICK DONATE CARD - MODERN DESIGN
   =================================================================== */

.mpf-quick-donate-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    transition: all 300ms ease-in-out;
}

@media (min-width: 1024px) {
    .mpf-quick-donate-card {
        margin: 0;
    }
}

.mpf-quick-donate-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4);
}

.mpf-quick-donate-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.mpf-quick-donate-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937 !important;
    margin-bottom: 0.5rem;
}

.mpf-quick-donate-header p {
    font-size: 0.875rem;
    color: #6b7280 !important;
    margin-bottom: 0;
}

/* Donation Amount Buttons */
.mpf-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mpf-amount-btn {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    text-align: center;
    text-decoration: none;
}

.mpf-amount-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
}

.mpf-amount-btn.active,
.mpf-amount-btn:focus {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}

/* Custom Amount Input */
.mpf-custom-amount {
    position: relative;
    margin-bottom: 1.5rem;
}

.mpf-custom-amount input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #374151;
    background: white;
    transition: border-color 150ms ease-in-out;
}

.mpf-custom-amount input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mpf-custom-amount::before {
    /* content: '$';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #6b7280;
    z-index: 1; */
}

/* Donate Button */
.mpf-donate-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mpf-donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
}

.mpf-donate-btn i {
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

/* ===================================================================
   DONATION FORM ENHANCEMENTS
   =================================================================== */

/* Donor Information Fields */
.mpf-donor-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.mpf-form-group {
    margin-bottom: 1rem;
}

.mpf-form-group:last-child {
    margin-bottom: 0;
}

.mpf-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.mpf-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.mpf-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Payment Method Buttons */
.mpf-donate-btn-main {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.mpf-donate-btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
}

.mpf-payment-alternatives {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mpf-donate-btn-alternative {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mpf-donate-btn-alternative:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
}

/* Loading state */
.mpf-donate-btn-main.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.mpf-donate-btn-main.loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form validation */
.mpf-form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.mpf-form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Mobile optimizations for donation form */
@media (max-width: 768px) {
    .mpf-donor-info {
        margin: 0 -0.5rem 1.5rem;
        padding: 0.75rem;
    }
    
    .mpf-form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 0.75rem;
    }
    
    .mpf-donate-btn-main {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .mpf-donate-btn-alternative {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* ===================================================================
   CONTENT SECTIONS - IMPROVED READABILITY
   =================================================================== */

.mpf-section {
    padding: 4rem 0;
    position: relative;
}

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

.mpf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .mpf-container {
        padding: 0 2rem;
    }
}

/* Section Headers */
.mpf-section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mpf-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937 !important;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .mpf-section-header h2 {
        font-size: 2.5rem;
    }
}

.mpf-section-header p {
    font-size: 1.125rem;
    color: #6b7280 !important;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Card Grid System */
.mpf-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mpf-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .mpf-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Cards */
.mpf-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 300ms ease-in-out;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.mpf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mpf-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.mpf-card-body {
    padding: 1.5rem;
}

.mpf-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.mpf-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937 !important;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.mpf-card p {
    font-size: 0.875rem;
    color: #6b7280 !important;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mpf-card p:last-child {
    margin-bottom: 0;
}

/* ===================================================================
   STATISTICS SECTION
   =================================================================== */

.mpf-stats-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 4rem 0;
}

.mpf-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .mpf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mpf-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mpf-stat-item {
    padding: 1.5rem;
}

.mpf-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb !important;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.mpf-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ===================================================================
   RESPONSIVE MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .mpf-hero-banner {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Hide all video background elements on mobile */
    .mpf-hero-video,
    .mpf-hero-youtube,
    .mpf-hero-youtube-container {
        display: none !important;
    }
    
    /* Ensure default background shows on mobile */
    .mpf-hero-default-bg {
        display: block !important;
        background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%) !important;
    }
    
    .mpf-hero-text h1 {
        font-size: 2rem;
    }
    
    .mpf-hero-text p {
        font-size: 1rem;
    }
    
    .mpf-quick-donate-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .mpf-section {
        padding: 3rem 0;
    }
    
    .mpf-section-header {
        margin-bottom: 2rem;
    }
    
    .mpf-section-header h2 {
        font-size: 1.75rem;
    }
    
    .mpf-container {
        padding: 0 1rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    /* Ensure video is absolutely hidden on small mobile screens */
    .mpf-hero-video,
    .mpf-hero-youtube,
    .mpf-hero-youtube-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .mpf-hero-banner {
        min-height: auto;
        background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%) !important;
    }
    
    .mpf-hero-background {
        background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%) !important;
    }
    
    .mpf-hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .mpf-hero-text p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* ===================================================================
   ACCESSIBILITY IMPROVEMENTS
   =================================================================== */

/* Focus indicators */
.mpf-amount-btn:focus,
.mpf-donate-btn:focus,
.mpf-custom-amount input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mpf-hero-text h1,
    .mpf-hero-text p {
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    }
    
    .mpf-quick-donate-card {
        border: 2px solid #1f2937;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mpf-quick-donate-card,
    .mpf-card,
    .mpf-amount-btn,
    .mpf-donate-btn {
        transition: none;
    }
    
    .mpf-card:hover,
    .mpf-quick-donate-card:hover,
    .mpf-donate-btn:hover {
        transform: none;
    }
}

/* Flex layout for header */
.mpf-quick-donate-header .d-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.mpf-quick-donate-icon {
    font-size: 40px;
    margin-bottom: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.mpf-quick-donate-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: #207dad;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mpf-quick-donate-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
}

/* Amount Buttons */
.mpf-donate-amount-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.mpf-amount-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mpf-amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.mpf-amount-btn:hover::before {
    left: 100%;
}

.mpf-amount-btn:hover {
    background: linear-gradient(135deg, #207dad 0%, #2c3e50 100%);
    border-color: #207dad;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.mpf-amount-btn.active {
    background: linear-gradient(135deg, #207dad 0%, #2c3e50 100%);
    border-color: #207dad;
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Custom Amount Slider */
.mpf-custom-amount {
    margin-bottom: 10px;
}

.mpf-slider-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mpf-slider-container:hover {
    border-color: #207dad;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.mpf-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mpf-slider-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.mpf-slider-value {
    font-size: 18px;
    font-weight: 800;
    color: #207dad;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.mpf-slider-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.mpf-amount-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px !important;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
    padding: 8px 0 !important;
}

/* WebKit browsers (Chrome, Safari, Edge) */
.mpf-amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #207dad 0%, #2c3e50 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.mpf-amount-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Firefox */
.mpf-amount-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #207dad 0%, #2c3e50 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    -moz-appearance: none;
}

.mpf-amount-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Firefox track */
.mpf-amount-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 4px;
    border: none;
}

.mpf-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Donation Options */
.mpf-donation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.mpf-donation-type,
.mpf-project-select {
    padding: 14px 8px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mpf-donation-type:focus,
.mpf-project-select:focus {
    outline: none;
    border-color: #207dad;
    background: white;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 0 0 3px rgba(40, 167, 69, 0.1);
}

.mpf-donation-type:hover,
.mpf-project-select:hover {
    border-color: #207dad;
    background: white;
}

/* Main Donate Button */
.mpf-donate-btn-main {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.mpf-donate-btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.mpf-donate-btn-main:hover::before {
    left: 100%;
}

.mpf-donate-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.mpf-donate-btn-main:active {
    transform: translateY(-1px);
    transition: all 0.1s;
}

.mpf-arrow {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mpf-donate-btn-main:hover .mpf-arrow {
    transform: translateX(3px);
}

/* Section Headers */
.mpf-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.mpf-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.mpf-section-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.mpf-highlight {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    color: white;
}

.mpf-highlight-live {
    background: #e74c3c;
}

.mpf-highlight-appeals {
    background: #207dad;
}

.mpf-highlight-upcoming {
    background: #e74c3c;
}

.mpf-highlight-stories {
    background: #e74c3c;
}

.mpf-highlight-achievements {
    background: #e74c3c;
}

/* Banner Section */
.mpf-banner-section {
    padding: 20px 0;
    background: white;
}

.mpf-banner-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mpf-banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mpf-banner-img:hover {
    transform: scale(1.02);
}

/* Responsive Banner */
@media (max-width: 768px) {
    .mpf-banner-section {
        padding: 10px 0;
    }
    
    .mpf-banner-image {
        border-radius: 10px;
    }
}

/* Live Appeals Section */
.mpf-live-appeals {
    padding: 60px 0;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .mpf-live-appeals {
        padding: 30px 0;
    }
}

.mpf-appeals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.mpf-appeal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.mpf-appeal-card:hover {
    transform: translateY(-5px);
}

.mpf-appeal-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mpf-appeal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-appeal-placeholder {
    background: #6c757d;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.mpf-appeal-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.mpf-appeal-category {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mpf-appeal-content {
    padding: 25px;
}

.mpf-appeal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.mpf-appeal-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Progress Bar */
.mpf-appeal-progress {
    margin-bottom: 25px;
}

.mpf-progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.mpf-progress-fill {
    background: linear-gradient(90deg, #207dad 0%, #1e6aa0 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

.mpf-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.mpf-raised {
    font-weight: 600;
    color: #207dad;
}

.mpf-target {
    color: #6c757d;
}

/* Appeal Button */
.mpf-appeal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e74c3c;
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mpf-appeal-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Appeals Carousel Styles */
.mpf-appeals-carousel-container {
    position: relative;
    margin-bottom: 50px;
}

.mpf-appeals-carousel {
    position: relative;
    overflow: hidden;
}

.mpf-appeals-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.mpf-appeal-slide {
    flex: 0 0 33.333%; /* Show 3 appeals per view */
    width: 33.333%;
    padding: 0 10px;
}

.mpf-appeal-slide .mpf-appeal-card {
    margin-bottom: 0;
    height: 100%;
}

/* Appeals Carousel Navigation */
.mpf-appeals-carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
}

.mpf-appeals-carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.mpf-appeals-carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    border-color: #e74c3c;
}

.mpf-appeals-carousel-btn span {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1;
}

.mpf-appeals-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.7);
}

.mpf-appeals-carousel-btn:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Appeals Carousel */
@media (max-width: 1024px) {
    .mpf-appeal-slide {
        flex: 0 0 50%; /* Show 2 appeals per view on tablets */
        width: 50%;
    }
}

@media (max-width: 768px) {
    .mpf-appeal-slide {
        flex: 0 0 100%; /* Show 1 appeal per view on mobile */
        width: 100%;
    }
    
    .mpf-appeals-carousel-navigation {
        margin-top: 20px;
        gap: 15px;
    }
    
    .mpf-appeals-carousel-btn {
        width: 50px;
        height: 50px;
    }
    
    .mpf-appeals-carousel-btn span {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .mpf-appeal-slide {
        flex: 0 0 100%; /* Show 1 appeal per view on small mobile */
        width: 100%;
        padding: 0 5px;
    }
}

/* 2 Ways You Can Help */
.mpf-help-ways {
    padding: 80px 0;
    background: white;
}

.mpf-ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.mpf-way-card {
    position: relative;
    color: white;
    border-radius: 15px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mpf-way-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Background Image Container */
.mpf-way-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.mpf-way-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mpf-way-card:hover .mpf-way-background img {
    transform: scale(1.05);
}

/* Overlay for better text readability */
.mpf-way-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

/* Fallback backgrounds when no ACF image is set */
.mpf-way-fallback-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mpf-way-events-bg {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.7) 0%, 
        rgba(30, 58, 138, 0.7) 100%),
        url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.mpf-way-appeals-bg {
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.7) 0%, 
        rgba(176, 42, 55, 0.7) 100%),
        url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.mpf-way-volunteer-bg {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.7) 0%, 
        rgba(30, 126, 52, 0.7) 100%),
        url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

/* Content Container */
.mpf-way-content {
    position: relative;
    z-index: 3;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mpf-way-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mpf-way-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.mpf-way-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mpf-way-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mpf-way-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Achievements Section */
.mpf-achievements {
    position: relative;
    padding: 80px 0;
    background: #2c3e50;
    color: white;
    overflow: hidden;
}

.mpf-achievements-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); */
    background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%);
    z-index: 1;
}

.mpf-achievements .mpf-container {
    position: relative;
    z-index: 2;
}

.mpf-achievements-title,
.mpf-achievements-subtitle {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mpf-achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.mpf-achievement,
.mpf-achievement-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mpf-achievement:hover,
.mpf-achievement-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(40, 167, 69, 0.6);
    transform: translateY(-5px);
}

.mpf-achievement-circle {
    width: 120px;
    height: 120px;
    border: 4px solid #207dad;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
}

.mpf-achievement-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.mpf-achievement-number {
    font-size: 42px;
    font-weight: 700;
    color: white !important;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mpf-achievement-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white !important;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mpf-achievement-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Events Section */
.mpf-upcoming-events {
    padding: 80px 0;
    background: #f8f9fa;
}

.mpf-events-container {
    margin-bottom: 50px;
}

.mpf-event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.mpf-featured-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.mpf-event-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.mpf-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-event-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mpf-event-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.mpf-event-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mpf-event-meta {
    margin-bottom: 25px;
}

.mpf-event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
}

.mpf-event-actions {
    display: flex;
    gap: 15px;
}

.mpf-event-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mpf-btn-outline {
    border: 2px solid #207dad;
    color: #207dad;
    background: transparent;
}

.mpf-btn-outline:hover {
    background: #207dad;
    color: white;
}

.mpf-btn-primary {
    background: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
}

.mpf-btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* Events Carousel Styles */
.mpf-events-carousel-container {
    position: relative;
    margin-bottom: 50px;
}

.mpf-events-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.mpf-events-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.mpf-event-slide {
    flex: 0 0 100%;
    width: 100%;
}

.mpf-event-slide .mpf-event-card {
    margin-bottom: 0;
}

/* Carousel Navigation */
.mpf-carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
}

.mpf-carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.mpf-carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    border-color: #207dad;
}

.mpf-carousel-btn span {
    font-size: 28px;
    font-weight: bold;
    color: #207dad;
    line-height: 1;
}

.mpf-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.7);
}

.mpf-carousel-btn:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .mpf-carousel-navigation {
        margin-top: 20px;
        gap: 15px;
    }
    
    .mpf-carousel-btn {
        width: 50px;
        height: 50px;
    }
    
    .mpf-carousel-btn span {
        font-size: 24px;
    }
}

/* Stories Section */
.mpf-our-stories {
    padding: 80px 0;
    background: white;
}

/* Stories Carousel */
.mpf-stories-carousel-container {
    position: relative;
    margin-bottom: 50px;
}

.mpf-stories-carousel {
    overflow: hidden;
    border-radius: 15px;
}

.mpf-stories-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.mpf-story-slide {
    flex: 0 0 33.333%; /* Show 3 stories per view */
    width: 33.333%;
    padding: 0 10px;
}

.mpf-story-slide .mpf-story-card {
    margin-bottom: 0;
    height: 100%;
}

/* Stories Carousel Navigation */
.mpf-stories-carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
}

.mpf-stories-carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.mpf-stories-carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    border-color: #2c3e50;
}

.mpf-stories-carousel-btn span {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.mpf-stories-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.7);
}

.mpf-stories-carousel-btn:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Stories Carousel */
@media (max-width: 1024px) {
    .mpf-story-slide {
        flex: 0 0 50%; /* Show 2 stories per view on tablets */
        width: 50%;
    }
    
    /* Keep 2 ways cards on tablets but reduce max-width */
    .mpf-ways-grid {
        max-width: 700px;
        gap: 30px;
    }
    
    /* Achievements on tablets - keep 4 columns but smaller */
    .mpf-achievements-grid {
        gap: 25px;
    }
    
    .mpf-achievement-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .mpf-story-slide {
        flex: 0 0 100%; /* Show 1 story per view on mobile */
        width: 100%;
    }
    
    .mpf-stories-carousel-navigation {
        margin-top: 20px;
        gap: 15px;
    }
    
    .mpf-stories-carousel-btn {
        width: 50px;
        height: 50px;
    }
    
    .mpf-stories-carousel-btn span {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .mpf-story-slide {
        flex: 0 0 100%; /* Show 1 story per view on small mobile */
        width: 100%;
        padding: 0 5px;
    }
}

.mpf-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.mpf-story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.mpf-story-card:hover {
    transform: translateY(-5px);
}

.mpf-story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mpf-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-story-placeholder {
    background: #6c757d;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.mpf-story-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.mpf-story-category {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mpf-story-content {
    padding: 25px;
}

.mpf-story-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 15px;
}

.mpf-story-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.mpf-story-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mpf-story-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #207dad;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mpf-story-btn:hover {
    color: #1e7e34;
}

/* Newsletter Section - Updated to match modern design */
.mpf-newsletter {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.mpf-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.mpf-newsletter h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.mpf-newsletter p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.mpf-newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    max-width: none;
}

.mpf-newsletter-form {
    width: 100%;
    margin: 0 auto;
}

.mpf-newsletter-input-wrapper {
    display: flex;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    gap: 0;
    margin-bottom: 0;
}

.mpf-newsletter-input-wrapper:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mpf-newsletter-email {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 24px;
    font-size: 16px;
    color: #2c3e50;
    outline: none;
    border-radius: 60px;
    font-weight: 500;
}

.mpf-newsletter-email::placeholder {
    color: #95a5a6;
    font-weight: 400;
    opacity: 0.8;
}

.mpf-newsletter-email:focus {
    background: rgba(52, 152, 219, 0.05);
}

.mpf-form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mpf-email-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.mpf-email-input:focus {
    outline: none;
}

.mpf-newsletter-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mpf-newsletter-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.mpf-newsletter-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.mpf-newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mpf-newsletter-checkbox:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mpf-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.mpf-newsletter-checkbox input[type="checkbox"] {
    display: none;
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom {
    background: white;
    border-color: white;
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom::after {
    content: '✓';
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
}

.mpf-checkbox-text {
    user-select: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.4;
}

.mpf-form-footer {
    text-align: center;
    margin-top: 20px;
}

.mpf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    justify-content: center;
}

.mpf-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #ff7043;
}

/* Section CTA */
.mpf-section-cta {
    text-align: center;
}

.mpf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mpf-btn-light {
    background: white;
    color: #207dad;
    border: 2px solid white;
}

.mpf-btn-light:hover {
    background: transparent;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpf-hero-content {
        gap: 40px;
        text-align: center;
        padding: 0 10px;
    }
    
    .mpf-hero-text h1 {
        font-size: 36px;
    }
    
    .mpf-quick-donate-card {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 25px 20px;
        box-sizing: border-box;
        border-radius: 15px;
    }
    
    .mpf-quick-donate-header .d-flex {
        gap: 15px;
    }
    
    .mpf-quick-donate-icon {
        font-size: 35px;
    }
    
    .mpf-quick-donate-header h3 {
        font-size: 22px;
    }
    
    .mpf-donate-amount-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .mpf-amount-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Newsletter responsive */
    .mpf-newsletter {
        padding: 80px 0;
    }
    
    .mpf-newsletter h2 {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .mpf-newsletter p {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .mpf-newsletter-form {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .mpf-newsletter-input-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
        border-radius: 25px;
    }
    
    .mpf-newsletter-email {
        padding: 15px 20px;
        border-radius: 20px;
        text-align: center;
    }
    
    .mpf-newsletter-btn {
        padding: 15px 24px;
        border-radius: 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    .mpf-newsletter-checkbox {
        font-size: 14px;
        padding: 10px 16px;
        margin: 0 20px;
        text-align: center;
    }
    
    .mpf-donation-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mpf-appeals-grid,
    .mpf-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .mpf-ways-grid {
        grid-template-columns: 1fr;
    }
    
    .mpf-way-card {
        min-height: 300px;
    }
    
    .mpf-way-content {
        padding: 35px 25px;
    }
    
    .mpf-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .mpf-achievement,
    .mpf-achievement-card {
        padding: 20px 15px;
    }
    
    .mpf-achievement-number {
        font-size: 32px;
    }
    
    .mpf-achievement-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .mpf-featured-event {
        grid-template-columns: 1fr;
    }
    
    .mpf-form-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mpf-container {
        padding: 0 15px;
    }
    
    .mpf-section-title {
        font-size: 28px;
    }
    
    .mpf-achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mpf-achievement,
    .mpf-achievement-card {
        padding: 25px 20px;
    }
    
    .mpf-achievement-number {
        font-size: 28px;
    }
    
    .mpf-achievement-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .mpf-donate-amount-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Newsletter mobile styles */
    .mpf-newsletter {
        padding: 60px 0;
    }
    
    .mpf-newsletter h2 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .mpf-newsletter p {
        font-size: 16px;
    }
    
    .mpf-newsletter-text {
        margin-bottom: 30px;
    }
    
    .mpf-newsletter-form {
        margin: 0 16px;
    }
    
    .mpf-newsletter-checkbox {
        font-size: 13px;
        margin: 0 16px;
    }
}
