/* =========================================================
   VOLUNTEER PAGE LAYOUT
========================================================= */

.volunteer-login-page {
    min-height: 100vh;
    background: var(--site-secondary-light);
}

.volunteer-login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.volunteer-login-card {
    padding: 2rem;
}

.volunteer-login-btn {
    border-radius: var(--site-radius-sm);
    padding: 0.7rem 1.4rem;
}

/* =========================================================
   VOLUNTEER HEADER
========================================================= */

.volunteer-header {
    width: 100%;
    background: var(--site-surface);
    border-bottom: 1px solid var(--site-border);
    box-shadow: 0 8px 24px rgba(var(--site-text-rgb), 0.08);
}

.volunteer-header__inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.volunteer-header__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.volunteer-header__logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.volunteer-header__name {
    color: var(--site-text);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.05;
}

.volunteer-header__tag {
    color: var(--site-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}

.volunteer-header__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.volunteer-header__nav a {
    color: var(--site-nav-link);
    font-weight: 700;
    text-decoration: none;
    padding: 0.65rem 0.85rem;
}

.volunteer-header__nav a:hover,
.volunteer-header__nav a:focus {
    color: var(--site-primary);
    text-decoration: underline;
}

/* =========================================================
   VOLUNTEER DASHBOARD
========================================================= */

.volunteer-dashboard-welcome {
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: start;
    gap: 1.5rem;
}

.volunteer-dashboard-welcome__image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--site-radius-md);
    border: 1px solid var(--site-border);
    justify-self: end;
}

.volunteer-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* =========================================================
   MEMBER ACTIVITY
========================================================= */

.volunteer-resource-card {
    text-decoration: none;
}

.volunteer-resource-card__link {
    display: inline-flex;
    margin-top: auto;
    color: var(--site-primary);
    font-weight: 800;
}

/* =========================================================
   VOLUNTEER ALERTS
========================================================= */

.volunteer-alert {
    border-radius: var(--site-radius-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.volunteer-alert--success {
    background: #ecfff6;
    color: #146c43;
    border: 1px solid #b7efd3;
}

.volunteer-alert--error {
    background: #fff1f1;
    color: #9f1c1c;
    border: 1px solid #f3b8b8;
}

/* =========================================================
   VOLUNTEER BUTTONS
========================================================= */

.volunteer-save-btn {
    background: var(--site-secondary);
    color: var(--site-text);
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.4rem;
    min-height: 54px;
    font-weight: 700;
    transition: 0.2s ease;
}

.volunteer-save-btn:hover,
.volunteer-save-btn:focus {
    background: var(--site-secondary-dark);
    color: var(--site-text);
}

/* =========================================================
   VOLUNTEER CARD HEADING + TOGGLE
========================================================= */

.volunteer-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.volunteer-toggle-form {
    margin: 0;
}

.volunteer-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--site-text);
    white-space: nowrap;
    position: relative;
}

.volunteer-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.volunteer-switch__slider {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    background: rgba(var(--site-text-rgb), 0.22);
    border-radius: 999px;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.volunteer-switch__slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: var(--site-surface);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(var(--site-text-rgb), 0.25);
    transition: 0.2s ease;
}

.volunteer-switch input[type="checkbox"]:checked + .volunteer-switch__slider {
    background: var(--site-secondary);
}

.volunteer-switch input[type="checkbox"]:checked + .volunteer-switch__slider::before {
    transform: translateX(24px);
}

.volunteer-switch:focus-within .volunteer-switch__slider {
    outline: 3px solid var(--site-accent);
    outline-offset: 3px;
}

.volunteer-switch__text {
    font-size: 0.95rem;
}

/* =========================================================
   VOLUNTEER TABLES
========================================================= */

.volunteer-table-wrap {
    overflow-x: auto;
}

.volunteer-table {
    width: 100%;
    border-collapse: collapse;
}

.volunteer-table th,
.volunteer-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--site-border);
    vertical-align: middle;
}

.volunteer-table th {
    color: var(--site-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.volunteer-table td {
    color: var(--site-text);
}

.volunteer-row-inactive {
    opacity: 0.6;
}

.volunteer-muted {
    color: var(--site-muted);
    font-weight: 700;
}

/* =========================================================
   VOLUNTEER ACTIONS
========================================================= */

.volunteer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* =========================================================
   VOLUNTEER HAMBURGER
========================================================= */
.volunteer-header__toggle {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    background: var(--site-surface);
    cursor: pointer;
}

.volunteer-header__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--site-text);
    border-radius: 999px;
}



/* =========================================================
   RESPONSIVE
========================================================= */


@media (max-width: 767.98px) {
    .volunteer-card-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .volunteer-dashboard-welcome {
        grid-template-columns: 1fr;
    }

    .volunteer-dashboard-welcome__image {
        width: 100%;
        height: 220px;
        justify-self: stretch;
    }
}


@media (max-width: 900px) {
    .volunteer-header__inner {

        display: grid;

        grid-template-columns: 1fr auto;

        align-items: center;

        gap: 1rem;

        padding: 1rem 0;

    }

    .volunteer-header__toggle {

        display: block;

    }

    .volunteer-header__nav {

        grid-column: 1 / -1;

        display: none;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        border-top: 1px solid var(--site-border);

        padding-top: 0.75rem;

    }

    .volunteer-header__nav.is-open {

        display: flex;

    }

    .volunteer-header__nav a {

        display: block;

        width: 100%;

        padding: 0.75rem 0;

    }
}