/* Base styles and CSS framework for Charity Clothes Store */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #0a1929 0%, #1a2332 50%, #2a3542 100%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #1e3a5f;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c0392b;
}

/* Layout utilities */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive container adjustments */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569, #334155);
    color: white;
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e3a5f;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Cards */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(30, 58, 95, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.25);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #1e3a5f;
}

.card p {
    color: #4a5568;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.15);
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    color: white;
}

.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6 {
    color: white;
}

.card-body {
    padding: 20px;
    background: white;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(30, 58, 95, 0.15);
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0f8 100%);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
}

/* Logo image styling */
.navbar-logo {
    height: 80px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.5));
}

.navbar-brand:hover {
    transform: translateY(-3px);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
}

.nav-item {
    margin: 0;
    flex-shrink: 0;
}

.nav-link {
    padding: 12px 16px;
    color: #ffffff !important;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.nav-link::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 ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Override browser default visited link colors */
.nav-link:visited {
    color: #ffffff !important;
}

.nav-link.active:visited {
    color: white !important;
}

/* Ensure dropdown parent links stay white when visited */
.nav-dropdown > .nav-link:visited {
    color: #ffffff !important;
}

.nav-dropdown > .nav-link:link {
    color: #ffffff !important;
}

/* Container adjustments for better navigation */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

.navbar .row {
    margin: 0;
    width: 100%;
    align-items: center;
}

.navbar .col:first-child {
    flex: 0 0 auto;
    padding: 0;
}

.navbar .col:last-child {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

/* ============================================
   DROPDOWN NAVIGATION STYLES
   ============================================ */

/* Dropdown parent container */
.nav-dropdown {
    position: relative;
}

/* Dropdown arrow indicator */
.dropdown-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

/* Rotate arrow on hover/active */
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Show dropdown on hover (desktop) */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown menu items */
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border-left: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
}

/* Dropdown item hover effect */
.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), transparent);
    border-left-color: #3b82f6;
    padding-left: 24px;
    color: #ffffff;
}

/* Active dropdown item */
.dropdown-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), transparent);
    border-left-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

/* Add subtle divider between dropdown items */
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================
   HAMBURGER BUTTON (hidden on desktop)
   ============================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile-specific dropdown behavior */
@media (max-width: 768px) {
    /* Show hamburger, hide nav by default */
    .hamburger-btn {
        display: flex;
    }

    .navbar .col:last-child {
        display: none;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
        flex-direction: column;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav.open {
        display: flex;
    }

    .nav-item {
        width: 100%;
        margin: 0;
        flex: none;
    }

    .nav-link {
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 14px 20px;
        font-size: 1rem;
        white-space: normal;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(59, 130, 246, 0.3);
        transform: none;
        box-shadow: none;
        border-left: 3px solid #3b82f6;
    }

    /* Make dropdown toggle on tap instead of hover */
    .nav-dropdown .dropdown-menu {
        position: static;
        margin-top: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease, max-height 0.4s ease;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
    }

    /* Show dropdown when parent has 'open' class */
    .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: 4px 0;
    }

    /* Adjust dropdown items for mobile */
    .dropdown-item {
        padding: 12px 20px 12px 36px;
        font-size: 0.9rem;
    }

    .dropdown-item:hover {
        padding-left: 40px;
    }

    /* Reduce arrow size on mobile */
    .dropdown-arrow {
        font-size: 0.6rem;
        margin-left: 3px;
    }
}

@media (max-width: 576px) {
    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Smooth scrolling for anchor links */
.anchor-target {
    scroll-margin-top: 100px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 50%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero .btn {
    position: relative;
    z-index: 3;
    margin: 0 10px;
    pointer-events: auto;
}

.hero .mt-4 {
    position: relative;
    z-index: 3;
}

/* Section styling */
.section {
    padding: 60px 0;
}

/* Default text colors for sections on dark backgrounds */
.section h1, .section h2, .section h3, .section h4, .section h5, .section h6 {
    color: white;
}

.section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Override for sections with white/light backgrounds */
.section[style*="background: white"],
.section[style*="background-color: white"] {
    background: white;
}

.section[style*="background: white"] h1,
.section[style*="background: white"] h2,
.section[style*="background: white"] h3,
.section[style*="background: white"] h4,
.section[style*="background: white"] h5,
.section[style*="background: white"] h6 {
    color: #1e3a5f;
}

.section[style*="background: white"] p {
    color: #4a5568;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    color: white;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Override for section-title on white backgrounds */
.section[style*="background: white"] .section-title h2 {
    color: #1e3a5f;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f1d2e 0%, #1e3a5f 100%);
    color: white;
    padding: 40px 0 20px;
    border-top: 3px solid #3b82f6;
}

.footer h5 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: #a0c4e8;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #3b82f6;
}

.footer p {
    color: #cbd5e0;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: #3b82f6; }
.text-muted { color: #64748b; }
.text-white { color: white !important; }

/* Background utilities */
.bg-white { background: white !important; }
.bg-light { background: #f8f9fa !important; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Responsive design */
@media (max-width: 768px) {
    /* Logo responsive sizing */
    .navbar-logo {
        height: 60px;
    }


    /* Make all column layouts stack on mobile */
    .col, .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9, .col-12,
    .col-md-6, .col-sm-12, .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Remove bottom margin from last child to prevent extra space */
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .btn {
        width: 100%;
        margin: 0 0 10px 0 !important;
    }

    .section {
        padding: 40px 0;
    }

    .navbar-logo {
        height: 60px;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        margin: 0 0 10px 0 !important;
    }

    /* Make newsletter form stack */
    .section .row form.row {
        flex-direction: column;
    }

    .section .row form.row .col-8,
    .section .row form.row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Ensure buttons in newsletter are full width */
    .section .row form.row .btn {
        width: 100%;
    }
}

/* Money Donation Section Styles */
.donation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.donation-info {
    padding-right: 2rem;
}

.donation-info h3 {
    color: #1e3a5f;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.donation-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.donation-benefits li {
    padding: 0.75rem 0;
    color: #4a5568;
    font-size: 1rem;
}

.donation-card {
    border: none;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.15);
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.donation-form {
    padding: 1rem;
}

.amount-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 15px;
    border: 2px solid #cbd5e0;
    background: white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e3a5f;
}

.amount-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.amount-btn.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.custom-amount {
    margin-bottom: 25px;
}

.custom-amount label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a5f;
}

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

.input-prefix {
    background: #f1f5f9;
    border: 2px solid #cbd5e0;
    border-right: none;
    padding: 15px;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #1e3a5f;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #cbd5e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input:focus + .input-prefix {
    border-color: #3b82f6;
}

.donor-info {
    margin-bottom: 25px;
}

.donor-info .form-group {
    margin-bottom: 20px;
}

.donor-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a5f;
}

.donor-info input[type="text"],
.donor-info input[type="email"],
.donor-info textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.donor-info input:focus,
.donor-info textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.donor-info input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.donate-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.donation-note {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

/* Donation Section Responsive */
@media (max-width: 768px) {
    /* Make donation section stack vertically */
    .donation-container .row {
        flex-direction: column;
    }

    .donation-container .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .donation-info {
        padding-right: 0;
        margin-bottom: 2rem;
        order: 2; /* Show info below form on mobile */
    }

    .donation-card {
        margin-top: 0;
        margin-bottom: 2rem;
        order: 1; /* Show form first on mobile */
    }

    .amount-options {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns for amount buttons */
    }

    .donation-benefits li {
        font-size: 0.9rem;
    }

    /* Fix footer columns to stack properly */
    .footer .row {
        flex-direction: column;
    }

    .footer .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    /* Fix impact page cards */
    .col-3, .col-4, .col-6, .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Keep proper spacing between cards */
    .row > [class*="col-"] {
        padding: 0 15px;
    }

    /* Newsletter section mobile fix */
    .section .row.align-items-center {
        flex-direction: column;
    }

    .section .row.align-items-center > .col-6,
    .section .row.align-items-center > .col-8,
    .section .row.align-items-center > .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Typography scale down */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    /* Card padding override for inline-styled cards */
    .card {
        padding: 20px 15px !important;
    }
}