:root {
    --accent: #6b2f9b;
    --muted: #777;
    --bg: #f8f9fb;    
    --bs-body-font-family: 'Kalpurush', Arial, sans-serif !important;
}

@media (min-width: 960px) {
    .container, .container-sm, .container-md, .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 960px) {
    .container, .container-sm, .container-md, .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 960px) and (max-width: 991px) {
    /* Apply lg styles in the 960-991px range */
    .col-lg-1 {
        flex: 0 0 auto;
        width: 8.333333%;
    }

    .col-lg-2 {
        flex: 0 0 auto;
        width: 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .col-lg-10 {
        flex: 0 0 auto;
        width: 83.333333%;
    }

    .col-lg-11 {
        flex: 0 0 auto;
        width: 91.666667%;
    }

    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-inline {
        display: inline !important;
    }

    .d-lg-inline-block {
        display: inline-block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}
/* Override navbar-expand-lg breakpoint from 992px to 960px */
@media (max-width: 959px) {
    .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl, .navbar-expand-lg > .container-xxl {
        padding-right: 0;
        padding-left: 0;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        padding: 10px;
    }

        .navbar-expand-lg .navbar-nav .nav-link {
            padding-right: 0;
            padding-left: 0;
        }

    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

        .navbar-expand-lg .navbar-collapse.show {
            display: block !important;
        }

    .navbar-expand-lg .navbar-toggler {
        display: block;
        margin: 10px;
    }
}

@media (min-width: 960px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-lg .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-lg .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .navbar-expand-lg .navbar-collapse {
            display: flex !important;
        }

        .navbar-expand-lg .navbar-toggler {
            display: none;
        }
}

body {
    margin: 0;
    background: var(--bg);
    color: #222;
    line-height: 1.45;
    background: url("/images/bg_main.gif") repeat-y center top;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit
}

.topbar {
    background: var(--accent);
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px 6px 0 0
}

    .topbar .lang, .topbar .stats {
        background: rgba(255,255,255,.08);
        padding: 4px 8px;
        border-radius: 4px
    }

.login-btn {
    background: #ffcc00;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 8px
}

.custom-container {
    /*  max-width: var(--container); */
    flex: 1 0 auto;
    margin: 0 auto
}

.main-content {
    margin: 0 auto;
    padding: 20px 0;
    background: #fff
}

.navbar.navbar-expand-lg {
    background: linear-gradient(90deg,#006a4e,#d62b2b) !important;
    padding: 0;
    box-shadow: 0 10px 5px #b3b0b0;
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 600;
    padding: 10px 5px
}

    .navbar .nav-link:hover {
        color: #f8de00 !important;
        background: rgba(255,255,255,.15) !important;
        border-radius: 4px
    }

.navbar .dropdown-menu {
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    padding: 6px
}

@media(min-width:960px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block
    }
}

.dropdown-header {
    color: #909090 !important;
    font-size: 18px;
    font-weight: 600
}

.footer-artwork {
    background: url("/images/footer_top_bg.png") no-repeat center top;
    height: 84px;
    margin: 0 auto;
    width: 100%;
    max-width: 1020px;
    background-size: cover
}

.footer-wrapper {
    max-width: 1020px;
    margin: 0 auto;
    background: #ebebeb;
    border-bottom: 5px solid #9E5BBA;
    color: #333;
    padding: 20px
}

#footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between
}

    #footer-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 15px
    }

        #footer-menu ul li {
            border-right: 1px solid #ccc;
            padding-right: 15px
        }

            #footer-menu ul li:last-child {
                border-right: none
            }

.fontShadow {
    text-shadow: -1px -1px 10px #333,1px -1px 10px #333,-1px 1px 10px #333,1px 1px 10px #333;
    color: #fff
}

#site-name {
    font-size: 2vw;
    font-weight: bold;
    text-shadow: -1px -1px 10px #333, 1px -1px 10px #333, -1px 1px 10px #333, 1px 1px 10px #333;
}

@media(min-width:960px) {
    body {
        background: url("/images/bg_main.gif") repeat-y center top;
        padding-top: 5px
    }
}

@media(max-width:767px) {
    #site-name {
        font-size: 5vw !important
    }

    .navbar.navbar-expand-lg {
        background: linear-gradient(90deg,#006a4e,#d62b2b) !important;
        padding: 0;
        box-shadow: 0 10px 5px #b3b0b0;
    }

    .navbar .nav-link {
        color: #fff !important;
        font-size: 20px;
        margin-top: 5px
    }

    .navbar-nav {
        padding: 10px 0 15px
    }
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #008f5a;
    color: #ffffff;
    border-radius: 4px;
}
/* Top menu: remove white/black ring on hover/focus */
.navbar .nav-item > .nav-link {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    border-radius: .5rem; /* keep the rounded look without borders */
}

/* when dropdown is open (Bootstrap adds .show) */
.navbar .nav-item.dropdown > .nav-link.show {
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
}

/* remove hover ring but keep subtle bg if you use one */
.navbar .nav-item > .nav-link:hover {
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
    text-decoration: none !important;
}

/* Accessibility: only when keyboard focusing, show a minimal cue */
.navbar .nav-item > .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
    text-underline-offset: .2rem;
    border: 0 !important;
    text-decoration: underline;
}

/* If your theme injects borders via .active/.focus classes, neutralize them */
.navbar .nav-item > .nav-link.active,
.navbar .nav-item > .nav-link:focus,
.navbar .nav-item > .nav-link:active {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: underline;
}
/* In case nav uses .nav-pills */
.navbar .nav-pills .nav-link,
.navbar .nav-pills .nav-link.active {
    box-shadow: none !important;
    border: 0 !important;
    text-decoration: underline;
}

.footer-wrapper {
    position: sticky;
    bottom: 0;
    background-color: #ebebeb;
    z-index: 100;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Footer stays at bottom */
.footer-artwork,
.footer-wrapper {
    flex-shrink: 0;
}

/* Generic block styling - fits anywhere */
.block {
    margin-bottom: 1.5rem;
    position: relative;
}

.block-header {
    margin-bottom: 1rem;
}

.block-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.block-body {
    color: #495057;
    line-height: 1.7;
}

    .block-body > *:first-child {
        margin-top: 0;
    }

    .block-body > *:last-child {
        margin-bottom: 0;
    }

/* Zone container lays blocks vertically by default */
.zone {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .block {
        margin-bottom: 1rem;
    }

    .block-title {
        font-size: 1.25rem;
    }

    .zone {
        gap: 1rem;
    }
}

/* Optional: Zone-specific styles (match your actual zone names after normalization) */
.zone-home-page-top .block {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.zone-sidebar .block {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #0d6efd;
}

.zone-footer .block {
    color: #dee2e6;
}

.zone-footer .block-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

/* Alert/Banner style zones */
.zone-alert .block,
.zone-banner .block {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    margin-bottom: 1rem;
}

.zone-alert .block-title {
    font-size: 1.125rem;
    color: #0c5460;
}

/* Inline/horizontal zones */
.zone-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

    .zone-inline .block {
        flex: 1;
        min-width: 250px;
        margin-bottom: 0;
    }

/* Minimal zones */
.zone-minimal .block {
    margin-bottom: 0.5rem;
}

.zone-minimal .block-header {
    margin-bottom: 0.5rem;
}

.zone-minimal .block-title {
    font-size: 1rem;
    font-weight: 500;
}
