/* ==========================================================================
   Fundraise Single Page Styles
   Colour palette matches charity-theme: #009b83 teal, #1e3347 navy, #d40e3e red
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.fundraise-single {
    padding: 0 0 5rem;
}

.fundraise-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 4rem;
}

/* --------------------------------------------------------------------------
   Left column — media
   -------------------------------------------------------------------------- */
.fundraise-media {
    margin-bottom: 2.5rem;
}

.fundraise-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.fundraise-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery grid */
.fundraise-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fundraise-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 3px;
    background: #f4f7f9;
}

.fundraise-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.fundraise-gallery__item:hover img {
    transform: scale(1.06);
}

.fundraise-gallery__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 51, 71, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.fundraise-gallery__item:hover .fundraise-gallery__zoom {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Left column — content
   -------------------------------------------------------------------------- */
.fundraise-content {
    margin-bottom: 3rem;
}

.fundraise-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e3347;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
}

.fundraise-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.fundraise-body p {
    margin-bottom: 1.25rem;
}

.fundraise-body h2,
.fundraise-body h3 {
    color: #1e3347;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.fundraise-faq {
    border-top: 2px solid #e8ecef;
    padding-top: 2.5rem;
}

.fundraise-faq__heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3347;
    margin-bottom: 1.5rem;
}

.fundraise-faq__item {
    border-bottom: 1px solid #e8ecef;
}

.fundraise-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3347;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    font-family: inherit;
    transition: color 0.2s;
}

.fundraise-faq__question:hover {
    color: #009b83;
}

.fundraise-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    border-radius: 50%;
    border: 2px solid currentColor;
    transition: transform 0.3s ease, border-color 0.2s;
}

.fundraise-faq__icon::before,
.fundraise-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.3s;
}

.fundraise-faq__icon::before {
    width: 8px;
    height: 2px;
}

.fundraise-faq__icon::after {
    width: 2px;
    height: 8px;
}

.fundraise-faq__item.is-open .fundraise-faq__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.fundraise-faq__item.is-open .fundraise-faq__question {
    color: #009b83;
}

.fundraise-faq__answer {
    overflow: hidden;
    transition: none;
}

.fundraise-faq__answer[hidden] {
    display: none;
}

.fundraise-faq__answer-inner {
    padding: 0.25rem 0 1.25rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #555;
}

.fundraise-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Right column — sidebar
   -------------------------------------------------------------------------- */
.fundraise-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Progress / counter
   -------------------------------------------------------------------------- */
.fundraise-progress {
    background: #f4f7f9;
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
}

.fundraise-progress__amounts {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    gap: 1rem;
}

.fundraise-progress__raised-wrap,
.fundraise-progress__goal-wrap {
    display: flex;
    flex-direction: column;
}

.fundraise-progress__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 0.15rem;
}

.fundraise-progress__raised {
    font-size: 2rem;
    font-weight: 700;
    color: #009b83;
    line-height: 1;
}

.fundraise-progress__goal {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3347;
}

.fundraise-progress__bar {
    width: 100%;
    height: 10px;
    background: #dde3e9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.fundraise-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #009b83, #00c4a7);
    border-radius: 999px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

.fundraise-progress__percent {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.fundraise-progress__donors {
    font-size: 0.85rem;
    color: #888;
    margin: 0.2rem 0 0;
}

/* --------------------------------------------------------------------------
   Share buttons
   -------------------------------------------------------------------------- */
.fundraise-share {
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.fundraise-share__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 0 0 0.9rem;
}

.fundraise-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fundraise-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    color: #fff;
    font-family: inherit;
}

.fundraise-share__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.fundraise-share__btn--whatsapp {
    background: #25d366;
}

.fundraise-share__btn--x {
    background: #000;
}

.fundraise-share__btn--facebook {
    background: #1877f2;
}

.fundraise-share__btn--linkedin {
    background: #0a66c2;
}

.donation-form-wrapper {
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Donate button
   -------------------------------------------------------------------------- */
.fundraise-donate-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #009b83;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.fundraise-donate-btn:hover {
    background: #007f6b;
    transform: translateY(-1px);
}

.fundraise-donate-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Donor list
   -------------------------------------------------------------------------- */
.fundraise-donors {
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.fundraise-donors__heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e3347;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.fundraise-donors__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fundraise-donors__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0f3f6;
}

.fundraise-donors__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fundraise-donors__location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
}

.fundraise-donors__location svg {
    flex-shrink: 0;
    color: #009b83;
}

.fundraise-donors__amount {
    font-weight: 700;
    color: #1e3347;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hidden donation form source
   -------------------------------------------------------------------------- */
.fundraise-form-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Mobile — single column
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .fundraise-layout {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        gap: 2rem;
    }

    .fundraise-sidebar {
        position: static;
    }

    .fundraise-title {
        font-size: 1.9rem;
    }

    .fundraise-gallery {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
}

@media (max-width: 480px) {
    .fundraise-progress__amounts {
        flex-direction: column;
        align-items: flex-start;
    }

    .fundraise-progress__raised {
        font-size: 1.6rem;
    }

    .fundraise-share__buttons {
        flex-direction: column;
    }

    .fundraise-share__btn {
        justify-content: center;
    }
}
