﻿/* ========== Banner / Logos ========== */
.fundraiser-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 28px 24px 22px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.banner-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 28px;
    margin-bottom: 12px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo {
    max-height: 110px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.bbr-logo {
    max-height: 100px; /* slightly adjusted for balance */
}

.banner-amp,
.banner-for {
    color: #e0e0e0;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: Nasalization, system-ui, sans-serif;
}

.banner-title {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    margin: 8px 0 4px;
    letter-spacing: 0.02em;
}

.banner-subtitle {
    color: #a8c5d4;
    font-size: 0.95rem;
    margin: 0;
}

/* ========== Main Layout ========== */
.fundraiser-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    margin-bottom: 20px;
}

.section-heading {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #222;
}

/* ========== Donations Panel ========== */
.donations-container {
    background: #f0f0f0;
    border-radius: 16px;
    padding: 12px 10px 4px;
}

.donation {
    margin-bottom: 0;
    padding: 14px 12px;
    border-bottom: 1px solid #ccc;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
}

    .donation:last-child {
        border-bottom: none;
    }

.donor-comment {
    margin: 4px 0;
    color: #333;
    font-size: 0.95rem;
}

.donation .checkboxes {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-width: 90px;
    gap: 4px;
}

.edit-donation-button {
    border: none;
    border-radius: 12px;
    margin-top: 6px;
    padding: 4px 10px;
    background: #e9ecef;
    font-size: 0.85rem;
}

    .edit-donation-button:hover {
        background: #dee2e6;
    }

/* ========== Sidebar ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 20px;
}

.btn-donate {
    display: block;
    width: 100%;
    background: #e63946;
    color: white !important;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

    .btn-donate:hover {
        background: #d62839;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
    }

.info-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

    .info-card h3 {
        font-size: 1.15rem;
        margin: 0 0 10px;
        color: #1a1a2e;
    }

    .info-card h4 {
        font-size: 0.95rem;
        margin: 14px 0 6px;
        color: #333;
    }

    .info-card ul {
        margin: 0 0 8px;
        padding-left: 1.2rem;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .info-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
        color: #333;
    }

.how-to-comment {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

    .how-to-comment strong {
        display: block;
        margin-bottom: 4px;
        color: #856404;
    }

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f3460;
}

/* ========== Modals (existing + minor polish) ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    max-width: 100%;
    overflow: auto;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    position: relative;
    max-height: 85vh;
    overflow: auto;
}

#modelHeader h3 {
    font-size: 1.4rem;
    position: absolute;
    margin: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

    .close:hover,
    .close:focus {
        color: #000;
    }

#editModal .modal-content {
    height: auto;
    max-width: 480px;
}

#donationComment {
    width: 100%;
    height: 140px;
    vertical-align: top;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
}

#confirmEditDonation {
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    background: #0f3460;
    color: white;
}


.body-div {
    margin: 40px 15vw 0;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .fundraiser-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1; /* put donate + info above the list on mobile */
    }

    .logo {
        max-height: 80px;
    }

    .banner-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .body-div {
        margin: 40px 5vw 0;
    }

    .banner-inner {
        gap: 12px 16px;
    }

    .logo {
        max-height: 64px;
    }

    .banner-amp,
    .banner-for {
        font-size: 1.2rem;
    }

    .donation {
        flex-wrap: wrap;
    }

        .donation .checkboxes {
            flex-direction: row;
            justify-content: space-between;
            width: 100%;
            margin-top: 8px;
            min-width: 0;
        }
}

.calendar-title-large,
.calendar-title-small {
    display: none; /* replaced by new banner */
}

.options-menu {
    display: none; /* replaced by sidebar */
}
