body {
    font-family: Arial, sans-serif;
}

/* ================= ADMIN DASHBOARD ================= */

.dashboard-body {
    min-height: 100vh;
    margin: 0;
    color: #1f2937;
    background: #f4f7fb;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    color: #dbeafe;
    background: #102a43;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 28px;
    color: #fff;
    text-decoration: none;
}

.dashboard-brand strong,
.dashboard-brand small {
    display: block;
}

.dashboard-brand small {
    margin-top: 3px;
    color: #9fb3c8;
    font-size: .72rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #102a43;
    background: #f6c344;
    border-radius: 12px;
    font-size: 1.25rem;
}

.workspace-label,
.eyebrow {
    color: #7b93aa;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.workspace-label {
    padding: 0 12px 9px;
}

.dashboard-nav {
    display: grid;
    gap: 5px;
}

.dashboard-nav-link,
.dashboard-back {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    color: #b8c7d9;
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active,
.dashboard-back:hover {
    color: #fff;
    background: #1e4668;
}

.sidebar-note {
    display: grid;
    gap: 5px;
    margin: auto 8px 20px;
    padding: 15px;
    color: #a9bad0;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    font-size: .78rem;
}

.sidebar-note i {
    color: #f6c344;
    font-size: 1.2rem;
}

.sidebar-note strong {
    color: #fff;
}

.dashboard-main {
    min-width: 0;
    flex: 1;
}

.dashboard-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 32px;
    background: #fff;
    border-bottom: 1px solid #e5eaf0;
}

.dashboard-topbar h1 {
    margin: 4px 0 0;
    color: #102a43;
    font-size: 1.35rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.role-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #627d98;
    font-size: .82rem;
}

.role-switcher select {
    padding: 6px 28px 6px 9px;
    color: #243b53;
    background: #f7f9fc;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-chip strong,
.profile-chip small {
    display: block;
}

.profile-chip small {
    color: #829ab1;
    font-size: .72rem;
}

.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #0d6efd;
    background: #e7f1ff;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px;
}

.dashboard-view {
    display: none;
}

.dashboard-view.active {
    display: block;
}

.welcome-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px 32px;
    color: #fff;
    background: linear-gradient(120deg, #0d6efd, #15558a);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(13, 110, 253, .16);
}

.welcome-panel h2 {
    margin: 8px 0 6px;
    font-size: 1.6rem;
}

.welcome-panel p {
    margin: 0;
    color: #dbeafe;
}

.eyebrow.light {
    color: #dbeafe;
}

.welcome-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .12);
    border-radius: 9px;
    font-size: .82rem;
}

.welcome-date strong {
    color: #fff;
}

.stat-grid,
.content-grid {
    display: grid;
    gap: 18px;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.content-grid.two-col {
    grid-template-columns: 1.25fr .75fr;
}

.stat-card,
.surface-card {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(16, 42, 67, .04);
}

.stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

.stat-card strong,
.stat-card small,
.stat-label {
    display: block;
}

.stat-card strong {
    margin: 5px 0 2px;
    color: #102a43;
    font-size: 1.65rem;
}

.stat-card small {
    color: #829ab1;
    font-size: .75rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.stat-icon.blue { color: #0d6efd; background: #e7f1ff; }
.stat-icon.orange { color: #c77c11; background: #fff3d6; }
.stat-icon.green { color: #198754; background: #dff5e8; }
.stat-icon.purple { color: #6f42c1; background: #eee5ff; }

.stat-label {
    color: #627d98;
    font-size: .76rem;
}

.surface-card {
    padding: 22px;
}

.card-heading,
.page-intro,
.table-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.card-heading h3,
.page-intro h2,
.table-card-heading h3 {
    margin: 5px 0 0;
    color: #102a43;
    font-size: 1.15rem;
}

.text-button {
    color: #0d6efd;
    background: none;
    border: 0;
    font-size: .82rem;
}

.heading-icon {
    color: #0d6efd;
    font-size: 1.3rem;
}

.checklist,
.criteria-list {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.checklist > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    color: #486581;
    font-size: .85rem;
}

.checklist .done { color: #198754; }
.checklist .pending { color: #dc3545; }
.checklist strong { color: #243b53; font-size: .8rem; }

.page-intro {
    align-items: center;
    margin-bottom: 22px;
}

.page-intro p,
.table-card-heading p {
    margin: 7px 0 0;
    color: #829ab1;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 11px;
    left: 12px;
    color: #829ab1;
}

.input-with-icon input {
    padding-left: 35px;
}

.toolbar-count {
    color: #627d98;
    font-size: .8rem;
    text-align: right;
}

.dashboard-table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
}

.dashboard-table th {
    color: #829ab1;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dashboard-table td {
    color: #486581;
    font-size: .86rem;
}

.report-criteria {
    margin-bottom: 18px;
}

.criteria-list {
    display: flex;
    flex-wrap: wrap;
    color: #486581;
    font-size: .82rem;
}

.criteria-list span {
    padding: 8px 11px;
    background: #f5f8fb;
    border-radius: 7px;
}

.criteria-list i {
    margin-right: 5px;
    color: #0d6efd;
}

.mini-ranking,
.full-ranking {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.mini-rank,
.full-rank {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) minmax(80px, 1.5fr) auto;
    align-items: center;
    gap: 12px;
}

.rank-number,
.place {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #0d6efd;
    background: #e7f1ff;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
}

.rank-name small {
    display: block;
    color: #829ab1;
    font-size: .7rem;
}

.progress {
    height: 7px;
    overflow: hidden;
    background: #e8eef4;
    border-radius: 20px;
}

.progress span {
    display: block;
    height: 100%;
    background: #0d6efd;
    border-radius: inherit;
}

.report-input {
    width: 70px;
}

.member-modal .modal-header {
    border-bottom: 1px solid #e5eaf0;
}

@media (max-width: 1100px) {
    .dashboard-sidebar {
        width: 220px;
        flex-basis: 220px;
    }

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

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 -270px;
        z-index: 1040;
        width: 260px;
        flex-basis: auto;
        transition: left .2s ease;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .dashboard-topbar,
    .dashboard-content {
        padding: 18px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .role-switcher span {
        display: none;
    }

    .welcome-panel,
    .page-intro {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .toolbar-count {
        text-align: left;
    }

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

@media (max-width: 520px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .profile-chip .avatar {
        width: 32px;
        height: 32px;
    }

    .dashboard-topbar h1 {
        font-size: 1.05rem;
    }
}


/* ================= HERO ================= */

.sda-logo{
    height: 30px;
    width: 30px;
}
.hero {
    min-height: 620px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(rgba(13, 110, 253, 0.85),
            rgba(13, 110, 253, 0.85)),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
}


/* ================= SECTIONS ================= */

.section-description {
    max-width: 650px;
}


/* ================= FEATURE CARDS ================= */

.feature-card {
    border: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}


/* ================= ICON BOX ================= */

.icon-box {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7f1ff;
    color: #0d6efd;

    font-size: 1.6rem;
}

.ministry-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}


/* ================= MINISTRIES ================= */

.ministry-box {
    background: white;

    text-align: center;

    padding: 25px 10px;

    border-radius: 10px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.ministry-box:hover {
    transform: translateY(-5px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);
}

.ministry-box i {
    display: block;

    font-size: 2rem;

    color: #0d6efd;

    margin-bottom: 10px;
}

.ministry-box h6 {
    margin-bottom: 0;
}


/* ================= SCHOOL SABBATH ================= */

.school-sabbath-box {
    min-height: 280px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px;

    background: #e7f1ff;

    border-radius: 15px;
}

.school-sabbath-box>i {
    font-size: 4rem;
    color: #0d6efd;
}


/* ================= FOOTER ================= */

.footer-link {
    color: rgba(255, 255, 255, 0.6);

    text-decoration: none;

    display: inline-block;

    margin-bottom: 8px;
}

.footer-link:hover {
    color: white;
}

/* ================= LIBRARY ================= */

.library-header {
    background: #f8f9fa;
}

.book-card {
    border: none;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.book-cover {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7f1ff;

    color: #0d6efd;

    font-size: 4rem;
}

.library-cta {
    padding: 50px 20px;

    background: #f8f9fa;

    border-radius: 15px;
}
.ministries-header {
    background: #f8f9fa;
}

.ministry-card {
    border: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.ministry-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7f1ff;
    color: #0d6efd;

    font-size: 1.8rem;

    margin-bottom: 20px;
}

.ministry-cta {
    padding: 55px 20px;

    background: #f8f9fa;

    border-radius: 15px;
}


/* ================= EVENTS PAGE ================= */

.events-header {
    background: #f8f9fa;
}


/* ================= EVENT CARD ================= */

.event-card {
    border: none;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12) !important;
}


/* ================= EVENT IMAGE ================= */

.event-image {
    height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7f1ff;

    color: #0d6efd;

    font-size: 4rem;
}


/* ================= EVENT DATE ================= */

.event-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-day {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0d6efd;
    color: white;

    border-radius: 8px;

    font-size: 1.3rem;
    font-weight: bold;
}

.event-date strong,
.event-date small {
    display: block;
}

.event-date strong {
    color: #0d6efd;
    font-size: 0.9rem;
}

.event-date small {
    color: #6c757d;
}


/* ================= EVENT INFO ================= */

.event-info div {
    margin-bottom: 7px;
}

.event-info i {
    width: 20px;
    color: #0d6efd;
}


/* ================= PAST EVENTS ================= */

.past-event-date {
    display: inline-flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-width: 75px;
}

.past-event-date strong {
    font-size: 1.6rem;
    color: #0d6efd;
}

.past-event-date span {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
}


/* ================= SCHOOL SABBATH PAGE ================= */

.school-hero {
    min-height: 550px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(rgba(13, 110, 253, 0.88),
            rgba(13, 110, 253, 0.88)),
        url("../images/school-sabbath.jpg");

    background-size: cover;
    background-position: center;
}

.school-hero-card {
    padding: 45px 30px;

    text-align: center;

    background: rgba(255, 255, 255, 0.95);

    color: #212529;

    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
}

.school-hero-card>i {
    font-size: 4rem;
    color: #0d6efd;
}


/* ================= SCHOOL FEATURES ================= */

.school-feature {
    padding: 25px;
}

.school-feature-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7f1ff;
    color: #0d6efd;

    font-size: 1.8rem;
}


/* ================= RESOURCE CARDS ================= */

.resource-card {
    border: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.resource-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #e7f1ff;
    color: #0d6efd;

    font-size: 1.5rem;
}


/* ================= PROGRAM LIST ================= */

.program-list {
    background: white;

    border-radius: 12px;

    overflow: hidden;
}

.program-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
}

.program-item:last-child {
    border-bottom: none;
}

.program-number {
    min-width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7f1ff;
    color: #0d6efd;

    font-weight: bold;
}


/* ================= SCHOOL EVENTS ================= */

.school-event-card {
    border: none;
}

.school-event-date {
    min-width: 65px;
    height: 65px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #e7f1ff;
    color: #0d6efd;

    border-radius: 10px;
}

.school-event-date strong {
    font-size: 1.5rem;
    line-height: 1;
}

.school-event-date span {
    font-size: 0.75rem;
    font-weight: bold;
}


/* ================= ABOUT PAGE ================= */

.about-header {
    background: #f8f9fa;
}

.about-highlight {
    min-height: 280px;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #e7f1ff;
    border-radius: 15px;
}

.about-highlight>i {
    font-size: 4rem;
    color: #0d6efd;
}

.about-card {
    padding: 35px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.about-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 1.6rem;
}

.value-card {
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eeeeee;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 1.4rem;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 10px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.platform-item>i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 1.3rem;
}

.about-cta {
    padding: 55px 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.about-cta>i {
    font-size: 3.5rem;
    color: #0d6efd;
}

/* ================= AUTHENTICATION PAGES ================= */

.auth-section {
    min-height: calc(100vh - 72px);
    padding: 70px 20px;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.auth-card {
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 2.3rem;
}

.auth-link {
    color: #0d6efd;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-card .input-group-text {
    background: #f8f9fa;
    color: #0d6efd;
    border-right: none;
}

.auth-card .input-group .form-control {
    border-left: none;
}

.auth-card .input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.auth-card .form-control:focus {
    box-shadow: none;
}

.event-image-box,
.home-event-image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.home-event-card {
    overflow: hidden;
}

@media (max-width: 576px) {
    .hero {
        min-height: 520px;
        background-position: 62% center;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .event-image-box,
    .home-event-image {
        height: 210px;
    }

    .event-card .card-body,
    .home-event-card .card-body {
        padding: 1.25rem !important;
    }
}