/* Legacy utility classes for simple inner pages (about, contact, etc.) */
.mb-16 {
    margin-bottom: 1.5rem;
}

.muted {
    color: #6b7280;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.inner-page-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.sec-padding-inner {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.placeholder-box {
    border-radius: 8px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.placeholder-box.map {
    height: 220px;
}

.mt-10-mb-0 {
    margin-top: 10px;
    margin-bottom: 0;
}

.mt-16 {
    margin-top: 1rem;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.error-text {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13px;
}

.btn-submit {
    border: none;
    cursor: pointer;
}

.placeholder-box.gallery {
    height: 170px;
}

/* About page: large AI photos — lock to template frame (~430×520) so layout + overlap thumb stay stable */
.about-sec4 .about-imgs--fixed {
    overflow-x: hidden;
    padding-bottom: clamp(72px, 11vw, 120px);
}
.about-sec4 .about-imgs--fixed .about-imgs-main {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 430 / 520;
    overflow: hidden;
}
.about-sec4 .about-imgs--fixed .about-imgs-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.about-sec4 .about-imgs--fixed .abst-img {
    max-width: min(300px, 52vw);
    width: auto;
    height: auto;
    z-index: 2;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}
@media (max-width: 767.98px) {
    .about-sec4 .about-imgs--fixed {
        padding-bottom: 1.5rem;
    }
    .about-sec4 .about-imgs--fixed .abst-img {
        max-width: 100%;
    }
}

/* Donation causes: primary (teal) + secondary (gold) stay distinct; avoid both turning same on card hover */
.causes-section .cause-entry .cause-card-actions {
    margin-top: 0.25rem;
}
.causes-section .cause-entry:hover .cause-txt .btn.btn-primary {
    background-color: rgb(15.8, 63.2, 55.3) !important;
    border-color: rgb(15.8, 63.2, 55.3) !important;
    color: #fff !important;
}
.causes-section .cause-entry:hover .cause-txt .btn.btn-secondary {
    background-color: rgb(204, 137.6, 0) !important;
    border-color: rgb(204, 137.6, 0) !important;
    color: #fff !important;
}

/* Header Login / Register: theme .btn uses 30px pill — use modest radius */
.btn.btn-auth-nav {
    border-radius: 8px !important;
}

@media (min-width: 1200px) {
    .header .header-wrapper .btn {
        padding: 9px 35px;
    }
}

/* Mobile offcanvas: Login / Register / My account — tap-friendly buttons */
@media (max-width: 767.98px) {
    .offcanvas-nav .offcanvas-auth-btns .btn,
    .offcanvas-nav .nav-item.d-md-none > .btn.btn-auth-nav {
        padding: 12px 18px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}

/* Logged-in member portal: no public header/footer — full-height shell */
body.body--member-panel main {
    padding-top: 0;
}

body.body--member-panel .member-panel__layout {
    min-height: 100vh;
    min-height: 100dvh;
}
