/*
Theme Name: BajiJoy Organic Editorial OgGmqzj1
Theme URI: https://bajijoy.asia/
Author: BajiJoy বাংলা গাইড
Description: Warm terracotta organic editorial theme created for run OgGmqzj1.
Version: 1.0.0
Text Domain: bajijoy-organic-oggmqzj1
*/

:root {
    --paper: #f7f0e5;
    --surface: #fffdf8;
    --sand: #efe1d2;
    --forest: #24443b;
    --forest-2: #17352e;
    --terracotta: #a94e37;
    --terracotta-dark: #79301f;
    --sage: #557664;
    --ochre: #9b6a14;
    --ink: #2d2723;
    --muted: #665e57;
    --line: #d7c5b3;
    --info: #e5eee7;
    --focus: #0c5f4b;
    --wide: 1180px;
    --reading: 780px;
    --radius: 16px;
    --organic: 38px 16px 38px 16px;
    --shadow: 0 18px 46px rgba(80, 50, 35, .10);
    --font: system-ui, "Noto Sans Bengali", "Noto Sans", "FreeSans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.78;
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--forest); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: var(--surface); color: var(--forest-2); padding: 12px 18px; border: 2px solid var(--focus); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 20; background: rgba(255, 253, 248, .97); border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; gap: 24px; }
.site-identity { flex: 0 0 auto; }
.custom-logo-link { display: flex; min-height: 48px; align-items: center; }
.custom-logo { width: auto; height: 50px; max-width: 285px; object-fit: contain; }
.text-logo { font-weight: 800; text-decoration: none; color: var(--forest-2); font-size: 1.15rem; }
.primary-nav { margin-left: auto; }
.primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: flex; align-items: center; min-height: 48px; padding: 7px 9px; color: var(--forest-2); font-size: .79rem; line-height: 1.25; font-weight: 700; text-decoration: none; border-radius: 12px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--sand); color: var(--terracotta-dark); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest-2); background: var(--surface); font: 700 .9rem/1 var(--font); gap: 7px; align-items: center; }

.site-main { min-height: 70vh; }
.guide-article { width: 100%; }
.article-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(54px, 8vw, 108px) max(20px, calc((100vw - var(--wide)) / 2)); background: var(--forest); color: #fffdf8; }
.article-hero::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: max(-120px, calc((100vw - var(--wide)) / 2 - 180px)); top: -205px; border-radius: 46% 54% 65% 35%; background: rgba(185, 95, 69, .68); transform: rotate(18deg); }
.article-hero::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 170px; right: 11%; bottom: -95px; border-radius: 50%; background: rgba(214, 161, 67, .18); }
.hero-kicker, .section-kicker { display: inline-block; margin-bottom: 14px; color: #ffe7c6; font-size: .82rem; font-weight: 800; letter-spacing: .06em; }
.article-hero h1 { max-width: 1000px; margin: 0; font-size: clamp(2.2rem, 5.3vw, 4.25rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.hero-deck { max-width: 820px; margin: 24px 0 0; color: #f0e9df; font-size: clamp(1.02rem, 1.7vw, 1.24rem); line-height: 1.65; }
.article-content { padding: clamp(42px, 7vw, 90px) 20px clamp(64px, 9vw, 112px); }
.article-content > * { width: min(var(--reading), 100%); margin-left: auto; margin-right: auto; }
.article-content > .review-section, .article-content > .faq-section, .article-content > .core-asset { width: min(var(--wide), 100%); }
.article-content p { margin-top: 0; margin-bottom: 1.35em; }
.article-content h2 { margin: 0 0 22px; color: var(--forest-2); font-size: clamp(1.7rem, 3.4vw, 2.65rem); line-height: 1.25; text-wrap: balance; }
.article-content h3 { margin: 38px 0 16px; color: var(--terracotta-dark); font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.3; }
.article-content ul, .article-content ol { padding-left: 1.4em; margin-top: 0; margin-bottom: 1.5em; }
.article-content li { margin-bottom: .55em; }

.review-section { position: relative; padding: clamp(42px, 6vw, 78px) clamp(22px, 5vw, 68px); margin-bottom: clamp(38px, 6vw, 74px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--organic); box-shadow: var(--shadow); }
.review-section:nth-of-type(even) { background: var(--sand); border-radius: 16px 42px 16px 42px; }
.review-section::before { content: ""; position: absolute; width: 62px; height: 8px; left: clamp(22px, 5vw, 68px); top: 25px; border-radius: 999px; background: var(--terracotta); }
.review-section > p, .review-section > h2, .review-section > h3, .review-section > ul, .review-section > ol { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.review-trust { background: var(--info); }
.review-verdict { border-color: var(--sage); }
.review-responsible { background: #fff3d8; }

.editorial-media { width: min(100%, 980px); margin: 36px auto 12px; }
.editorial-media img { width: 100%; border-radius: 34px 14px 34px 14px; box-shadow: var(--shadow); aspect-ratio: var(--media-ratio, auto); object-fit: cover; }
.editorial-media figcaption { margin: 10px 12px 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.editorial-media.is-portrait { max-width: 650px; }
.editorial-media.is-portrait img { max-height: 720px; object-fit: cover; object-position: center; }

.table-wrap { width: 100%; margin: 28px 0 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 24px rgba(80, 50, 35, .06); }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--forest); color: #fff; font-weight: 750; }
tbody tr:nth-child(even) { background: #f7efe4; }
tbody tr:last-child td { border-bottom: 0; }
code { padding: .12em .35em; border-radius: 5px; background: #eadfce; color: var(--forest-2); font: .9em ui-monospace, monospace; }

.core-asset { padding: 28px clamp(22px, 4vw, 44px); margin-top: 0; margin-bottom: 42px; border-radius: 32px 14px 32px 14px; background: var(--forest); color: #fff; box-shadow: var(--shadow); }
.core-asset h2 { color: #fff; font-size: 1.55rem; margin-bottom: 16px; }
.core-asset ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.core-asset li { margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.08); }

.faq-section { margin-top: clamp(54px, 8vw, 96px); padding: clamp(38px, 6vw, 70px); border-radius: 42px 18px 42px 18px; background: var(--forest); color: #fff; }
.faq-section .section-kicker { color: #ffdc9f; }
.faq-section h2 { color: #fff; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.07); }
.faq-list summary { min-height: 52px; padding: 15px 18px; cursor: pointer; font-weight: 750; }
.faq-answer { padding: 0 18px 4px; color: #f2ede8; }

.button-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; background: var(--terracotta); color: #fff; font-weight: 700; text-decoration: none; }
.site-footer { background: var(--forest-2); color: #f4eee5; padding: clamp(50px, 7vw, 84px) 20px; }
.footer-inner { width: min(var(--wide), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 54px; }
.footer-brand strong { font-size: 1.35rem; }
.footer-brand p { max-width: 650px; color: #d9d4cb; }
.site-footer a { color: #ffe0af; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; align-content: start; }
.footer-nav a { min-height: 44px; display: flex; align-items: center; }

@media (max-width: 1020px) {
    .header-inner { width: min(100% - 32px, var(--wide)); }
    .custom-logo { max-width: 235px; }
    .primary-menu a { padding-inline: 7px; font-size: .72rem; }
}

@media (max-width: 899px) {
    body { font-size: 17px; }
    .header-inner { min-height: 72px; flex-wrap: wrap; padding: 8px 0; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .primary-nav { display: none; flex: 1 0 100%; margin: 0; padding: 4px 0 10px; }
    .primary-nav.is-open { display: block; }
    .primary-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
    .primary-menu a { font-size: .88rem; padding: 11px; border: 1px solid var(--line); background: var(--surface); }
    .article-hero { padding-inline: 24px; }
    .core-asset ul { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
    body { font-size: 16px; line-height: 1.72; }
    .header-inner { width: calc(100% - 32px); }
    .custom-logo { height: 44px; max-width: 210px; }
    .primary-menu { grid-template-columns: 1fr; }
    .article-hero { padding: 52px 16px 58px; }
    .article-hero h1 { font-size: clamp(2rem, 10.4vw, 2.6rem); }
    .article-content { padding: 42px 16px 70px; }
    .review-section, .faq-section { padding: 42px 20px; border-radius: 26px 12px 26px 12px; }
    .review-section:nth-of-type(even) { border-radius: 12px 26px 12px 26px; }
    .editorial-media { margin-top: 28px; }
    .editorial-media img { border-radius: 22px 10px 22px 10px; max-height: 470px; object-fit: cover; }
    .editorial-media.is-portrait img { max-height: 520px; }
    .table-wrap { margin-inline: 0; }
    table { min-width: 620px; }
    .footer-inner { grid-template-columns: 1fr; gap: 34px; }
    .footer-nav { grid-template-columns: 1fr; }
}

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