/**
 * MPFoundation Global Site Styles - Professional Version
 * Applied to all pages for consistent branding and readability
 */

/* ===================================================================
   GLOBAL RESET & ACCESSIBILITY
   =================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.7 !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===================================================================
   IMPROVED TYPOGRAPHY FOR ALL PAGES
   =================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1f2937 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.025em !important;
}

h1 { font-size: 2.25rem !important; font-weight: 800 !important; }
h2 { font-size: 1.875rem !important; }
h3 { font-size: 1.5rem !important; }
h4 { font-size: 1.25rem !important; font-weight: 600 !important; }
h5 { font-size: 1.125rem !important; font-weight: 600 !important; }
h6 { font-size: 1rem !important; font-weight: 600 !important; }

@media (min-width: 640px) {
    h1 { font-size: 3rem !important; }
    h2 { font-size: 2.25rem !important; }
    h3 { font-size: 1.875rem !important; }
}

p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
    margin-bottom: 1.5rem !important;
}

/* ===================================================================
   IMPROVED LINK STYLING & ACCESSIBILITY
   =================================================================== */

a {
    /* color: #2563eb !important; */
    text-decoration: none !important;
    transition: all 150ms ease-in-out !important;
    font-weight: 500 !important;
}

a:hover {
    /* color: #1d4ed8 !important; */
    text-decoration: none !important;
}

a:focus {
    outline: none !important;
    /* outline-offset: 2px !important; */
    /* border-radius: 0.25rem !important; */
}

/* ===================================================================
   PROFESSIONAL FOOTER STYLING
   =================================================================== */

.site-footer, 
footer,
.mpf-footer {
    background: #1f2937 !important;
    color: #d1d5db !important;
    padding: 3rem 0 1.5rem !important;
    /* margin-top: 4rem !important; */
}

.site-footer h1, .site-footer h2, .site-footer h3, 
.site-footer h4, .site-footer h5, .site-footer h6,
.mpf-footer h1, .mpf-footer h2, .mpf-footer h3,
.mpf-footer h4, .mpf-footer h5, .mpf-footer h6 {
    color: white !important;
    font-weight: 700 !important;
}

.site-footer p,
.mpf-footer p {
    color: #d1d5db !important;
    line-height: 1.6 !important;
}

.site-footer a,
.mpf-footer a {
    color: #93c5fd !important;
    font-weight: 500 !important;
}

.site-footer a:hover,
.mpf-footer a:hover {
    color: #dbeafe !important;
}

/* Footer Grid Layout */
.mpf-footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

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

.mpf-footer-section {
    margin-bottom: 2rem;
}

.mpf-footer-section h3 {
    color: white !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
}

.mpf-footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mpf-footer-section li {
    margin-bottom: 0.75rem !important;
}

.mpf-footer-section a {
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: color 150ms ease-in-out !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

.mpf-footer-section a:hover {
    color: white !important;
}

/* Copyright Section */
.mpf-footer-bottom {
    border-top: 1px solid #374151 !important;
    padding-top: 1.5rem !important;
    margin-top: 2rem !important;
    text-align: center !important;
}

.mpf-footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

@media (max-width: 767px) {
    .mpf-footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

.mpf-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .mpf-footer-links {
        justify-content: center;
    }
}

.mpf-footer-links a {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    transition: color 150ms ease-in-out !important;
}

.mpf-footer-links a:hover {
    color: white !important;
}

/* ===================================================================
   SOCIAL MEDIA LINKS
   =================================================================== */

.mpf-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 767px) {
    .mpf-social-links {
        justify-content: center;
    }
}

.mpf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 150ms ease-in-out;
    text-decoration: none;
}

.mpf-social-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===================================================================
   NEWSLETTER SIGNUP
   =================================================================== */

.mpf-newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 400px;
}

@media (max-width: 767px) {
    .mpf-newsletter-form {
        flex-direction: column;
    }
}

.mpf-newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #374151;
    border-radius: 0.375rem;
    background: #374151;
    color: white;
    font-size: 0.875rem;
    font-family: inherit;
}

.mpf-newsletter-form input::placeholder {
    color: #9ca3af;
}

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

.mpf-newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 150ms ease-in-out;
    white-space: nowrap;
    font-family: inherit;
}

.mpf-newsletter-form button:hover {
    background: #1d4ed8;
}

/* ===================================================================
   CONTACT INFO STYLING
   =================================================================== */

.mpf-contact-info {
    margin-top: 1.5rem;
}

.mpf-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #d1d5db;
    font-size: 0.875rem;
}

.mpf-contact-item i {
    width: 1.25rem;
    margin-right: 0.75rem;
    color: #2563eb;
    font-size: 1rem;
}

/* ===================================================================
   DONATION PROGRESS & QUICK DONATE WIDGETS
   =================================================================== */

.mpf-donation-progress {
    background: #374151;
    border-radius: 1rem;
    height: 0.5rem;
    margin: 1rem 0;
    overflow: hidden;
}

.mpf-donation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: width 1s ease;
    border-radius: 1rem;
}

.mpf-donation-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.mpf-quick-donate-widget {
    background: #374151;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
}

.mpf-quick-donate-widget h4 {
    color: white !important;
    margin-bottom: 1rem !important;
    text-align: center;
    font-size: 1rem !important;
}

.mpf-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mpf-amount-btn {
    padding: 0.75rem 0.5rem;
    background: #4b5563;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 150ms ease-in-out;
    text-decoration: none;
    text-align: center;
    font-size: 0.875rem;
    font-family: inherit;
}

.mpf-amount-btn:hover,
.mpf-amount-btn.active {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

.mpf-donate-btn-footer {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 150ms ease-in-out;
    text-decoration: none;
    text-align: center;
    display: block;
    font-family: inherit;
}

.mpf-donate-btn-footer:hover {
    background: #047857;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ===================================================================
   BACK TO TOP BUTTON
   =================================================================== */

.mpf-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 200ms ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mpf-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.mpf-back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================================================
   COOKIE NOTICE
   =================================================================== */

.mpf-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 300ms ease-in-out;
}

.mpf-cookie-notice.show {
    transform: translateY(0);
}

.mpf-cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .mpf-cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

.mpf-cookie-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #d1d5db;
}

.mpf-cookie-actions {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .mpf-cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

.mpf-cookie-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #4b5563;
    background: transparent;
    color: white;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 150ms ease-in-out;
    font-family: inherit;
}

.mpf-cookie-btn:hover {
    background: white;
    color: #1f2937;
    text-decoration: none;
}

.mpf-cookie-btn.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.mpf-cookie-btn.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
}

/* ===================================================================
   RESPONSIVE UTILITIES & MOBILE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 767px) {
    .mpf-footer {
        padding: 3rem 0 1.5rem !important;
    }
    
    .mpf-footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    /* .mpf-footer-section { text-align: center; } */
    
    .mpf-social-links,
    .mpf-footer-links {
        justify-content: center;
    }
}

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

@media (prefers-contrast: high) {
    .mpf-footer {
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    .mpf-footer h1, .mpf-footer h2, .mpf-footer h3,
    .mpf-footer h4, .mpf-footer h5, .mpf-footer h6 {
        color: #ffffff !important;
    }
    
    .mpf-footer p,
    .mpf-footer-section a {
        color: #ffffff !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mpf-social-link:hover,
    .mpf-back-to-top:hover,
    .mpf-donate-btn-footer:hover {
        transform: none !important;
    }
    
    .mpf-cookie-notice {
        transition: none !important;
    }
}

/* Screen reader only content */
.sr-only,
.mpf-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

a:hover {
    color: #1e7e34;
}

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid #207dad;
    outline-offset: 2px;
}

/* Selection Styling */
::selection {
    background: rgba(40, 167, 69, 0.2);
    color: #1a1a1a;
}

.mpf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Header */
.mpf-custom-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #207dad;
}

.mpf-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;          /* fixed height so flex centering is reliable */
    min-height: 80px;
    box-sizing: border-box;
}

.mpf-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: 100%;
}

/* Ensure the WordPress custom-logo link does not add extra spacing */
.mpf-logo .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
    text-decoration: none;
    height: 100%;
}

/* WordPress may wrap logo in <figure> */
.mpf-logo figure,
.mpf-logo .wp-block-site-logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 100%;
}

.mpf-logo img,
.mpf-logo .custom-logo {
    display: block;
    height: 45px;
    width: auto;
    max-width: none;
    object-fit: contain;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Logo text link – remove default anchor styles */
.mpf-logo-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 1;
}

.mpf-logo-text {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.mpf-logo-text-link:hover .mpf-logo-text {
    color: #207dad;
}

/* Navigation Styles - Clean and Professional */
.mpf-nav {
    flex: 1;
    display: flex;
    justify-content: right;
    margin: 0 30px;
}

.mpf-nav ul,
.mpf-nav .mpf-primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 5px;
}

.mpf-nav li {
    position: relative;
    width: auto;
    white-space: nowrap;
}

.mpf-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    border-radius: 4px;
}

.mpf-nav a:hover,
.mpf-nav .current-menu-item > a,
.mpf-nav .current_page_item > a {
    color: #207dad;
    background: rgba(40, 167, 69, 0.1);
}

/* Dropdown Menu Styles */
.mpf-nav .menu-item-has-children {
    position: relative;
}

.mpf-nav .menu-item-has-children > a::after {
    display: none !important;
    content: none !important;
}

.mpf-nav .menu-item-has-children:hover > a::after {
    display: none !important;
}

/* Dropdown Menu Styles */
.mpf-nav .sub-menu,
.mpf-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    list-style: none;
}

.mpf-nav li:hover .sub-menu,
.mpf-nav .menu-item-has-children:hover .sub-menu,
.mpf-nav li:hover ul.sub-menu,
.mpf-nav .menu-item-has-children:hover ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mpf-nav .sub-menu li {
    width: 100%;
}

.mpf-nav .sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: none;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.mpf-nav .sub-menu a:hover {
    background: #f8f9fa;
    color: #207dad;
    transform: none;
}

/* Dropdown Arrow Styling - REMOVED */
.mpf-nav .dropdown-arrow {
    display: none !important;
}

/* Mobile Menu Toggle */
.mpf-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mpf-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mpf-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mpf-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mpf-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mpf-nav .menu-item-has-children:hover .dropdown-arrow {
    display: none !important;
}

/* Multi-level Dropdown Support */
.mpf-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.mpf-nav .sub-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mpf-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mpf-search-box {
    position: relative;
}

.mpf-search-box input {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.mpf-search-box input:focus {
    outline: none;
    border-color: #207dad;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.mpf-search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
}

.mpf-search-box button:hover {
    color: #207dad;
}

.mpf-donate-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.mpf-donate-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #b21e2f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    color: white !important;
}

/* Hero Banner Section */
.mpf-hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background: linear-gradient(135deg, 
        rgba(20, 30, 60, 0.95) 0%, 
        rgba(40, 167, 69, 0.9) 50%, 
        rgba(32, 201, 151, 0.85) 100%
    ); */
    overflow: hidden;
}

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

.mpf-hero-default-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff15" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23ffffff08" points="0,200 1000,0 1000,400 0,600"/></svg>') no-repeat center center;
    background-size: cover;
}

.mpf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(32, 123, 172, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(32, 123, 172, 0.08) 0%, transparent 50%);
}

.mpf-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.mpf-hero-content .mpf-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.mpf-hero-text {
    color: white;
}

.mpf-hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.mpf-hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    line-height: 1.4;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Quick Donate Card */
.mpf-quick-donate-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 280px;
}

.mpf-quick-donate-header {
    text-align: center;
    margin-bottom: 15px;
}

.mpf-quick-donate-icon {
    font-size: 30px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #207dad, #1e6aa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mpf-quick-donate-header h3 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    margin-bottom: 0px !important;
}

.mpf-quick-donate-header p {
    color: #5a6c7d;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 0px !important;
}

.mpf-donate-amount-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 15px;
}

.mpf-amount-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    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(40, 167, 69, 0.1), transparent);
    transition: left 0.5s;
}

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

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

.mpf-custom-amount {
    margin-bottom: 15px;
}

.mpf-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.mpf-currency {
    position: absolute;
    left: 10px;
    z-index: 3;
    color: #5a6c7d;
    font-weight: 700;
    font-size: 15px;
}

.mpf-amount-input {
    width: 100%;
    padding: 10px 10px 10px 30px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 15px;
    background: #f8f9fa;
    color: #1a1a1a;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mpf-amount-input:focus {
    outline: none;
    border-color: #207dad;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.mpf-donation-options {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.mpf-donation-type,
.mpf-project-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.mpf-donate-btn-main {
    width: 100%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.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.2), transparent);
    transition: left 0.5s;
}

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

.mpf-donate-btn-main:hover {
    background: linear-gradient(135deg, #c82333 0%, #b21e2f 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

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

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

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

.mpf-section-title {
    font-size: 48px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mpf-section-subtitle {
    font-size: 22px;
    color: #2c3e50;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
    font-weight: 500;
}

.mpf-highlight {
    position: relative;
    display: inline-block;
}

.mpf-highlight-live {
    color: #ffffff;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    border: 2px solid #dc3545;
}

.mpf-highlight-appeals {
    color: #ffffff;
    background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: 2px solid #207dad;
}

.mpf-highlight-upcoming {
    color: #ffffff;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    border: 2px solid #6f42c1;
}

.mpf-highlight-stories {
    color: #ffffff;
    background: linear-gradient(135deg, #fd7e14 0%, #e6680f 100%);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
    border: 2px solid #fd7e14;
}

.mpf-highlight-achievements {
    color: #ffffff !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    border: 2px solid #dc3545;
    display: inline-block;
    line-height: 1.2;
}

.mpf-highlight-upcoming {
    color: #ffc107;
    background: linear-gradient(120deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    padding: 5px 10px;
    border-radius: 5px;
}

.mpf-highlight-stories {
    color: #007bff;
}

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

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

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

.mpf-appeal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

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

.mpf-appeal-card:hover .mpf-appeal-image img {
    transform: scale(1.05);
}

.mpf-appeal-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mpf-appeal-category {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.mpf-appeal-location {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.mpf-appeal-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.mpf-appeal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.mpf-appeal-progress {
    margin-bottom: 20px;
}

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

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

.mpf-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

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

.mpf-appeal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #207dad;
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.mpf-appeal-btn:hover {
    background: #1a5c7a;
    transform: translateY(-2px);
    color: white !important;
}

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

.mpf-ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mpf-way-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mpf-way-events {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.mpf-way-appeals {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.mpf-way-volunteer {
    background: linear-gradient(135deg, #207dad, #1a5c7a);
    color: white;
}

.mpf-way-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.mpf-way-card:hover::before {
    transform: scale(1);
}

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

.mpf-way-content {
    position: relative;
    z-index: 2;
}

.mpf-way-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.mpf-way-card h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 18px;
    color: #ffffff !important;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.mpf-way-card p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.mpf-way-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.mpf-way-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Achievements Section - Modern Design */
.mpf-achievements {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafe 0%, #eef4ff 100%);
    overflow: hidden;
}

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

.mpf-achievements-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-achievements-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 254, 0.95) 0%, 
        rgba(238, 244, 255, 0.9) 100%);
    backdrop-filter: blur(2px);
    z-index: 2;
}

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

.mpf-achievements-title {
    color: #2c3e50 !important;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
    text-align: center;
}

.mpf-achievements-subtitle {
    color: #64748b !important;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
}

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

.mpf-achievement-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mpf-achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.mpf-achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--achievement-color, #007bff);
    border-radius: 24px 24px 0 0;
    transition: all 0.3s ease;
}

.mpf-achievement-card:hover::before {
    height: 6px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.mpf-achievement-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.mpf-achievement-card:hover .mpf-achievement-icon {
    transform: scale(1.1);
}

.mpf-achievement-content {
    position: relative;
    z-index: 2;
}

.mpf-achievement-number {
    font-size: 52px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mpf-achievement-card:hover .mpf-achievement-number {
    transform: scale(1.08);
    color: #000000;
}

.mpf-achievement-label {
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.mpf-achievement-desc {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 600;
}

.mpf-achievement-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.mpf-achievement-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--achievement-color, #007bff), transparent);
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.mpf-achievement-card:hover .mpf-achievement-decoration {
    opacity: 0.2;
    transform: scale(1.2);
}

/* Dynamic color styling */
.mpf-achievement-card[data-color="#007bff"] {
    --achievement-color: #007bff;
}

.mpf-achievement-card[data-color="#dc3545"] {
    --achievement-color: #dc3545;
}

.mpf-achievement-card[data-color="#ffc107"] {
    --achievement-color: #ffc107;
}

.mpf-achievement-card[data-color="#207dad"] {
    --achievement-color: #207dad;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mpf-achievement-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.mpf-achievement-card:nth-child(2) { animation: float 6s ease-in-out infinite 1.5s; }
.mpf-achievement-card:nth-child(3) { animation: float 6s ease-in-out infinite 3s; }
.mpf-achievement-card:nth-child(4) { animation: float 6s ease-in-out infinite 4.5s; }

/* Upcoming Events */
.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 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

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

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

.mpf-event-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.mpf-event-date-badge {
    background: rgba(255,255,255,0.95);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mpf-day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
}

.mpf-month {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

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

.mpf-event-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.mpf-event-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mpf-event-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

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

.mpf-event-detail .mpf-icon {
    font-size: 16px;
}

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

.mpf-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
/* Global Button Styles */
.mpf-btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

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

.mpf-btn-outline {
    background: transparent;
    color: #207dad;
    border: 2px solid #207dad;
    backdrop-filter: blur(10px);
}

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

.mpf-btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.mpf-btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #b21e2f 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
    color: white;
}

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

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

.mpf-story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mpf-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

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

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

.mpf-story-card:hover .mpf-story-image img {
    transform: scale(1.05);
}

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

.mpf-story-category {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

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

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

.mpf-story-date {
    font-weight: bold;
}

.mpf-story-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.mpf-story-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.mpf-story-btn:hover {
    color: #1a5c7a;
    transform: translateX(3px);
}

/* Newsletter Section - Sleek Modern Design */
.mpf-newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        #1a2332 0%, 
        #2d4356 30%, 
        #28a745 70%, 
        #20c997 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpf-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, transparent 100%),
        radial-gradient(ellipse at top, rgba(32, 201, 151, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.mpf-newsletter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    pointer-events: none;
    opacity: 0.3;
}

.mpf-newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 600px;
    width: 100%;
    padding: 0 20px;
}

.mpf-newsletter-text {
    margin-bottom: 40px;
    max-width: 500px;
}

.mpf-newsletter-text h2 {
    font-size: 32px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.mpf-newsletter-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

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

.mpf-newsletter-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mpf-newsletter-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%, 
        rgba(32, 201, 151, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mpf-newsletter-input-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.mpf-newsletter-input-wrapper:hover::before {
    opacity: 1;
}

.mpf-newsletter-email {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 20px;
    font-size: 16px;
    color: #2c3e50;
    outline: none;
    border-radius: 8px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.mpf-newsletter-email::placeholder {
    color: #7f8c8d;
    font-weight: 400;
    opacity: 0.7;
}

.mpf-newsletter-email:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #1a252f;
}

.mpf-newsletter-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

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

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

.mpf-newsletter-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
}

.mpf-newsletter-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    max-width: 460px;
    text-align: left;
}

.mpf-newsletter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.mpf-newsletter-checkbox label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.mpf-newsletter-checkbox label a {
    color: #20c997;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mpf-newsletter-checkbox label a:hover {
    color: #17a2b8;
}

/* Responsive Design for Newsletter */
@media (max-width: 768px) {
    .mpf-newsletter {
        padding: 60px 0;
    }
    
    .mpf-newsletter-content {
        padding: 0 15px;
    }
    
    .mpf-newsletter-text h2 {
        font-size: 28px;
    }
    
    .mpf-newsletter-text p {
        font-size: 15px;
    }
    
    .mpf-newsletter-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .mpf-newsletter-email {
        padding: 16px 18px;
    }
    
    .mpf-newsletter-btn {
        padding: 16px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .mpf-newsletter-checkbox {
        margin-top: 16px;
    }
}

.mpf-newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.15);
    padding: 18px 32px;
    border-radius: 50px;
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: perspective(1000px) rotateX(10deg);
    position: relative;
    overflow: hidden;
}

.mpf-newsletter-checkbox::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.6));
    border-radius: 50px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mpf-newsletter-checkbox:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: perspective(1000px) rotateX(5deg) translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.mpf-newsletter-checkbox:hover::before {
    opacity: 1;
}

.mpf-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: perspective(500px) rotateX(15deg);
}

.mpf-checkbox-custom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px;
    z-index: -1;
}

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

.mpf-newsletter-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: white;
    transform: perspective(500px) rotateX(0deg) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom::after {
    content: '✓';
    color: #28a745;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: checkmark-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mpf-checkbox-text {
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Newsletter Ultra-Modern Responsive Design */
@media (max-width: 768px) {
    .mpf-newsletter {
        padding: 100px 0;
        min-height: 50vh;
    }
    
    .mpf-newsletter-content {
        transform: perspective(800px) rotateX(3deg);
    }
    
    .mpf-newsletter-text h2 {
        font-size: 42px;
        margin-bottom: 16px;
        letter-spacing: -1px;
    }
    
    .mpf-newsletter-text p {
        font-size: 20px;
        line-height: 1.5;
    }
    
    .mpf-newsletter-form {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .mpf-newsletter-input-wrapper {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        border-radius: 30px;
        transform: perspective(800px) rotateX(8deg) translateZ(0);
    }
    
    .mpf-newsletter-input-wrapper:hover {
        transform: perspective(800px) rotateX(4deg) translateY(-6px) translateZ(15px);
    }
    
    .mpf-newsletter-email {
        padding: 18px 24px;
        border-radius: 25px;
        text-align: center;
        font-size: 17px;
    }
    
    .mpf-newsletter-btn {
        padding: 18px 28px;
        border-radius: 25px;
        font-size: 16px;
        justify-self: center;
    }
    
    .mpf-newsletter-checkbox {
        font-size: 16px;
        padding: 16px 24px;
        margin: 0 20px;
        text-align: center;
        transform: perspective(800px) rotateX(8deg);
    }
    
    .mpf-newsletter-checkbox:hover {
        transform: perspective(800px) rotateX(4deg) translateY(-3px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .mpf-newsletter {
        padding: 80px 0;
        min-height: 45vh;
    }
    
    .mpf-newsletter-text h2 {
        font-size: 34px;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }
    
    .mpf-newsletter-text p {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .mpf-newsletter-text {
        margin-bottom: 40px;
    }
    
    .mpf-newsletter-form {
        margin: 0 16px;
    }
    
    .mpf-newsletter-input-wrapper {
        padding: 14px;
        border-radius: 25px;
    }
    
    .mpf-newsletter-email {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .mpf-newsletter-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .mpf-newsletter-checkbox {
        font-size: 15px;
        padding: 14px 20px;
        margin: 0 16px;
    }
    
    .mpf-checkbox-custom {
        width: 22px;
        height: 22px;
    }
}
    .mpf-newsletter-input-wrapper:focus-within {
        animation: none;
    }
    
    .mpf-newsletter-content {
        transform: none;
    }
    
    .mpf-newsletter-input-wrapper {
        transform: none;
    }
}

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

.mpf-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom {
    background: linear-gradient(135deg, #207dad, #1e6aa0);
    border-color: #207dad;
}

.mpf-newsletter-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Modern Footer Section - Pixel Perfect Design */
.mpf-modern-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.mpf-footer-background {
    background: #2c2c2c;
    position: relative;
}

.mpf-footer-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(32, 201, 151, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mpf-footer-main {
    padding: 80px 0 60px;
    position: relative;
    z-index: 2;
}

.mpf-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Company Section */
.mpf-footer-company {
    max-width: 400px;
}

.mpf-footer-brand {
    margin-bottom: 24px;
}

.mpf-brand-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.mpf-brand-tagline {
    font-size: 14px;
    color: #dedede !important;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.mpf-footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: #b8b8b8 !important;
    margin-bottom: 32px;
    max-width: 380px;
}

.mpf-footer-social {
    display: flex;
    gap: 12px;
}

.mpf-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #b8b8b8 !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mpf-social-icon:hover {
    background: #207dad;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    border-color: #207dad;
}

/* Footer Sections */
.mpf-footer-section {
    display: flex;
    flex-direction: column;
}

.mpf-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.mpf-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #207dad;
}

.mpf-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpf-footer-links li {
    margin: 0;
}

.mpf-footer-links a {
    color: #b8b8b8 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s ease;
    padding: 2px 0;
    display: block;
    position: relative;
}

.mpf-footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #207dad;
    transition: width 0.3s ease;
}

.mpf-footer-links a:hover {
    color: #fff !important;
    padding-left: 8px;
}

.mpf-footer-links a:hover::before {
    width: 20px;
}

/* Contact Section */
.mpf-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.mpf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mpf-contact-item i {
    width: 18px;
    height: 18px;
    color: #207dad !important;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpf-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mpf-contact-text span {
    color: #b8b8b8 !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Charity Badge */
.mpf-charity-badge {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 8px;
}

.mpf-charity-label {
    display: block;
    font-size: 11px;
    color: #888888 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.mpf-charity-number {
    display: block;
    font-size: 20px;
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Footer Bottom */
.mpf-footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    position: relative;
    z-index: 2;
}

.mpf-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mpf-footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpf-footer-copyright p {
    color: #888888;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
    margin-bottom: 0px !important;
}

.mpf-footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mpf-footer-legal-links a {
    color: #b8b8b8 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mpf-footer-legal-links a:hover {
    color: #fff !important;
}

/* Certification Badges */
.mpf-footer-certifications {
    display: flex;
    gap: 24px;
    align-items: center;
}

.mpf-certification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mpf-certification-badge:hover {
    background: rgba(32, 201, 151, 0.1);
    border-color: rgba(32, 201, 151, 0.3);
}

.mpf-certification-badge i {
    color: #1e6aa0;
    font-size: 14px;
}

.mpf-certification-badge span {
    color: #b8b8b8;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mpf-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .mpf-footer-main {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .mpf-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .mpf-footer-company {
        max-width: none;
    }
    
    .mpf-footer-main {
        padding: 50px 0 30px;
    }
    
    .mpf-footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .mpf-footer-certifications {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mpf-footer-legal-links {
        justify-content: center;
        gap: 16px;
    }
    
    .mpf-footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .mpf-container {
        padding: 0 12px;
    }
    
    /* Better mobile text containers */
    .mpf-section-header,
    .mpf-content-area,
    .mpf-text-container,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }
    
    /* Improve general content spacing */
    .mpf-card,
    .mpf-info-card,
    .mpf-content-card {
        margin: 0 12px !important;
        padding: 20px 15px !important;
    }
    
    .mpf-footer-content {
        gap: 32px;
    }
    
    .mpf-footer-main {
        padding: 40px 0 24px;
    }
    
    .mpf-footer-bottom {
        padding: 20px 0;
    }
    
    .mpf-brand-name {
        font-size: 24px;
    }
    
    .mpf-footer-description {
        font-size: 14px;
    }
    
    .mpf-social-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .mpf-charity-badge {
        padding: 12px 16px;
    }
    
    .mpf-charity-number {
        font-size: 18px;
    }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .mpf-footer-links a,
    .mpf-social-icon,
    .mpf-certification-badge {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .mpf-modern-footer {
        border-top: 2px solid #ffffff;
    }
    
    .mpf-footer-links a,
    .mpf-contact-text span {
        color: #ffffff;
    }
    
    .mpf-footer-links a:hover {
        background: #ffffff;
        color: #000000;
    }
}

.mpf-checkbox-label input[type="checkbox"] {
    margin: 0;
}

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

.mpf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 2px solid;
}

.mpf-btn-light {
    background: white;
    color: #333;
    border-color: white;
}

.mpf-btn-light:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mpf-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .mpf-achievement-card {
        padding: 40px 30px;
        min-height: 240px;
    }
    
    .mpf-hero-title {
        font-size: 52px;
    }
    
    .mpf-hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .mpf-header-container {
        flex-direction: row;
        /* justify-content: flex-start; */
        justify-content: space-between;
        align-items: center;
        padding: 15px 15px;
        min-height: auto;
    }
    
    /* Better mobile text containers for tablets */
    .mpf-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    
    .mpf-section-header,
    .mpf-content-area,
    .mpf-text-container,
    .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
        max-width: 100% !important;
    }
    
    .mpf-logo-text {
        font-size: 20px;
    }
    
    .mpf-mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .mpf-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        margin: 0;
    }
    
    .mpf-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mpf-nav ul,
    .mpf-nav .mpf-primary-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding: 0 8px;
    }

    .mpf-nav ul::-webkit-scrollbar,
    .mpf-nav .mpf-primary-menu::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .mpf-nav li {
        flex-shrink: 0;
    }
    
    .mpf-nav a {
        font-size: 14px;
        padding: 12px 14px;
        white-space: nowrap;
    }
    
    /* Hide dropdowns on mobile for better UX */
    .mpf-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 4px;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mpf-nav .mobile-submenu-open .sub-menu {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .mpf-nav .dropdown-arrow {
        display: none !important;
    }
    
    .mpf-nav .mobile-submenu-open .dropdown-arrow {
        display: none !important;
    }
    
    .mpf-header-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .mpf-search-box input {
        width: 100%;
        font-size: 14px;
        padding: 10px 40px 10px 15px;
    }
    
    .mpf-donate-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .mpf-hero-content .mpf-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .mpf-hero-title {
        font-size: 36px;
        letter-spacing: -0.5px;
    }
    
    .mpf-hero-subtitle {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .mpf-section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .mpf-section-subtitle {
        font-size: 18px;
    }
    
    .mpf-section-subtitle {
        font-size: 18px;
    }
    
    .mpf-appeals-grid,
    .mpf-ways-grid,
    .mpf-stories-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Achievements responsive adjustments */
    .mpf-achievements {
        padding: 70px 0;
    }
    
    .mpf-achievements-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mpf-achievement-card {
        padding: 35px 25px;
        min-height: auto;
        text-align: center;
    }
    
    .mpf-achievements-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .mpf-highlight-achievements {
        padding: 10px 16px !important;
        font-size: 0.9em !important;
        border-radius: 10px !important;
    }
    
    .mpf-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .mpf-achievement-card {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .mpf-achievement-number {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .mpf-achievement-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .mpf-event-card {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter responsive adjustments */
    .mpf-newsletter {
        padding: 40px 0;
    }
    
    .mpf-newsletter-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .mpf-newsletter-text h2 {
        font-size: 24px;
    }
    
    .mpf-newsletter-text p {
        font-size: 15px;
    }
    
    .mpf-newsletter-input-wrapper {
        min-width: auto;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Footer responsive adjustments */
    .mpf-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .mpf-footer-about {
        grid-column: 1 / -1;
    }
    
    .mpf-footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mpf-footer-certifications {
        justify-content: center;
    }
    
    .mpf-event-meta {
        grid-template-columns: 1fr;
    }
    
    .mpf-event-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mpf-container {
        padding: 0 12px;
    }
    
    /* Better mobile text containers for all pages */
    .mpf-section-header,
    .mpf-content-area,
    .mpf-text-container,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }
    
    /* Improve content area spacing */
    p, .mpf-text-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .mpf-hero-title {
        font-size: 28px;
    }
    
    .mpf-section-title {
        font-size: 24px;
    }
    
    .mpf-quick-donate-card {
        padding: 20px;
    }
    
    .mpf-donate-amount-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Small mobile newsletter */
    .mpf-newsletter {
        padding: 30px 0;
    }
    
    .mpf-newsletter-content {
        gap: 20px;
    }
    
    .mpf-newsletter-text h2 {
        font-size: 22px;
    }
    
    .mpf-newsletter-text p {
        font-size: 14px;
    }
    
    .mpf-newsletter-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .mpf-newsletter-email {
        padding: 12px 15px;
        text-align: center;
        border-radius: 15px;
    }
    
    .mpf-newsletter-btn {
        padding: 12px 20px;
        justify-content: center;
        width: 100%;
        border-radius: 15px;
    }
    
    .mpf-newsletter-checkbox {
        font-size: 12px;
        text-align: center;
    }
    
    /* Small mobile footer */
    .mpf-footer-main {
        padding: 50px 0 30px;
    }
    
    .mpf-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mpf-footer-about {
        grid-column: 1;
        text-align: center;
    }
    
    .mpf-footer-social {
        justify-content: center;
    }
    
    .mpf-transparency-info {
        padding: 20px;
    }
    
    .mpf-footer-legal-links {
        justify-content: center;
    }
    
    /* Small mobile achievements */
    .mpf-achievements {
        padding: 40px 0;
    }
    
    .mpf-achievements-title {
        font-size: 26px;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .mpf-highlight-achievements {
        padding: 8px 12px !important;
        font-size: 0.8em !important;
        border-radius: 8px !important;
    }
    
    .mpf-achievements-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }
    
    .mpf-achievement-card {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .mpf-achievement-number {
        font-size: 32px;
    }
    
    .mpf-achievement-icon {
        font-size: 36px;
    }
    
    .mpf-achievement-label {
        font-size: 14px;
    }
    
    .mpf-achievement-desc {
        font-size: 13px;
    }
}

/* Loading and Animation Classes */
.mpf-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.mpf-fade-in.mpf-visible {
    opacity: 1;
    transform: translateY(0);
}

.mpf-scale-in {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s ease;
}

.mpf-scale-in.mpf-visible {
    transform: scale(1);
    opacity: 1;
}
