/*
Theme Name: Q2 Quiz বাংলা পোর্টাল
Theme URI: https://appcodenest.com/
Author: AppCodeNest
Description: Q2 Quiz-এর বাংলা ব্লগ, কুইজ, পড়ার PDF, নোটের দোকান ও শিক্ষার্থী ফোরামের থিম।
Version: 1.9.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: q2quiz-portal
*/

:root {
    --q2-green: #087b42;
    --q2-green-dark: #063d2b;
    --q2-brand-olive: #817f26;
    --q2-lime: #d9f76b;
    --q2-ink: #10251d;
    --q2-muted: #5c6e64;
    --q2-paper: #faf9f1;
    --q2-border: #e3ece2;
    --q2-shadow: 0 14px 38px rgba(16, 53, 33, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--q2-ink);
    background: #fdfcf7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--q2-green); }
a:hover { color: var(--q2-green-dark); }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, 92%); margin-inline: auto; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(227, 236, 226, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.5vw, 20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--q2-ink); font-size: 1.22rem; font-weight: 800; text-decoration: none; }
.brand:hover { color: var(--q2-ink); }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid #b8ec68; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #0b8a4b, #06442f); box-shadow: 0 6px 16px rgba(8, 123, 66, .2); }
.site-logo-image { display: block; width: auto; max-width: 58px; max-height: 52px; object-fit: contain; }
.brand-copy { display: grid; gap: 0; min-width: 0; }
.brand-title { overflow: hidden; color: var(--q2-ink); font-size: 1.08rem; font-weight: 850; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.brand-tagline { overflow: hidden; color: var(--q2-muted); font-size: .68rem; font-weight: 550; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(7px, 1vw, 14px); }
.menu-list, .footer-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.menu-list > li { position: relative; }
.menu-list a, .footer-links a { color: var(--q2-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.menu-list > li > a { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; white-space: nowrap; transition: color .18s ease, background .18s ease; }
.menu-list > li > a:hover, .menu-list > li:focus-within > a { color: var(--q2-green-dark); background: #eef5e9; }
.menu-list .menu-item-has-children > a::after { color: #819077; content: "⌄"; font-size: .78rem; transition: transform .18s ease; }
.menu-list .menu-item-has-children:hover > a::after, .menu-list .menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }
.menu-list .sub-menu { position: absolute; z-index: 35; top: calc(100% + 7px); right: 0; display: none; width: min(360px, calc(100vw - 32px)); margin: 0; padding: 8px; border: 1px solid #e8e9e1; border-radius: 20px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 44px rgba(24, 38, 28, .16); list-style: none; }
.menu-list .menu-item-has-children:hover > .sub-menu, .menu-list .menu-item-has-children:focus-within > .sub-menu { display: grid; gap: 3px; animation: q2-menu-open .16s ease-out; }
.menu-list .sub-menu a { display: flex; min-height: 60px; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 13px; white-space: normal; }
.menu-list .sub-menu a:hover, .menu-list .sub-menu a:focus-visible { color: var(--q2-green-dark); background: #f2f6eb; }
.menu-card-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; color: #b85518; background: #fff0d8; font-size: 1.05rem; font-weight: 850; }
.menu-card-copy { display: grid; gap: 1px; }
.menu-card-title { color: var(--q2-ink); font-size: .9rem; font-weight: 800; line-height: 1.4; }
.menu-card-copy small { color: #778078; font-size: .74rem; font-weight: 500; line-height: 1.5; }
.menu-list .sub-menu a:hover .menu-card-title, .menu-list .sub-menu a:focus-visible .menu-card-title { color: var(--q2-green); }
.footer-links a:hover { color: var(--q2-green); }
@keyframes q2-menu-open { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.menu-tutorials { display: inline-flex; min-height: 42px; align-items: center; padding: 7px 10px; border-radius: 999px; color: var(--q2-ink); font-size: .92rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.menu-tutorials:hover, .menu-tutorials:focus-visible { color: var(--q2-green-dark); background: #eef5e9; }
.nav-cta { padding: 10px 15px; border-radius: 12px; color: #fff; background: var(--q2-green); font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { color: #fff; background: var(--q2-green-dark); }
.nav-account { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border: 1px solid #cdddcf; border-radius: 11px; color: var(--q2-green-dark); font-size: .88rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-account:hover { border-color: var(--q2-green); color: var(--q2-green); background: #f4faf1; }
.nav-account-register { border-color: var(--q2-green); color: #fff; background: var(--q2-green); }
.nav-account-register:hover { color: #fff; background: var(--q2-green-dark); }
.nav-account[hidden] { display: none; }
.nav-account-user { gap: 8px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.nav-account-user img { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; object-fit: cover; }
.nav-account-user img[hidden] { display: none; }
.nav-account-menu { position: relative; }
.nav-account-menu[hidden] { display: none; }
.nav-account-dropdown { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; display: none; width: 205px; padding: 7px; border: 1px solid var(--q2-border); border-radius: 13px; background: #fff; box-shadow: 0 14px 35px rgba(16, 53, 33, .16); }
.nav-account-dropdown:not([hidden]) { display: none; }
.nav-account-menu:hover .nav-account-dropdown:not([hidden]), .nav-account-menu:focus-within .nav-account-dropdown:not([hidden]), .nav-account-menu.is-open .nav-account-dropdown:not([hidden]) { display: grid; }
.nav-account-dropdown a, .nav-account-dropdown button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--q2-ink); background: transparent; font: inherit; font-size: .87rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.nav-account-dropdown a:hover, .nav-account-dropdown button:hover { color: var(--q2-brand-olive); background: #f7f6e9; }
.nav-account-dropdown button { border-top: 1px solid #edf0e8; border-radius: 0 0 8px 8px; color: #a12d29; }
.nav-account-dropdown[hidden] { display: none; }
.menu-toggle { display: none; padding: 8px 12px; border: 1px solid var(--q2-border); border-radius: 10px; color: var(--q2-ink); background: #fff; font-weight: 750; }

.hero { overflow: hidden; padding: 76px 0; background: radial-gradient(ellipse at 88% 14%, #def4b7 0, transparent 34%), linear-gradient(135deg, #f8fcf6, #e8f6df); }
.hero-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 56px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; color: #17623b; background: #e0f5c7; font-size: .84rem; font-weight: 850; letter-spacing: .02em; }
.hero h1 { max-width: 650px; margin: 18px 0; font-size: clamp(2.7rem, 5.4vw, 4.6rem); line-height: 1.08; letter-spacing: -.055em; }
.hero-lead { max-width: 590px; margin: 0; color: var(--q2-muted); font-size: 1.12rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 11px 18px; border: 0; border-radius: 13px; color: #fff; background: var(--q2-green); box-shadow: 0 9px 20px rgba(8, 123, 66, .17); font-weight: 850; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); color: #fff; background: var(--q2-green-dark); }
.button-outline { border: 1px solid #d5e5d7; color: var(--q2-green-dark); background: rgba(255,255,255,.8); box-shadow: none; }
.button-outline:hover { color: var(--q2-green-dark); background: #fff; }
.button-small { min-height: 39px; padding: 8px 13px; font-size: .9rem; }
.button-lime { color: #173521; background: var(--q2-lime); box-shadow: none; }
.button-lime:hover { color: #173521; background: #e6ff91; }
.hero-note { margin: 16px 0 0; color: var(--q2-muted); font-size: .9rem; }
.hero-art { position: relative; display: grid; min-height: 540px; place-items: center; }
.hero-orbit { position: absolute; width: min(90%, 410px); aspect-ratio: 1; border-radius: 50%; background: #c9ef8a; }
.app-slider { position: relative; width: min(100%, 430px); height: min(72vh, 550px); height: min(72svh, 550px); overflow: hidden; border: 6px solid #fff; border-radius: 23px; background: #07130e; box-shadow: 0 28px 60px rgba(18, 59, 44, .28); }
.app-slider-track { display: flex; width: 100%; height: 100%; transition: transform .45s ease; }
.app-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; }
.app-slider-control { position: absolute; top: 50%; display: grid; width: 43px; height: 43px; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; background: rgba(6,61,43,.86); font-size: 1.55rem; cursor: pointer; }
.app-slider-control:hover { background: var(--q2-green); }
.app-slider-prev { left: 10px; }
.app-slider-next { right: 10px; }
.app-slider-dots { position: absolute; right: 0; bottom: 12px; left: 0; display: flex; justify-content: center; gap: 9px; }
.app-slider-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); cursor: pointer; }
.app-slider-dot[aria-current="true"] { background: var(--q2-lime); box-shadow: 0 0 0 2px var(--q2-green-dark); }
.app-slider-control:focus-visible, .app-slider-dot:focus-visible { outline: 3px solid var(--q2-lime); outline-offset: 3px; }

.section { padding: 76px 0; }
.section-tint { background: var(--q2-paper); }
.section-heading { max-width: 690px; margin: 0 auto 36px; text-align: center; }
.section-heading h2, .heading-row h2 { margin: 11px 0 8px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--q2-muted); }
.heading-row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 20px; text-align: left; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card { display: block; min-height: 225px; padding: 23px; border: 1px solid var(--q2-border); border-radius: 19px; color: var(--q2-ink); background: #fff; box-shadow: 0 7px 25px rgba(16, 53, 33, .04); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); color: var(--q2-ink); box-shadow: var(--q2-shadow); }
.feature-icon { display: inline-grid; width: 49px; height: 49px; place-items: center; border-radius: 14px; background: #e9f8d9; font-size: 1.45rem; }
.feature-card h3 { margin: 14px 0 5px; font-size: 1.15rem; }
.feature-card p { margin: 0 0 12px; color: var(--q2-muted); font-size: .94rem; }
.text-link { color: var(--q2-green); font-size: .91rem; font-weight: 850; text-decoration: none; }
.text-link:hover { color: var(--q2-green-dark); text-decoration: underline; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card, .material-card { overflow: hidden; border: 1px solid var(--q2-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(16, 53, 33, .045); }
.post-card-image, .material-image { display: grid; overflow: hidden; aspect-ratio: 16 / 10; place-items: center; background: linear-gradient(135deg, #dcf4c1, #eff8eb); }
.post-card-image img, .material-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-image img, .material-card:hover .material-image img { transform: scale(1.035); }
.post-placeholder { color: var(--q2-green); font-size: 3rem; font-weight: 950; }
.post-card-body, .material-body { padding: 20px; }
.post-meta { color: var(--q2-muted); font-size: .82rem; }
.post-meta a { text-decoration: none; }
.post-card h3 { margin: 8px 0; font-size: 1.18rem; line-height: 1.4; }
.post-card h3 a, .material-card h2 a { color: var(--q2-ink); text-decoration: none; }
.post-card p, .material-card p { color: var(--q2-muted); font-size: .94rem; }
.cta-band { padding: 44px 0; color: #fff; background: linear-gradient(120deg, #087b42, #06422f); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner h2 { margin: 10px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.eyebrow-light { color: #e4f4d0; background: rgba(255,255,255,.13); }

.page-hero { padding: 64px 0 54px; background: radial-gradient(ellipse at 90% 10%, #def4b7 0, transparent 32%), linear-gradient(135deg, #f8fcf6, #e8f6df); }
.page-hero h1 { margin: 14px 0 8px; font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.12; letter-spacing: -.045em; }
.page-hero p { max-width: 720px; margin: 0 0 20px; color: var(--q2-muted); font-size: 1.06rem; }
.pdf-books-section { background: #f7f7f2; }
.pdf-books-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pdf-books-intro h2 { margin: 10px 0 0; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.pdf-books-intro > p { max-width: 450px; margin: 0; color: var(--q2-muted); }
.pdf-book-list { display: grid; gap: 14px; max-width: 940px; margin-inline: auto; }
.pdf-book-card { display: flex; min-height: 84px; align-items: center; gap: 16px; padding: 14px 22px; border: 1px solid #e1e5d9; border-radius: 24px; color: #26382e; background: #fff; box-shadow: 0 7px 19px rgba(15, 23, 30, .06); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.pdf-book-card:hover { transform: translateY(-2px); border-color: #aaa84b; box-shadow: 0 10px 24px rgba(35, 48, 39, .1); }
.pdf-book-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; color: #68661f; background: #f0f3e7; font-size: .78rem; font-weight: 900; }
.pdf-book-copy { min-width: 0; flex: 1; }
.pdf-book-copy h3 { margin: 0; color: #26382e; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.4; }
.pdf-book-copy p { margin: 3px 0 0; color: #6b756b; font-size: .8rem; }
.pdf-book-open { display: inline-flex; min-width: 90px; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: #68661f; font-size: 1.12rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.pdf-book-open:hover { color: #4f4d18; background: #f2f4e9; }
.pdf-catalog-message { max-width: 940px; margin: 0 auto; padding: 18px 20px; border: 1px solid #e3e6dc; border-radius: 15px; color: #4d5c50; background: #fff; }
.pdf-catalog-message.is-error { border-color: #f0c8c4; color: #9d3329; background: #fff1ef; }
.pdf-reader { padding: clamp(14px, 3vw, 28px); border: 1px solid #e6e7de; border-radius: 22px; background: #fff; box-shadow: var(--q2-shadow); }
.pdf-reader-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.pdf-reader-heading h2 { margin: 7px 0 0; font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.3; }
.pdf-back-link, .pdf-open-original { color: #68661f; font-size: .87rem; font-weight: 800; text-decoration: none; }
.pdf-reader-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e7e8df; border-radius: 14px; background: #fafaf6; }
.pdf-zoom-controls { display: inline-flex; align-items: center; gap: 5px; padding: 3px; border: 1px solid #e1e5d9; border-radius: 10px; background: #f1f4ec; }
.pdf-zoom-controls .pdf-tool-button { min-width: 36px; padding-inline: 8px; }
.pdf-zoom-level { min-width: 43px; color: #465347; font-size: .78rem; font-weight: 800; text-align: center; }
.pdf-tool-button { min-height: 38px; padding: 7px 11px; border: 1px solid #d9ddd3; border-radius: 9px; color: #26382e; background: #fff; font-size: .82rem; font-weight: 750; cursor: pointer; }
.pdf-tool-button:hover:not(:disabled) { border-color: #817f26; color: #68661f; background: #f8f7ed; }
.pdf-tool-button:disabled { opacity: .48; cursor: not-allowed; }
.pdf-highlight-button { border-color: #817f26; color: #fff; background: #817f26; }
.pdf-highlight-button:hover:not(:disabled) { color: #fff; background: #68661f; }
.pdf-page-control, .pdf-highlight-color { display: inline-flex; align-items: center; gap: 6px; color: #516056; font-size: .8rem; font-weight: 700; }
.pdf-page-control input { width: 57px; min-height: 36px; padding: 5px 7px; border: 1px solid #d9ddd3; border-radius: 8px; background: #fff; }
.pdf-highlight-color select { min-height: 36px; padding: 5px 8px; border: 1px solid #d9ddd3; border-radius: 8px; background: #fff; }
.pdf-highlight-count { color: #68661f; font-size: .82rem; font-weight: 800; }
.pdf-reader-status { margin: 12px 0; padding: 10px 13px; border-radius: 9px; color: #516056; background: #f2f6eb; font-size: .85rem; }
.pdf-reader-status.is-error { color: #9d3329; background: #fff1ef; }
.pdf-reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: start; gap: 17px; }
.pdf-document-wrap { min-width: 0; min-height: 0; padding: 10px; overflow: visible; border: 1px solid #e1e6da; border-radius: 14px; background: #eef1e9; }
.pdf-document { display: grid; width: 100%; min-width: 0; justify-items: center; min-height: 0; }
.pdf-document.is-zoomed { display: block; overflow-x: auto; overflow-y: hidden; }
.pdf-document.is-zoomed .pdf-page { margin-inline: auto; }
.pdf-reader-layout.is-zoomed { grid-template-columns: minmax(0, 1fr); }
.pdf-page { position: relative; flex: none; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.pdf-page-canvas { position: absolute; inset: 0; display: block; z-index: 0; }
.pdf-page-text-layer { position: absolute; inset: 0; z-index: 2; overflow: hidden; line-height: 1; text-align: initial; transform-origin: 0 0; user-select: text; }
.pdf-saved-highlight { position: absolute; z-index: 1; display: block; border-radius: 2px; pointer-events: none; }
.pdf-saved-drawing, .pdf-drawing-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pdf-saved-drawing { z-index: 3; pointer-events: none; }
.pdf-drawing-overlay { z-index: 4; pointer-events: auto; touch-action: none; cursor: crosshair; }
.pdf-page.is-drawing { touch-action: none; user-select: none; }
.pdf-page.is-drawing .pdf-page-text-layer { pointer-events: none; }
.pdf-tool-button.is-active { border-color: #68661f; color: #fff; background: #68661f; }
.pdf-highlights-panel { position: sticky; top: 92px; padding: 17px; border: 1px solid #e7e8df; border-radius: 13px; background: #fafaf6; }
.pdf-highlights-panel h3 { margin: 0 0 5px; font-size: 1rem; }
.pdf-highlights-panel > p { margin: 0 0 12px; color: var(--q2-muted); font-size: .78rem; line-height: 1.55; }
.pdf-highlights-panel ol { display: grid; gap: 7px; max-height: 460px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.book-reader-links { display: flex; flex-wrap: wrap; gap: 7px; }
.book-reader-links a { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #dfe6d8; border-radius: 8px; color: #365b42; background: #f6f9f2; font-size: .76rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.book-reader-links a:hover { border-color: #9bab79; color: #274b34; background: #edf4e5; }
.pdf-highlights-panel li { display: flex; align-items: flex-start; gap: 5px; padding: 7px; border: 1px solid #e6e6dc; border-radius: 9px; background: #fff; }
.pdf-highlight-jump { flex: 1; padding: 0; border: 0; color: #36443b; background: transparent; font-size: .77rem; line-height: 1.45; text-align: left; cursor: pointer; }
.pdf-highlight-remove { width: 25px; height: 25px; flex: 0 0 25px; border: 0; border-radius: 6px; color: #a12d29; background: #fff1ef; font-size: 1rem; cursor: pointer; }
.page-main > .section { min-height: 290px; }
.prose { max-width: 780px; margin-inline: auto; }
.prose h2, .prose h3 { margin: 1.8em 0 .5em; line-height: 1.3; }
.prose p, .prose li { color: #34483d; }
.prose img { border-radius: 15px; }
.notice-box, .empty-state { padding: 26px; border: 1px solid var(--q2-border); border-radius: 17px; background: var(--q2-paper); }
.notice-box p:last-child, .empty-state p:last-child { margin-bottom: 0; }
.faq-list { max-width: 850px; margin-inline: auto; }
.faq-list details { margin: 0 0 12px; padding: 18px 21px; border: 1px solid var(--q2-border); border-radius: 14px; background: #fff; }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list details p { margin: 11px 0 0; color: var(--q2-muted); }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.material-card h2 { margin: 0; font-size: 1.18rem; }
.pdf-viewer { width: 100%; height: min(78vh, 900px); min-height: 500px; margin-top: 24px; overflow: hidden; border: 1px solid var(--q2-border); border-radius: 16px; background: #f1f4f1; }
.pdf-viewer iframe { display: block; width: 100%; height: 100%; border: 0; }
.pdf-fallback { margin-top: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) 260px; align-items: start; justify-content: space-between; gap: 40px; }
.article-content > h1 { margin: 8px 0 25px; font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.15; }
.article-featured { margin: 25px 0; }
.article-featured img { display: block; width: 100%; border-radius: 18px; }
.article-aside { position: sticky; top: 110px; }
.aside-card { padding: 22px; border: 1px solid var(--q2-border); border-radius: 17px; background: var(--q2-paper); }
.aside-card h2 { font-size: 1.2rem; }
.aside-card p { color: var(--q2-muted); font-size: .92rem; }
.search-form { display: flex; width: min(100%, 520px); gap: 8px; margin-top: 18px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d7e2d7; border-radius: 10px; background: #fff; }
.search-submit { min-height: 44px; padding: 8px 15px; border: 0; border-radius: 10px; color: #fff; background: var(--q2-green); font-weight: 800; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.comments-area { margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--q2-border); }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] { width: 100%; padding: 10px; border: 1px solid var(--q2-border); border-radius: 9px; }
.comments-area .form-submit input { padding: 10px 15px; border: 0; border-radius: 10px; color: #fff; background: var(--q2-green); font-weight: 800; cursor: pointer; }
.pagination, .nav-links.pagination { margin-top: 30px; }
.page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; margin: 2px; padding: 5px 10px; border: 1px solid var(--q2-border); border-radius: 9px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--q2-green); }

.site-footer { padding: 52px 0 18px; color: #d2dfd6; background: #092f23; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 45px; }
.footer-brand { color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-tagline { color: #bbcdc2; }
.site-footer h2 { margin: 0 0 13px; color: #fff; font-size: 1rem; }
.site-footer p { max-width: 340px; color: #bbcdc2; font-size: .92rem; }
.site-footer .footer-links { display: grid; justify-items: start; gap: 7px; margin: 0 0 12px; }
.site-footer .footer-links a { color: #d2dfd6; font-weight: 550; }
.site-footer .footer-links a:hover { color: var(--q2-lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); color: #aebfb4; font-size: .83rem; }

@media (min-width: 981px) and (max-width: 1180px) {
    .primary-nav { gap: 5px; }
    .menu-list { gap: 0; }
    .menu-list > li > a { padding-inline: 5px; font-size: .84rem; }
    .nav-cta, .nav-account { padding-inline: 9px; font-size: .8rem; }
}

/* WooCommerce and bbPress */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 15px; border: 1px solid var(--q2-border); border-radius: 16px; background: #fff; }
.woocommerce ul.products li.product a img { border-radius: 10px; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .bbp-submit-wrapper button { border-radius: 10px; color: #fff; background: var(--q2-green); }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: #fff; background: var(--q2-green-dark); }
.woocommerce div.product div.images img { border-radius: 15px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .bbp-the-content-wrapper textarea { padding: 10px; border: 1px solid var(--q2-border); border-radius: 9px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--q2-green); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--q2-green); }
.bbp-forums, .bbp-topics, .bbp-replies { border-color: var(--q2-border); }
.bbp-forum-title a, .bbp-topic-permalink { color: var(--q2-green); }

@media (max-width: 980px) {
    .header-inner { min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .primary-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; gap: 12px; padding: 2px 0 10px; }
    .primary-nav.is-open { display: flex; }
    .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
    .menu-list > li > a { display: flex; min-height: 42px; padding: 8px 9px; white-space: normal; }
    .menu-list > .menu-item-has-children { grid-column: 1 / -1; }
    .menu-list .menu-item-has-children > .sub-menu { position: static; grid-column: 1 / -1; display: grid; width: 100%; margin: 3px 0 8px; padding: 5px; border-radius: 14px; box-shadow: none; animation: none; }
    .menu-list .sub-menu a { min-height: 54px; padding: 7px; }
    .menu-card-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
    .nav-cta, .nav-account { align-self: flex-start; }
    .nav-account-menu { align-self: flex-start; }
    .nav-account-dropdown { position: static; width: min(280px, calc(100vw - 40px)); margin-top: 5px; box-shadow: none; }
    .hero-grid { gap: 28px; }
    .hero-art { min-height: 500px; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 25px; }
}
@media (max-width: 700px) {
    .hero { padding: 54px 0 42px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { min-height: 440px; }
    .app-slider { width: min(100%, 380px); height: min(65svh, 480px); }
    .app-slider-control { width: 39px; height: 39px; }
    .feature-grid, .post-grid, .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card { min-height: 210px; padding: 19px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
}
@media (max-width: 520px) {
    .container { width: min(100% - 32px, 1160px); }
    .brand { gap: 7px; }
    .brand-mark { width: 39px; height: 39px; }
    .site-logo-image { max-width: 43px; max-height: 43px; }
    .brand-title { font-size: .98rem; }
    .brand-tagline { max-width: 46vw; font-size: .61rem; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .hero-art { min-height: 390px; }
    .app-slider { height: min(58svh, 430px); }
    .section { padding: 55px 0; }
    .feature-grid, .post-grid, .material-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .heading-row, .cta-inner { align-items: flex-start; flex-direction: column; }
    .page-hero { padding: 46px 0 38px; }
    .footer-grid { grid-template-columns: 1fr; gap: 23px; }
    .footer-bottom { flex-direction: column; gap: 3px; }
    .pdf-viewer { height: 72vh; min-height: 380px; }
    .woocommerce ul.products[class*="columns-"] li.product { width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.q2-quiz-section { background: #f3f7f2; }
.book-download-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 82% 12%, rgba(217, 247, 107, .3), transparent 30%), linear-gradient(120deg, #063d2b, #087b42); }
.book-download-hero-inner { display: grid; min-height: 360px; grid-template-columns: 1fr .55fr; align-items: center; gap: 30px; padding-block: 54px; }
.book-download-hero-copy { position: relative; z-index: 1; max-width: 700px; }
.book-download-hero .eyebrow { color: #e6f7bf; background: rgba(255, 255, 255, .13); }
.book-download-hero h1 { margin: 16px 0 10px; font-size: clamp(2.7rem, 5vw, 4.2rem); line-height: 1.1; letter-spacing: -.045em; }
.book-download-hero p { max-width: 660px; margin: 0; color: #d7e8dc; font-size: 1.08rem; }
.book-download-hero .button { margin-top: 24px; color: #173521; background: var(--q2-lime); box-shadow: none; }
.book-download-hero .button:hover { background: #e8ff9a; }
.book-download-hero-art { position: relative; display: grid; min-height: 230px; place-items: center; }
.book-download-stack { display: grid; width: 210px; min-height: 190px; align-content: center; justify-items: center; transform: rotate(5deg); border: 1px solid rgba(255, 255, 255, .65); border-radius: 24px; color: #173521; background: linear-gradient(145deg, #f4ffd7, #b8e878); box-shadow: 18px 17px 0 rgba(255, 255, 255, .15), 0 26px 55px rgba(0, 0, 0, .22); }
.book-download-stack span { color: #397044; font-size: .95rem; font-weight: 850; letter-spacing: .16em; }
.book-download-stack strong { margin: 4px 0; font-size: 2.1rem; }
.book-download-stack small { color: #55745b; font-size: .67rem; font-weight: 850; letter-spacing: .12em; }
.book-download-spark { position: absolute; color: var(--q2-lime); font-size: 2.1rem; }
.book-download-spark-one { top: 20px; right: 25px; }
.book-download-spark-two { bottom: 20px; left: 18px; font-size: 1.35rem; }
.book-download-content { background: #fbfdf9; }
.book-download-heading { margin-bottom: 27px; }
.book-level-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 52px; }
.book-level-nav a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid #dce8d9; border-radius: 999px; color: var(--q2-green-dark); background: #fff; font-size: .92rem; font-weight: 800; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.book-level-nav a:hover { transform: translateY(-2px); border-color: #9cca9d; background: #f0f8e9; }
.book-track { margin: 0 0 38px; scroll-margin-top: 105px; }
.book-track-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.book-track-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; color: var(--q2-green); background: #e8f5da; font-size: 1.45rem; font-weight: 850; }
.book-track-kicker { color: var(--q2-muted); font-size: .78rem; font-weight: 800; }
.book-track-heading h2, .higher-secondary-card h2 { margin: 0; font-size: 1.48rem; line-height: 1.35; }
.book-class-list { display: grid; gap: 11px; }
.book-class { overflow: hidden; border: 1px solid var(--q2-border); border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(16, 53, 33, .035); scroll-margin-top: 105px; }
.book-class > summary { display: flex; min-height: 68px; align-items: center; gap: 14px; padding: 14px 19px; cursor: pointer; list-style: none; }
.book-class > summary::-webkit-details-marker { display: none; }
.book-class-grade { font-size: 1.04rem; font-weight: 850; }
.book-class-count { margin-left: auto; color: var(--q2-muted); font-size: .86rem; }
.book-class-chevron { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--q2-green); background: #eff7e9; font-size: 1.15rem; transition: transform .2s; }
.book-class[open] > summary { border-bottom: 1px solid var(--q2-border); background: #fcfef9; }
.book-class[open] .book-class-chevron { transform: rotate(180deg); }
.book-class-content { padding: 18px; }
.book-official-links { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.book-official-link { padding: 7px 12px; border: 1px solid #dce9d7; border-radius: 9px; color: var(--q2-green-dark); background: #f5faef; font-size: .84rem; font-weight: 800; text-decoration: none; }
.book-official-link:hover { border-color: #abd29b; background: #edf7e3; }
.book-table-scroll { overflow-x: auto; border: 1px solid var(--q2-border); border-radius: 11px; }
.book-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.book-table thead { color: #fff; background: #104c35; }
.book-table th, .book-table td { padding: 11px 13px; border-bottom: 1px solid #e9efe6; text-align: left; vertical-align: middle; }
.book-table thead th { font-weight: 800; white-space: nowrap; }
.book-table tbody tr:last-child > * { border-bottom: 0; }
.book-table tbody tr:nth-child(even) { background: #f8fbf6; }
.book-table tbody th { width: 55px; color: var(--q2-muted); font-weight: 750; }
.book-download-links { display: flex; flex-wrap: wrap; gap: 6px; }
.book-download-links a { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 7px; color: #fff; background: var(--q2-green); font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.book-download-links a:hover { color: #fff; background: var(--q2-green-dark); }
.book-link-missing { color: #7d8980; font-size: .82rem; }
.book-link-shared { color: var(--q2-muted); font-size: .82rem; font-weight: 700; }
.higher-secondary-card { display: grid; gap: 18px; margin-top: 44px; padding: 22px; border: 1px solid #dce8d9; border-radius: 18px; background: linear-gradient(120deg, #f1f8e9, #fff); scroll-margin-top: 105px; }
.higher-secondary-heading { display: flex; align-items: center; gap: 16px; }
.higher-secondary-heading > div { flex: 1; }
.higher-secondary-heading p { margin: 5px 0 0; color: var(--q2-muted); font-size: .9rem; }
.book-table-single { min-width: 540px; }
.higher-secondary-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.book-download-note { max-width: 850px; margin: 25px auto 0; color: var(--q2-muted); font-size: .86rem; text-align: center; }
.subscription-section { background: #f6f8f3; }
.subscription-page > .page-hero { background: radial-gradient(ellipse at 90% 10%, #e9e7c9 0, transparent 34%), linear-gradient(135deg, #fbfaf1, #f0efdb); }
.subscription-page > .page-hero .eyebrow { color: #65631c; background: #eeedcd; }
.subscription-benefits { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; margin-bottom: 40px; padding: 28px; border: 1px solid #dfe8d9; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(16, 53, 33, .055); }
.subscription-benefits-heading h2 { margin: 12px 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.3; }
.subscription-benefits-heading p, .subscription-heading p { margin: 0; color: var(--q2-muted); }
.subscription-benefits > ul, .subscription-card-features { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.subscription-benefits > ul li { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; }
.subscription-benefits > ul li span { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; color: #087b61; background: #def4e9; font-size: .83rem; font-weight: 900; }
.subscription-status { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; padding: 15px 18px; border: 1px solid #e2e9dc; border-radius: 14px; color: var(--q2-muted); background: #fff; font-size: .94rem; font-weight: 700; }
.subscription-status-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; color: var(--q2-brand-olive); background: #f0efd9; }
.subscription-status.is-active { border-color: #b8e4ca; color: #17623b; background: #f3fbf5; }
.subscription-status.is-active .subscription-status-icon { color: #fff; background: #16834b; }
.subscription-status.is-pending { border-color: #f2deb0; color: #78581b; background: #fffaf0; }
.subscription-status.is-error { border-color: #f2c6c1; color: #9d3329; background: #fff6f5; }
.subscription-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.subscription-heading h2 { margin: 8px 0 3px; font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1.2; }
.subscription-selected-notice { display: flex; align-items: center; gap: 13px; margin: -6px 0 24px; padding: 16px 18px; border: 1px solid #d9d7a7; border-radius: 15px; color: #4c4a18; background: #f5f4e4; }
.subscription-selected-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 50%; color: #fff; background: var(--q2-brand-olive); font-weight: 900; }
.subscription-selected-notice strong { display: block; }
.subscription-selected-notice p { margin: 3px 0 0; color: #666439; font-size: .9rem; }
.subscription-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: stretch; gap: 18px; }
.subscription-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 23px 21px 19px; border: 1px solid #e2e7df; border-radius: 21px; background: #fff; box-shadow: 0 8px 24px rgba(16, 53, 33, .045); transition: transform .2s, box-shadow .2s, border-color .2s; }
.subscription-card:hover { transform: translateY(-4px); border-color: #c7d9c4; box-shadow: var(--q2-shadow); }
.subscription-card.is-popular { border: 2px solid #f28128; box-shadow: 0 14px 34px rgba(226, 110, 27, .13); }
.subscription-card.is-selected { border: 2px solid var(--q2-brand-olive); box-shadow: 0 0 0 4px rgba(129, 127, 38, .12), 0 14px 34px rgba(60, 59, 17, .1); }
.subscription-popular { position: absolute; top: -13px; left: 50%; padding: 4px 12px; transform: translateX(-50%); border-radius: 999px; color: #fff; background: linear-gradient(90deg, #f28a19, #ee572f); font-size: .74rem; font-weight: 850; white-space: nowrap; }
.subscription-card-icon { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 15px; color: #fff; background: #15966c; box-shadow: 0 5px 12px rgba(21, 150, 108, .22); font-size: 1.5rem; font-weight: 850; }
.subscription-card-blue .subscription-card-icon { background: #2465ca; box-shadow: 0 5px 12px rgba(36, 101, 202, .22); }
.subscription-card-orange .subscription-card-icon { background: #eb711c; box-shadow: 0 5px 12px rgba(235, 113, 28, .22); }
.subscription-card-purple .subscription-card-icon { background: #7947c7; box-shadow: 0 5px 12px rgba(121, 71, 199, .22); }
.subscription-card h3 { margin: 17px 0 3px; font-size: 1.12rem; line-height: 1.35; }
.subscription-card-duration { margin: 0; color: var(--q2-muted); font-size: .86rem; }
.subscription-price { display: flex; align-items: baseline; gap: 3px; margin: 18px 0; color: #087b61; font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; }
.subscription-price span { font-size: 1.12rem; letter-spacing: 0; }
.subscription-card-blue .subscription-price { color: #2465ca; }
.subscription-card-orange .subscription-price { color: #e36e1c; }
.subscription-card-purple .subscription-price { color: #7947c7; }
.subscription-card-features { gap: 9px; margin-bottom: 22px; }
.subscription-card-features li { position: relative; padding-left: 22px; color: #405349; font-size: .84rem; line-height: 1.5; }
.subscription-card-features li::before { position: absolute; top: 1px; left: 0; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #168b62; background: #e0f4eb; content: "✓"; font-size: .65rem; font-weight: 900; }
.subscription-plan-button { display: flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 9px 12px; border: 1px solid #b7dbc9; border-radius: 999px; color: #087b61; font-size: .87rem; font-weight: 850; text-align: center; text-decoration: none; transition: color .2s, background .2s; }
.subscription-plan-button:hover { color: #fff; background: #087b61; }
.subscription-card.is-popular .subscription-plan-button { border-color: transparent; color: #fff; background: linear-gradient(90deg, #f28a19, #ee572f); box-shadow: 0 7px 17px rgba(226, 110, 27, .18); }
.subscription-card.is-popular .subscription-plan-button:hover { background: #d85127; }
.subscription-plan-note { margin: 10px 0 0; color: #77847c; font-size: .73rem; line-height: 1.5; text-align: center; }
.subscription-payment-note { margin-top: 28px; padding: 18px 20px; border: 1px solid #e7e9d2; border-radius: 15px; background: #fbfcf4; }
.subscription-payment-note strong { color: var(--q2-ink); }
.subscription-payment-note p { margin: 5px 0 0; color: var(--q2-muted); font-size: .9rem; }
.subscription-error { margin: 12px 0; }
.subscription-error h3 { margin-top: 0; }
.account-section { display: grid; min-height: calc(100vh - 160px); align-items: center; padding-block: 64px; background: radial-gradient(ellipse at 10% 12%, rgba(247, 247, 218, .24), transparent 35%), linear-gradient(135deg, #77751e, var(--q2-brand-olive) 53%, #93904a); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); align-items: center; gap: clamp(35px, 7vw, 86px); }
.account-intro { max-width: 590px; color: #fff; }
.account-back-link { display: inline-block; margin-bottom: 34px; color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; }
.account-back-link:hover { color: #f3f0c8; }
.account-intro .eyebrow { color: #fbf8d5; background: rgba(255, 255, 255, .15); }
.account-intro h1 { margin: 17px 0 13px; color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.13; letter-spacing: -.04em; }
.account-intro > p { max-width: 550px; margin: 0; color: rgba(255, 255, 255, .88); font-size: 1.07rem; }
.account-benefit { display: flex; align-items: flex-start; gap: 13px; max-width: 500px; margin-top: 29px; padding: 16px 17px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 15px; background: rgba(53, 52, 11, .13); }
.account-benefit > span { color: #f4efae; font-size: 1.35rem; }
.account-benefit strong { color: #fff; }
.account-benefit p { margin: 4px 0 0; color: rgba(255, 255, 255, .83); font-size: .88rem; }
.account-card { padding: 31px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(41, 40, 9, .24); }
.account-card-brand { margin-bottom: 21px; }
.account-card-brand .brand-mark { border-color: #e8e5ae; background: linear-gradient(145deg, #929044, #66651e); box-shadow: 0 6px 16px rgba(129, 127, 38, .22); }
.account-card > .eyebrow { color: #64621e; background: #f1f0dc; }
.account-card h2 { margin: 14px 0 4px; font-size: 1.8rem; line-height: 1.25; }
.account-card-description { margin: 0 0 18px; color: var(--q2-muted); font-size: .91rem; }
.account-package-selected { display: grid; gap: 2px; margin-bottom: 16px; padding: 11px 13px; border: 1px solid #e1dfba; border-radius: 11px; background: #f8f7ed; }
.account-package-selected[hidden], .account-signup-fields[hidden], .account-privacy[hidden] { display: none !important; }
.account-package-selected span { color: var(--q2-muted); font-size: .77rem; }
.account-package-selected strong { color: #5f5d1d; }
.account-form-status { margin: 0; padding: 0; color: var(--q2-muted); font-size: .86rem; }
.account-form-status:empty { display: none; }
.account-form-status:not(:empty) { margin-bottom: 13px; }
.account-form-status.is-error { padding: 10px 12px; border-radius: 9px; color: #9d3329; background: #fff1ef; }
.account-form-status.is-success { padding: 10px 12px; border-radius: 9px; color: #17623b; background: #eef9ef; }
.account-form, .account-signup-fields { display: grid; gap: 9px; }
.account-form label { margin-top: 4px; font-size: .87rem; font-weight: 750; }
.account-form input[type="email"], .account-form input[type="password"], .account-form input[type="text"] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #dcded4; border-radius: 10px; color: var(--q2-ink); background: #fff; }
.account-form input:focus { outline: 3px solid rgba(129, 127, 38, .16); border-color: var(--q2-brand-olive); }
.account-privacy { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 2px; }
.account-privacy input { flex: 0 0 17px; width: 17px; height: 17px; margin: 4px 0 0; accent-color: var(--q2-brand-olive); }
.account-privacy label { margin: 0; color: #46554b; font-size: .81rem; font-weight: 500; line-height: 1.6; }
.account-privacy a, .account-mode-switch a { color: #68661f; font-weight: 850; }
.account-submit { width: 100%; margin-top: 10px; background: var(--q2-brand-olive); box-shadow: 0 8px 19px rgba(129, 127, 38, .19); }
.account-submit:hover { background: #6a681e; }
.account-submit:disabled { opacity: .65; cursor: wait; }
.account-mode-switch { margin: 17px 0 0; color: var(--q2-muted); font-size: .87rem; text-align: center; }
.account-security-note { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid #edf0e8; color: #77847c; font-size: .76rem; line-height: 1.55; text-align: center; }
.payment-section, .profile-section { background: #fbfaf3; }
.payment-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 24px; }
.payment-package-card, .payment-methods, .profile-card, .profile-help-card { padding: clamp(22px, 4vw, 34px); border: 1px solid #e8e6d5; border-radius: 21px; background: #fff; box-shadow: var(--q2-shadow); }
.payment-package-card { position: sticky; top: 110px; }
.payment-package-card h2 { margin: 16px 0 5px; font-size: 1.8rem; line-height: 1.3; }
.payment-package-duration { margin: 0; color: var(--q2-muted); }
.payment-package-price { margin: 20px 0; color: var(--q2-brand-olive); font-size: 2.8rem; font-weight: 900; line-height: 1.1; }
.payment-package-features { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.payment-package-features li { position: relative; padding-left: 23px; color: #405349; font-size: .91rem; }
.payment-package-features li::before { position: absolute; left: 0; color: var(--q2-brand-olive); content: "✓"; font-weight: 900; }
.payment-change-package { color: #68661f; font-size: .88rem; font-weight: 800; }
.payment-methods > h2 { margin: 0; font-size: 1.65rem; }
.payment-methods-intro { margin: 5px 0 20px; color: var(--q2-muted); }
.payment-method-card { display: flex; align-items: flex-start; gap: 16px; margin-top: 13px; padding: 17px; border: 1px solid #e5e9df; border-radius: 15px; background: #fff; }
.payment-method-google { border-color: #cbd9b5; background: linear-gradient(135deg, #fff, #fbfcf4); }
.payment-method-unavailable { background: #fafaf8; }
.payment-method-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 13px; color: #fff; background: #4285f4; font-size: 1.4rem; font-weight: 900; }
.payment-method-bkash { background: #d12053; font-size: 1rem; }
.payment-method-card-icon { color: #5c5a1a; background: #eeeddc; font-size: .72rem; }
.payment-method-copy { min-width: 0; flex: 1; }
.payment-method-copy h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; font-size: 1.05rem; }
.payment-method-copy p { margin: 5px 0 0; color: var(--q2-muted); font-size: .86rem; line-height: 1.6; }
.payment-method-button { min-height: 41px; margin-top: 13px; padding: 8px 14px; background: var(--q2-brand-olive); box-shadow: none; font-size: .87rem; }
.payment-method-button:hover { background: #68661f; }
.payment-coming-soon { padding: 3px 8px; border-radius: 999px; color: #6a681e; background: #f1f0dc; font-size: .67rem; font-weight: 800; }
.payment-safety-note { margin: 17px 0 0; padding: 12px 14px; border-radius: 11px; color: #68661f; background: #f8f7ed; font-size: .82rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); align-items: start; gap: 24px; }
.profile-card-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.profile-card-heading h2, .profile-help-card h2 { margin: 8px 0 0; font-size: 1.55rem; }
.profile-avatar-wrap { position: relative; display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; overflow: hidden; border: 1px solid #e8e5ae; border-radius: 50%; color: #fff; background: var(--q2-brand-olive); font-size: 1.4rem; font-weight: 850; }
.profile-avatar-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-wrap img[hidden], .profile-avatar-wrap [hidden] { display: none; }
.profile-form { display: grid; gap: 9px; }
.profile-form[hidden], .profile-login-button[hidden] { display: none; }
.profile-form label { margin-top: 7px; font-size: .88rem; font-weight: 750; }
.profile-form input:not([type="file"]), .profile-form textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #dcded4; border-radius: 10px; color: var(--q2-ink); background: #fff; }
.profile-form input:focus, .profile-form textarea:focus { outline: 3px solid rgba(129, 127, 38, .16); border-color: var(--q2-brand-olive); }
.profile-form input[type="file"] { max-width: 100%; padding: 8px; border: 1px solid #e5e7dd; border-radius: 10px; background: #fafaf6; }
.profile-form small { color: var(--q2-muted); font-size: .78rem; }
.profile-submit { margin-top: 12px; background: var(--q2-brand-olive); box-shadow: none; }
.profile-submit:hover { background: #68661f; }
.profile-submit:disabled, .profile-logout:disabled { opacity: .65; cursor: wait; }
.profile-form-status { margin: 0 0 12px; color: var(--q2-muted); font-size: .88rem; }
.profile-form-status:empty { display: none; }
.profile-form-status.is-error { padding: 10px 12px; border-radius: 9px; color: #9d3329; background: #fff1ef; }
.profile-form-status.is-success { padding: 10px 12px; border-radius: 9px; color: #17623b; background: #eef9ef; }
.profile-subscription-status { display: grid; gap: 7px; margin-top: 21px; padding: 14px 16px; border: 1px solid #e8e6d5; border-radius: 12px; color: #435349; background: #fbfaf3; font-size: .88rem; }
.profile-subscription-status strong { color: var(--q2-ink); font-size: .95rem; }
.profile-subscription-status a { color: #68661f; font-weight: 800; text-decoration: none; }
.profile-subscription-status.is-active { border-color: #c8dfc9; color: #17623b; background: #eef9ef; }
.profile-subscription-status.is-pending { border-color: #e8dfae; color: #68611e; background: #fbf8e8; }
.profile-subscription-status.is-error { border-color: #f0c8c4; color: #9d3329; background: #fff1ef; }
.profile-help-card p { color: var(--q2-muted); font-size: .91rem; }
.profile-logout { margin-top: 8px; }
.q2-quiz-app { overflow: hidden; border: 1px solid var(--q2-border); border-radius: 22px; background: #fff; box-shadow: var(--q2-shadow); }
.q2-quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--q2-border); }
.q2-quiz-header h2 { margin: 7px 0 0; font-size: 1.55rem; }
.q2-quiz-score { display: grid; min-width: 95px; justify-items: center; padding: 8px 14px; border-radius: 13px; color: #fff; background: var(--q2-green-dark); line-height: 1.35; }
.q2-quiz-score span { font-size: .78rem; }
.q2-quiz-score strong { font-size: 1.15rem; }
.q2-quiz-toolbar { display: flex; align-items: center; gap: 12px; padding: 17px 26px; border-bottom: 1px solid var(--q2-border); }
.q2-quiz-toolbar label { font-weight: 750; }
.q2-quiz-toolbar select { min-width: 210px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--q2-border); border-radius: 10px; background: #fff; }
.q2-quiz-toolbar .button { margin-left: auto; }
.q2-quiz-status { min-height: 28px; margin: 0; padding: 8px 26px; color: var(--q2-muted); background: #f8fbf7; font-size: .9rem; }
.q2-quiz-status.is-error { color: #a12626; background: #fff5f3; }
.q2-quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; padding: 22px; }
.q2-question-panel { padding: 22px; border-radius: 18px; color: #f3f8f4; background: #111b17; }
.q2-question-meta { display: flex; justify-content: space-between; gap: 12px; color: #d8e5db; font-size: .86rem; }
.q2-question-panel h3 { margin: 18px 0; color: #fff; font-size: clamp(1.2rem, 2.5vw, 1.65rem); line-height: 1.6; }
.q2-exam-refs { margin: -7px 0 18px; color: #c8d5cc; font-size: .86rem; }
.q2-options { display: grid; gap: 11px; }
.q2-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 2px solid transparent; border-radius: 12px; color: #173521; background: #e4f5e8; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.q2-option:hover:not(:disabled) { border-color: #b7dc72; background: #effbe7; }
.q2-option:disabled { cursor: default; }
.q2-option-letter { display: inline-grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #327950; font-weight: 800; line-height: 1; }
.q2-option-text { padding-top: 1px; }
.q2-option.is-correct { border-color: #52bd75; background: #d4f4dc; }
.q2-option.is-wrong { border-color: #e17a70; background: #ffe0dc; }
.q2-option.is-wrong .q2-option-letter { background: #bd3d32; }
.q2-answer-result { margin-top: 16px; padding: 11px 14px; border-radius: 10px; font-weight: 800; }
.q2-answer-result.is-correct { color: #c9f3d1; background: rgba(27, 135, 67, .3); }
.q2-answer-result.is-wrong { color: #ffd3ce; background: rgba(170, 53, 44, .3); }
.q2-question-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.q2-question-actions .button-outline { border-color: #54685b; color: #ecf4ed; background: transparent; }
.q2-question-actions .button-outline:hover { background: #293a30; }
.q2-question-actions button:disabled { opacity: .5; cursor: not-allowed; }
.q2-explanation { margin-top: 15px; padding: 15px; border-left: 4px solid #b6db60; border-radius: 5px 11px 11px 5px; color: #e4eee6; background: #202c25; white-space: pre-line; }
.q2-quiz-result-panel { align-self: start; padding: clamp(20px, 3vw, 32px); border: 1px solid #dfe8dc; border-radius: 18px; background: linear-gradient(145deg, #f6fbf4, #fff); }
.q2-quiz-result-panel h3 { margin: 8px 0; color: var(--q2-ink); font-size: clamp(1.5rem, 3vw, 2rem); }
.q2-quiz-result-panel > p { margin: 0 0 22px; color: var(--q2-muted); }
.q2-result-chart { display: grid; gap: 18px; margin: 22px 0 25px; }
.q2-result-bar-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 32px; align-items: center; gap: 11px; color: #465347; font-size: .88rem; }
.q2-result-bar-row strong { color: var(--q2-ink); text-align: right; }
.q2-result-bar-track { height: 17px; overflow: hidden; border-radius: 99px; background: #e9eee5; }
.q2-result-bar { width: 0; height: 100%; border-radius: inherit; transition: width .55s ease; }
.q2-result-bar.is-correct { background: linear-gradient(90deg, #13804b, #58bd72); }
.q2-result-bar.is-wrong { background: linear-gradient(90deg, #d44d45, #f08d6e); }
.q2-auth-panel { align-self: start; padding: 20px; border: 1px solid var(--q2-border); border-radius: 16px; background: #f8fbf7; }
.q2-auth-heading h3, .q2-favorites-panel h3 { margin: 0 0 5px; font-size: 1.1rem; }
.q2-auth-heading p { margin: 0 0 15px; color: var(--q2-muted); font-size: .9rem; }
.q2-auth-anchor { display: block; scroll-margin-top: 115px; }
.q2-auth-form { display: grid; gap: 8px; }
.q2-auth-form label { margin-top: 4px; font-size: .88rem; font-weight: 750; }
.q2-auth-form input { width: 100%; padding: 10px 11px; border: 1px solid #d5e2d6; border-radius: 9px; background: #fff; }
.q2-auth-form [data-q2-auth-submit] { width: 100%; margin-top: 8px; }
.q2-auth-switch { padding: 3px; border: 0; color: var(--q2-green); background: transparent; font-size: .87rem; font-weight: 750; cursor: pointer; }
.q2-auth-switch:hover { text-decoration: underline; }
.q2-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; }
.q2-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 4px 0 0; accent-color: var(--q2-green); }
.q2-consent label { margin: 0; font-size: .85rem; font-weight: 550; line-height: 1.55; }
.q2-consent a { font-weight: 800; }
.q2-favorites-panel { margin: 0 22px 22px; padding: 20px; border: 1px solid var(--q2-border); border-radius: 15px; background: #f8fbf7; }
.q2-favorites-panel > h3 { margin-bottom: 14px; }
.q2-favorite-card { margin-top: 12px; padding: 14px; border: 1px solid var(--q2-border); border-radius: 12px; background: #fff; }
.q2-favorite-card h4 { margin: 0 0 8px; }
.q2-favorite-card ul { margin: 0; padding-left: 22px; }
.q2-favorite-card li.is-correct { color: var(--q2-green); font-weight: 800; }
.q2-favorite-card p { margin-bottom: 0; color: var(--q2-muted); }

@media (max-width: 800px) {
    .q2-quiz-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .q2-quiz-header, .q2-quiz-toolbar { align-items: flex-start; flex-direction: column; }
    .q2-quiz-header { padding: 18px; }
    .q2-quiz-toolbar { padding: 15px 18px; }
    .q2-quiz-toolbar select { width: 100%; }
    .q2-quiz-toolbar .button { margin-left: 0; }
    .q2-quiz-layout { padding: 14px; }
    .q2-question-panel { padding: 17px; }
    .q2-favorites-panel { margin: 0 14px 14px; padding: 15px; }
}

@media (max-width: 700px) {
    .book-download-hero-inner { grid-template-columns: 1fr; padding-block: 48px 22px; }
    .book-download-hero-art { min-height: 210px; }
    .pdf-books-intro { align-items: flex-start; flex-direction: column; gap: 9px; }
    .pdf-reader-heading { align-items: flex-start; flex-direction: column; }
    .pdf-reader-layout { grid-template-columns: 1fr; }
    .pdf-highlights-panel { position: static; }
    .pdf-highlights-panel ol { max-height: 260px; }
    .pdf-document-wrap { min-height: 0; padding: 6px; }
    .book-level-nav { justify-content: flex-start; margin-bottom: 40px; }
    .book-class-content { padding: 12px; }
    .subscription-benefits { grid-template-columns: 1fr; gap: 21px; padding: 22px; }
    .subscription-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 13px; }
    .subscription-card { padding: 20px 17px 17px; }
    .account-section { min-height: 0; padding-block: 42px; }
    .account-layout { grid-template-columns: 1fr; gap: 28px; }
    .account-back-link { margin-bottom: 24px; }
    .account-intro h1 { font-size: clamp(2.25rem, 10vw, 3.1rem); }
    .payment-layout, .profile-layout { grid-template-columns: 1fr; }
    .payment-package-card { position: static; }
}
@media (max-width: 520px) {
    .pdf-book-card { min-height: 74px; gap: 10px; padding: 11px 12px; border-radius: 18px; }
    .pdf-book-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .pdf-book-copy p { font-size: .7rem; }
    .pdf-book-open { min-width: 58px; padding: 7px 8px; font-size: .95rem; }
    .pdf-reader { padding: 12px; border-radius: 16px; }
    .pdf-reader-toolbar { gap: 7px; padding: 9px; }
    .pdf-tool-button { font-size: .75rem; }
    .pdf-highlight-count { width: 100%; }
    .book-download-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .book-download-stack { width: 180px; min-height: 165px; }
    .book-download-stack strong { font-size: 1.8rem; }
    .book-class > summary { gap: 9px; padding-inline: 13px; }
    .book-class-count { font-size: .78rem; }
    .book-track-heading h2, .higher-secondary-card h2 { font-size: 1.25rem; }
    .higher-secondary-card { padding: 17px; }
    .higher-secondary-heading { align-items: flex-start; }
    .higher-secondary-heading h2 { overflow-wrap: anywhere; }
    .subscription-grid { grid-template-columns: 1fr; gap: 22px; }
    .subscription-card { padding: 23px 21px 19px; }
    .subscription-benefits { padding: 19px; }
    .account-card { padding: 23px 19px; border-radius: 19px; }
    .account-benefit { padding: 13px; }
    .payment-method-card { gap: 12px; padding: 14px; }
    .payment-method-icon { width: 39px; height: 39px; flex-basis: 39px; }
}


/* ==========================================================================
   FORUM STYLES — শিক্ষার্থী ফোরামের CSS
   ========================================================================== */

.q2-forum-wrap { max-width: 900px; margin: 0 auto; }

.q2-forum-hero {
    background: var(--q2-primary, #2563eb);
    color: #fff;
    padding: 48px 20px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    margin-bottom: 32px;
}
.q2-forum-hero .eyebrow {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}
.q2-forum-hero h1 { margin: 0; font-size: 1.8rem; }
.q2-forum-hero p { margin-top: 10px; opacity: 0.95; max-width: 600px; margin-left: auto; margin-right: auto; }

.q2-forum-section { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.q2-forum-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }

.q2-forum-category-filter { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.q2-forum-category-filter label { font-size: 0.85rem; color: #666; margin: 0; }
.q2-forum-category-filter select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; }

.q2-forum-new-topic-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}
.q2-forum-new-topic-form h3 { margin-top: 0; font-size: 1.15rem; margin-bottom: 16px; }
.q2-forum-form-note { margin: -6px 0 16px; color: var(--q2-muted); font-size: .84rem; line-height: 1.55; }
.q2-forum-error { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 0.9rem; }

.q2-form-group { margin-bottom: 14px; }
.q2-form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: #334155; }
.q2-form-group input,
.q2-form-group select,
.q2-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}
.q2-form-group input:focus,
.q2-form-group select:focus,
.q2-form-group textarea:focus {
    outline: none;
    border-color: var(--q2-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.q2-form-group textarea { resize: vertical; min-height: 120px; }

.q2-forum-topic-list { display: flex; flex-direction: column; gap: 14px; }

.q2-forum-topic-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.q2-forum-topic-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.q2-forum-topic-meta { display: flex; gap: 12px; font-size: 0.8rem; margin-bottom: 8px; color: #64748b; }
.q2-forum-topic-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}
.q2-forum-topic-card h3 { margin: 0 0 8px 0; font-size: 1.1rem; line-height: 1.4; }
.q2-forum-topic-card h3 a { color: #1e293b; text-decoration: none; font-weight: 600; }
.q2-forum-topic-card h3 a:hover { color: var(--q2-primary, #2563eb); text-decoration: underline; }
.q2-forum-topic-excerpt { color: #475569; font-size: 0.9rem; line-height: 1.5; margin-bottom: 10px; }
.q2-forum-topic-author { font-size: 0.8rem; color: #64748b; border-top: 1px solid #f1f5f9; padding-top: 8px; }

.q2-forum-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* Single topic page */
.q2-forum-topic-single { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.q2-forum-topic-content { font-size: 1rem; line-height: 1.7; color: #1e293b; white-space: pre-wrap; }
.q2-forum-topic-meta-bottom { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; font-size: 0.85rem; color: #64748b; display: flex; justify-content: space-between; align-items: center; }

.q2-forum-reply-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.q2-forum-reply-form h3 { margin-top: 0; font-size: 1.15rem; margin-bottom: 16px; }

.q2-forum-replies-list h3 { font-size: 1.15rem; margin-bottom: 16px; color: #1e293b; }

.q2-forum-reply {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #fff;
}
.q2-forum-reply-author { font-weight: 600; font-size: 0.9rem; color: #2563eb; margin-bottom: 6px; }
.q2-forum-reply-content { font-size: 0.95rem; line-height: 1.6; color: #1e293b; white-space: pre-wrap; }

/* Pagination */
.q2-forum-section .container nav { margin-top: 24px; }
.q2-forum-section .container .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
}
.q2-forum-section .container .page-numbers.current,
.q2-forum-section .container .page-numbers:hover {
    background: var(--q2-primary, #2563eb);
    color: #fff;
    border-color: var(--q2-primary, #2563eb);
}

/* Responsive */
@media (max-width: 640px) {
    .q2-forum-toolbar { flex-direction: column; align-items: stretch; }
    .q2-forum-category-filter { margin-left: 0; justify-content: center; }
    .q2-forum-new-topic { width: 100%; text-align: center; }
}

.q2-forum-wrap {
    width: min(1220px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto 72px;
    color: var(--q2-ink);
}
.q2-forum-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 245px;
    margin: 26px 0 28px;
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid #dbeade;
    border-radius: 28px;
    color: var(--q2-ink);
    background:
        radial-gradient(ellipse at 83% 4%, rgba(217, 247, 107, .32), transparent 34%),
        linear-gradient(115deg, #fff 15%, #f0f6e9 100%);
    text-align: left;
}
.q2-forum-hero-copy { max-width: 700px; }
.q2-forum-hero .eyebrow { color: var(--q2-green); font-size: .76rem; font-weight: 850; letter-spacing: .12em; }
.q2-forum-hero h1 { max-width: 680px; margin: 8px 0 10px; color: var(--q2-ink); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; }
.q2-forum-hero p { max-width: 640px; margin: 0; color: var(--q2-muted); font-size: 1.03rem; }
.q2-forum-hero-action { display: grid; justify-items: start; gap: 12px; flex: 0 0 auto; }
.q2-forum-hero-action > span { color: var(--q2-muted); font-size: .86rem; }
.q2-forum-hero-action .button,
.q2-forum-new-topic-form .button,
.q2-forum-empty .button,
.q2-forum-login-prompt .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 12px; color: #fff; background: var(--q2-green); font-weight: 800; text-decoration: none; }
.q2-forum-hero-action .button:hover,
.q2-forum-new-topic-form .button:hover,
.q2-forum-empty .button:hover,
.q2-forum-login-prompt .button:hover { color: #fff; background: var(--q2-green-dark); }
.q2-forum-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 24px; }
.q2-forum-sidebar,
.q2-forum-main { min-width: 0; border: 1px solid var(--q2-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 25px rgba(16, 53, 33, .045); }
.q2-forum-sidebar { position: sticky; top: 92px; overflow: hidden; padding: 20px 14px 14px; }
.q2-forum-sidebar h2 { margin: 0 8px 12px; color: var(--q2-ink); font-size: 1rem; }
.q2-forum-category-link { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0; padding: 8px 10px; border-radius: 10px; color: #40564a; font-size: .88rem; font-weight: 650; text-decoration: none; }
.q2-forum-category-link:hover,
.q2-forum-category-link.is-active { color: var(--q2-green-dark); background: #edf5e9; }
.q2-forum-category-count { display: inline-grid; min-width: 27px; height: 24px; place-items: center; padding: 0 6px; border-radius: 8px; color: var(--q2-muted); background: #f2f5ed; font-size: .74rem; }
.q2-forum-guidelines { margin-top: 18px; padding: 14px; border: 1px solid #e7edda; border-radius: 13px; background: #fafbf5; }
.q2-forum-guidelines strong { color: var(--q2-green-dark); font-size: .88rem; }
.q2-forum-guidelines p { margin: 6px 0 0; color: var(--q2-muted); font-size: .8rem; line-height: 1.6; }
.q2-forum-guidelines a { display: inline-block; margin: 9px 8px 0 0; color: var(--q2-green); font-size: .76rem; font-weight: 750; text-decoration: none; }
.q2-forum-guidelines a:hover { text-decoration: underline; }
.q2-forum-status-notice { margin: 16px 20px 0; padding: 12px 14px; border: 1px solid #bbdfbb; border-radius: 11px; color: #17643b; background: #f0fbf1; font-size: .88rem; }
.q2-forum-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.q2-forum-main { overflow: hidden; }
.q2-forum-toolbar { justify-content: space-between; gap: 18px; margin: 0; padding: 20px 22px; border-bottom: 1px solid #edf1e9; }
.q2-forum-kicker { color: var(--q2-green); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.q2-forum-toolbar h2 { margin: 2px 0 0; color: var(--q2-ink); font-size: 1.25rem; }
.q2-forum-search { display: flex; width: min(360px, 100%); align-items: center; gap: 7px; }
.q2-forum-search input { min-width: 0; min-height: 42px; flex: 1; padding: 8px 12px; border: 1px solid #dce6db; border-radius: 10px; background: #fff; }
.q2-forum-search button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 10px; color: #fff; background: var(--q2-green); font-weight: 750; cursor: pointer; }
.q2-forum-topic-list { gap: 0; }
.q2-forum-topic-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 58px; align-items: start; gap: 14px; padding: 19px 22px; border: 0; border-bottom: 1px solid #edf1e9; border-radius: 0; background: #fff; transition: background .18s ease; }
.q2-forum-topic-card:hover { border-color: #edf1e9; background: #fbfcf8; box-shadow: none; }
.q2-forum-topic-avatar img,
.q2-forum-reply-avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.q2-forum-topic-summary { min-width: 0; }
.q2-forum-topic-meta { align-items: center; gap: 9px; margin: 0 0 5px; color: #87938a; font-size: .76rem; }
.q2-forum-topic-category { display: inline-flex; width: fit-content; padding: 3px 9px; border: 0; border-radius: 999px; color: var(--q2-green-dark); background: #edf5e9; font-size: .72rem; font-weight: 750; letter-spacing: 0; text-decoration: none; text-transform: none; }
.q2-forum-topic-card h3 { margin: 0 0 3px; font-size: 1.04rem; line-height: 1.45; }
.q2-forum-topic-card h3 a { color: var(--q2-ink); font-weight: 760; }
.q2-forum-topic-card h3 a:hover { color: var(--q2-green); }
.q2-forum-topic-excerpt { overflow: hidden; margin: 0 0 7px; color: var(--q2-muted); font-size: .85rem; line-height: 1.55; }
.q2-forum-topic-author { padding: 0; border: 0; color: #77857a; font-size: .77rem; }
.q2-forum-topic-replies { display: grid; justify-items: center; align-content: center; min-height: 50px; padding: 5px; border-radius: 11px; color: var(--q2-muted); background: #f6f8f1; font-size: .72rem; text-decoration: none; }
.q2-forum-topic-replies strong { color: var(--q2-green-dark); font-size: 1rem; line-height: 1.3; }
.q2-forum-new-topic-form { margin: 18px 20px; padding: 20px; border-color: #e0e9da; background: #fbfcf8; }
.q2-forum-new-topic-form h3 { color: var(--q2-ink); }
.q2-forum-new-topic-form .button-outline { margin-left: 8px; border: 1px solid #cbd9c9; color: var(--q2-green-dark); background: #fff; }
.q2-forum-empty { padding: 60px 24px; color: var(--q2-muted); }
.q2-forum-empty > span { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: var(--q2-green); background: #edf5e9; font-size: 1.3rem; }
.q2-forum-empty h3 { margin: 12px 0 4px; color: var(--q2-ink); font-size: 1.15rem; }
.q2-forum-empty p { margin: 0 0 16px; }
.q2-forum-main .page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; margin: 14px 3px; padding: 6px 10px; border: 1px solid var(--q2-border); border-radius: 9px; color: var(--q2-green-dark); text-decoration: none; }
.q2-forum-main .page-numbers.current,
.q2-forum-main .page-numbers:hover { border-color: var(--q2-green); color: #fff; background: var(--q2-green); }

.q2-forum-topic-page { padding: 24px 20px 70px; background: #f8faf5; }
.q2-forum-topic-container { width: min(900px, 100%); margin: 0 auto; }
.q2-forum-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--q2-muted); font-size: .86rem; }
.q2-forum-breadcrumb a { color: var(--q2-green); font-weight: 700; text-decoration: none; }
.q2-forum-topic-single { margin: 0 0 20px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--q2-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 25px rgba(16, 53, 33, .045); }
.q2-forum-topic-heading h1 { margin: 12px 0 17px; color: var(--q2-ink); font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.3; }
.q2-forum-topic-meta-bottom { justify-content: flex-start; gap: 11px; margin: 0; padding: 0; border: 0; color: var(--q2-muted); }
.q2-forum-topic-meta-bottom > span:nth-child(2) { display: grid; gap: 1px; }
.q2-forum-topic-meta-bottom strong { color: var(--q2-ink); font-size: .86rem; }
.q2-forum-topic-meta-bottom time { font-size: .76rem; }
.q2-forum-topic-reply-total { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: #f1f6ed; font-size: .8rem; }
.q2-forum-topic-content { margin-top: 22px; padding-top: 20px; border-top: 1px solid #edf1e9; color: #405248; font-size: 1rem; line-height: 1.85; white-space: normal; overflow-wrap: anywhere; }
.q2-forum-topic-content p:first-child { margin-top: 0; }
.q2-forum-discussion { padding: clamp(18px, 4vw, 30px); border: 1px solid var(--q2-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 25px rgba(16, 53, 33, .045); }
.q2-forum-discussion-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #edf1e9; }
.q2-forum-discussion-heading h2 { margin: 0; color: var(--q2-ink); font-size: 1.25rem; }
.q2-forum-discussion-heading > span { color: var(--q2-muted); font-size: .83rem; }
.q2-forum-replies-children { display: grid; gap: 15px; margin: 18px 0 0 16px; padding-left: 17px; border-left: 2px solid #e8efe4; }
.q2-forum-replies-list > .q2-forum-replies-children { margin-left: 0; padding-left: 0; border-left: 0; }
.q2-forum-reply { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; }
.q2-forum-reply-body { min-width: 0; }
.q2-forum-reply-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; }
.q2-forum-reply-author { margin: 0; color: var(--q2-ink); font-size: .88rem; }
.q2-forum-reply-heading time { color: #849087; font-size: .74rem; }
.q2-forum-reply-content { margin-top: 5px; color: #405248; font-size: .91rem; line-height: 1.75; overflow-wrap: anywhere; }
.q2-forum-reply-to,
.q2-forum-cancel-reply { margin: 7px 0 0; padding: 0; border: 0; color: var(--q2-green); background: transparent; font-size: .79rem; font-weight: 750; cursor: pointer; }
.q2-forum-reply-form { margin: 25px 0 0; padding: 20px; border: 1px solid #e0e9da; border-radius: 15px; background: #fbfcf8; }
.q2-forum-reply-form h3 { color: var(--q2-ink); }
.q2-forum-reply-form textarea { min-height: 130px; border-color: #d9e3d6; border-radius: 11px; background: #fff; }
.q2-forum-reply-form .button { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--q2-green); font-weight: 750; cursor: pointer; }
.q2-forum-replying-to { margin: 0 0 12px; padding: 8px 11px; border-radius: 9px; color: var(--q2-green-dark); background: #edf5e9; font-size: .84rem; }
.q2-forum-replying-to[hidden],
.q2-forum-cancel-reply[hidden] { display: none; }
.q2-forum-no-replies,
.q2-forum-login-prompt { margin: 18px 0; padding: 17px; border-radius: 12px; color: var(--q2-muted); background: #f8faf5; }
.q2-forum-login-prompt p { margin: 0 0 12px; }

@media (max-width: 800px) {
    .q2-forum-layout { grid-template-columns: 1fr; }
    .q2-forum-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px; }
    .q2-forum-sidebar h2,
    .q2-forum-guidelines { width: 100%; }
    .q2-forum-category-link { flex: 1 1 180px; }
    .q2-forum-guidelines { margin-top: 8px; }
}
@media (max-width: 600px) {
    .q2-forum-wrap { width: min(100% - 24px, 1220px); }
    .q2-forum-hero { align-items: flex-start; flex-direction: column; min-height: 0; margin: 14px 0 18px; padding: 23px 20px; border-radius: 20px; }
    .q2-forum-hero-action { width: 100%; }
    .q2-forum-hero-action .button { width: 100%; }
    .q2-forum-toolbar { align-items: stretch; flex-direction: column; padding: 17px; }
    .q2-forum-search { width: 100%; }
    .q2-forum-topic-card { grid-template-columns: 36px minmax(0, 1fr) 45px; gap: 10px; padding: 15px 13px; }
    .q2-forum-topic-avatar img { width: 36px; height: 36px; }
    .q2-forum-topic-card h3 { font-size: .95rem; }
    .q2-forum-topic-excerpt { font-size: .8rem; }
    .q2-forum-topic-page { padding: 16px 12px 45px; }
    .q2-forum-topic-single,
    .q2-forum-discussion { border-radius: 16px; }
    .q2-forum-replies-children { margin-left: 6px; padding-left: 10px; }
    .q2-forum-reply { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
    .q2-forum-reply-avatar img { width: 34px; height: 34px; }
}

.q2-app-webview { overscroll-behavior-y: contain; }
.q2-app-webview .site-header,
.q2-app-webview .site-footer { display: none !important; }
.q2-app-webview .container { width: min(100% - 24px, 1160px); }

.tutorial-video { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #10251d; }
.tutorial-video iframe,
.tutorial-video video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.tutorial-course-content { max-width: 900px; }
.tutorial-course-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.tutorial-course-heading h2 { margin: 0; color: #343a40; font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 650; }
.tutorial-course-heading p { margin: 5px 0 0; color: #69727b; font-size: .9rem; }
.tutorial-expand-all { flex: 0 0 auto; padding: 8px 14px; border: 1px solid #d8dde1; border-radius: 4px; color: #16728a; background: #fff; font-size: .86rem; font-weight: 750; cursor: pointer; }
.tutorial-expand-all:hover,
.tutorial-expand-all:focus-visible { border-color: #16728a; background: #f4fafb; }
.tutorial-section-list { display: grid; gap: 7px; }
.tutorial-section { overflow: hidden; border: 1px solid #dfe2e4; border-radius: 3px; background: #fff; }
.tutorial-section > summary { display: grid; min-height: 46px; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 13px; color: #68727a; background: #fafafa; font-size: .94rem; cursor: pointer; list-style: none; }
.tutorial-section > summary::-webkit-details-marker { display: none; }
.tutorial-section > summary:hover { background: #f5f7f7; }
.tutorial-section-toggle { color: #13819a; font-size: 1.15rem; line-height: 1; }
.tutorial-section-toggle::before { content: "+"; }
.tutorial-section[open] .tutorial-section-toggle::before { content: "−"; }
.tutorial-section-title { overflow: hidden; color: #4f5960; font-weight: 600; text-overflow: ellipsis; }
.tutorial-section-count,
.tutorial-section-duration { color: #6f7880; font-size: .87rem; white-space: nowrap; }
.tutorial-section-duration { min-width: 48px; text-align: right; }
.tutorial-lesson-list { border-top: 1px solid #e5e7e8; }
.tutorial-lesson { display: grid; min-height: 46px; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 13px; border-bottom: 1px solid #e5e7e8; color: #39869a; text-decoration: none; }
.tutorial-lesson:last-child { border-bottom: 0; }
.tutorial-lesson:hover,
.tutorial-lesson:focus-visible { color: #176174; background: #f7fbfc; }
.tutorial-lesson-play { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #fff; background: #bfc4c7; font-size: .56rem; }
.tutorial-lesson:hover .tutorial-lesson-play { background: #16829a; }
.tutorial-lesson-title { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; }
.tutorial-lesson-duration { color: #59636b; font-size: .86rem; white-space: nowrap; }
.tutorial-single .tutorial-category-list { margin: 16px 0 0; }
.tutorial-single .tutorial-category-list a { color: var(--q2-green-dark); }
.tutorial-single-video { margin-bottom: 28px; }
.tutorial-single-content { max-width: 850px; margin-inline: auto; }

@media (max-width: 600px) {
    .tutorial-course-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .tutorial-expand-all { align-self: flex-start; }
    .tutorial-section > summary { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; font-size: .84rem; }
    .tutorial-section-count { font-size: .76rem; }
    .tutorial-section-duration { display: none; }
    .tutorial-lesson { grid-template-columns: 25px minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; }
    .tutorial-lesson-title,
    .tutorial-lesson-duration { font-size: .8rem; }
}
.q2-app-webview .page-hero { padding-block: clamp(24px, 5vw, 52px); }
.q2-forum-content-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.q2-forum-content-action,
.q2-forum-block-form button,
.q2-forum-report summary { display: inline-block; padding: 6px 10px; border: 1px solid #dce6db; border-radius: 8px; color: var(--q2-green-dark); background: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.q2-forum-content-action-form { display: inline; margin: 0; }
.q2-forum-report { position: relative; }
.q2-forum-report summary { list-style: none; }
.q2-forum-report summary::-webkit-details-marker { display: none; }
.q2-forum-report form { display: grid; width: min(300px, 80vw); gap: 7px; margin-top: 6px; padding: 12px; border: 1px solid var(--q2-border); border-radius: 10px; background: #fff; box-shadow: var(--q2-shadow); }
.q2-forum-report label,
.q2-forum-edit-form label { display: grid; gap: 5px; color: var(--q2-ink); font-size: .8rem; font-weight: 700; }
.q2-forum-report select,
.q2-forum-report textarea,
.q2-forum-edit-form input,
.q2-forum-edit-form select,
.q2-forum-edit-form textarea { width: 100%; min-width: 0; padding: 8px; border: 1px solid #dce6db; border-radius: 8px; background: #fff; }
.q2-forum-report-submit { min-height: 38px; border: 0; border-radius: 8px; color: #fff; background: var(--q2-green); font-weight: 750; cursor: pointer; }
.q2-forum-edit-form { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid var(--q2-border); border-radius: 12px; background: #fbfcf8; }
.q2-forum-edit-form .q2-form-group { margin: 0; }
.q2-forum-human-check input { max-width: 160px; }
.q2-forum-block-form { margin: 0; }
.q2-forum-block-form button:hover,
.q2-forum-content-action:hover { border-color: #b8d3bf; background: #f4faf2; }
