/* ==============================
   Benefiet page – site-consistent
   ============================== */

/* ---- Page background ---- */
.benefiet-page {
    background-color: var(--background-color);
    padding-bottom: 3rem;
}

/* ---- Banner / Hero ---- */
.benefiet-banner {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 380px;
    background-position: center;
    background-size: cover;
}

.benefiet-banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center;
    z-index: 0;
}

@media only screen and (max-width: 960px) {
    .benefiet-banner-video {
        transform: scale(1.1);
    }
}

.benefiet-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(5, 17, 24, 0.82) 0%,
        rgba(5, 17, 24, 0.5) 40%,
        rgba(5, 17, 24, 0.12) 100%
    );
}

.benefiet-banner-content {
    position: relative;
    z-index: 2;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    text-align: center;
}

.benefiet-banner h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4.8vw, var(--h1-size));
    line-height: 1.1;
    margin: 0;
    text-align: center;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Pill-style CTA links in banner */
.benefiet-banner-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: none;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pill-btn i {
    color: inherit;
}

.pill-btn-dark {
    background: var(--secondary-color);
}

.pill-btn-dark:hover {
    background: #6e322d;
}

.pill-btn-accent {
    background: var(--main-color);
    color: var(--text-color);
    font-weight: 900;
    border: 2px solid #c4b296;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}

.pill-btn-accent:hover {
    background: #c4b296;
}

/* ---- Message boxes (match site .message-box) ---- */
.benefiet-message {
    margin-bottom: 1rem;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
}

.benefiet-message.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.benefiet-message.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---- Prayer card ---- */
.benefiet-prayer {
    margin-top: 1.5rem;
}

.prayer-card {
    max-width: 1200px;
    height: 120px;
    border-radius: 10px;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prayer-card p {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
}

.prayer-card h2 {
    color: #ffffff;
    margin: 0.2rem 0 0;
    font-size: 2rem;
    line-height: 1;
}

/* ---- Intro section ---- */
.benefiet-intro {
    padding: 3rem 0 1.5rem;
}

.intro-content {
    width: min(980px, 100%);
    margin: 0 auto;
}

.intro-content h2 {
    color: var(--secondary-color);
    font-size: clamp(1.8rem, 3.2vw, var(--h2-size));
    margin-bottom: 0.3rem;
}

.intro-content h3 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.intro-content h4 {
    color: var(--secondary-color);
    margin: 1.2rem 0 0.6rem;
}

.intro-content p {
    font-size: var(--p-size);
    line-height: 1.74;
    margin-bottom: 0.7rem;
}

/* ---- Highlight grid ---- */
.benefiet-highlights {
    padding: 1rem 0 1.5rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.85fr;
    gap: 1rem;
}

.highlight-media,
.highlight-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e0d3b4;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.highlight-media {
    min-height: 420px;
    background: #f6efe2;
}

.highlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.highlight-card {
    min-height: 420px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.highlight-card h3 {
    margin: 0 0 0.8rem;
    font-size: var(--h3-size);
}

.highlight-card p {
    font-size: var(--p-size);
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

/* Djamaa card */
.djamaa-card {
    background: var(--secondary-color);
}

.djamaa-card h3,
.djamaa-card p {
    color: #ffffff;
}

/* Impact card – main beige */
.impact-card {
    background: var(--main-color);
}

.impact-card h3,
.impact-card p {
    color: var(--text-color);
}

/* Card buttons – match site .btn style */
.highlight-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 50px;
    padding: 0.55rem 1.1rem;
    width: fit-content;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid #c4b296;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}

.highlight-btn:hover {
    background: #c4b296;
    box-shadow: 2px 5px 8px rgba(0, 0, 0, 0.25);
}

.highlight-btn i {
    color: inherit;
}

.highlight-btn-dark {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.highlight-btn-dark:hover {
    background: #6e322d;
}

/* Two-column variant for highlight section */
.highlight-grid-two {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
}

.highlight-grid-two .highlight-card {
    min-height: 100%;
}

.highlight-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    padding: 0.9rem;
    background: #ffffff;
}

.highlight-media-item {
    position: relative;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.highlight-media-item.exterior-full {
    aspect-ratio: auto;
    min-height: 100%;
}

.highlight-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.highlight-media-item.exterior-full img {
    min-height: 100%;
}

.highlight-media-item:hover img {
    transform: scale(1.03);
}

.highlight-media-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem 0.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.highlight-points {
    margin: 0.4rem 0 1rem;
    padding-left: 1.1rem;
}

.highlight-points li {
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

/* ---- Events section ---- */
.benefiet-events {
    padding: 1rem 0 2rem;
}

.benefiet-events-heading {
    margin-bottom: 0.9rem;
}

.benefiet-events-heading h2 {
    color: var(--secondary-color);
    font-size: clamp(1.8rem, 3.2vw, var(--h2-size));
    margin-bottom: 0.3rem;
}

.benefiet-events-heading p {
    font-size: var(--p-size);
    color: var(--text-color);
}

.benefiet-events-card {
    border: 1px solid #e0d3b4;
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.benefiet-events .lightwidget-widget {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 10px;
}

/* ---- Forms ---- */
.benefiet-djamaa-form,
.benefiet-donation-form {
    padding: 1.5rem 0 2rem;
}

.form-title {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: clamp(1.6rem, 2.4vw, var(--h3-size));
}

#djamaa-form,
#donatie-form {
    scroll-margin-top: 120px;
}

.benefiet-form {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    max-width: 560px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Form inputs – match site donation.css */
.benefiet-page .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.benefiet-page label {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: #333;
    font-weight: 700;
    display: block;
}

.benefiet-page input,
.benefiet-page textarea,
.benefiet-page select {
    width: 100%;
    border: 1px solid #ccc;
    background: #ffffff;
    border-radius: 4px;
    padding: 0.7rem;
    font-size: 1rem;
}

.benefiet-page input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.benefiet-page .checkbox-inline {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0;
}

.benefiet-page .checkbox-inline input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.benefiet-page textarea {
    resize: vertical;
    height: 120px;
}

.benefiet-page input:focus,
.benefiet-page textarea:focus,
.benefiet-page select:focus {
    border-color: #5c6bc0;
    outline: none;
    box-shadow: 0 0 5px rgba(92, 107, 192, 0.5);
}

/* Radio list */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.radio-list label {
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.radio-list input[type="radio"] {
    width: auto;
    margin-top: 0.2rem;
}

.radio-list input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

/* Total row */
.total-row {
    margin: 0.5rem 0 1.1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.total-row span,
.total-row strong {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
}

.total-row strong {
    border-left: 1px solid #ccc;
    background: var(--main-color);
    font-weight: 800;
}

/* Submit button – match site .btn-submit */
.submit-btn {
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #218838;
}

.submit-btn:active {
    background-color: #1e7e34;
}

/* ---- Donation layout ---- */
.donation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.donation-copy h2 {
    color: var(--secondary-color);
    font-size: clamp(1.8rem, 3.4vw, var(--h2-size));
}

.donation-copy h4 {
    color: var(--secondary-color);
    margin: 1.2rem 0 0.4rem;
}

.donation-copy p {
    margin-top: 1rem;
    font-size: var(--p-size);
    line-height: 1.6;
}

.donation-copy ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
}

.donation-copy li {
    list-style: disc;
    margin-bottom: 0.55rem;
    line-height: 1.6;
    font-size: var(--p-size);
}

.donation-form {
    margin-left: auto;
}

.donation-note {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
    color: var(--secondary-color);
}

/* Amount input with currency symbol */
.amount-input {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem;
}

.amount-input span {
    border: 1px solid #ccc;
    background: var(--main-color);
    border-radius: 4px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 0.5rem;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 1250px) {
    .highlight-grid {
        grid-template-columns: 1fr 1fr;
    }

    .impact-card {
        min-height: 260px;
        grid-column: 1 / -1;
    }
}

@media only screen and (max-width: 960px) {
    .benefiet-banner-content {
        justify-content: center;
        align-items: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .benefiet-banner-actions {
        margin-top: 0.6rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .highlight-media,
    .highlight-card {
        min-height: 260px;
    }

    .highlight-grid-two {
        grid-template-columns: 1fr;
    }

    .highlight-media-grid {
        grid-template-columns: 1fr;
    }

    .highlight-media-item.exterior-full {
        min-height: 260px;
    }

    .donation-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .donation-form {
        margin-left: 0;
        max-width: 100%;
    }

    .benefiet-form {
        max-width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .benefiet-page {
        padding-bottom: 2rem;
    }

    .benefiet-prayer {
        margin-top: 0.8rem;
    }

    .prayer-card {
        height: 100px;
        border-radius: 10px;
    }

    .intro-content h2 {
        font-size: 1.8rem;
    }

    .benefiet-intro {
        padding-top: 2rem;
    }

    .benefiet-form {
        border-radius: 8px;
        padding: 1.2rem;
    }

    .pill-btn {
        font-size: 0.78rem;
        padding: 0.42rem 0.72rem;
    }

    .highlight-card {
        padding: 1.2rem 1rem;
    }

    .benefiet-events-card {
        padding: 0.8rem;
    }

    .benefiet-events .lightwidget-widget {
        min-height: 360px;
    }
}
