:root{--navy:#102d4d;--blue:#1769aa;--gold:#e6b84a;--ink:#18283a;--muted:#637386;--pale:#f3f7fb}*{box-sizing:border-box}body{font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#fff}.site-nav{background:var(--navy)}.navbar-brand span{color:var(--gold)}.hero-section{background:linear-gradient(120deg,#102d4d,#174c78);color:#fff;overflow:hidden}.min-vh-50{min-height:440px}.hero-section h1 span{color:#f1c75b}.hero-section .lead{color:#dbe8f4;max-width:600px}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.15em;color:var(--blue)}.hero-section .eyebrow{color:#f1c75b}.hero-card{position:relative;overflow:hidden;min-height:260px;padding:2rem;border:1px solid #ffffff35;border-radius:1.25rem;background:linear-gradient(145deg,#ffffff20,#ffffff08);backdrop-filter:blur(8px)}.hero-decoration{position:absolute;right:1rem;bottom:-5rem;font-size:18rem;font-weight:900;color:#ffffff0c;line-height:1}.section-title{font-weight:750;letter-spacing:-.03em}.service-card{padding:1.7rem;border:1px solid #e5edf4;border-radius:1rem;box-shadow:0 12px 35px #102d4d0a}.service-card h3{font-size:1.25rem;font-weight:700}.service-card p{color:var(--muted);margin-bottom:0}.service-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eaf3fb;color:var(--blue);font-weight:800;margin-bottom:1rem}.site-footer{background:var(--navy);color:#dbe8f4;font-size:.9rem}.btn-primary{background:var(--blue);border-color:var(--blue)}.btn-primary:hover{background:#10558d;border-color:#10558d}.login-bg{background:var(--pale);min-height:100vh}.login-card{max-width:430px;margin-top:5vh;background:#fff;border:1px solid #e3ebf3;border-radius:1rem;padding:2rem;box-shadow:0 20px 55px #102d4d12}.form-control{padding:.75rem;border-color:#d9e2ec}.form-control:focus{border-color:#70a9d4;box-shadow:0 0 0 .2rem #1769aa18}@media(max-width:767px){.hero-section .display-4{font-size:2.5rem}.min-vh-50{min-height:auto;padding:2rem 0}.hero-card{min-height:210px}}


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

.about-hero {
    background: linear-gradient(120deg, #102d4d, #174c78);
    color: #fff;
    padding: 90px 0;
    overflow: hidden;
}

.about-hero h1 {
    letter-spacing: -0.04em;
    max-width: 750px;
}

.about-hero h1 span {
    color: var(--gold);
}

.about-hero .lead {
    color: #dbe8f4;
    max-width: 650px;
}

.about-hero-card {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px solid #ffffff35;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff20, #ffffff08);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.about-hero-card h3 {
    position: relative;
    font-size: 1.2rem;
    font-weight: 800;
}

.about-hero-card p {
    position: relative;
    color: #dbe8f4;
}

.about-letter {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    color: #f1c75b;
    margin-bottom: 1rem;
}

/* About Information */

.about-info-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--pale);
    border: 1px solid #e5edf4;
}

.about-info-card h3 {
    font-weight: 750;
    font-size: 1.7rem;
    color: var(--navy);
}

.about-info-card > p {
    color: var(--muted);
    margin-top: 1rem;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-highlight > span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 10px;
    font-weight: 800;
}

.about-highlight h6 {
    font-weight: 750;
    margin-bottom: 4px;
}

.about-highlight p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 0;
}

/* Vision and Mission */

.vision-section {
    background: var(--pale);
}

.vision-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid #e5edf4;
    transition: transform .3s ease, box-shadow .3s ease;
}

.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px #102d4d12;
}

.vision-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.vision-card h3 {
    font-weight: 750;
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Core Values */

.value-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5edf4;
    border-radius: 16px;
    transition: all .3s ease;
}

.value-card:hover {
    border-color: var(--blue);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px #102d4d0c;
}

.value-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.2rem;
    font-weight: 750;
    color: var(--navy);
}

.value-card p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Objectives */

.objectives-section {
    background: var(--pale);
}

.objective-list {
    background: #fff;
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid #e5edf4;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #edf1f5;
}

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

.objective-item span {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eaf3fb;
    color: var(--blue);
    font-weight: 900;
}

.objective-item p {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

/* About Call to Action */

.about-cta {
    background: linear-gradient(120deg, #102d4d, #174c78);
    color: #fff;
}

.about-cta .eyebrow {
    color: var(--gold);
}

.about-cta p {
    color: #dbe8f4;
}

/* Responsive */

@media (max-width: 767px) {

    .about-hero {
        padding: 60px 0;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-letter {
        font-size: 7rem;
    }

    .about-info-card,
    .vision-card,
    .value-card {
        padding: 1.5rem;
    }

    .objective-list {
        padding: 1.2rem;
    }

}



/* =====================================
   SERVICES PAGE
===================================== */

.services-hero {
    background: linear-gradient(120deg, #102d4d, #174c78);
    color: #fff;
    padding: 90px 0;
    overflow: hidden;
}

.services-hero h1 {
    max-width: 750px;
    letter-spacing: -.04em;
}

.services-hero h1 span {
    color: var(--gold);
}

.services-hero .lead {
    color: #dbe8f4;
    max-width: 650px;
}

.services-hero-card {
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #ffffff35;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff20, #ffffff08);
    backdrop-filter: blur(8px);
}

.services-hero-card h3 {
    font-weight: 750;
    font-size: 1.4rem;
}

.services-hero-card p {
    color: #dbe8f4;
}

.services-hero-symbol {
    font-size: 9rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Main Service Cards */

.main-service-card {
    padding: 2rem;
    border: 1px solid #e5edf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px #102d4d08;
    transition: transform .3s ease, box-shadow .3s ease;
}

.main-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px #102d4d12;
    border-color: #c7dcec;
}

.main-service-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: #eaf3fb;
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.main-service-card h3 {
    font-size: 1.3rem;
    font-weight: 750;
    color: var(--navy);
    margin-bottom: 1rem;
}

.main-service-card > p {
    color: var(--muted);
    line-height: 1.7;
}

.main-service-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.main-service-card ul li {
    position: relative;
    padding: .55rem 0 .55rem 1.5rem;
    color: var(--ink);
    font-size: .92rem;
}

.main-service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 900;
}

.service-link {
    display: inline-block;
    color: var(--blue);
    font-weight: 750;
    text-decoration: none;
    margin-top: .5rem;
}

.service-link:hover {
    color: var(--navy);
}

/* Getting Started */

.services-process {
    background: var(--pale);
}

.process-card {
    padding: 2rem;
    background: #fff;
    height: 100%;
    border: 1px solid #e5edf4;
    border-radius: 18px;
    transition: transform .3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-number {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 900;
}

.process-card h4 {
    font-weight: 750;
    color: var(--navy);
    font-size: 1.2rem;
}

.process-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Service Information Notice */

.service-notice {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid #e5edf4;
    border-left: 5px solid var(--gold);
    border-radius: 14px;
    background: var(--pale);
}

.notice-icon {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
}

.service-notice h4 {
    font-weight: 750;
    color: var(--navy);
    font-size: 1.15rem;
}

.service-notice p {
    color: var(--muted);
    line-height: 1.8;
}

/* Services CTA */

.services-cta {
    background: linear-gradient(120deg, #102d4d, #174c78);
    color: #fff;
}

.services-cta .eyebrow {
    color: var(--gold);
}

.services-cta .lead {
    color: #dbe8f4;
}

/* Responsive */

@media (max-width: 767px) {

    .services-hero {
        padding: 60px 0;
    }

    .services-hero h1 {
        font-size: 2.5rem;
    }

    .services-hero-symbol {
        font-size: 7rem;
    }

    .services-hero-card {
        padding: 2rem 1.5rem;
    }

    .main-service-card {
        padding: 1.5rem;
    }

    .service-notice {
        padding: 1.3rem;
        gap: 1rem;
    }

}


/* =====================================
   CONTACT PAGE
===================================== */

.contact-hero {
    padding: 85px 0;
    background: linear-gradient(120deg, #102d4d, #174c78);
    color: #fff;
}

.contact-hero h1 {
    max-width: 750px;
    letter-spacing: -.04em;
}

.contact-hero h1 span {
    color: var(--gold);
}

.contact-hero .lead {
    color: #dbe8f4;
    max-width: 650px;
}

/* Contact Information Cards */

.contact-info-section {
    position: relative;
    margin-top: -35px;
    z-index: 2;
}

.contact-info-card {
    background: #fff;
    padding: 1.7rem;
    border: 1px solid #e5edf4;
    border-radius: 16px;
    box-shadow: 0 12px 35px #102d4d10;
    transition: transform .3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-info-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eaf3fb;
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--navy);
}

.contact-info-card p {
    color: var(--ink);
    font-size: .92rem;
    margin-bottom: .5rem;
    overflow-wrap: anywhere;
}

.contact-info-card > span {
    color: var(--muted);
    font-size: .82rem;
}

/* Contact Benefits */

.contact-benefit {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.contact-benefit-icon {
    display: grid;
    place-items: center;
    min-width: 45px;
    height: 45px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 12px;
    font-weight: 800;
}

.contact-benefit h5 {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: .4rem;
}

.contact-benefit p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 0;
}

.contact-side-note {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--pale);
    border-radius: 10px;
}

.contact-side-note h5 {
    color: var(--navy);
    font-weight: 750;
}

.contact-side-note p {
    color: var(--muted);
}

/* Contact Form */

.contact-form-card {
    padding: 2.5rem;
    background: #fff;
    border: 1px solid #e5edf4;
    border-radius: 20px;
    box-shadow: 0 15px 45px #102d4d0b;
}

.contact-form-card h3 {
    font-weight: 800;
    color: var(--navy);
}

.contact-form-card .form-label {
    font-weight: 650;
    color: var(--ink);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    padding: .85rem 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 9px;
}

.contact-form-card textarea.form-control {
    resize: vertical;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem #1769aa18;
}

.contact-form-card .form-check-label {
    color: var(--muted);
    font-size: .9rem;
}

.contact-form-card .form-check-input:checked {
    background-color: var(--blue);
    border-color: var(--blue);
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    font-size: .92rem;
}

.form-message.success {
    background: #e8f6ed;
    color: #176b36;
    border: 1px solid #b8e2c5;
}

.form-message.error {
    background: #fff0f0;
    color: #a52a2a;
    border: 1px solid #f0c4c4;
}

/* Location */

.contact-location-section {
    background: var(--pale);
}

.location-detail {
    margin-top: 1.5rem;
}

.location-detail strong {
    display: block;
    color: var(--navy);
    margin-bottom: .5rem;
}

.location-detail p {
    color: var(--muted);
}

.location-placeholder {
    min-height: 320px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #b9cbdc;
    border-radius: 18px;
    background: #fff;
}

.location-placeholder-icon {
    font-size: 3.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.location-placeholder h4 {
    color: var(--navy);
    font-weight: 800;
}

.location-placeholder p {
    color: var(--muted);
}

.location-placeholder span {
    color: var(--blue);
    font-size: .85rem;
}

/* FAQ */

.accordion-item {
    border: 1px solid #e5edf4 !important;
    margin-bottom: 12px;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    color: var(--navy);
    padding: 1.2rem;
}

.accordion-button:not(.collapsed) {
    color: var(--blue);
    background: #eaf3fb;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 .2rem #1769aa18;
}

.accordion-body {
    color: var(--muted);
    line-height: 1.8;
}

/* Contact CTA */

.contact-cta {
    background: linear-gradient(120deg, #102d4d, #174c78);
    color: #fff;
}

.contact-cta .eyebrow {
    color: var(--gold);
}

.contact-cta .lead {
    color: #dbe8f4;
}

/* Responsive */

@media (max-width: 767px) {

    .contact-hero {
        padding: 60px 0;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-info-section {
        margin-top: 25px;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .location-placeholder {
        min-height: 250px;
    }

}


/* =========================================
   MAENDELEO SACCOS ADMIN DASHBOARD
========================================= */

.admin-body {
    margin: 0;
    background: #f3f7fb;
    color: #18283a;
    font-family: Arial, sans-serif;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #102d4d;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 8px 10px 28px;
}

.admin-brand > i {
    color: #e6b84a;
    font-size: 32px;
}

.admin-brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #b9c9d9;
    margin-top: 4px;
}

.sidebar-label {
    color: #93a8be;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 10px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #d4dfeb;
    text-decoration: none;
    font-size: 14px;
    border-radius: 7px;
    transition: 0.2s;
}

.admin-nav a i {
    font-size: 17px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #1769aa;
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 18px 5px;
}

.user-avatar,
.topbar-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6b84a;
    color: #102d4d;
    border-radius: 50%;
    font-size: 18px;
}

.user-details {
    min-width: 0;
}

.user-details strong {
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.user-details small {
    color: #b9c9d9;
    text-transform: capitalize;
}

.sidebar-logout {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    border-radius: 7px;
    padding: 10px;
    text-align: left;
}

.sidebar-logout:hover {
    background: #1769aa;
}


/* MAIN AREA */

.admin-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    min-height: 90px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5ebf1;
}

.admin-topbar h1 {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}

.admin-topbar p {
    color: #637386;
    font-size: 13px;
    margin: 5px 0 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-status {
    font-size: 12px;
    color: #16834b;
}

.admin-status i {
    font-size: 8px;
    margin-right: 5px;
}

.topbar-avatar {
    border: none;
}

.sidebar-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 25px;
    color: #102d4d;
}


/* CONTENT */

.admin-content {
    padding: 30px;
}

.dashboard-welcome {
    background: linear-gradient(115deg, #102d4d, #1769aa);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-label {
    font-size: 11px;
    color: #e6b84a;
    letter-spacing: 2px;
    font-weight: 700;
}

.dashboard-welcome h2 {
    font-size: 27px;
    margin: 10px 0;
    font-weight: 700;
}

.dashboard-welcome p {
    color: #d6e1ed;
    margin: 0;
    font-size: 14px;
}

.welcome-icon {
    font-size: 65px;
    color: #e6b84a;
    opacity: .9;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.section-heading h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-heading p {
    font-size: 12px;
    color: #637386;
    margin: 0;
}


/* STATISTICS */

.stat-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(16,45,77,.03);
}

.stat-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 20px;
    margin-bottom: 15px;
}

.stat-icon.blue {
    background: #e8f2fc;
    color: #1769aa;
}

.stat-icon.green {
    background: #e6f5ed;
    color: #16834b;
}

.stat-icon.gold {
    background: #fff5dc;
    color: #a7790d;
}

.stat-icon.purple {
    background: #f1eaff;
    color: #7951b7;
}

.stat-card > span {
    font-size: 13px;
    color: #637386;
}

.stat-card h3 {
    font-size: 27px;
    font-weight: 700;
    margin: 7px 0;
    color: #102d4d;
}

.stat-card small {
    font-size: 11px;
    color: #8794a3;
}

.mini-stat-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 9px;
    padding: 17px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-stat-card span {
    color: #637386;
    font-size: 13px;
}

.mini-stat-card strong {
    font-size: 20px;
    color: #102d4d;
}


/* TABLE */

.dashboard-panel {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 22px;
}

.admin-table {
    margin: 0;
    font-size: 13px;
}

.admin-table thead th {
    background: #f5f8fb;
    color: #637386;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 15px 14px;
    color: #34475a;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: capitalize;
}

.status-badge.active {
    background: #e6f5ed;
    color: #16834b;
}

.status-badge.inactive {
    background: #fff3d8;
    color: #956a0b;
}

.status-badge.locked {
    background: #fde9e9;
    color: #bb3030;
}

.view-all-link {
    color: #1769aa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}


/* MODULE CARDS */

.module-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 22px;
    height: 100%;
    transition: .2s;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(16,45,77,.08);
}

.module-card > i {
    font-size: 27px;
    color: #1769aa;
}

.module-card h5 {
    font-size: 15px;
    margin-top: 15px;
    font-weight: 700;
}

.module-card p {
    color: #637386;
    font-size: 12px;
    min-height: 36px;
}

.module-card span {
    color: #a7790d;
    font-size: 11px;
    font-weight: 600;
}

.admin-footer {
    text-align: center;
    padding: 30px 10px 10px;
    color: #8794a3;
    font-size: 11px;
}


/* LOADING */

.dashboard-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #637386;
}

.dashboard-loading[hidden],
.admin-layout[hidden] {
    display: none !important;
}


/* RESPONSIVE */

@media (max-width: 991px) {

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-topbar {
        gap: 15px;
    }
}

@media (max-width: 576px) {

    .admin-content {
        padding: 18px 14px;
    }

    .admin-topbar {
        padding: 15px;
    }

    .admin-topbar h1 {
        font-size: 16px;
    }

    .admin-topbar p {
        font-size: 11px;
    }

    .admin-status {
        display: none;
    }

    .dashboard-welcome {
        padding: 22px;
    }

    .dashboard-welcome h2 {
        font-size: 21px;
    }

    .welcome-icon {
        font-size: 42px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .dashboard-panel {
        padding: 15px;
    }
}



/* =========================================
   MEMBER REGISTRATION / EDIT MODAL SCROLLING
========================================= */

#memberModal {
    overflow: hidden;
}

#memberModal .modal-dialog {
    width: calc(100% - 2rem);
    max-width: 800px;
    height: calc(100vh - 2rem);
    margin: 1rem auto;
    display: flex;
    align-items: stretch;
}

#memberModal .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    border-radius: 12px;
}

/* Form fills the modal */
#memberModal #memberForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Header remains visible */
#memberModal .modal-header {
    flex: 0 0 auto;
    background: #fff;
    position: relative;
    z-index: 2;
}

/* This is the ONLY scrolling area */
#memberModal .modal-body {
    display: block;
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* Footer remains visible */
#memberModal .modal-footer {
    flex: 0 0 auto;
    background: #fff;
    position: relative;
    z-index: 2;
}

/* Scrollbar appearance */
#memberModal .modal-body::-webkit-scrollbar {
    width: 7px;
}

#memberModal .modal-body::-webkit-scrollbar-track {
    background: #f1f4f8;
}

#memberModal .modal-body::-webkit-scrollbar-thumb {
    background: #aab9c9;
    border-radius: 10px;
}

#memberModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #8295aa;
}

/* Form fields */
#memberModal .form-control,
#memberModal .form-select {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 14px;
}

#memberModal .form-label {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
}

#memberModal textarea.form-control {
    min-height: 65px;
    resize: vertical;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    #memberModal .modal-dialog {
        width: calc(100% - 1rem);
        height: calc(100vh - 1rem);
        margin: 0.5rem auto;
    }

    #memberModal .modal-content {
        border-radius: 10px;
    }

    #memberModal .modal-header,
    #memberModal .modal-footer {
        padding: 12px;
    }

    #memberModal .modal-body {
        padding: 1rem;
    }
}


.admin-footer {
    padding: 20px 0;
    margin-top: 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #64748b;
    font-size: 13px;
}

.admin-footer-developer {
    font-size: 12px;
}

.admin-footer-developer strong {
    color: #334155;
    font-weight: 700;
}

.admin-footer-developer a {
    color: #198754;
    text-decoration: none;
    font-weight: 600;
}

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

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0, 35, 75, 0.9)
    );
    display: flex;
    flex-direction: column;
}

.hero-image-caption strong {
    font-size: 22px;
}

.hero-image-caption span {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .hero-image-wrapper {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-image-wrapper {
        height: 280px;
    }
}

/* About Hero Image */
.about-hero-image {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 22px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(0, 35, 75, 0.9)
    );
}

/* About Gallery */
.about-gallery-section {
    background: #f7f9fc;
}

.about-gallery-card {
    position: relative;
    height: 330px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.about-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 18px 18px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(0, 35, 75, 0.9)
    );
}

.gallery-caption h5 {
    margin-bottom: 5px;
    font-weight: 700;
}

.gallery-caption p {
    margin-bottom: 0;
    font-size: 14px;
}

@media (max-width: 576px) {
    .about-hero-image {
        height: 300px;
    }

    .about-gallery-card {
        height: 280px;
    }
}

/* ==============================
   SERVICES HERO IMAGE
================================= */

.services-hero-image {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.services-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 22px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(0, 35, 75, 0.9)
    );
}

/* ==============================
   FEATURED SERVICE IMAGES
================================= */

.featured-services {
    background: #fff;
}

.featured-service-card {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.featured-service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-service-card:hover img {
    transform: scale(1.06);
}

.featured-service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 18px 18px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0, 35, 75, 0.9)
    );
}

.featured-service-overlay h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.featured-service-overlay p {
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .services-hero-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .services-hero-image {
        height: 280px;
    }

    .featured-service-card {
        height: 260px;
    }
}


/* =========================================
   FIX: SCROLLABLE BOOTSTRAP MODALS
========================================= */

/* Keep the modal within the visible screen */
.modal-dialog {
    max-height: calc(100vh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Make the modal content a vertical flex container */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

/* Allow the modal body to scroll */
.modal-body {
    overflow-y: auto !important;
    overflow-x: hidden;
    min-height: 0;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

/* Keep modal header and footer visible */
.modal-header,
.modal-footer {
    flex-shrink: 0;
    background-color: #fff;
    z-index: 2;
}

/* Improve scrollbar visibility */
.modal-body::-webkit-scrollbar {
    width: 7px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #b8b8b8;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Ensure large modals fit smaller screens */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
    }
}


/* =========================================
   LOANS MODULE - MODAL SCROLLING FIX
========================================= */

/* Keep modal inside the visible browser window */
.modal-dialog-scrollable {
    height: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
}

/* Modal content must have a fixed available height */
.modal-dialog-scrollable .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* IMPORTANT:
   The form wraps the header, body and footer.
   Make it a flex container too.
*/
.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Allow only the modal body to scroll */
.modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Keep header and footer visible */
.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0;
    background: #fff;
}

/* Mobile adjustments */
@media (max-width: 576px) {

    .modal-dialog-scrollable {
        height: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        margin: 0.5rem;
    }

    .modal-dialog-scrollable .modal-content {
        max-height: 100%;
    }
}


/* Contact Messages Module */

.message-content {
    min-height: 140px;
    height: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 15px;
    line-height: 1.7;
}

#messagesTable td {
    vertical-align: middle;
}

#messagesTable td:nth-child(2) {
    min-width: 140px;
    font-weight: 500;
}

#messagesTable td:nth-child(3) {
    max-width: 220px;
    color: #64748b;
    font-size: 13px;
}

#messagesTable .badge {
    text-transform: capitalize;
    padding: 7px 10px;
    font-weight: 500;
}

#adminNotes {
    resize: vertical;
    min-height: 100px;
}

#messageDetailsModal .form-label {
    font-size: 13px;
    color: #64748b;
}

#messageDetailsModal .form-control.bg-light {
    border-color: #e5e7eb;
}

@media (max-width: 768px) {
    #messagesTable {
        min-width: 850px;
    }

    .message-content {
        min-height: 120px;
    }
}

