/* ============================================================
   JAMEA ABDULLAH IBNE MASUD RA. - public site theme
   This file is included last in _Layout.cshtml, so the rules
   below intentionally override the bundled Metronic styles.
   ============================================================ */
:root {
    --jaim-green: #0c7c3f;
    --jaim-green-dark: #0a5e2e;
    --jaim-green-darker: #073f1f;
    --jaim-gold: #c9a227;
    --jaim-gold-dark: #b08e1d;
    --jaim-cream: #f3f1e9;
    --jaim-ink: #1f2d23;
    /* legacy aliases referenced by older view CSS */
    --primary-color: #0c7c3f;
    --secondary-color: #c9a227;
}

body {
    font-size: 14px;
}

/* ---------- generic helpers from the original layout ---------- */
ul#TopLanguageList {
    list-style: none;
    margin: 0;
    padding: 0;
}

    ul#TopLanguageList li {
        display: inline-block;
        border: none;
        margin: 0;
        padding: 0;
        padding-left: 5px;
    }

        ul#TopLanguageList li.selected-language a span {
            color: black;
            font-weight: bold;
        }

.sweet-alert .icon,
.sweet-alert .icon.success .placeholder {
    -ms-border-radius: 50% !important;
    border-radius: 50% !important;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.pre-header.jaim-topbar {
    background: var(--jaim-green-dark);
    border: none;
    padding: 6px 0;
    font-size: 13px;
}

.jaim-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.jaim-topbar ul {
    margin: 0;
}

.jaim-topbar-contact > li {
    color: #eafaef;
    margin-right: 22px;
}

    .jaim-topbar-contact > li i {
        color: var(--jaim-gold);
        margin-right: 6px;
    }

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

    .jaim-topbar-actions > li {
        padding: 0;
        margin: 0;
    }

.jaim-login-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff !important;
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.4;
    transition: all .2s ease;
}

    .jaim-login-btn:hover,
    .jaim-login-btn:focus {
        background: var(--jaim-gold);
        border-color: var(--jaim-gold);
        color: #fff !important;
        text-decoration: none;
    }

/* language dropdown sits on the dark bar */
.jaim-topbar #LanguageDropDown .btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    border-radius: 4px;
    padding: 3px 12px;
}

    .jaim-topbar #LanguageDropDown .btn i {
        color: #fff;
    }

/* ============================================================
   LOGO BAND
   ============================================================ */
.header.jaim-logo-band {
    background: #fbfaf5;
    border-bottom: 3px solid var(--jaim-gold);
    min-height: 0;
    padding: 14px 0;
}

    .header.jaim-logo-band .container {
        position: relative;
    }

.jaim-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    height: auto;
    width: 100%;
    float: none;
    text-align: center;
}

    .jaim-logo:hover {
        text-decoration: none;
    }

.jaim-emblem {
    height: 74px;
    width: 74px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex: 0 0 auto;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.jaim-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

.jaim-logo-arabic {
    font-family: 'Traditional Arabic', 'Amiri', 'Scheherazade New', serif;
    color: var(--jaim-green);
    font-size: 26px;
    direction: rtl;
}

.jaim-logo-bn {
    color: var(--jaim-green-dark);
    font-size: 19px;
    font-weight: 700;
    margin-top: 2px;
}

.jaim-logo-en {
    color: var(--jaim-ink);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .3px;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.jaim-navbar {
    background: var(--jaim-green);
}

.jaim-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

    .jaim-nav > li > a {
        display: block;
        color: #eafaef;
        padding: 14px 26px;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: .3px;
        transition: background .2s ease, color .2s ease;
    }

        .jaim-nav > li > a:hover,
        .jaim-nav > li > a:focus {
            background: var(--jaim-green-dark);
            color: #fff;
            text-decoration: none;
        }

    .jaim-nav > li.active > a {
        background: var(--jaim-green-dark);
        color: #fff;
        box-shadow: inset 0 -3px 0 var(--jaim-gold);
    }

/* ============================================================
   CONSTRUCTION BANNER
   ============================================================ */
.jaim-construction {
    background: var(--jaim-gold);
    color: #4a3a07;
    text-align: center;
    font-weight: 600;
    padding: 11px 12px;
    font-size: 14px;
}

/* ============================================================
   MOBILE NAV TOGGLER
   ============================================================ */
.jaim-mobi-toggler {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--jaim-green);
}

@media (max-width: 767px) {
    .jaim-mobi-toggler {
        display: block;
    }

    .jaim-logo {
        justify-content: flex-start;
        gap: 12px;
        padding-right: 40px;
    }

    .jaim-emblem {
        height: 54px;
        width: 54px;
    }

    .jaim-logo-text {
        align-items: flex-start;
    }

    .jaim-logo-arabic {
        font-size: 20px;
    }

    .jaim-logo-bn {
        font-size: 15px;
    }

    .jaim-logo-en {
        font-size: 19px;
    }

    /* nav collapses behind the toggler on small screens */
    .jaim-navbar .jaim-nav {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
    }

    .jaim-navbar.jaim-nav-open .jaim-nav {
        display: flex;
    }

    .jaim-nav > li > a {
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .jaim-topbar-inner {
        justify-content: center;
    }
}

/* ============================================================
   FOOTER (rebrand)
   ============================================================ */
.footer {
    background: var(--jaim-green-darker);
    color: #d7e7dc;
    padding: 26px 0;
}

    .footer a {
        color: var(--jaim-gold);
    }

    .footer .jaim-footer-contact {
        margin: 0 0 6px;
        list-style: none;
        padding: 0;
    }

        .footer .jaim-footer-contact li {
            margin-bottom: 4px;
        }

            .footer .jaim-footer-contact li i {
                color: var(--jaim-gold);
                width: 18px;
            }

    .footer .jaim-footer-heading {
        color: #fff;
        font-weight: 700;
        margin: 0 0 10px;
        font-size: 16px;
    }
