/* --- Global Brand Theme --- */
:root {
    --primary-color: #4A7BB7; /* Blue from Logo */
    --secondary-color: #1a1a1a; /* Black from Logo */
    --text-dark: #333333;
    --text-light: #6b7280;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* --- Resets & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: var(--white); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.section-padding { padding: 40px 0; }
.bg-light { background-color: var(--bg-light); }

/* --- Shared Typography & Buttons --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: var(--secondary-color); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-align: center; }
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: #386296; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-text { color: var(--primary-color); font-weight: 600; }
.btn-text:hover { text-decoration: underline; }

/* --- Unified Header --- */
header { 
    background-color: var(--white); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    transition: var(--transition); 
    box-shadow: var(--shadow-sm); 
    border-bottom: none;
}
.nav-container { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    height: 80px;
    position: relative;
    gap: 30px;
}
.logo-wrapper {
    position: absolute;
    left: 20px;
    top: 0;
    background-color: var(--white);
    padding: 10px 12px 12px; 
    border-radius: 0 0 50% 50%;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05); 
    z-index: 101;
}
.logo { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 75px; object-fit: contain; }
.brand-text { font-size: 1.4rem; font-weight: 700; color: var(--secondary-color); display: flex; flex-direction: column; line-height: 1.4; }
.brand-text small { font-size: 0.6rem; letter-spacing: 1px; color: var(--primary-color); font-weight: 600; text-transform: uppercase;}
nav {
    margin-right: auto;
    margin-left: 160px; /* Space for the absolute logo */
}
.nav-links { display: flex; gap: 25px; font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }
.nav-buttons { display: flex; align-items: center; gap: 15px; }
.mobile-menu { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Progress Bar (Shared) --- */
.progress-wrapper { margin-bottom: 15px; }
.progress-bar { height: 8px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; background: var(--primary-color); width: 0; transition: width 1.5s ease-out; }
.progress-stats { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-light); }
.progress-stats strong { color: var(--secondary-color); }

/* =========================================
   PAGE SPECIFIC: INDEX.HTML
========================================= */
.hero { padding: 80px 0; background: linear-gradient(135deg, #f4f7f9 0%, #ffffff 100%); }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-content { flex: 1; }
.hero-image { flex: 1; }
.hero-image img { box-shadow: var(--shadow-md); }
.badge { background: #e0f2fe; color: #0369a1; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--secondary-color); }
.hero h1 .highlight { color: var(--primary-color); }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 20px; }

/* Carousel */
.carousel-wrapper { display: flex; align-items: center; position: relative; gap: 15px; }
.carousel-container { overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; width: 100%; padding: 10px 0; }
.carousel-container {
    overflow: hidden; /* This hides the cards that are outside the box */
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out; /* This makes the sliding smooth! */
    will-change: transform;
}
.carousel-slide { min-width: calc(33.333% - 20px); flex-shrink: 0; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.carousel-slide:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-img { height: 200px; width: 100%; object-fit: cover; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card-body { padding: 25px; }
.category { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.category.medical { background: #fee2e2; color: #b91c1c; }
.category.education { background: #e0e7ff; color: #4338ca; }
.category.relief { background: #ffedd5; color: #c2410c; }
.card-body h3 { font-size: 1.2rem; color: var(--secondary-color); margin-bottom: 5px; }
.author { font-size: 0.85rem; color: var(--text-light); margin-bottom: 15px; }
.card-actions { display: flex; gap: 10px; margin-top: 15px; }
.card-actions .btn { padding: 10px; font-size: 0.9rem;}
.carousel-btn { background: var(--white); border: 1px solid var(--border-color); border-radius: 50%; width: 45px; height: 45px; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--secondary-color); font-size: 1.2rem; transition: var(--transition); flex-shrink: 0; }
.carousel-btn:hover { background: var(--primary-color); color: var(--white); }

/* How It Works Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { padding: 20px; }
.icon-box { width: 70px; height: 70px; background: #e0e7ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary-color); margin: 0 auto 20px; }

/* =========================================
   PAGE SPECIFIC: CAMPAIGN DETAILS
========================================= */
.campaign-section { background-color: var(--bg-light); padding: 40px 0 80px; }
.campaign-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.campaign-title { font-size: 2.2rem; color: var(--secondary-color); margin-bottom: 20px; line-height: 1.3; }
.campaign-organizer { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.avatar { width: 45px; height: 45px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 1.2rem; }
.verified-badge { font-size: 0.85rem; color: var(--success-color); font-weight: 500; }
.campaign-image-wrapper { margin-bottom: 30px; }

/* Tabs */
.tabs-nav { display: flex; gap: 10px; border-bottom: 2px solid var(--border-color); margin-bottom: 25px; }
.tab-btn { background: none; border: none; padding: 12px 20px; font-size: 1rem; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content { display: none; background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
.story-text h3 { margin: 25px 0 15px; color: var(--secondary-color); }
.update-card, .doc-item { padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 15px; }
.doc-item { display: flex; align-items: center; gap: 15px; }
.doc-item i { font-size: 2rem; color: #ef4444; }

/* Sidebar */
.campaign-sidebar { position: sticky; top: 90px; } 
.donation-card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.amount-raised { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 20px; }
.amount-goal { font-size: 0.9rem; color: var(--text-light); font-weight: 400; }
.stats-grid { display: flex; justify-content: space-between; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: var(--secondary-color); }
.action-buttons { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.share-btn { color: #25D366; border-color: #25D366; } 
.share-btn:hover { background: #25D366; color: var(--white); }
.trust-indicators { background: #f0fdf4; padding: 15px; border-radius: 8px; border: 1px dashed #bbf7d0; font-size: 0.85rem; color: #166534; }
.trust-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }

/* --- Unified Footer --- */
footer { background-color: #111827; color: #d1d5db; padding: 60px 0 20px;}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }
.footer-col p { margin-bottom: 10px; }
.footer-col i { margin-right: 10px; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* --- Modal (Shared) --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal.active { display: flex; }
.modal-content { background-color: var(--white); border-radius: 12px; width: 90%; max-width: 400px; padding: 0; position: relative; animation: slideUp 0.3s ease; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #9ca3af; }
.modal-header, .modal-body, .modal-footer { padding: 20px; text-align: center; }
.modal-header { border-bottom: 1px solid var(--border-color); }
.qr-container { background: var(--bg-light); padding: 15px; border-radius: 8px; display: inline-block; margin-bottom: 15px; }
.upi-copy-box { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--bg-light); padding: 10px; border-radius: 6px; border: 1px dashed #cbd5e1; }
.upi-copy-box button { background: none; border: none; color: var(--primary-color); cursor: pointer; }

@keyframes slideUp { from { transform: translateY(30px); opacity: 0;} to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .carousel-slide { min-width: calc(50% - 15px); }
    .campaign-layout { grid-template-columns: 1fr; }
    .campaign-sidebar { position: static; }
}
/* =========================================
   BULLETPROOF MOBILE RESPONSIVENESS
========================================= */

/* Stop horizontal scrolling/layout breaking */
html, body {
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .hero-container, .campaign-layout { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .campaign-sidebar { position: static; }
}

@media (max-width: 768px) {
    /* 1. Reset all grids to 1 column for mobile */
    .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats-grid, .category-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .container { width: 92%; }
    .hero h1 { font-size: 2.5rem; }

    /* 2. Mobile Menu Button */
    .nav-buttons { display: none; }
    .mobile-menu { 
        display: block; 
        font-size: 1.8rem; 
        color: var(--primary-color); 
        cursor: pointer;
        z-index: 1001; /* Keeps button above the menu */
    }

    /* 3. Dropdown Menu Styling */
    .nav-links {
        position: fixed;
        top: 75px; /* Sits right under the header */
        left: -100%; /* Hidden off-screen */
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* When JS adds this class, the menu slides in */
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        font-size: 1.2rem;
    }

    /* --- 4. Fix Carousel on Mobile (Perfectly Aligned Arrows) --- */
    .carousel-slide { 
        min-width: 100%; 
        scroll-snap-align: center; 
    }
    .carousel-track { 
        padding: 0; 
        margin: 0; 
    }
    
    /* Change from flex to block on mobile so absolute positioning works perfectly */
    .carousel-wrapper { 
        position: relative; 
        display: block; 
        width: 100%;
    }
    
    /* Force absolute positioning to override desktop flex rules */
    .carousel-btn { 
        display: flex !important; 
        position: absolute !important; 
        top: 50% !important; 
        transform: translateY(-50%) !important;
        width: 40px; 
        height: 40px; 
        margin: 0 !important; /* Strips any hidden flex margins */
        background: rgba(255, 255, 255, 0.95);
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        justify-content: center;
        align-items: center;
    }
    
    /* Lock them to the exact left and right edges */
    .prev-btn { 
        left: 5px !important; 
        right: auto !important; 
    }
    .next-btn { 
        right: 5px !important; 
        left: auto !important; 
    }
}

@media (max-width: 480px) {
    /* Super small screens */
    .stats-grid, .category-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .floating-donate { bottom: 15px; right: 15px; padding: 12px 20px; font-size: 1rem; }
}

/* --- Stats Section --- */
.stats-grid { gap: 20px; }
.stat-item { background: var(--white); padding: 30px 20px; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.stat-number { font-size: 2.8rem; color: var(--primary-color); line-height: 1.1; margin-bottom: 5px; }
.stat-label { font-size: 1.1rem; font-weight: 500; color: var(--text-light); }

/* --- Categories Section --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.cat-card { background: var(--bg-light); padding: 30px 20px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); transition: var(--transition); display: block; }
.cat-card:hover { background: var(--white); transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.cat-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.cat-card h4 { color: var(--secondary-color); margin-bottom: 5px; font-size: 1.1rem; }
.cat-card span { font-size: 0.85rem; color: var(--text-light); }

/* --- Testimonials --- */
.testimonial-card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; }
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 15px; letter-spacing: 2px; }
.test-text { font-size: 1.05rem; font-style: italic; color: var(--text-dark); margin-bottom: 25px; flex-grow: 1; }
.test-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border-color); padding-top: 15px; }
.test-avatar { width: 45px; height: 45px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-dark); font-size: 1.1rem; }
.test-author h4 { font-size: 1rem; color: var(--secondary-color); line-height: 1.2; }
.test-author span { font-size: 0.85rem; color: var(--text-light); }

/* --- Urgent Banner --- */
.urgent-banner { background: #4a7bb7; color: var(--white); padding: 60px 0; }
.urgent-banner h2 { font-size: 2.2rem; margin-bottom: 15px; color: var(--white); }
.urgent-banner p { font-size: 1.2rem; opacity: 0.9; max-width: 800px; margin: 0 auto; }
.blink-icon { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0.3; } }

/* --- Floating Donate Button --- */
.floating-donate { position: fixed; bottom: 30px; right: 30px; background-color: #ef4444; color: var(--white); padding: 15px 25px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4); z-index: 99; display: flex; align-items: center; gap: 8px; transition: var(--transition); border: 2px solid white; }
.floating-donate:hover { background-color: #dc2626; transform: translateY(-3px) scale(1.05); color: var(--white); }

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .floating-donate { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }


}

/* =========================================
   FUNDRAISER FORM STYLING
========================================= */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-title i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 123, 183, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Custom File Upload Box */
.file-upload-box {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.file-upload-box:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}
.file-upload-box i {
    font-size: 2rem;
    color: var(--primary-color);
}
.file-upload-box span {
    font-weight: 600;
    color: var(--secondary-color);
}
.file-upload-box small {
    color: var(--text-light);
}
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Mobile adjustments for form */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-wrapper { padding: 25px 20px; }
}

/* =========================================
   OVERLAY BADGES FOR CAMPAIGN CARDS
========================================= */
.img-wrapper {
    position: relative;
    width: 100%;
    /* The parent .card already has overflow: hidden, 
       so the top corners of these badges will naturally round off! */
}

.badge-overlay {
    position: absolute;
    top: 0; /* Pins badge exactly to the top edge */
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

/* Green Tax Badge on the LEFT */
.badge-tax {
    left: 0; /* Pins badge exactly to the left edge */
    background-color: #059669; /* Deep green matching your reference */
    border-bottom-right-radius: 12px; /* Creates the ribbon-cut effect */
    cursor: pointer;
    text-decoration: none;
}

/* Red Urgent Badge on the RIGHT */
.badge-urgent {
    right: 0; /* Pins badge exactly to the right edge */
    background-color: #ef4444; 
    border-bottom-left-radius: 12px; /* Creates the ribbon-cut effect */
    animation: pulse-red 2s infinite; 
}

/* Hover effect for the clickable PDF badge */
.badge-tax:hover {
    background-color: #047857;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Optional Pulse Animation for Urgent Badge */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* =========================================
   CUSTOM TOAST NOTIFICATIONS
========================================= */
.toast-notification {
    visibility: hidden;
    min-width: 280px;
    max-width: 400px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Slide up and fade in */
.toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 40px;
}

/* Colors for different message types */
.toast-notification.success {
    background-color: #10b981; /* trüst INDIA Green */
    border: 1px solid #059669;
}

.toast-notification.error {
    background-color: #ef4444; /* trüst INDIA Red */
    border: 1px solid #dc2626;
}

/* =========================================
   FULL-WIDTH PHOTO GRID GALLERY
========================================= */
.full-width-gallery {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.photo-grid {
    display: grid;
    /* Automatically creates columns that are at least 300px wide */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    /* Forces all grid boxes to be exactly the same height */
    aspect-ratio: 4 / 3; 
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box perfectly without stretching */
    transition: transform 0.4s ease;
}

/* Elegant zoom effect when hovering over a photo */
.photo-item:hover img {
    transform: scale(1.08);
}



/* Mobile Adjustments */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr; /* 1 column on small phones */
    }
}



/* =========================================
   RAZORPAY DONATION FLOW
========================================= */
.payment-modal-content {
    max-width: 520px;
}

.donation-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.quick-amounts button {
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 6px;
    padding: 9px 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.quick-amounts button:hover,
.quick-amounts button:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
    outline: none;
}

.amount-help {
    color: var(--text-light);
    display: block;
    font-size: 0.84rem;
    margin-top: 8px;
}

.payment-status {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

.payment-status.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.payment-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.payment-summary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    line-height: 1.7;
    padding: 15px;
    text-align: left;
    word-break: break-word;
}

.secure-text {
    color: var(--text-light);
    font-size: 0.86rem;
    margin-top: 12px;
    text-align: center;
}

.footer-policy-links {
    margin-bottom: 10px;
}

.footer-policy-links a {
    color: #f3f4f6;
    font-weight: 600;
}

.footer-policy-links a:hover {
    color: var(--primary-color);
}

.policy-hero {
    background: linear-gradient(135deg, #f4f7f9 0%, #ffffff 100%);
    padding: 70px 0 35px;
}

.policy-hero h1 {
    color: var(--secondary-color);
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.policy-hero p {
    color: var(--text-light);
    max-width: 780px;
}

.policy-content {
    padding: 45px 0 70px;
}

.policy-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 34px;
}

.policy-card h2 {
    color: var(--secondary-color);
    font-size: 1.35rem;
    margin: 26px 0 10px;
}

.policy-card h2:first-child {
    margin-top: 0;
}

.policy-card p,
.policy-card li {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.policy-card ul {
    list-style: disc;
    padding-left: 22px;
}

.policy-updated {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .payment-modal-content {
        max-height: 92vh;
        overflow-y: auto;
    }

    .donation-form-row,
    .quick-amounts {
        grid-template-columns: 1fr 1fr;
    }

    .policy-card {
        padding: 24px 18px;
    }
}

/* =========================================
   DEDICATED PAYMENT PAGE
========================================= */
.payment-page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #f7efe0 100%);
    padding: 62px 0 78px;
}

.payment-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 36px;
    align-items: start;
}

.payment-info-panel h1 {
    color: var(--secondary-color);
    font-size: 2.6rem;
    line-height: 1.16;
    margin: 14px 0 16px;
}

.payment-info-panel > p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 680px;
}

.payment-kicker {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.benefit-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 17px;
}

.benefit-icon {
    align-items: center;
    background: #fff7e6;
    border-radius: 8px;
    color: var(--primary-color);
    display: flex;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.benefit-item h3 {
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.benefit-item p,
.tax-note {
    color: var(--text-light);
    font-size: 0.94rem;
}

.tax-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 16px;
}

.payment-form-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 28px;
}

.payment-form-header {
    margin-bottom: 22px;
    text-align: left;
}

.payment-form-header h2 {
    color: var(--secondary-color);
    font-size: 1.45rem;
    margin-bottom: 5px;
}

.payment-form-header p {
    color: var(--text-light);
    font-size: 0.94rem;
}

.optional-label {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .payment-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .payment-page-hero {
        padding: 34px 0 52px;
    }

    .payment-info-panel h1 {
        font-size: 2.1rem;
    }

    .payment-form-panel {
        padding: 22px 16px;
    }

    .benefit-item {
        grid-template-columns: 42px 1fr;
        padding: 14px;
    }

    .benefit-icon {
        height: 42px;
        width: 42px;
    }
}