/*
 * LOCKED SHARED SHELL
 * Header: redesigned Home. Account/theme + mobile UI: redesigned Bookademy.
 * Footer: redesigned Home. Do not edit without an explicit user request.
 */
@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransans/woff2/IRANSansXFaNum-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransans/woff2/IRANSansXFaNum-DemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransans/woff2/IRANSansXFaNum-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransans/woff2/IRANSansXFaNum-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/iransans/woff2/IRANSansXFaNum-Black.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Yekan Bakh";
    src: url("../fonts/bookademy/yekan-bakh-fanum-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("../fonts/bookademy/peyda-semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("../fonts/bookademy/peyda-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("../fonts/bookademy/peyda-extrabold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Peyda";
    src: url("../fonts/bookademy/peyda-black.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --br-primary-50: #f3f8f9;
    --br-primary-100: #e6f1f2;
    --br-primary-200: #c7dee1;
    --br-primary-300: #a7ced3;
    --br-primary-500: #5fa8b0;
    --br-primary-600: #136b76;
    --br-primary-700: #0a4d56;
    --br-primary-800: #08404a;
    --br-primary-900: #062e33;
    --br-primary-950: #03191d;
    --br-accent-200: #f6e1b7;
    --br-accent-400: #e8b560;
    --br-accent-500: #d49b3a;
    --br-accent-600: #c08a2e;
    --br-shell-ink: #0f172a;
    --br-shell-ink-soft: #334155;
    --br-shell-muted: #64748b;
    --br-shell-border: #e2e8f0;
    --br-shell-card: #fff;
    --br-shell-bg: #f3f8f9;
    --br-shell-shadow: 0 16px 45px rgba(6, 46, 51, .08);
}

/* Keep the layout viewport identical to the Bookademy reference. Without the
 * shared thin gutter, Home loses four pixels of usable width on scrollable
 * mobile pages and its fixed bottom navigation becomes visibly narrower. */
html {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #136b76 #e6f1f2;
}

html.dark {
    scrollbar-color: #5fa8b0 #03191d;
}

/*
 * The shared shell must not depend on a page bundle's reset. Bookademy loads
 * Tailwind's preflight, while the redesigned Home intentionally does not; a
 * scoped reset keeps the exact same controls on every template without
 * leaking into page content.
 */
:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top),
:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) *,
:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) *::before,
:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) :where(h1, h2, h3, h4, h5, h6, p) {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) :where(button, input, select, optgroup, textarea) {
    margin: 0;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
}

.br-site-header :is(button, input, select, textarea),
.br-drawer-shell :is(button, input, select, textarea),
.br-footer :is(button, input, select, textarea),
.br-bottom-nav :is(button, input, select, textarea),
.br-search-pop :is(button, input, select, textarea),
.br-to-top :is(button, input, select, textarea) {
    font-family: inherit !important;
}

:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) :where(a) {
    color: inherit;
    text-decoration: inherit;
}

:where(.br-site-header, .br-drawer-shell, .br-footer, .br-bottom-nav, .br-search-pop, .br-to-top) :where(img, svg) {
    display: block;
    vertical-align: middle;
}

.br-site-header [hidden],
.br-drawer-shell [hidden],
.br-footer [hidden],
.br-bottom-nav [hidden],
.br-search-pop [hidden] {
    display: none !important;
}

.br-site-header,
.br-drawer-shell,
.br-footer,
.br-bottom-nav,
.br-search-pop {
    font-family: "IRANSansX", "Yekan Bakh", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Home's content bundle sizes every SVG in em units. Pin shell icons to the
 * geometry used by Bookademy so labels and controls cannot collapse. */
.br-desktop-nav > a > svg,
.br-nav-drop-trigger > svg:first-child {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.br-nav-chevron {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.br-mega-intro-icon > svg {
    width: 27px;
    height: 27px;
    stroke-width: 1.7;
}

.br-mega-links a > span:first-child > svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.br-mega-links a > svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.br-search-form > svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

#header-search-all > svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.br-drawer-row-icon > svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
}

.br-drawer-chevron,
.br-drawer-category > svg,
.br-drawer-leaves .br-drawer-all > svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.br-drawer-login > svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

.br-socials a > svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.br-footer-group summary > svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}

.br-footer-contact > a > span > svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.br-footer-contact p > svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.br-trust-card > svg {
    width: 37px;
    height: 37px;
    stroke-width: 1.8;
}

.br-bottom-nav a > svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.br-bottom-nav .br-bottom-discover > svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.9;
}

.br-to-top > svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}

html.dark {
    --br-shell-ink: #f8fafc;
    --br-shell-ink-soft: #e2e8f0;
    --br-shell-muted: #a9bdc1;
    --br-shell-border: rgba(199, 222, 225, .14);
    --br-shell-card: #062e33;
    --br-shell-bg: #03191d;
    color-scheme: dark;
}

html.br-drawer-open,
html.br-drawer-open body {
    overflow: hidden;
}

.br-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.br-icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(10, 77, 86, .15);
    border-radius: 14px;
    color: var(--br-primary-700);
    background: #fff;
    box-shadow: 0 5px 16px rgba(3, 25, 29, .06);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.br-icon-button svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.9;
}

.br-icon-button:hover {
    border-color: rgba(212, 155, 58, .55);
}

.br-icon-button:active {
    transform: scale(.96);
}

.br-icon-button:focus-visible {
    border-radius: 14px;
}

html.dark .br-icon-button {
    color: var(--br-primary-200);
    background: var(--br-primary-900);
    border-color: rgba(199, 222, 225, .16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.br-site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    height: 64px;
    color: var(--br-shell-ink);
    background: rgba(243, 248, 249, .9);
    border-bottom: 1px solid rgba(10, 77, 86, .1);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
    transition: box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.br-site-header.is-stuck {
    box-shadow: 0 12px 34px rgba(3, 25, 29, .08);
}

html.dark .br-site-header {
    background: rgba(3, 25, 29, .9);
    border-color: rgba(199, 222, 225, .11);
}

.br-header-inner {
    width: min(calc(100% - 24px), 1344px);
    height: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
}

.br-menu-trigger {
    grid-column: 1;
    grid-row: 1;
}

.br-header-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    min-width: 0;
}

.br-header-logo img {
    width: 102px;
    height: 43px;
    object-fit: contain;
}

.br-shell-logo-dark {
    display: none !important;
}

html.dark .br-shell-logo-light {
    display: none !important;
}

html.dark .br-shell-logo-dark {
    display: block !important;
}

.br-header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.br-desktop-nav,
.br-account-link,
.br-search-trigger {
    display: none;
}

.br-search-wrap {
    position: relative;
    width: 0;
}

.br-theme-toggle .br-theme-sun {
    display: none;
}

html.dark .br-theme-toggle .br-theme-moon {
    display: none;
}

html.dark .br-theme-toggle .br-theme-sun {
    display: block;
}

.br-search-pop {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    z-index: 120;
    padding: 12px;
    color: var(--br-shell-ink);
    background: var(--br-shell-card);
    border: 1px solid var(--br-shell-border);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(3, 25, 29, .2);
    transition: opacity .2s ease, transform .2s ease;
}

/* Keep the shell self-contained on the redesigned Home page, where the
 * theme's global utility stylesheet is intentionally not loaded. */
.br-search-pop.opacity-0 {
    opacity: 0;
}

.br-search-pop.pointer-events-none {
    pointer-events: none;
}

.br-search-pop.translate-y-2 {
    transform: translateY(.5rem);
}

#header-search-results.hidden,
#header-search-status.hidden,
#header-search-all.hidden {
    display: none;
}

#header-search-status.flex,
#header-search-all.flex {
    display: flex;
}

.br-search-form {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 6px 5px 12px;
    color: var(--br-primary-700);
    background: var(--br-primary-50);
    border: 1px solid var(--br-shell-border);
    border-radius: 14px;
}

html.dark .br-search-form {
    color: var(--br-primary-200);
    background: var(--br-primary-800);
}

.br-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--br-shell-ink);
    background: transparent;
    font-size: 13px;
}

.br-search-form button {
    height: 38px;
    padding-inline: 15px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--br-primary-700);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#header-search-hint {
    margin: 8px 3px 0;
    color: var(--br-shell-muted);
    font-size: 10px;
}

#header-search-results {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid var(--br-shell-border);
}

#header-search-status {
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--br-shell-muted);
    font-size: 11px;
}

#header-search-list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
}

#header-search-all {
    min-height: 42px;
    margin-top: 9px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    color: var(--br-primary-700);
    background: var(--br-primary-100);
    font-size: 11px;
    font-weight: 900;
}

/* Desktop navigation from the redesigned home header. */
.br-desktop-nav {
    height: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
}

.br-desktop-nav > a,
.br-nav-drop-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 0;
    color: var(--br-shell-ink-soft);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.br-desktop-nav > a > svg,
.br-nav-drop-trigger > svg:first-child {
    color: var(--br-primary-700);
}

html.dark .br-desktop-nav > a > svg,
html.dark .br-nav-drop-trigger > svg:first-child {
    color: var(--br-primary-300);
}

.br-desktop-nav > a::after,
.br-nav-drop-trigger::after {
    content: "";
    position: absolute;
    right: 8px;
    left: 8px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--br-accent-500);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.br-desktop-nav > a:hover::after,
.br-desktop-nav > a.is-active::after,
.br-nav-drop:hover .br-nav-drop-trigger::after,
.br-nav-drop:focus-within .br-nav-drop-trigger::after,
.br-nav-drop.is-open .br-nav-drop-trigger::after {
    transform: scaleX(1);
}

.br-desktop-nav > a:hover,
.br-desktop-nav > a.is-active,
.br-nav-drop:hover .br-nav-drop-trigger,
.br-nav-drop.is-open .br-nav-drop-trigger {
    color: var(--br-primary-700);
}

html.dark .br-desktop-nav > a:hover,
html.dark .br-desktop-nav > a.is-active,
html.dark .br-nav-drop:hover .br-nav-drop-trigger,
html.dark .br-nav-drop.is-open .br-nav-drop-trigger {
    color: var(--br-primary-200);
}

.br-nav-drop {
    position: relative;
    height: 100%;
}

.br-nav-chevron {
    width: 14px;
    color: var(--br-shell-muted);
    transition: transform .2s ease;
}

.br-nav-drop:hover .br-nav-chevron,
.br-nav-drop:focus-within .br-nav-chevron,
.br-nav-drop.is-open .br-nav-chevron {
    transform: rotate(180deg);
}

.br-mega-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 90;
    width: min(720px, calc(100vw - 48px));
    padding: 18px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    color: var(--br-shell-ink);
    background: var(--br-shell-card);
    border: 1px solid var(--br-shell-border);
    border-radius: 20px;
    box-shadow: 0 24px 65px rgba(3, 25, 29, .17);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.br-nav-drop:hover .br-mega-panel,
.br-nav-drop:focus-within .br-mega-panel,
.br-nav-drop.is-open .br-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.br-mega-intro {
    padding: 18px;
    border-radius: 16px;
    background: var(--br-primary-900);
    color: #fff;
}

.br-mega-intro-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    color: var(--br-accent-400);
    background: rgba(255, 255, 255, .08);
}

.br-mega-intro strong {
    display: block;
    font-size: 17px;
}

.br-mega-intro p {
    margin: 8px 0 0;
    color: var(--br-primary-200);
    font-size: 10px;
    line-height: 1.9;
}

.br-mega-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.br-mega-links a {
    min-height: 66px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--br-shell-border);
    border-radius: 14px;
    background: var(--br-shell-card);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.br-mega-links a:hover {
    border-color: var(--br-primary-300);
    background: var(--br-primary-50);
    transform: translateY(-1px);
}

html.dark .br-mega-links a:hover {
    background: var(--br-primary-800);
}

.br-mega-links a > span:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--br-primary-700);
    background: var(--br-primary-100);
}

html.dark .br-mega-links a > span:first-child {
    color: var(--br-primary-200);
    background: var(--br-primary-800);
}

.br-mega-link-copy {
    min-width: 0;
}

.br-mega-link-copy strong,
.br-mega-link-copy small {
    display: block;
}

.br-mega-link-copy strong {
    font-size: 11px;
}

.br-mega-link-copy small {
    margin-top: 2px;
    color: var(--br-shell-muted);
    font-size: 8px;
}

.br-mega-links a > svg {
    color: var(--br-shell-muted);
}

/* Mobile drill-down drawer from the redesigned Bookademy page. */
.br-drawer-shell {
    position: fixed;
    inset: 0;
    z-index: 110;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear .32s;
}

.br-drawer-shell.is-open {
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.br-drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 25, 29, .52);
    opacity: 0;
    cursor: pointer;
    transition: opacity .28s ease;
}

.br-drawer-shell.is-open .br-drawer-backdrop {
    opacity: 1;
}

.br-drawer {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(92vw, 410px);
    padding: max(10px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr) auto;
    color: var(--br-shell-ink);
    background: var(--br-shell-bg);
    border-left: 1px solid var(--br-shell-border);
    box-shadow: -24px 0 70px rgba(3, 25, 29, .22);
    overflow: hidden;
    transform: translateX(104%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.br-drawer-shell.is-open .br-drawer {
    transform: translateX(0);
}

.br-drawer-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    border-bottom: 1px solid var(--br-shell-border);
}

.br-drawer-close,
.br-drawer-back {
    grid-column: 1;
    grid-row: 1;
}

.br-drawer-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: grid;
    place-items: center;
}

.br-drawer-logo img {
    width: 106px;
    height: 45px;
    object-fit: contain;
}

.br-drawer-head-spacer {
    grid-column: 3;
    width: 44px;
}

.br-drawer-pages {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.br-drawer-page {
    height: 100%;
    padding: 20px 2px 18px;
    overflow-y: auto;
    animation: br-drawer-page-in .25s ease both;
}

.br-drawer-page[hidden] {
    display: none !important;
}

.br-drawer-page h2 {
    margin: 0 8px 16px;
    color: var(--br-shell-ink);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
}

.br-drawer-page nav {
    display: grid;
    gap: 8px;
}

.br-drawer-row,
.br-drawer-category {
    width: 100%;
    min-height: 54px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: right;
    color: var(--br-shell-ink);
    border: 1px solid var(--br-shell-border);
    border-radius: 15px;
    background: var(--br-shell-card);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.br-drawer-row-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--br-primary-700);
    background: var(--br-primary-100);
}

html.dark .br-drawer-row-icon {
    color: var(--br-primary-200);
    background: var(--br-primary-800);
}

.br-drawer-chevron,
.br-drawer-category > svg {
    width: 18px;
    color: var(--br-shell-muted);
}

.br-drawer-category {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
    font-weight: 700;
}

.br-drawer-leaves {
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
}

.br-drawer-leaves a {
    min-height: 48px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--br-shell-border);
    border-radius: 13px;
    color: var(--br-shell-ink-soft);
    background: var(--br-shell-card);
    font-size: 13px;
    line-height: 1.65;
}

.br-drawer-leaves .br-drawer-all {
    grid-column: 1 / -1;
    justify-content: space-between;
    color: var(--br-primary-700);
    background: var(--br-primary-100);
    font-weight: 800;
}

html.dark .br-drawer-leaves .br-drawer-all {
    color: var(--br-primary-200);
    background: var(--br-primary-800);
}

.br-drawer-login {
    min-height: 52px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--br-accent-500), var(--br-accent-600));
    box-shadow: 0 10px 26px rgba(192, 138, 46, .22);
    font-size: 13px;
    font-weight: 800;
}

@keyframes br-drawer-page-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: none; }
}

/* Footer from the approved redesigned Home page. */
.br-footer {
    position: relative;
    margin-top: 0;
    padding-bottom: 94px;
    overflow: hidden;
    color: #e6f1f2;
    background: #03191d;
    border-top: 1px solid #08404a;
}

.br-footer::before {
    content: "";
    position: absolute;
    left: 4%;
    bottom: 8%;
    width: 224px;
    height: 174px;
    color: rgba(240, 206, 135, .07);
    background: currentColor;
    -webkit-mask: url("../home-redesign/barayand/brand/arrow-mark.png") center / contain no-repeat;
    mask: url("../home-redesign/barayand/brand/arrow-mark.png") center / contain no-repeat;
    pointer-events: none;
}

.br-footer-container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 64px), 1344px);
    margin-inline: auto;
}

.br-footer-top {
    padding: 84px 0 58px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.05fr .8fr;
    gap: 55px;
}

.br-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.br-footer-lockup {
    width: 122px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-footer-lockup img {
    width: 122px;
    height: auto;
    object-fit: contain;
}

.br-footer-brand p {
    max-width: 300px;
    margin: 7px auto 14px;
    color: rgba(230, 241, 242, .75);
    font-size: 13px;
    line-height: 2.15;
}

.br-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.br-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #e6f1f2;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.br-socials a:hover {
    color: #f0ce87;
    background: #08404a;
    border-color: #f0ce87;
    transform: translateY(-2px);
}

.br-social-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.br-social-logo-aparat {
    filter: grayscale(1) brightness(2.2) sepia(.25) hue-rotate(120deg) saturate(2);
}

.br-social-logo-bale {
    border-radius: 50%;
    filter: sepia(.65) hue-rotate(110deg) saturate(1.5) brightness(1.18);
}

.br-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 28px;
}

.br-footer-group {
    min-width: 0;
}

.br-footer-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    color: #fff;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.br-footer-group summary::-webkit-details-marker {
    display: none;
}

.br-footer-group summary svg {
    display: none;
    width: 17px;
    height: 17px;
    color: #f0ce87;
    transition: transform .2s ease;
}

.br-footer-group[open] summary svg {
    transform: rotate(180deg);
}

.br-footer-group-links {
    padding-top: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.br-footer-group-links a {
    color: rgba(230, 241, 242, .75);
    font-size: 10px;
    line-height: 1.75;
    transition: color .2s ease, transform .2s ease;
}

.br-footer-group-links a:hover {
    color: #f0ce87;
    transform: translateX(-2px);
}

.br-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.br-footer-contact h3 {
    margin: 0 0 14px;
    color: #fff;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
    font-size: 15px;
}

.br-footer-contact > a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.br-footer-contact > a > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #e8b560;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
}

.br-footer-contact small {
    display: block;
    color: rgba(230, 241, 242, .75);
    font-size: 11px;
}

.br-footer-contact b {
    color: #e2e8f0;
    font-size: 14px;
}

.br-footer-contact p {
    margin: 2px 0 0;
    display: flex;
    gap: 7px;
    color: rgba(230, 241, 242, .75);
    font-size: 12px;
    line-height: 2;
}

.br-footer-contact p svg {
    width: 15px;
    flex: 0 0 auto;
    color: #e8b560;
}

.br-trust-card {
    align-self: start;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #e6f1f2;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
}

.br-trust-card > svg {
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    color: #eeb442;
}

.br-trust-card strong {
    display: block;
    color: #fff;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
    font-size: 13px;
}

.br-trust-card small {
    color: rgba(230, 241, 242, .75);
    font-size: 11px;
}

.br-footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(230, 241, 242, .64);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
}

/* Floating mobile navigation from the redesigned Bookademy page. */
.br-bottom-nav {
    position: fixed;
    z-index: 80;
    right: 10px;
    left: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 70px;
    padding: 6px 7px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    color: var(--br-shell-ink);
    background: rgba(255, 255, 255, .93);
    border: 1px solid rgba(167, 206, 211, .26);
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(3, 25, 29, .2);
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.br-bottom-nav,
.br-bottom-nav a,
.br-bottom-nav button,
.br-bottom-nav span {
    font-family: "IRANSansX", sans-serif !important;
}

html.dark .br-bottom-nav {
    background: rgba(6, 46, 51, .94);
    border-color: rgba(199, 222, 225, .14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}

.br-bottom-nav a,
.br-bottom-nav button {
    position: relative;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    color: var(--br-shell-muted);
    background: transparent;
    border: 0;
    border-radius: 16px;
    font-size: 9px;
    cursor: pointer;
}

.br-bottom-nav a.is-active {
    color: var(--br-primary-700);
}

html.dark .br-bottom-nav a.is-active {
    color: var(--br-primary-200);
}

.br-bottom-nav .br-bottom-discover {
    height: 62px;
    margin-top: -19px;
    color: #1d2513;
    background: linear-gradient(145deg, var(--br-accent-400), var(--br-accent-500));
    border: 3px solid var(--br-shell-bg);
    box-shadow: 0 9px 22px rgba(192, 138, 46, .28);
    font-weight: 900;
}

.br-to-top {
    position: fixed;
    z-index: 60;
    left: 16px;
    bottom: 96px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--br-primary-700);
    border: 0;
    border-radius: 13px;
    box-shadow: var(--br-shell-shadow);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.br-to-top.opacity-0 {
    opacity: 0;
}

.br-to-top.pointer-events-none {
    pointer-events: none;
}

.br-to-top.translate-y-3 {
    transform: translateY(.75rem);
}

.br-to-top:hover {
    background: var(--br-accent-600);
}

.br-site-header :focus-visible,
.br-drawer-shell :focus-visible,
.br-footer :focus-visible,
.br-bottom-nav :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--br-accent-400) 75%, white);
    outline-offset: 3px;
}

body.admin-bar .br-site-header {
    top: 46px;
}

@media (max-width: 380px) {
    .br-drawer-leaves {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .br-footer-container {
        width: min(calc(100% - 40px), 1344px);
    }

    .br-footer-top {
        grid-template-columns: 1.2fr 1fr 1.1fr;
        gap: 35px;
    }

    .br-trust-card {
        grid-column: 3;
    }
}

@media (max-width: 980px) {
    .br-footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .br-footer-brand {
        grid-column: 1 / -1;
    }

    .br-trust-card {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .br-footer::before {
        width: 150px;
        height: 117px;
    }

    .br-footer-container {
        width: calc(100% - 32px);
    }

    .br-footer-top {
        padding: 46px 0 28px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .br-footer-brand,
    .br-trust-card {
        grid-column: auto;
    }

    .br-footer-lockup {
        width: 112px;
        min-height: 52px;
    }

    .br-footer-lockup img {
        width: 112px;
    }

    .br-footer-brand p {
        font-size: 12px;
    }

    .br-socials {
        gap: 8px;
    }

    .br-footer-links {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .br-footer-group {
        overflow: hidden;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 14px;
    }

    .br-footer-group summary {
        min-height: 51px;
        padding: 0 14px;
        color: #f8fafc;
        background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(167, 206, 211, .025));
        font-size: 11px;
    }

    .br-footer-group summary svg {
        display: block;
    }

    .br-footer-group[open] summary {
        color: #f0ce87;
        background: rgba(8, 64, 74, .38);
    }

    .br-footer-group-links {
        padding: 0 14px 13px;
        gap: 8px;
    }

    .br-footer-group-links a {
        min-height: 36px;
        display: flex;
        align-items: center;
        font-size: 9px;
    }

    .br-footer-contact {
        gap: 8px;
    }

    .br-trust-card {
        padding: 14px;
    }

    .br-footer-bottom {
        min-height: 0;
        padding: 16px 0;
        flex-direction: column;
        gap: 7px;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 601px) {
    .br-header-inner,
    .br-footer-container {
        width: min(calc(100% - 48px), 1344px);
    }

    .br-search-pop {
        right: auto;
        left: 24px;
        width: min(460px, calc(100vw - 48px));
    }

    .br-footer-group summary {
        margin-bottom: 14px;
        pointer-events: none;
    }

    .br-footer-group summary svg {
        display: none;
    }

    .br-footer-group-links,
    .br-footer-group:not([open]) .br-footer-group-links {
        display: flex !important;
    }
}

@media (min-width: 783px) {
    body.admin-bar .br-site-header {
        top: 32px;
    }
}

@media (min-width: 900px) {
    .br-bottom-nav {
        display: none;
    }

    .br-footer {
        padding-bottom: 0;
    }

    .br-to-top {
        bottom: 24px;
    }
}

@media (min-width: 1180px) {
    .br-site-header {
        height: 76px;
    }

    .br-header-inner {
        grid-template-columns: 128px minmax(0, 1fr) auto;
        gap: 18px;
    }

    .br-menu-trigger {
        display: none;
    }

    .br-header-logo {
        grid-column: 1;
        justify-self: start;
    }

    .br-header-logo img {
        width: 128px;
        height: 52px;
    }

    .br-desktop-nav {
        grid-column: 2;
        grid-row: 1;
        display: flex;
    }

    .br-header-actions {
        grid-column: 3;
        gap: 8px;
    }

    .br-search-wrap {
        width: 44px;
    }

    .br-search-trigger {
        display: grid;
    }

    .br-search-pop {
        position: absolute;
        top: calc(100% + 12px);
        right: auto;
        left: 0;
        width: 448px;
    }

    .br-account-link {
        height: 44px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        gap: 7px;
        color: var(--br-shell-ink-soft);
        background: var(--br-shell-card);
        border: 1px solid var(--br-shell-border);
        border-radius: 13px;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }

    .br-account-link:hover {
        color: var(--br-primary-700);
        border-color: var(--br-primary-300);
    }

    .br-drawer-shell {
        display: none;
    }
}

@media (min-width: 1320px) {
    .br-header-inner {
        grid-template-columns: 145px minmax(0, 1fr) auto;
        gap: 24px;
    }

    .br-header-logo img {
        width: 135px;
        height: 55px;
    }

    .br-desktop-nav > a,
    .br-nav-drop-trigger {
        padding-inline: 10px;
        font-size: 11.5px;
    }
}

/* The Home app contributes content only; the shared shell is rendered in PHP. */
body.home .site > .top-note,
body.home .site > .site-header,
body.home .site > .site-footer,
body.home .site > .mobile-bottom-nav,
body.home .site > .drawer-overlay,
body.home .site > .mobile-drawer {
    display: none !important;
}

body.home .site {
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .br-site-header *,
    .br-drawer-shell *,
    .br-footer *,
    .br-bottom-nav * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
