:root {
    --bg: #07110f;
    --bg-deep: #030807;
    --surface: #0d1d1a;
    --surface-2: #112a25;
    --surface-3: #173a32;
    --text: #f1f7f4;
    --muted: #b5c9c2;
    --soft: #d7efe5;
    --lime: #b8ff2f;
    --lime-2: #76d83b;
    --teal: #3fe1c6;
    --amber: #ffd166;
    --border: rgba(184, 255, 47, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --content: 1160px;
    --reading: 860px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

a {
    color: var(--lime);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: var(--teal);
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

.screen-reader-text,
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.skip-link:focus {
    clip: auto;
    background: var(--lime);
    color: #05110e;
    height: auto;
    left: 16px;
    padding: 8px 12px;
    top: 16px;
    width: auto;
    z-index: 1000;
}

.site-header {
    background: rgba(3, 8, 7, 0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--content);
    min-height: 72px;
    padding: 10px 20px;
}

.site-brand {
    align-items: center;
    display: flex;
    min-width: 150px;
}

.custom-logo,
.custom-logo-link img,
.brand-logo-img {
    height: auto;
    max-height: 56px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.brand-wordmark {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.primary-navigation {
    display: block;
}

.primary-menu,
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu a,
.footer-menu a {
    color: var(--soft);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.footer-menu a:hover,
.footer-menu a:focus {
    color: var(--lime);
}

.menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.menu-toggle__bar {
    background: var(--text);
    border-radius: 999px;
    display: block;
    height: 2px;
    margin: 3px 0;
    width: 18px;
}

.hero-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(184, 255, 47, 0.17), transparent 32%),
        radial-gradient(circle at 80% 15%, rgba(63, 225, 198, 0.13), transparent 28%),
        linear-gradient(135deg, var(--bg-deep), #0b1815 55%, #06110f);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 6px;
    content: "";
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    position: absolute;
}

.hero-section__inner {
    align-items: center;
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    margin: 0 auto;
    max-width: var(--content);
    min-height: 560px;
    padding: 64px 20px;
    position: relative;
    z-index: 1;
}

.hero-kicker,
.page-kicker {
    color: var(--lime);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    line-height: 1.22;
    margin: 0 0 18px;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    max-width: 860px;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    margin-top: 42px;
}

h3 {
    font-size: 1.35rem;
    margin-top: 28px;
}

.hero-intro {
    color: var(--soft);
    font-size: 1.12rem;
    margin: 0 0 26px;
    max-width: 680px;
}

.button,
.wp-block-button__link,
.search-submit {
    align-items: center;
    background: var(--lime);
    border: 0;
    border-radius: 8px;
    color: #07110f;
    cursor: pointer;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    padding: 14px 22px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.search-submit:hover,
.search-submit:focus {
    background: var(--teal);
    box-shadow: 0 12px 34px rgba(63, 225, 198, 0.2);
    color: #06110f;
    transform: translateY(-1px);
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-trust-strip span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--soft);
    font-size: 0.9rem;
    padding: 7px 12px;
}

.hero-visual {
    background: linear-gradient(145deg, rgba(184, 255, 47, 0.16), rgba(63, 225, 198, 0.1));
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 0;
    overflow: hidden;
    padding: 10px;
}

.hero-visual img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.article-shell,
.page-main {
    background:
        linear-gradient(180deg, rgba(17, 42, 37, 0.86), rgba(7, 17, 15, 0.96)),
        var(--bg);
}

.article-shell__inner,
.page-frame {
    margin: 0 auto;
    max-width: var(--content);
    padding: 54px 20px 78px;
}

.longform-entry,
.page-entry {
    background: rgba(7, 17, 15, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.longform-entry {
    padding: 44px;
}

.page-entry__header {
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 255, 47, 0.14), transparent 34%),
        linear-gradient(135deg, #0b1815, #102520);
    border-bottom: 1px solid var(--border);
    padding: 48px 44px 36px;
}

.page-entry__content {
    padding: 44px;
}

.longform-entry > *,
.page-entry__content > * {
    max-width: var(--reading);
}

.longform-entry > .wp-block-image,
.longform-entry > .wp-block-group,
.longform-entry > .wp-block-columns,
.page-entry__content > .wp-block-image,
.page-entry__content > .wp-block-group,
.page-entry__content > .wp-block-columns {
    max-width: 100%;
}

p,
li {
    color: var(--soft);
}

.wp-block-group {
    background: rgba(17, 42, 37, 0.72);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 28px 0;
    padding: 22px;
}

.wp-block-group.is-style-toc,
.longform-entry .toc-block {
    background: rgba(184, 255, 47, 0.08);
}

.wp-block-image {
    margin: 30px 0;
}

.wp-block-image img {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

figcaption {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 10px;
    text-align: left;
}

.wp-block-table {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--soft);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(184, 255, 47, 0.11);
    color: var(--text);
}

.wp-block-details {
    background: rgba(13, 29, 26, 0.92);
    border: 1px solid rgba(184, 255, 47, 0.2);
    border-radius: 8px;
    margin: 14px 0;
    padding: 16px 18px;
}

.wp-block-details summary {
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.site-footer {
    background: #020504;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.7fr) minmax(220px, 0.9fr);
    margin: 0 auto;
    max-width: var(--content);
    padding: 44px 20px;
}

.site-footer p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 12px 0 0;
}

.footer-warning {
    color: var(--amber) !important;
}

.footer-menu {
    display: grid;
    gap: 10px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 620px;
}

.search-field {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    min-height: 48px;
    padding: 10px 14px;
    width: 100%;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card {
    background: rgba(17, 42, 37, 0.72);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .primary-navigation {
        background: rgba(3, 8, 7, 0.98);
        border-bottom: 1px solid var(--border);
        display: none;
        left: 0;
        padding: 16px 20px 20px;
        position: absolute;
        right: 0;
        top: 64px;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-menu {
        display: grid;
        gap: 12px;
    }

    .hero-section__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 42px 20px 36px;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-primary-cta {
        width: 100%;
    }

    .longform-entry,
    .page-entry__content,
    .page-entry__header {
        padding: 26px 20px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.15rem;
    }

    .hero-trust-strip span {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .search-form {
        display: grid;
    }

    .custom-logo,
    .custom-logo-link img,
    .brand-logo-img {
        max-height: 48px;
        max-width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
