/* SHARED ONLY: design tokens, typography, links, buttons, layout utilities,
   header/footer, navigation, language picker, FAQ and reusable dialogs.
   Page-specific layouts stay in each page's HTML <style> block. */
:root {
    --bg: #080f20;
    --panel: #101c33;
    --line: #26354f;
    --muted: #b0bfd5;
    --gold: #ffca65;
    --orange: #ff9418;
    --green: #1dba64;
    --white: #f4f7ff;
    --font-site: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-table: 0.875rem;
    --text-h1: clamp(2rem, 4.1vw, 3.6rem);
    --text-h2: clamp(1.65rem, 3vw, 2.6rem);
    --text-h3: 1.25rem;
    --text-h4: 1.125rem;
    --text-h5: 1rem;
    --text-h6: 0.875rem;
    --text-panel-heading: 1.7rem;
    --text-footer-heading: 1.05rem;
    --text-dialog-heading: 1.5rem;
    --text-leading: 1.85;
    --heading-leading: 1.45;
    --heading-color: var(--white);
    --heading-font-weight: 700;
    --heading-span-color: var(--gold);
    --heading-span-size: 1em;
    --bs-body-font-family: var(--font-site);
    --layout-max-width: 1300px;
    --layout-gutter: 12px;

    /* Shared content-link colors. Navigation and buttons use their shared component styles. */
    --link-color: var(--gold);
    --link-hover-color: #ffe4aa;
    --nav-link-color: #d1daec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: "Nirmala UI", "Noto Sans Bengali", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
}

button {
    font: inherit;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

p {
    color: var(--muted);
}

h2 {
    margin-bottom: 1rem;
}

/* Shared heading scale for every page. Text spans keep the heading size. */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-site);
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-leading);
    color: var(--heading-color);
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
}

h5 {
    font-size: var(--text-h5);
}

h6 {
    font-size: var(--text-h6);
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
    font-family: inherit;
    font-size: var(--heading-span-size);
    font-weight: inherit;
    line-height: inherit;
    color: var(--heading-span-color);
}

.container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(12, 21, 41, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
}

.brand img {
    width: 137px;
    height: auto;
    display: block;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation .nav-link {
    padding: 10px;
    color: var(--nav-link-color);
    font-size: 0.93rem;
}

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

.btn {
    border-radius: 9px;
    padding: 11px 20px;
    font-weight: 700;
    line-height: 1.5;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.btn-brand {
    color: #171000;
    background: linear-gradient(135deg, #ffd273, #ffab35);
    border: 1px solid #ffc45c;
    box-shadow: 0 5px 24px #ff94181a;
}

.btn-brand:hover {
    background: #ffdd95;
    color: #171000;
    transform: translateY(-1px);
}

.btn-outline-light {
    color: #eff4ff;
    border-color: #67748e;
}

.btn-lg {
    padding: 15px 24px;
    font-size: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: white;
    font-size: 1.6rem;
    padding: 3px 11px;
}

.accent {
    color: var(--gold);
}

.small-label {
    font-size: 0.88rem;
    letter-spacing: 0.025em;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.section {
    padding: 76px 0;
    scroll-margin-top: 0;
}

.section-soft {
    background: #0d172b;
    border-top: 1px solid #ffffff08;
    border-bottom: 1px solid #ffffff08;
}

caption {
    color: var(--muted);
    font-size: 0.83rem;
    padding: 12px 0;
}

.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 19px 0;
}

.faq-list details:first-child {
    border-top: 1px solid var(--line);
}

summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary i {
    font-size: 0.9rem;
    color: var(--gold);
}

details[open] summary i {
    transform: rotate(45deg);
}

details p {
    margin: 15px 25px 0 0;
    font-size: 0.97rem;
}

.text-link {
    color: var(--gold);
    font-weight: 700;
}

/* Shared footer: four columns on desktop, stacked groups on smaller screens. */
.site-footer {
    border-top: 4px solid var(--gold);
    background: #060c19;
    padding: 64px 0 26px;
    color: var(--muted);
    font-size: var(--text-small);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr 0.95fr 1.2fr;
    gap: 40px;
}

.footer-grid > * {
    min-width: 0;
}

.site-footer .brand {
    display: inline-block;
}

.site-footer .brand img {
    width: 160px;
    max-width: 100%;
}

.site-footer h2 {
    font-size: var(--text-footer-heading);
    color: var(--gold);
    padding-bottom: 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid var(--line);
}

.footer-about {
    margin: 20px 0 0;
    max-width: 390px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li,
.footer-contact p + p {
    margin-top: 10px;
}

.footer-links a,
.footer-contact p {
    display: block;
    padding: 3px 0;
}

.site-footer a {
    color: inherit;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: var(--link-hover-color);
}

.footer-contact p {
    margin: 0;
    overflow-wrap: anywhere;
}

.footer-contact a {
    text-decoration: none;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-responsible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.footer-age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 29px;
    padding: 2px 7px;
    background: var(--gold);
    color: var(--bg);
    font-weight: 700;
}

.footer-copyright {
    margin: 10px 0 0;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .footer-links a,
    .footer-contact p {
        padding: 7px 0;
    }

    .footer-links li + li,
    .footer-contact p + p {
        margin-top: 2px;
    }

    .footer-bottom {
        margin-top: 32px;
    }

    .footer-responsible {
        align-items: flex-start;
        text-align: left;
    }
}

.skip-link {
    position: fixed;
    top: -90px;
    left: 15px;
    z-index: 100;
    background: white;
    color: black;
    padding: 12px;
}

.skip-link:focus {
    top: 10px;
}

dialog {
    max-width: 570px;
    width: calc(100% - 32px);
    max-height: 85vh;
    overflow: auto;
    padding: 30px;
    border: 1px solid #51617c;
    border-radius: 16px;
    background: #111d33;
    color: white;
    box-shadow: 0 20px 100px #0009;
}

dialog::backdrop {
    background: #020611b8;
    backdrop-filter: blur(4px);
}

.dialog-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.dialog-top h2 {
    font-size: 1.5rem;
}

.dialog-close {
    background: transparent;
    color: white;
    border: 0;
    padding: 0 3px;
}

.dialog-done {
    margin-top: 12px;
}

#dialog-body p {
    margin: 0 0 15px;
}

@media (max-width: 991px) {
    .nav-shell {
        min-height: 76px;
        flex-wrap: wrap;
        padding-top: 13px;
        padding-bottom: 13px;
        gap: 0;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        flex: 0 0 100%;
        flex-wrap: wrap;
        padding-top: 18px;
        gap: 10px;
    }

    .navigation.open {
        display: flex;
    }

    .navigation .nav-link {
        flex: 0 0 100%;
        padding: 5px;
    }

    .section {
        padding: 52px 0;
    }
}

@media (max-width: 575px) {
    :root {
        --layout-gutter: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

body {
    font-family: var(--font-site);
    font-size: var(--text-body);
    line-height: var(--text-leading);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.faq-list p {
    font-size: var(--text-body);
    line-height: var(--text-leading);
}

.dialog-top h2 {
    font-size: var(--text-dialog-heading);
}

.footer-about,
.footer-bottom,
.site-footer p {
    font-size: var(--text-small);
}

main p strong,
main li strong,
main td strong {
    font-weight: 700;
    color: inherit;
}

@media (max-width: 575.98px) {
    :root {
        --text-h1: 2rem;
        --text-h2: 1.65rem;
        --text-h3: 1.125rem;
        --text-h4: 1rem;
        --text-h5: 0.9375rem;
        --text-h6: 0.875rem;
        --text-panel-heading: 1.4rem;
    }
}

.nav-shell {
    flex-wrap: wrap; gap: 0 20px; padding-top: 18px;
}

.header-account-actions {
    display: flex; align-items: center; gap: 12px; margin-left: auto;
}

.header-account-actions .btn {
    display: inline-flex; align-items: center; gap: 8px;
}

.header-locale {
    display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-small); white-space: nowrap;
}

.bd-flag {
    position: relative; width: 22px; height: 22px; border-radius: 50%; background: #008a4b;
}

.bd-flag::after {
    content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #ec3348;
}

.navigation {
    flex: 0 0 100%; justify-content: space-between; gap: 8px; margin-top: 16px; padding-block: 8px; border-top: 1px solid var(--line);
}

.navigation .nav-link {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}

.navigation .nav-link i {
    color: var(--gold);
}

html {
    scroll-padding-top: 160px;
}

@media (max-width: 991.98px) {
    .nav-shell {
        gap: 12px; padding-block: 12px;
    }

    .nav-shell > .brand {
        order: 0;
    }

    .menu-toggle {
        order: 1; margin-left: auto;
    }

    .header-account-actions {
        order: 2; flex: 0 0 100%; flex-wrap: wrap; margin: 0; gap: 8px;
    }

    .header-account-actions .btn {
        padding: 8px 12px; font-size: var(--text-small);
    }

    .navigation {
        order: 3; margin-top: 0; max-height: 55vh; overflow-y: auto;
    }

    .navigation .nav-link {
        flex: 0 0 calc(50% - 5px); white-space: normal; padding: 10px 5px;
    }
}

.language-picker {
    position: relative;
}

.language-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: var(--text-small);
}

.language-options {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 165px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px #0006; z-index: 30;
}

.language-options[hidden] {
    display: none;
}

.language-options a {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px;
}

.language-options a:hover,
.language-options a[aria-current="page"] {
    background: #22375a; color: var(--gold);
}

.bd-flag,
.uk-flag {
    display: inline-block; flex-shrink: 0;
}

.uk-flag {
    width: 22px; height: 22px; border-radius: 50%; background: #012169 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='white' stroke-width='6' d='m0 0 60 30M60 0 0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='2' d='m0 0 60 30M60 0 0 30'/%3E%3Cpath stroke='white' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E") center/cover;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    html[lang="en"] .navigation {
        flex-wrap: wrap; justify-content: flex-start;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .row.gx-lg-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* Shared breadcrumb for inner pages. Homepages do not include this component. */
.site-breadcrumb {
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    font-size: var(--text-small);
    line-height: 1.6;
}

.site-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-breadcrumb-list li {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    max-width: 100%;
}

.site-breadcrumb-list a {
    color: var(--gold);
    text-decoration: none;
}

.site-breadcrumb-list a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-breadcrumb-current {
    color: var(--white);
    overflow-wrap: anywhere;
}

.site-breadcrumb-separator {
    flex-shrink: 0;
    margin-inline: 10px;
    color: var(--muted);
}
