/* Import Bootstrap so we can style the login area without editing templates */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
/* Modern system font (falls back to system UI if Google Fonts blocked) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #23303b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0077cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-header {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 18px rgba(13, 37, 63, 0.08);
}

.main-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.main-header h1::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../img/logo.svg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    flex-shrink: 0;
}

.main-header nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-header nav a {
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-decoration: none;
    transition: background .12s ease, transform .08s ease;
}

.main-header nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* profile dropdown button inside header - keep visual parity with nav links */
.profile-dropdown .dropdown-toggle {
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* Scoped style for header profile dropdown: matched with custom purple theme and right-aligned */
.profile-dropdown .dropdown-menu {
    background: linear-gradient(90deg, #63449bff 60%);
    color: #fff;
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 36, 64, 0.18);
    right: 0 !important;
    left: auto !important;
    padding: 4px 0 !important;
}

.profile-dropdown .dropdown-menu .dropdown-item {
    color: #fff;
    background: transparent;
    padding: 8px 15px;
    font-weight: 600;
}

.profile-dropdown .dropdown-menu .dropdown-item:hover,
.profile-dropdown .dropdown-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.profile-dropdown .dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

.profile-dropdown .dropdown-menu .text-danger {
    color: #ffb3b3 !important;
}

/* highlight active link when on the same page (simple heuristic using href match) */
.main-header nav a.active,
.main-header nav a[aria-current='page'] {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.04);
}

.admin-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .main-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .main-header h1 {
        font-size: 1rem;
        flex: 1;
    }

    .admin-nav-toggle {
        display: block;
        margin-left: auto;
    }

    #adminNav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    #adminNav.open {
        display: flex;
    }

    #adminNav a,
    .dropdown-hover {
        width: 100%;
        display: block !important;
        padding: 0.8rem 0.5rem !important;
        border-radius: 6px;
    }

    .dropdown-hover {
        position: relative;
    }

    .dropdown-menu-custom {
        position: static !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
        border: none !important;
        margin-top: 0.25rem;
        padding: 0.5rem 0 0.5rem 1.5rem !important;
    }

    /* Keep dropdowns hidden on mobile unless hovered/clicked - 
       Note: hover is still flaky on touch, but since we are transforming it to a list, 
       it's better than nothing. We could add a 'click' toggle too. */
    @media (hover: hover) {
        .dropdown-hover:hover .dropdown-menu-custom {
            display: block !important;
        }
    }
    .dropdown-hover.force-show .dropdown-menu-custom,
    .profile-dropdown.force-show .dropdown-menu-custom {
        display: block !important;
    }

    .profile-dropdown {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .profile-dropdown .btn {
        width: 100%;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.08) !important;
    }
}

.dropdown-toggle::after {
    transition: transform 0.2s ease;
    vertical-align: middle;
    margin-left: 0.5rem;
}

@media (hover: hover) {
    .dropdown-hover:hover .dropdown-toggle::after,
    .profile-dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}
.dropdown-hover.force-show .dropdown-toggle::after,
.profile-dropdown.force-show .dropdown-toggle::after {
    transform: rotate(180deg);
}


.content {
    flex: 1 0 auto;
    /* allow main content to grow and push footer to the bottom */
    padding: 2rem;
}

@media (max-width: 768px) {
    .content {
        padding: 32px 15px !important;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.btn {
    background-color: #0077cc;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: #005fa3;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #fff;
}

.table th,
.table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f0f0f0;
}

.donor-table-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(17, 31, 44, 0.08);
    padding: 1.75rem;
    border: 1px solid rgba(17, 31, 44, 0.08);
}

.donor-table-toolbar {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
    border-radius: 0.75rem;
    padding: 0.5rem;
    /* border: 1px solid rgba(17, 31, 44, 0.06); */
    width: 100% !important;
    margin-top: 1rem !important;
}

.donor-table-toolbar .form-control,
.donor-table-toolbar .form-select {
    border: 1px solid rgba(17, 31, 44, 0.12);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.donor-table-toolbar .form-control:focus,
.donor-table-toolbar .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.donor-table-toolbar .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.donor-table-toolbar-top .btn-sm {
    height: 38px;
    padding: 0 0.7rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donor-table-toolbar-top form>div,
.donor-table-toolbar-top form>button,
.donor-table-toolbar-top form>a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

/* Make all search, reset, export buttons have same styling */
.donor-table-toolbar-top .btn-outline-primary,
.donor-table-toolbar-top .btn-outline-secondary,
.donor-table-toolbar-top .btn-success {
    background-color: #0077cc !important;
    color: #fff !important;
    border-color: #0077cc !important;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0 0.7rem !important;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page-body .input-group .btn {
    border-color: #e0e8f4;
    background-color: #f8faff;
    color: #1f4f7b;
}

.home-page-body .input-group .btn:hover {
    background-color: #eef4ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.home-page-body .input-group .form-control:focus + .btn {
    border-color: #0d6efd;
}

.donor-table-toolbar-top .btn-outline-primary:hover,
.donor-table-toolbar-top .btn-outline-secondary:hover,
.donor-table-toolbar-top .btn-success:hover {
    background-color: #005fa3 !important;
    border-color: #005fa3 !important;
    color: #fff !important;
}

.donor-rows-per-page {
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(17, 31, 44, 0.12);
}

.donor-rows-per-page label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5f72;
}

.donor-rows-per-page select {
    width: 70px;
    box-shadow: none;
    border: 1px solid rgba(17, 31, 44, 0.12);
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
}

.donor-rows-per-page span {
    font-size: 0.9rem;
    color: #6b7b88;
    font-weight: 600;
}

.donor-pagination-group {
    min-height: 38px;
}

.donor-pagination .pagination {
    gap: 0.25rem;
}

.donor-pagination .page-item .page-link {
    border-radius: 0.5rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #1f4f7b;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.donor-pagination .page-item .page-link:hover {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.donor-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

.donor-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: rgba(241, 245, 249, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.user-pagination .pagination,
.donations-pagination .pagination,
.manager-pagination .pagination {
    gap: 0.25rem;
}

.user-pagination .page-item .page-link,
.donations-pagination .page-item .page-link,
.manager-pagination .page-item .page-link {
    border-radius: 0.5rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #1f4f7b;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.user-pagination .page-item .page-link:hover,
.donations-pagination .page-item .page-link:hover,
.manager-pagination .page-item .page-link:hover {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.user-pagination .page-item.active .page-link,
.donations-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

.user-pagination .page-item.disabled .page-link,
.donations-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: rgba(241, 245, 249, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

/* donor-table-toolbar-top consolidated below at line 1970+ */

.donor-table-toolbar-bottom {
    justify-content: space-between;
}

.donor-table-toolbar-bottom .donor-pagination {
    margin-left: auto;
}

@media (max-width: 768px) {
    .donor-table-card {
        padding: 1rem;
    }

    .donor-table-toolbar {
        padding: 0.75rem;
        gap: 1rem;
    }

    .donor-table-toolbar-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .donor-table-toolbar-bottom .donor-pagination {
        margin-left: 0;
        justify-content: flex-end;
    }

    .donor-pagination-group {
        justify-content: space-between;
        width: 100%;
    }
}

.form {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form label {
    font-weight: bold;
}

.form input,
.form select,
.form textarea {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.form button {
    grid-column: 1 / -1;
    padding: 0.75rem;
    background-color: #1f4f7b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form button:hover {
    background-color: #163957;
}

.alert {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fddede;
    color: #b00020;
}

.alert-success {
    background-color: #e0f7e9;
    color: #1a7f37;
}

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../img/bg-hero-v2.svg');
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* subtle overlay */
.auth-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    pointer-events: none;
}

.auth-body .auth-pattern {
    display: none;
}

/* Card */
.auth-container {
    background-color: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(35, 48, 59, 0.15);
    width: 400px;
    border: 1px solid rgba(31, 79, 123, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Card Header */
.auth-card-header {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%);
    padding: 1rem;
    text-align: center;
    border-bottom: none;
}

.auth-card-header-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.auth-card-header-subtitle {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

/* Card Body */
.auth-form-body {
    padding: 1.75rem 2rem;
}

/* Card Footer */
.auth-card-footer {
    background: linear-gradient(135deg, #1f4f7b 0%, #0d6efd 100%);
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.80);
    border-top: none;
}

.auth-container .btn-primary,
.auth-container .input-group .btn {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%) !important;
    color: #fff !important;
    border: none !important;
}

.auth-container .btn-primary:hover,
.auth-container .input-group .btn:hover {
    background: linear-gradient(90deg, #0b5ed7 0%, #5a32a3 60%) !important;
}

.auth-container a {
    color: #0b5ed7;
}

.auth-container .alert {
    margin-bottom: 1rem;
}

@media (max-width: 440px) {
    .auth-container {
        width: calc(100% - 24px);
    }
}

.main-footer {
    background-color: #1f4f7b;
    color: #fff;
    text-align: center;
    padding: 1rem;
    flex-shrink: 0;
    /* ensure footer doesn't shrink and stays after content */
}

/* Dashboard enhancements */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.03);
    font-size: 1.5rem;
}

.stat-card h3 {
    margin: 0;
}

.recent-table th {
    background: #f8f9fb;
}

.recent-table td,
.recent-table th {
    vertical-align: middle;
}

.progress-sm {
    height: 8px;
    border-radius: 8px;
}

.dp-page {
    max-width: 1340px;
    margin: 0 auto;
    padding: 1.75rem 1rem 3rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Hero ── */
.dp-hero {
    background: linear-gradient(135deg, #6f42c1 0%, #0b5ed7 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 8px 28px rgba(15, 45, 82, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.dp-hero-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dp-avatar {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.dp-hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.dp-hero-name {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.55rem;
    line-height: 1.2;
}

.dp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dp-tag {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.dp-hero-actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.dp-btn-white {
    background: #fff;
    color: #1a4f8a;
    border: none;
    border-radius: 9px;
    padding: 0.5rem 1.3rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
}

.dp-btn-white:hover {
    background: #f0f6ff;
    color: #1a4f8a;
    text-decoration: none;
}

.dp-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;
    padding: 0.5rem 1.3rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
}

.dp-btn-ghost:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 150, 150, 0.4);
    color: #ffe0e0;
}

/* ── Snapshot Strip ── */
.dp-snap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.dp-snap-card {
    background: #fff;
    border: 1px solid rgba(17, 31, 44, 0.09);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: 0 2px 6px rgba(17, 31, 44, 0.04);
}

.dp-snap-accent {
    border-left: 3px solid #2563c5;
    background: #f6f9ff;
}

.dp-snap-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6f42c1;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.dp-snap-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    overflow-wrap: anywhere;
}

/* ── Main Grid ── */
.dp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── Cards ── */
.dp-card {
    background: #fff;
    border: 1px solid rgba(17, 31, 44, 0.09);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(17, 31, 44, 0.05);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.dp-card:hover {
    box-shadow: 0 6px 22px rgba(17, 31, 44, 0.1);
    transform: translateY(-1px);
}

.dp-card-full {
    grid-column: span 2;
}

.dp-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: -1.5rem -1.5rem 1.35rem -1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6f42c1 0%, #0b5ed7 100%);
    border-radius: 13px 13px 0 0;
}

.dp-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dp-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.dp-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* ── Fields ── */
.dp-fields {
    display: grid;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(17, 31, 44, 0.08);
}

.dp-fields-2 { grid-template-columns: repeat(2, 1fr); }
.dp-fields-3 { grid-template-columns: repeat(3, 1fr); }
.dp-fields-4 { grid-template-columns: repeat(4, 1fr); }

.dp-field {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(17, 31, 44, 0.07);
    border-right: 1px solid rgba(17, 31, 44, 0.07);
    min-width: 0;
    background: #fff;
}

.dp-field:nth-child(odd) {
    background: #f8f9ff;
}

.dp-field-full {
    grid-column: span 2;
}

.dp-fl {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6f42c1;
    font-weight: 700;
    margin-bottom: 0.28rem;
}

.dp-fv {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/* ── Notes ── */
.dp-notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dp-notes-1col {
    grid-template-columns: 1fr;
}

.dp-note {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #f8f9ff;
    border: 1px solid rgba(111, 66, 193, 0.12);
    border-left: 3px solid #6f42c1;
    min-width: 0;
}

.dp-nl {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6f42c1;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dp-nv {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f3b52; /* dark text */
    line-height: 1.4;
}
/* ── Empty state ── */
.dp-empty {
    background: #f8fafc;
    border: 1px solid rgba(17, 31, 44, 0.07);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin: 0;
}

/* ── Communication Log ── */
.dp-comm-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dp-comm-entry {
    background: #f8f9ff;
    border: 1px solid rgba(111, 66, 193, 0.12);
    border-left: 3px solid #6f42c1;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
}

.dp-comm-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}

.dp-comm-mode {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    display: inline-block;
}

.dp-comm-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

/* ── Footer ── */
.dp-footer-actions {
    margin-top: 1.5rem;
}

.dp-footer-actions .btn.btn-primary {
    background: linear-gradient(135deg, #1a4f8a 0%, #2563c5 100%) !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 0.65rem 1.6rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 14px rgba(37, 99, 197, 0.25) !important;
}

.dp-footer-actions .btn.btn-primary:hover {
    background: linear-gradient(135deg, #163d6d 0%, #1a4f8a 100%) !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .dp-snap-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-fields-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .dp-grid { grid-template-columns: 1fr; }
    .dp-card-full { grid-column: auto; }
}

@media (max-width: 640px) {
    .dp-page { padding: 1rem 0.5rem 2.5rem; }
    .dp-hero { padding: 1.25rem; }
    .dp-hero-actions { width: 100%; }
    .dp-btn-white, .dp-btn-ghost { flex: 1 1 auto; text-align: center; }
    .dp-snap-grid { grid-template-columns: 1fr 1fr; }
    .dp-fields-2, .dp-fields-3, .dp-fields-4 { grid-template-columns: 1fr; }
    .dp-notes-grid { grid-template-columns: 1fr; }
    .dp-comm-entry { grid-template-columns: 1fr; }
    .dp-card { padding: 1.1rem; }
}

.donor-list {
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .donor-list.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.donor-list-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 45, 80, 0.18);
    gap: 1.5rem;
}

.donor-list-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.donor-list-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.donor-list-heading h2 {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
}

.donor-list-actions .btn {
    border-radius: 999px;
    padding: 0.55rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.donor-list-actions .btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.donor-list-actions .btn.btn-primary {
    border: 0;
    background: linear-gradient(135deg, #1f4f7b 0%, #0b5ed7 100%);
    box-shadow: 0 12px 24px rgba(13, 94, 215, 0.18);
}

.donor-list-actions .btn.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #1f4f7b 100%);
}

.donor-table-card {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 16px 32px rgba(18, 50, 86, 0.12);
    overflow: hidden;
}

.donor-table {
    margin: 0;
}

.donor-table thead th {
    border: 0;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a5f72;
    background: linear-gradient(180deg, #f8fafb 0%, #f3f6fb 100%);
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

.donor-table tbody td {
    border-top: 1px solid #e8ecf1;
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.donor-table tbody tr {
    transition: background-color 0.12s ease;
}

.donor-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.04) 0%, rgba(13, 110, 253, 0.02) 100%);
}

.donor-manager-badge {
    background: rgba(13, 110, 253, 0.12) !important;
    color: #0b5ed7 !important;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.donor-table .badge {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
    text-transform: capitalize;
}

.donor-table .badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0ba5e9 100%) !important;
    color: #fff;
}

.donor-table .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb500 100%) !important;
    color: #000;
}

.donor-table .badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
    color: #fff;
}

.donor-table .badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #fff;
}

.donor-row-actions .btn {
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    background-color: #0077cc;
    color: #fff;
    border-color: #0077cc;
}

.donor-row-actions .btn:hover,
.donor-row-actions .btn:focus {
    background-color: #005fa3;
    border-color: #005fa3;
    color: #fff;
}

.donor-email {
    font-weight: 600;
}

.donor-empty {
    font-size: 0.95rem;
    color: #7c8fa3;
}

.donor-table td.fw-semibold.text-primary {
    color: #0d6efd !important;
    font-weight: 700;
}

.donor-table tbody td.text-muted {
    color: #7c8fa3 !important;
    font-size: 0.9rem;
}

.donor-table tfoot tr {
    background: linear-gradient(90deg, #f8fafb 0%, #f3f6fb 100%);
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
}

.donor-table tfoot td {
    padding: 1.25rem;
    color: #1f4f7b;
}

.dashboard-overview {
    max-width: 1280px;
    margin: 0 auto;
}

.dashboard-hero {
    background: linear-gradient(135deg, #1f4f7b 0%, #0b5ed7 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    color: #fff;
    box-shadow: 0 22px 44px rgba(18, 50, 86, 0.2);
    gap: 1.5rem;
}

.dashboard-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}


.dashboard-hero-copy h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.dashboard-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(18, 50, 86, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(18, 50, 86, 0.22);
}

.dashboard-quick-actions .btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-quick-actions .btn.btn-light {
    background: #fff;
    color: #1f4f7b;
}

.dashboard-quick-actions .btn.btn-light:hover {
    color: #0b5ed7;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #0b5ed7;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 12px 26px rgba(18, 50, 86, 0.18);
}

.stat-icon-bubble i {
    line-height: 1;
}

.stat-icon-bubble.icon-donors {
    background: linear-gradient(135deg, #1f8ef1 0%, #0b5ed7 100%);
}

.stat-icon-bubble.icon-managers {
    background: linear-gradient(135deg, #34c38f 0%, #0ba36b 100%);
}

.stat-icon-bubble.icon-recent {
    background: linear-gradient(135deg, #ffa94d 0%, #fd7e14 100%);
}

.dashboard-stat-value {
    font-size: 2.35rem;
    font-weight: 700;
    color: #1f2a37;
}

.dashboard-stat-meta {
    color: #5c6d7c;
    font-size: 0.92rem;
}

.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-weight: 600;
    color: #0b5ed7;
}

.stat-link i {
    transition: transform 0.18s ease;
}

.stat-link:hover i {
    transform: translateX(4px);
}

.dashboard-stats .card {
    border: 0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 30px rgba(18, 50, 86, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stats .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.06);
}

.dashboard-stats .card:hover .stat-icon-bubble {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .dashboard-stats.row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .dashboard-stat-card {
        padding: 1rem !important;
        gap: 0.6rem !important;
    }

    .dashboard-stat-value {
        font-size: 1.5rem !important;
    }

    .stat-icon-bubble {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 1.1rem !important;
    }

    .stat-badge {
        padding: 0.2rem 0.6rem !important;
        font-size: 0.6rem !important;
        letter-spacing: 0.05em !important;
    }

    .dashboard-stat-meta {
        font-size: 0.75rem !important;
    }

    .stat-trend {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.35rem !important;
        margin-left: 0.35rem !important;
    }
}

.dashboard-stats .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 45px rgba(18, 50, 86, 0.16);
}

.dashboard-panel {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 38px rgba(18, 50, 86, 0.14);
}

.dashboard-panel .card-body {
    padding: 2rem;
}

.dashboard-table {
    margin: 0;
}

.dashboard-table thead th {
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: #5c6d7c;
    background: #f3f6fb;
    border-bottom: 1px solid rgba(23, 50, 77, 0.06);
}

.dashboard-table tbody td {
    border-top: 1px solid rgba(23, 50, 77, 0.08);
    padding: 1rem 0.75rem;
}

.dashboard-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

.recent-donor-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.recent-donor-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(13, 110, 253, 0.6) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 10px 22px rgba(18, 50, 86, 0.18);
}

.recent-donor-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.recent-donor-name {
    font-weight: 600;
    color: #1f2a37;
}

.recent-donor-number {
    font-size: 0.82rem;
    color: #6b7b88;
    letter-spacing: 0.02em;
}

.recent-donor-email {
    font-weight: 600;
}

.recent-donor-date {
    font-weight: 600;
    color: #4c5b68;
}

.dashboard-panel .btn-outline-primary {
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
}

@media (max-width: 992px) {
    .dashboard-hero {
        align-items: stretch;
    }

    .dashboard-quick-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-overview {
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-hero {
        padding: 1.75rem 1.5rem;
    }

    .dashboard-stat-value {
        font-size: 2rem;
    }

    .dashboard-panel .card-body {
        padding: 1.5rem;
    }
}

.add-donor {
    max-width: 1280px;
    margin: 0 auto;
}

.add-donor-header {
    background: linear-gradient(135deg, #6f42c1 0%, #0b5ed7 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    color: #fff;
    box-shadow: 0 24px 48px rgba(18, 50, 86, 0.22);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.add-donor-heading {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.add-donor-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.add-donor-heading h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.add-donor-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.add-donor-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.7rem;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.18);
}

.add-donor-actions .btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.add-donor-feedback .alert {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(31, 79, 123, 0.1);
}

.add-donor-card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 42px rgba(18, 50, 86, 0.16);
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.add-donor-card-body {
    padding: 2.5rem;
}

.add-donor-form .form-control,
.add-donor-form textarea {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 79, 123, 0.18);
    background: rgba(31, 79, 123, 0.04);
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-donor-form .form-select {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 79, 123, 0.18);
    background-color: rgba(31, 79, 123, 0.04);
    padding: 0.6rem 1.5rem 0.6rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-donor-form .form-control:focus,
.add-donor-form .form-select:focus,
.add-donor-form textarea:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.18);
    background: #fff;
}

.add-donor-form .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 2px solid rgba(31, 79, 123, 0.35);
    cursor: pointer;
    margin-top: 0.15rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-donor-form .form-check-input:checked {
    background-color: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
}

.add-donor-form .actions .btn {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
}

.add-donor-form .btn-secondary {
    background: rgba(31, 79, 123, 0.12);
    border: none;
    color: #1f4f7b;
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.75rem;
    }

    .dashboard-hero-copy h2 {
        font-size: 1.6rem;
    }

    .dashboard-quick-actions {
        width: 100%;
    }

    .dashboard-quick-actions .btn {
        flex: 1 1 100%;
    }

    .add-donor-header {
        padding: 1.75rem;
    }

    .add-donor-heading h2 {
        font-size: 1.6rem;
    }

    .add-donor-actions {
        width: 100%;
        margin-top: 1.25rem;
    }

    .add-donor-actions .btn {
        flex: 1 1 100%;
    }

    .add-donor-card-body {
        padding: 1.75rem;
    }
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(15, 68, 136, 0.06);
    border-radius: 1rem;
    border: 1px solid rgba(15, 68, 136, 0.08);
}

.tabs button {
    position: relative;
    cursor: pointer;
    padding: 0.75rem 1.8rem;
    min-height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(15, 68, 136, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    color: #1f4f7b;
    box-shadow: 0 10px 22px rgba(18, 50, 86, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tabs button::before {
    content: attr(data-step);
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(15, 68, 136, 0.12);
    color: #1f4f7b;
    font-weight: 700;
    font-size: 0.9rem;
}

.tabs button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(18, 50, 86, 0.18);
}

.tabs button.active {
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 36px rgba(13, 94, 215, 0.22);
}

.tabs button.active::before {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .tabs button {
        transition: none;
    }
}

.auth-body .col-lg-4>.text-muted.small {
    color: #fff !important;
    opacity: 0.85;
    /* Slightly transparent so it's not too harsh */
}

.managers {
    max-width: 1280px;
    margin: 0 auto;
}

.managers-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #1f4f7b 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    color: #fff;
    box-shadow: 0 24px 48px rgba(18, 50, 86, 0.22);
    gap: 1.75rem;
}

.managers-heading {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.managers-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.managers-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.managers-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.managers-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.18);
}

.managers-feedback .alert {
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(31, 79, 123, 0.12);
}

.managers-card {
    border: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 18px 42px rgba(18, 50, 86, 0.16);
}

.managers-card h3 {
    font-weight: 700;
    color: #1f4f7b;
}

.managers-form .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 79, 123, 0.18);
    background: rgba(31, 79, 123, 0.05);
}

.managers-form .btn {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
}

.managers-list-header h3 {
    color: #1f4f7b;
    font-weight: 700;
}

.managers-count-pill {
    background: rgba(11, 94, 215, 0.12);
    color: #0b5ed7;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
}

.managers-table-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 16px 32px rgba(18, 50, 86, 0.14);
    overflow: hidden;
}

.managers-table thead th {
    border: 0;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c6d7c;
    background: #f3f6fb;
}

.managers-table tbody td {
    border-top: 1px solid rgba(31, 79, 123, 0.08);
    padding: 1rem 1.25rem;
}

.managers-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.08);
}

.managers-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5ed7 0%, #4991ff 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.managers-region {
    background: rgba(15, 68, 136, 0.12);
    color: #1f4f7b;
    font-weight: 600;
    padding: 0.45rem 1rem;
}

.managers-row-actions .btn {
    border-radius: 999px !important;
    padding: 0.4rem 1.1rem;
}

.managers-row-actions .btn-outline-primary,
.edit-donation {
    background-color: #0077cc !important;
    color: #fff !important;
    border-color: #0077cc !important;
}

.managers-row-actions .btn-outline-primary:hover,
.managers-row-actions .btn-outline-primary:focus,
.edit-donation:hover,
.edit-donation:focus {
    background-color: #005fa3 !important;
    border-color: #005fa3 !important;
    color: #fff !important;
}

.managers-row-actions .btn-outline-danger,
.delete-donation {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.managers-row-actions .btn-outline-danger:hover,
.managers-row-actions .btn-outline-danger:focus,
.delete-donation:hover,
.delete-donation:focus {
    background-color: #b02a37 !important;
    border-color: #b02a37 !important;
    color: #fff !important;
}

.managers-pagination .pagination .page-link {
    border-radius: 999px !important;
    margin: 0 0.15rem;
    padding: 0.4rem 0.9rem;
}

.managers-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    border: none;
}

@media (max-width: 768px) {
    .managers-header {
        padding: 1.75rem;
    }

    .managers-heading h2 {
        font-size: 1.6rem;
    }

    .managers-actions {
        width: 100%;
        margin-top: 1.25rem;
    }

    .managers-actions .btn {
        flex: 1 1 100%;
    }

    .managers-card {
        margin-top: 1.5rem;
    }
}

/* Multi-step form compact tweaks */
.multi-step .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    /* Slightly smaller label */
    color: #495057;
    margin-bottom: 0.3rem;
}

.multi-step .form-control,
.multi-step .form-select,
.multi-step textarea,
.multi-step .date-wrapper .form-control {
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    height: 2.6rem; /* Force consistent height */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.multi-step textarea {
    height: auto; /* Allow textareas to grow */
    min-height: 5rem;
}

.multi-step .form-control:focus,
.multi-step .form-select:focus,
.multi-step textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: 0;
    background-color: #fff;
}

.multi-step .form-check-label {
    font-weight: normal;
    /* Keep checkbox labels at normal weight */
}

.multi-step .actions .btn {
    padding: .5rem 1rem;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
}

.detail-grid h3 {
    margin-top: 0;
}

.custom-modal {
    max-width: 100%;
    /* Adjust as needed */
    width: 35%;
}

@media (max-width: 768px) {
    .custom-modal {
        width: 94% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .modal-body {
        padding: 1.25rem 1rem !important;
        /* Reduce padding on mobile */
    }

    .modal-footer {
        padding: 0.75rem 1rem !important;
        flex-direction: column-reverse;
        /* Stack buttons, action on top */
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
}

.btn-success,
.btn-outline-success {
    --bs-btn-color: #0077cc;
    --bs-btn-border-color: #0077cc;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0077cc;
    --bs-btn-hover-border-color: #0077cc;
    --bs-btn-focus-shadow-rgb: 0, 119, 204;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0077cc;
    --bs-btn-active-border-color: #0077cc;
    --bs-btn-disabled-color: #0077cc;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #0077cc;
    --bs-gradient: none;
}

/* icon */
.date-wrapper {
    position: relative;
}

.date-wrapper input {
    padding-right: 40px !important;
}

.date-wrapper .date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
}

.date-wrapper .date-icon:hover {
    opacity: 1;
}

.add-donor-form .form-control.input-date {
    background-image: url('https://cdn-icons-png.flaticon.com/512/747/747310.png') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 44px !important;
}

.toast-msg {
    background: #dc3545;
    /* red */
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

/* Remove Bootstrap invalid red exclamation icon */
.form-control.is-invalid {
    background-image: none !important;
}

/* Remove any custom error icon if present */
.field-error::before {
    content: "" !important;
    display: none !important;
}

/* Dashboard Toolbar Consolidation: Responsive Stacked Layout */
.donor-table-toolbar-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.25rem !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 1.25rem !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    width: 100% !important;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%) !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(17, 31, 44, 0.06) !important;
}

.donor-table-toolbar-top::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.donor-table-toolbar-top form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    flex-grow: 1 !important;
}

/* Base sizing for toolbar components */
.donor-table-toolbar-top .search-input-wrapper {
    width: 140px !important;
    min-width: 0 !important;
}

.donor-table-toolbar-top .search-input-wrapper .form-control {
    width: 100% !important;
}

.donor-table-toolbar-top .filter-date-item,
.donor-table-toolbar-top .filter-status-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.donor-table-toolbar-top .input-date {
    width: 115px !important;
    min-width: 0 !important;
}

.donor-table-toolbar-top .filter-status-item select {
    width: 100px !important;
    min-width: 0 !important;
}

.donor-table-toolbar-top .btn-sm {
    height: 38px !important;
    padding: 0 1rem !important;
    white-space: nowrap !important;
}

.donor-rows-per-page {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #ffffff !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(17, 31, 44, 0.12) !important;
    flex-shrink: 0 !important;
}

/* RESPONSIVE STACKED LAYOUT (<= 768px) */
@media (max-width: 768px) {
    .donor-table-toolbar-top {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 1rem !important;
    }

    .donor-table-toolbar-top form {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .donor-table-toolbar-top form>* {
        width: 100% !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Date items side-by-side on mobile if screen allows, or full width */
    .donor-table-toolbar-top .filter-date-item {
        justify-content: space-between !important;
    }

    .donor-table-toolbar-top .input-date,
    .donor-table-toolbar-top .filter-status-item select,
    .donor-table-toolbar-top .search-input-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Group action buttons side-by-side on mobile */
    .donor-table-toolbar-top .filter-actions-group {
        width: 100% !important;
        display: flex !important;
        gap: 0.5rem !important;
    }

    .donor-table-toolbar-top .filter-actions-group>* {
        flex: 1 1 0 !important;
        width: auto !important;
        justify-content: center !important;
        padding: 0 0.5rem !important;
    }

    .donor-rows-per-page {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

.edit-donation,
.delete-donation {
    border-radius: 999px !important;
}

.modal-footer .btn-outline-secondary,
.modal-footer .btn-primary {
    background-color: #0077cc !important;
    color: #fff !important;
    border-color: #0077cc !important;
}

.modal-footer .btn-outline-secondary:hover,
.modal-footer .btn-outline-secondary:focus,
.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus {
    background-color: #005fa3 !important;
    border-color: #005fa3 !important;
    color: #fff !important;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    background: #63449b;
    color: #fff;
    border: 1px solid rgba(13, 110, 253, 0.18);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 10;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 36, 64, 0.18);
}

@media (hover: hover) {
    .dropdown-hover:hover .dropdown-menu-custom,
    .dropdown-hover:hover .dropdown-menu {
        display: block;
    }
}
.dropdown-hover.force-show .dropdown-menu-custom,
.dropdown-hover.force-show .dropdown-menu,
.profile-dropdown.force-show .dropdown-menu-custom {
    display: block;
}

/* Ensure right-aligned menus stay on screen when using hover logic */
.dropdown-hover .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-menu-custom a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    font-weight: 600;
}

.dropdown-menu-custom .dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-menu-custom a:hover {
    background: rgba(13, 110, 253, 0.08);
}


/* HOME PAGE STYLES  –  light theme matching login/dashboard */

.home-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f6fb 100%) !important;
    color: #23303b !important;
    line-height: 1.7;
    font-size: 16px;
}

/* HOME NAV  */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e0e6ef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.home-nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1.2;
}

.home-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.home-nav-links a {
    text-decoration: none;
    color: #4a5f72;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
    position: relative;
}

.home-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0d6efd;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.home-nav-links a:hover {
    color: #0d6efd;
}

.home-nav-links a:hover::after,
.home-nav-links a.active-nav::after {
    transform: scaleX(1);
}

.home-nav-links a.active-nav {
    color: #0d6efd;
}

.home-nav-btn-login {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%) !important;
    color: #fff !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
}

.home-nav-btn-login::after {
    display: none !important;
}

.home-nav-btn-login:hover {
    opacity: 0.88;
    color: #fff !important;
}

.home-nav-toggle {
    display: none;
    background: none;
    border: 1px solid #e0e6ef;
    color: #23303b;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
}

@media (max-width: 700px) {
    .home-nav-toggle {
        display: block;
    }

    .home-nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e0e6ef;
        flex-direction: column;
        padding: 1rem 5%;
        gap: 0;
        align-items: stretch;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .home-nav-links.open {
        display: flex;
    }

    .home-nav-links li {
        width: 100%;
    }

    .home-nav-links a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px solid #e0e6ef;
    }

    .home-nav-links li:last-child a {
        border-bottom: none;
    }

}

/* ── HERO ── */
.home-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f6fb 100%);
    max-width: 100% !important;
    margin: 0 !important;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(13, 110, 253, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(111, 66, 193, 0.04) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.25);
    background: rgba(13, 110, 253, 0.06);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #1a2533;
}

@media (max-width: 700px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

.hero-title span {
    color: #0d6efd;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #4a5f72;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-home-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%);
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    display: inline-block;
}

.btn-home-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none;
}

.btn-home-outline {
    border: 2px solid #0d6efd;
    color: #0d6efd !important;
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-home-outline:hover {
    background: rgba(13, 110, 253, 0.06);
    transform: translateY(-2px);
    color: #0d6efd !important;
    text-decoration: none;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1, transparent);
    margin: 3rem auto 0;
    border-radius: 4px;
    animation: homePulse 2s infinite;
}

@keyframes homePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* ── SECTIONS ── */
.home-section {
    padding: 100px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.home-section-border {
    border-top: 1px solid #e0e8f0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.home-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #0d6efd;
}

.section-desc {
    color: #4a5f72;
    /* max-width: 580px; */
    font-size: 1rem;
    line-height: 1.8;
}

/* ── WHAT WE DO CARDS ── */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.focus-card {
    background: #ffffff;
    border: 1px solid #e0e8f4;
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.05);
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.focus-card:hover {
    border-color: rgba(13, 110, 253, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.1);
}

.focus-card:hover::before {
    transform: scaleX(1);
}

.focus-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.focus-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1a2533;
}

.focus-card p {
    color: #4a5f72;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── OUR APPROACH ── */
.approach-layout {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .approach-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.approach-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

.home-nav-logo::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../img/logo.svg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    flex-shrink: 0;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid #e0e8f4;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #4a5f72;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.approach-list li:hover {
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
    color: #1a2533;
}

.approach-list li::before {
    content: '◆';
    color: #0d6efd;
    font-size: 0.6rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.approach-quote {
    background: #ffffff;
    border: 1px solid #e0e8f4;
    border-left: 4px solid #0d6efd;
    border-radius: 0 10px 10px 0;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.06);
}

.approach-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #1a2533;
    margin-bottom: 1rem;
}

.approach-quote span {
    font-size: 0.85rem;
    color: #4a5f72;
}

/* ── INVEST ── */
.invest-inner {
    background: linear-gradient(135deg, #f0f6ff 0%, rgba(111, 66, 193, 0.04) 100%);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 14px;
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.07);
}

.invest-desc {
    color: #4a5f72;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.invest-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #0d6efd;
    margin-bottom: 2.5rem;
}

.invest-ways {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.invest-way {
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    border-radius: 100px;
    padding: 0.45rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.07);
}

/* ── CONTACT ── */
.contact-card {
    background: #ffffff;
    border: 1px solid #e0e8f4;
    border-radius: 12px;
    padding: 0;
    /* no padding — header/body handle it */
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.07);
    overflow: hidden;
    height: 100%;
}

.contact-card-header {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%);
    padding: 1.25rem 2rem;
    text-align: center;
}

/* Override the Cormorant font specifically inside the header */
.contact-card-header h3 {
    margin: 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.02em;
}

.contact-card-body {
    padding: 1.5rem 2rem;
}

.contact-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #1a2533;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8f0fb;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #0d6efd;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    font-weight: 700;
}

.contact-info p,
.contact-info a {
    color: #23303b;
    font-size: 1rem;
    text-decoration: none;
}

.contact-info a:hover {
    color: #0d6efd;
}

/* ── HOME FOOTER ── */
.home-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 14px;
    font-size: 14px;
    z-index: 9999;
    border-top: 1px solid #e0e6ef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer-left {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d6efd;
}

.footer-right {
    font-size: 0.85rem;
    color: #6b7b88;
}

.footer-right a {
    color: #0d6efd;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .home-section {
        padding: 70px 5%;
    }

    .invest-inner {
        padding: 2rem 1.5rem;
    }

    .home-footer {
        justify-content: center;
        text-align: center;
    }
}


/* HOME PAGE BODY — fix body flex from login CSS */
body.home-page-body {
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
    height: auto !important;
    min-height: 100vh !important;
    background: #f7fbff !important;
    background-image: none !important;
}

body.home-page-body::after {
    display: none !important;
}

/* J17 BANNER — Public pages (home, what-we-do etc) */
.j17-top-banner {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
    line-height: 0;
    overflow: hidden;
    background: #6b0f6b;
    /* Matches banner primary color */
    position: relative;
    z-index: 50;
}

.j17-top-banner img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    min-height: 80px;
    object-fit: cover;
    object-position: center center;
}


/* Hero — sits directly below banner, no extra gap */
body.home-page-body .home-hero-section {
    min-height: 75vh !important;
    padding-top: 2.5rem !important;
    margin-top: 0 !important;
}

/* Sub-pages: what-we-do, our-approach, contact */
.pub-page-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}



@media (max-width: 700px) {

    /* Keep logo on ONE line on phone */
    .home-nav-logo-text {
        font-size: 0.78rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 240px;
    }

    /* Banner slightly smaller on phone */
    .j17-top-banner img {
        max-height: 140px;
        min-height: 60px;
    }
}

@media (max-width: 768px) {

    /* Hide long title in nav */
    .home-nav-logo-text {
        display: none !important;
    }

    /* Hide long title in inner CRM header */
    /* Show logo on inner CRM header but hide long text */
    .main-header h1 {
        display: flex !important;
        font-size: 0 !important;
        margin: 0;
    }

    /* Hide long title in footer */
    .footer-long-text {
        display: none !important;
    }

    /* 1 card per row on phone */
    .focus-grid {
        grid-template-columns: 1fr !important;
    }

    /* Hide footer-left (J17 logo text) on phone */
    .footer-left {
        display: none !important;
    }

    /* Hide long name in footer on phone */
    .footer-long-text {
        display: none !important;
    }
}

/* ── CONTACT PAGE ── */

/* Section padding consistency */
.pub-page-section {
    padding: 3rem 2rem 5rem;
}

/* Row gap between two columns */
.pub-page-section .row {
    gap: 1.5rem 0;
}

/* Left card — match other contact-card styles */
.contact-card {
    height: 100%;
}

/* Right card — form card */
.pub-page-section .card {
    border-radius: 12px !important;
    border: 1px solid #e0e8f4 !important;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.07) !important;
    height: 100%;
}

/* Form card heading — match left side h3 */
.pub-page-section .card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2533;
    margin-bottom: 1.25rem;
}

/* Form labels */
.pub-page-section .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1f4f7b;
    margin-bottom: 0.35rem;
}

/* Form inputs */
.pub-page-section .form-control {
    border-radius: 8px !important;
    border: 1.5px solid #e0e8f4 !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem;
    background: #f8faff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pub-page-section .form-control:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
    background: #fff;
}

/* Textarea */
.pub-page-section textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
.pub-page-section .btn-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: opacity 0.2s, transform 0.2s !important;
    margin-top: 0.25rem;
}

.pub-page-section .btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Spinner alignment */
.pub-page-section #btnSpinner {
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* Responsive — stack columns on phone */
@media (max-width: 768px) {
    .pub-page-section .col-md-6 {
        width: 100% !important;
    }

    .pub-page-section .card {
        margin-top: 1rem;
    }

    .contact-card {
        margin-bottom: 0 !important;
    }
}

/* Hide old white nav on all screens */
.home-nav {
    display: none !important;
}

/* Remove any top gap */
body.home-page-body {
    padding-top: 0 !important;
}

/* Hamburger on right side of banner */
.mob-burger {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 50px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0;
    -webkit-appearance: none;
    z-index: 999;
}


/* Nav menu — hidden by default */
.mob-menu {
    display: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
    border-bottom: 2px solid #e0e8f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0px;
    gap: 0;
    position: relative;
    z-index: 998;
}

/* Show when open */
.mob-menu.open {
    display: flex !important;
}

/* Nav links — horizontal on desktop, stacked on phone */
.mob-menu a {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f4f7b;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.mob-menu a:hover {
    background: #f0f6ff;
    color: #0d6efd;
}

.mob-menu a.active-nav {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.07);
}

/* Login button */
.mob-menu .mob-login {
    margin-left: auto;
    margin-right: 15px;
}

.mob-menu .mob-login:hover {
    color: #fff !important;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
}

.mob-menu .mob-login:hover {
    opacity: 0.88;
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%);
}

/* tablet and phone — stack links vertically */
@media (max-width: 1024px) {
    .mob-burger {
        right: 0px;
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
        top: 12px;
    }

    .mob-menu {
        flex-direction: column;
        align-items: stretch;
        background: #fff !important;
        padding: 0;
    }

    .mob-menu a {
        padding: 0.9rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f4fa;
        white-space: normal;
        text-align: left;
    }

    .mob-menu a:last-child {
        border-bottom: none;
    }

    .mob-menu .mob-login {
        margin: 0 !important;
        text-align: left !important;
        border-radius: 8px;
        padding-left: 1.5rem;
    }
}

body.home-page-body .auth-container {
    margin-top: 40px;
}

.auth-form-body .form-label {
    text-align: left !important;
}

.auth-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

.contact-submit {
    float: right;
}

/* Standard sortable header layout - allow wrapping if needed to save space */
.donor-table thead th a {
    white-space: normal;
}

/* Specific protection for the Date column to avoid 3-line wrapping without forcing overflow */
.date-col {
    min-width: 110px !important;
    white-space: nowrap !important;
}