/*
 * LalSabuj Academy — global chrome (topbar, header, footer).
 * Loaded site-wide; ported from the design handoff.
 */

:root {
    --lsa-green: #0E6E3A;
    --lsa-green-deep: #0A4F2A;
    --lsa-green-ink: #073418;
    --lsa-green-tint: #E8F2EB;
    --lsa-red: #DC2626;
    --lsa-bg: #FAF7F1;
    --lsa-ink: #0F1714;
    --lsa-ink2: #2C3A33;
    --lsa-mute: #5A6B62;
    --lsa-line: #E7E3D6;
    --lsa-line-soft: #EFECE2;
}

/* ===== Topbar ===== */
.lsa-topbar {
    background: var(--lsa-green-ink);
    color: #D9EAE0;
    font-size: 13px;
    padding: 9px 0;
}
.lsa-topbar__inner {
    max-width: var(--lsa-container-wide, 1280px);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.lsa-topbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lsa-topbar__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5BC07F;
    box-shadow: 0 0 0 4px rgba(91, 192, 127, .18);
    animation: lsa-pulse 2s ease-in-out infinite;
}
.lsa-topbar a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
.lsa-topbar a:hover {
    color: #D4E8D9;
}
.lsa-topbar__right {
    display: flex;
    gap: 18px;
    color: #B7D3C0;
    font-size: 12.5px;
}
.lsa-topbar__right span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.lsa-topbar .num {
    font-family: var(--lsa-font-num);
    font-feature-settings: "tnum", "lnum";
}

@keyframes lsa-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(91, 192, 127, .18); }
    50%      { box-shadow: 0 0 0 8px rgba(91, 192, 127, .08); }
}

/* ===== Header / Nav ===== */
.lsa-site-header {
    background: var(--lsa-bg);
    border-bottom: 1px solid var(--lsa-line-soft);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.lsa-site-header,
.lsa-site-header__inner,
.lsa-brand .custom-logo,
.lsa-brand img.custom-logo {
    transition: height .2s ease, max-height .2s ease, padding .2s ease;
}
.lsa-site-header__inner {
    max-width: var(--lsa-container-wide, 1280px);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    height: 50px;
    gap: 18px;
}

.lsa-site-header[data-scrolled="true"] .lsa-site-header__inner {
    height: 30px;
}

.lsa-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 17px;
    color: var(--lsa-ink);
    text-decoration: none;
    flex: 0 1 280px;
    min-width: 0;
}
.lsa-brand .custom-logo,
.lsa-brand img.custom-logo {
    display: block;
    max-width: min(100%, 220px);
    max-height: 52px;
    width: auto;
}

.lsa-site-header[data-scrolled="true"] .lsa-brand .custom-logo,
.lsa-site-header[data-scrolled="true"] .lsa-brand img.custom-logo {
    max-height: 44px;
}
.lsa-brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--lsa-green);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
    flex-shrink: 0;
}
.lsa-brand__mark svg {
    width: 15px;
    height: 15px;
}
.lsa-brand__name {
    letter-spacing: .2px;
}
.lsa-brand__name b {
    color: var(--lsa-red);
    font-weight: 700;
}
.lsa-brand__name i {
    font-style: normal;
    color: var(--lsa-green);
    font-weight: 700;
}

.lsa-nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 14px;
    color: var(--lsa-ink2);
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}
.lsa-nav-links a {
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    color: var(--lsa-ink2);
    text-decoration: none;
}
.lsa-nav-links a.active {
    color: var(--lsa-green);
}
.lsa-nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--lsa-green);
    border-radius: 2px;
}
.lsa-nav-links a:hover {
    color: var(--lsa-green);
}

.lsa-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

.lsa-lang {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--lsa-line);
    border-radius: 999px;
    padding: 3px;
    font-size: 12px;
    font-weight: 600;
}
.lsa-lang a {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--lsa-mute);
    font-family: var(--lsa-font-num);
    letter-spacing: .4px;
    text-decoration: none;
    line-height: 1;
    transition: color .15s, background .15s;
}
.lsa-lang a.on {
    background: var(--lsa-green);
    color: #fff;
}

.lsa-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: transform .12s, background .15s, border-color .15s;
    text-decoration: none;
    line-height: 1.2;
}
.lsa-nav-btn:hover {
    transform: translateY(-1px);
}
.lsa-nav-btn--primary {
    background: var(--lsa-red);
    color: #fff;
}
.lsa-nav-btn--primary:hover {
    background: #b91c1c;
    color: #fff;
}
.lsa-nav-btn--ghost {
    background: transparent;
    color: var(--lsa-ink);
    border-color: var(--lsa-line);
}
.lsa-nav-btn--ghost:hover {
    background: #fff;
    color: var(--lsa-ink);
}

/* Mobile toggle (kept compatible with existing JS) */
.lsa-site-header__toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--lsa-ink);
    border-radius: 8px;
    transition: background .15s, color .15s;
    line-height: 0;
    align-items: center;
    justify-content: center;
}
.lsa-site-header__toggle:hover {
    background: var(--lsa-line-soft);
}
.lsa-site-header__toggle-lines,
.lsa-site-header__toggle-lines::before,
.lsa-site-header__toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 3px;
    position: relative;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.lsa-site-header__toggle-lines::before,
.lsa-site-header__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}
.lsa-site-header__toggle-lines::before { top: -6px; }
.lsa-site-header__toggle-lines::after  { top: 6px; }

/* Hamburger -> X animation */
.lsa-site-header[data-nav-open="true"] .lsa-site-header__toggle-lines {
    background: transparent;
}
.lsa-site-header[data-nav-open="true"] .lsa-site-header__toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
}
.lsa-site-header[data-nav-open="true"] .lsa-site-header__toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

/* NOTE: this breakpoint is intentionally wider than the usual 980px used
   elsewhere on the site. The nav has 5 links plus a language switch and two
   auth buttons; below ~1140px that content wraps mid-word (in both Bangla and
   English), so the mobile menu needs to kick in earlier than other sections. */
@media (max-width: 1180px) {
    .lsa-topbar {
        display: none;
    }
    .lsa-site-header {
        top: 0;
    }
    .lsa-site-header__toggle {
        display: inline-flex;
        order: 10;
    }
    .lsa-nav-right {
        margin-left: auto;
    }
    .lsa-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lsa-bg);
        border-bottom: 1px solid var(--lsa-line-soft);
        flex-direction: column;
        gap: 0;
        padding: 6px 28px 14px;
    }
    .lsa-nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--lsa-line-soft);
    }
    .lsa-nav-links a:last-child {
        border-bottom: 0;
    }
    .lsa-site-header[data-nav-open="true"] .lsa-nav-links {
        display: flex;
    }
    .lsa-site-header[data-nav-open="true"][data-scrolled="true"] .lsa-site-header__inner {
        height: 64px;
    }
    .lsa-site-header__inner {
        position: relative;
        justify-content: space-between;
        height: 64px;
    }
    .lsa-nav-right {
        gap: 6px;
    }
    .lsa-nav-right .lsa-lang {
        display: none;
    }
}

@media (max-width: 600px) {
    .lsa-topbar__right {
        display: none;
    }
    .lsa-nav-btn {
        padding: 9px 14px;
        font-size: 13.5px;
    }
    .lsa-site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .lsa-site-footer__brand,
    .lsa-site-footer__partners,
    .lsa-site-footer__bottom {
        grid-column: 1 / -1;
    }
}

/* ===== Footer ===== */
.lsa-site-footer {
    background: var(--lsa-green-deep);
    color: #B7D3C0;
    padding: 64px 0 28px;
}
.lsa-site-footer__inner {
    max-width: var(--lsa-container-wide, 1280px);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.lsa-site-footer h2 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: .02em;
}
.lsa-site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
}
.lsa-site-footer ul a {
    color: #B7D3C0;
    text-decoration: none;
    transition: color .15s;
}
.lsa-site-footer ul a:hover {
    color: #fff;
}

.lsa-site-footer__brand {
    color: #B7D3C0;
}
.lsa-site-footer__brand p {
    font-size: 14px;
    line-height: 1.65;
    margin: 14px 0 18px;
}
.lsa-brand--footer {
    color: #fff;
}
.lsa-brand--footer .lsa-brand__name b,
.lsa-brand--footer .lsa-brand__name i {
    color: #fff;
}
.lsa-brand--footer .lsa-brand__mark {
    background: #fff;
    color: var(--lsa-green-deep);
}
.lsa-brand--footer .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.lsa-site-footer__socials {
    display: flex;
    gap: 10px;
}
.lsa-site-footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    color: #fff;
    transition: background .15s, color .15s, border-color .15s;
}
.lsa-site-footer__socials a:hover {
    background: #fff;
    color: var(--lsa-green-deep);
    border-color: #fff;
}

.lsa-site-footer__partners-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.lsa-site-footer__partner {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background .15s, border-color .15s, transform .15s;
}
a.lsa-site-footer__partner:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}
.lsa-site-footer__partner img {
    height: 28px;
    width: auto;
    max-width: 168px;
    display: block;
    object-fit: contain;
}
.lsa-site-footer__partner img[data-placeholder="true"] {
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
    padding: 4px 8px;
    height: 32px;
}
.lsa-site-footer__partners-logos .lsa-site-footer__partner:nth-child(2) {
    height: 56px;
}
.lsa-site-footer__partners-logos .lsa-site-footer__partner:nth-child(2) img {
    height: 40px;
}

.lsa-site-footer__bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #A8D5B8;
    flex-wrap: wrap;
    gap: 16px;
}
.lsa-site-footer__bottom-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lsa-site-footer__bottom-links a {
    color: #A8D5B8;
    text-decoration: none;
    transition: color .15s;
}
.lsa-site-footer__bottom-links a:hover {
    color: #fff;
}
.lsa-site-footer .num {
    font-family: var(--lsa-font-num);
    font-feature-settings: "tnum", "lnum";
}

@media (max-width: 980px) {
    .lsa-site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

