.fundraiser-page div.Module {
    background-color: white;
    --module-background: white;
}

.fundraiser-page .FundraiserPage-Layout {
    display: grid;
    gap: var(--module-gap);
}

/* override default template */
.fundraiser-page .Hero .Figure {
    border-radius: 40px;
}
.fundraiser-page .Hero__main + .Hero__main {
    margin-block-start: 20px;
}

@media (min-width: 960px) {
    .fundraiser-page .FundraiserPage-Layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.fundraiser-page .FundraiserPage-Breadcrumb {
    margin-bottom: 30px;
}

.fundraiser-page .FundraiserPage-Title {
    font-size: calc(var(--font-size-h3-h1) * 0.5);
    margin-bottom: 10px;
    text-wrap: balance;
}

.fundraiser-page .FundraiserPage-Content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.fundraiser-page .FundraiserPage-Sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

/* Organizer Widget */
.fundraiser-page .Organizer-Widget {
    display: flex;
    flex-wrap: wrap;
    /* width: 75%; */
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    background: #F4F9FC;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgb(var(--color-black) / 0.1);
}

.fundraiser-page .Organizer-Profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fundraiser-page .Organizer-Avatar-Container {
    position: relative;
    display: inline-block;
}

.fundraiser-page .Organizer-Avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.fundraiser-page .Host-Badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #0E4D78;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid #F4F9FC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fundraiser-page .Organizer-Stats {
    flex: 1;
    min-width: 280px;
}

.fundraiser-page .Organizer-Numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fundraiser-page .Amount-Raised {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0E4D78;
}

.fundraiser-page .Percentage {
    font-weight: 800;
    color: #0E4D78;
    font-size: 1.1rem;
}

/* Custom Progress */
.fundraiser-page .Organizer-Progress-Container {
    height: 12px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.fundraiser-page .Organizer-Progress-Bar {
    height: 100%;
    background: #3BB1E2;
    border-radius: 10px;
    width: 44.1%;
}

.fundraiser-page .Play-Button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
}

.fundraiser-page .Play-Button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.fundraiser-page .Play-Button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}


@media (min-width: 960px) {
    .fundraiser-page .Mobile-Donate-Bar { display: none; }
}

.fundraiser-page .Section-Title--small {
    font-size: var(--font-size-h4);
    margin-bottom: 20px;
}

/* Typography & Utilities extracted from inline styles */
.fundraiser-page .Donation-Avatar--blue {
    background: rgb(var(--color-blue));
}

.fundraiser-page .Organizer-Label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4F4F4F;
    font-weight: 700;
}

.fundraiser-page .Organizer-Name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #333;
}

.fundraiser-page .Amount-Raised-Subtext {
    font-weight: 400;
    color: #666;
    font-size: 0.7em;
}

.fundraiser-page .Hero-Media-Img {
    background: #333;
}

.fundraiser-page .Impact-Title {
    font-size: calc(var(--font-size-h3) * 0.5);
    margin: 0;
}

.fundraiser-page .Impact-Subtitle {
    font-size: 1.1rem;
    color: #4F4F4F;
    margin-top: 5px;
}

.fundraiser-page .Organizer-Avatar--padded {
    background: #ddd;
    padding: 5px;
}

/* Sticky Bar */
.fundraiser-page .FundraiserPage-Sticky-Bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 20px 20px;
}

.fundraiser-page .FundraiserPage-Sticky-Bar.is-visible {
    transform: translateY(0);
}

.fundraiser-page .Sticky-Bar-Content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fundraiser-page .Sticky-Bar-Host {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fundraiser-page .Sticky-Bar-Avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fundraiser-page .Sticky-Bar-Host-Info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fundraiser-page .Sticky-Bar-Label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fundraiser-page .Sticky-Bar-Name {
    font-weight: 800;
    color: #333;
    font-size: 0.9rem;
}

.fundraiser-page .Sticky-Bar-Stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.fundraiser-page .Sticky-Bar-Numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.fundraiser-page .Sticky-Bar-Amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.fundraiser-page .Sticky-Bar-Subtext {
    font-size: 0.8rem;
    color: #666;
}

.fundraiser-page .Sticky-Bar-Progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 200px;
}

.fundraiser-page .Sticky-Bar-Percentage {
    font-weight: 800;
    color: #0E4D78;
    font-size: 0.9rem;
}

.fundraiser-page .Sticky-Bar-Progress-Track {
    width: 100%;
    height: 6px;
    background: #E9ECEF;
    border-radius: 3px;
    overflow: hidden;
}

.fundraiser-page .Sticky-Bar-Progress-Fill {
    height: 100%;
    background: #3BB1E2;
    border-radius: 3px;
}

@media (max-width: 959px) {
    .fundraiser-page .FundraiserPage-Sticky-Bar {
        display: block;
        padding: 12px 20px;
    }

    .fundraiser-page .Sticky-Bar-Host-Info {
        display: none;
    }

    .fundraiser-page .Sticky-Bar-Stats {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "numbers percentage" 
            "track track";
        width: 100%;
        gap: 6px;
        /* margin-left: 15px; */
        min-width: 0;
    }

    .fundraiser-page .Sticky-Bar-Progress {
        display: contents;
    }

    .fundraiser-page .Sticky-Bar-Numbers {
        grid-area: numbers;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .fundraiser-page .Sticky-Bar-Amount {
        font-size: 1rem;
    }

    .fundraiser-page .Sticky-Bar-Percentage {
        grid-area: percentage;
    }

    .fundraiser-page .Sticky-Bar-Progress-Track {
        grid-area: track;
        width: 100%;
    }
}

/* Secondary Nav */
.fundraiser-page .Module.Secondary-Nav {
    background-color: #226599;
    --module-background: #226599;
    padding-block: 4px;
    color: white;
}

.fundraiser-page .Secondary-Nav__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fundraiser-page .Secondary-Nav__edit-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.fundraiser-page .Secondary-Nav__edit-link:hover {
    opacity: 0.9;
}

.fundraiser-page .Secondary-Nav .Button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    min-block-size: 32px;
    height: 32px;
}

.fundraiser-page .Secondary-Nav .Button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Latest Donations */
.fundraiser-page .Latest-Donations {
    background: white;
    border: 1px solid rgb(var(--color-black) / 0.1);
    border-radius: 16px;
    padding: 24px;
}

.fundraiser-page .Latest-Donations__title {
    text-align: center;
    font-family: var(--font-family-h);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
    color: #333;
    margin-top: 0;
}

.fundraiser-page .Latest-Donations__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgb(var(--color-brand-gold));
    border-radius: 2px;
}

.fundraiser-page .Latest-Donations__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fundraiser-page .Latest-Donations__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fundraiser-page .Latest-Donations__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f5f5f5; /* Fallback background */
}

.fundraiser-page .Latest-Donations__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Double ensure circle */
    display: block;
}

.fundraiser-page .Latest-Donations__avatar--placeholder {
    background-color: #E0E0E0;
    border-radius: 50%;
}

.fundraiser-page .Latest-Donations__content {
    display: grid;
    grid-template-areas:
        "name amount"
        "comment time";
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 4px;
    flex: 1;
}

.fundraiser-page .Latest-Donations__name {
    grid-area: name;
    font-family: var(--font-family-h);
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.fundraiser-page .Latest-Donations__amount-wrapper {
    grid-area: amount;
    justify-self: end;
    text-align: right;
    display: block;
}

.fundraiser-page .Latest-Donations__amount {
    font-family: var(--font-family-h);
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.fundraiser-page .Latest-Donations__gift-aid {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    display: block; /* Ensure it breaks line if needed */
}

.fundraiser-page .Latest-Donations__comment {
    grid-area: comment;
    font-size: 0.9375rem;
    color: #4F4F4F;
    line-height: 1.4;
    margin-top: 4px;
    font-style: italic; /* Added italic for comments */
}

.fundraiser-page .Latest-Donations__time {
    grid-area: time;
    justify-self: end;
    align-self: start;
    font-size: 0.875rem;
    color: #666;
    margin-top: 4px;
    white-space: nowrap;
}

.fundraiser-page .Latest-Donations__footer {
    margin-top: 24px;
}

.fundraiser-page .Button--full-width {
    width: 100% !important;
    max-inline-size: 100% !important;
    display: flex;
    justify-content: center;
}

/* Layout override to make content column wider (2/3) */
@container module (inline-size >= 960px) {
    .fundraiser-page .Two-Column__main {
        grid-template-columns: 2fr 1fr;
    }

    .fundraiser-page .Two-Column__main > .Prose {
        max-inline-size: none;
    }
}
