:root {
    --bg: #fff8f0;
    --surface: #ffffff;
    --surface-soft: #fff1df;
    --ink: #1f2933;
    --muted: #596273;
    --accent: #e6461a;
    --accent-2: #f59e0b;
    --accent-3: #0f766e;
    --line: #ead8c5;
    --dark: #151515;
    --shadow: 0 20px 60px rgba(96, 42, 10, 0.14);
    --radius: 8px;
    --content: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #b83213;
}

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

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    z-index: 1000;
    clip: auto;
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 248, 240, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(234, 216, 197, 0.9);
}

.header-inner {
    max-width: var(--content);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    min-width: 132px;
}

.custom-logo {
    max-width: 162px;
    max-height: 54px;
    object-fit: contain;
}

.site-name {
    font-weight: 800;
    color: var(--ink);
    font-size: 1.15rem;
}

.nav-menu,
.footer-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-menu a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 9px;
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.site-main {
    width: 100%;
}

.hero-section {
    max-width: var(--content);
    margin: 26px auto 0;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: 30px;
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(135deg, #fffdf8 0%, #fff1df 56%, #ffe4bf 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #151515;
    color: #fff6dd;
    font-size: 0.86rem;
    font-weight: 800;
}

.hero-section h1,
.page-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.05rem, 4vw, 4.35rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-intro {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.primary-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(230, 70, 26, 0.22);
}

.primary-action:hover {
    color: #fff;
    transform: translateY(-1px);
}

.reading-meta {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-3);
}

.hero-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    background: rgba(15, 118, 110, 0.08);
    border-left: 4px solid var(--accent-3);
    color: #244640;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-media {
    margin: 0;
    min-width: 0;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    border: 8px solid #fff;
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.18);
}

.article-shell,
.page-shell,
.listing-shell {
    max-width: 930px;
    margin: 28px auto 56px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(31, 41, 51, 0.08);
    padding: 38px;
}

.page-shell,
.listing-shell {
    max-width: 980px;
}

.page-hero {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.entry-content > *:first-child,
.article-shell > *:first-child {
    margin-top: 0;
}

.article-shell h2,
.article-shell h3,
.entry-content h2,
.entry-content h3 {
    line-height: 1.22;
    letter-spacing: 0;
    color: var(--ink);
}

.article-shell h2,
.entry-content h2 {
    margin-top: 38px;
    padding-top: 8px;
    border-top: 3px solid var(--surface-soft);
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.article-shell h3,
.entry-content h3 {
    margin-top: 26px;
    font-size: 1.24rem;
    color: #8a2d16;
}

.article-shell p,
.entry-content p {
    margin: 0 0 18px;
}

.wp-block-group.bd678-toc,
.wp-block-group.bd678-note,
.wp-block-group.bd678-steps,
.wp-block-group.bd678-highlight {
    padding: 22px;
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.wp-block-group.bd678-toc {
    background: #fff7ed;
}

.wp-block-group.bd678-note {
    background: #f0fdfa;
    border-color: rgba(15, 118, 110, 0.22);
}

.wp-block-group.bd678-steps {
    background: #fffaf2;
}

.wp-block-group.bd678-highlight {
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.wp-block-group.bd678-toc ul,
.wp-block-group.bd678-steps ol,
.article-shell ul,
.article-shell ol,
.entry-content ul,
.entry-content ol {
    padding-left: 1.2em;
}

.wp-block-table {
    overflow-x: auto;
    margin: 28px 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.95rem;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.wp-block-table th {
    background: #1f2933;
    color: #fff;
}

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

.wp-block-image img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(31, 41, 51, 0.12);
}

.wp-block-image figcaption {
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.bd678-faq {
    margin-top: 34px;
}

.bd678-faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fffdf8;
}

.bd678-faq summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--ink);
}

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-field {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.search-form button {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

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

.post-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf8;
}

.post-card h2 {
    margin: 0 0 8px;
}

.post-card a {
    color: var(--ink);
    text-decoration: none;
}

.site-footer {
    background: var(--dark);
    color: #f8fafc;
    padding: 42px 20px;
}

.footer-grid {
    max-width: var(--content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr 0.9fr;
    gap: 24px;
}

.footer-panel h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #fbbf24;
}

.footer-brand p,
.footer-panel p {
    color: #d7dee8;
    margin: 0 0 10px;
    font-size: 0.95rem;
}

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

.footer-menu a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #fbbf24;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-block;
    }

    .primary-navigation {
        position: absolute;
        top: 69px;
        right: 20px;
        width: min(310px, calc(100vw - 40px));
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    body.nav-open .primary-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

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

    .hero-section {
        grid-template-columns: 1fr;
        padding: 24px;
        margin: 16px 16px 0;
    }

    .article-shell,
    .page-shell,
    .listing-shell {
        margin: 20px 16px 42px;
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .header-inner {
        padding: 10px 14px;
    }

    .custom-logo {
        max-width: 132px;
        max-height: 46px;
    }

    .hero-section {
        padding: 20px;
        gap: 20px;
    }

    .hero-section h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .primary-action {
        width: 100%;
    }

    .article-shell,
    .page-shell,
    .listing-shell {
        padding: 20px;
    }

    .wp-block-group.bd678-toc,
    .wp-block-group.bd678-note,
    .wp-block-group.bd678-steps,
    .wp-block-group.bd678-highlight {
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

