@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================
 * CandleStan Global Shell — v0.28
 * Shared brand surfaces independent from the Market Engine.
 * ========================================================== */

.candlestan-global-footer {
    --cs-footer-bg: #06152f;
    --cs-footer-bg-2: #091e43;
    --cs-footer-text: #f7fbff;
    --cs-footer-muted: #aebbd0;
    --cs-footer-line: rgba(255, 255, 255, .09);
    --cs-footer-accent: #12c7bb;
    --cs-footer-accent-soft: rgba(18, 199, 187, .12);
    position: relative;
    margin-top: 72px;
    background:
        radial-gradient(circle at 12% 18%, rgba(18, 199, 187, .10), transparent 31%),
        radial-gradient(circle at 88% 8%, rgba(75, 115, 211, .10), transparent 28%),
        linear-gradient(145deg, var(--cs-footer-bg), var(--cs-footer-bg-2));
    color: var(--cs-footer-text);
    overflow: hidden;
    direction: rtl;
}

.candlestan-global-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}

.candlestan-footer-accent {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #12c7bb 22%, #34ded2 50%, #12c7bb 78%, transparent 100%);
    opacity: .9;
}

.candlestan-footer-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    padding: 54px 0 24px;
}

.candlestan-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, .75fr) minmax(240px, .9fr);
    gap: 54px;
    align-items: start;
}

.candlestan-footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.candlestan-footer-mark {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(18,199,187,.20), rgba(18,199,187,.05));
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.candlestan-footer-mark::before,
.candlestan-footer-mark::after,
.candlestan-footer-mark span {
    content: "";
    position: absolute;
}

.candlestan-footer-mark::before {
    width: 9px;
    height: 25px;
    right: 18px;
    top: 10px;
    border-radius: 5px;
    background: #12c7bb;
}

.candlestan-footer-mark::after {
    width: 25px;
    height: 3px;
    right: 10px;
    top: 22px;
    background: #fff;
    transform: rotate(-38deg);
    border-radius: 4px;
    transform-origin: center;
}

.candlestan-footer-mark span {
    width: 7px;
    height: 7px;
    left: 8px;
    top: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(5deg);
}

.candlestan-footer-eyebrow {
    margin: 0 0 3px !important;
    color: #55ddd5 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .14em;
    direction: ltr;
    text-align: right;
}

.candlestan-global-footer h2,
.candlestan-global-footer h3 {
    color: #fff !important;
}

.candlestan-global-footer h2 {
    margin: 0 !important;
    font-size: clamp(25px, 2vw, 32px) !important;
    line-height: 1.25 !important;
    font-weight: 850;
}

.candlestan-global-footer h3 {
    position: relative;
    margin: 7px 0 22px !important;
    padding-bottom: 13px;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 800;
}

.candlestan-global-footer h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--cs-footer-accent);
}

.candlestan-footer-description,
.candlestan-footer-contact > p {
    margin: 0 !important;
    color: var(--cs-footer-muted) !important;
    font-size: 14px !important;
    line-height: 2 !important;
}

.candlestan-footer-description {
    max-width: 520px;
}

.candlestan-footer-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 21px;
}

.candlestan-footer-topics span {
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: #dce8f7;
    font-size: 11px;
    line-height: 1;
}

.candlestan-footer-menu {
    display: grid;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.candlestan-footer-menu li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--cs-footer-line);
}

.candlestan-footer-menu li:last-child {
    border-bottom: 0;
}

.candlestan-footer-menu a {
    display: flex;
    align-items: center;
    min-height: 39px;
    color: #d9e4f2 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease;
}

.candlestan-footer-menu a::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-left: 8px;
    border-radius: 50%;
    background: rgba(18,199,187,.55);
    transition: background .2s ease, box-shadow .2s ease;
}

.candlestan-footer-menu a:hover,
.candlestan-footer-menu a:focus-visible {
    color: #fff !important;
    transform: translateX(-3px);
}

.candlestan-footer-menu a:hover::before,
.candlestan-footer-menu a:focus-visible::before {
    background: var(--cs-footer-accent);
    box-shadow: 0 0 0 5px rgba(18,199,187,.09);
}

.candlestan-footer-contact > p {
    margin-bottom: 18px !important;
}

.candlestan-footer-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(18,199,187,.26);
    border-radius: 12px;
    background: var(--cs-footer-accent-soft);
    color: #70ebe2 !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.candlestan-footer-email:hover,
.candlestan-footer-email:focus-visible {
    background: rgba(18,199,187,.18);
    border-color: rgba(18,199,187,.5);
    color: #fff !important;
}

.candlestan-footer-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #b9c6d9;
    font-size: 11px;
    line-height: 1.8;
}

.candlestan-footer-trust-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--cs-footer-accent);
    box-shadow: 0 0 0 5px rgba(18,199,187,.09);
}

.candlestan-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: 42px;
    padding-top: 21px;
    border-top: 1px solid var(--cs-footer-line);
}

.candlestan-footer-disclaimer,
.candlestan-footer-copyright {
    margin: 0 !important;
    color: #8999b1 !important;
    font-size: 10.5px !important;
    line-height: 1.9 !important;
}

.candlestan-footer-disclaimer {
    max-width: 760px;
}

.candlestan-footer-copyright {
    white-space: nowrap;
}

.candlestan-footer-copyright a {
    color: #cdd9e9 !important;
    text-decoration: none !important;
}

.candlestan-footer-copyright span {
    margin-inline: 6px;
    color: rgba(255,255,255,.24);
}

/* The custom child footer intentionally replaces the parent's lower/upper footer
 * and scroll-to-top structures. Keep any legacy parent/plugin footer rules inert. */
.candlestan-global-footer .upper-footer,
.candlestan-global-footer .lower-footer,
.candlestan-global-footer .footer-widget-block {
    display: none !important;
}

@media (max-width: 900px) {
    .candlestan-footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr);
        gap: 38px;
    }

    .candlestan-footer-contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 24px;
        align-items: center;
        padding-top: 25px;
        border-top: 1px solid var(--cs-footer-line);
    }

    .candlestan-footer-contact h3 {
        grid-column: 1 / -1;
        margin-bottom: 3px !important;
    }

    .candlestan-footer-contact > p {
        margin: 0 !important;
    }

    .candlestan-footer-trust {
        grid-column: 1 / -1;
        margin-top: 5px;
    }
}

@media (max-width: 620px) {
    .candlestan-global-footer {
        margin-top: 42px;
    }

    .candlestan-footer-inner {
        width: min(100% - 32px, 1180px);
        padding: 35px 0 calc(20px + env(safe-area-inset-bottom));
    }

    .candlestan-footer-grid {
        grid-template-columns: 1fr;
        gap: 31px;
    }

    .candlestan-footer-brand-lockup {
        margin-bottom: 14px;
    }

    .candlestan-footer-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .candlestan-global-footer h2 {
        font-size: 26px !important;
    }

    .candlestan-global-footer h3 {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        font-size: 16px !important;
    }

    .candlestan-footer-description,
    .candlestan-footer-contact > p {
        font-size: 12.5px !important;
        line-height: 1.9 !important;
    }

    .candlestan-footer-topics {
        margin-top: 16px;
    }

    .candlestan-footer-topics span {
        padding: 6px 9px;
        font-size: 10px;
    }

    .candlestan-footer-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .candlestan-footer-menu li,
    .candlestan-footer-menu li:last-child {
        border: 0;
    }

    .candlestan-footer-menu a {
        min-height: 38px;
        padding: 0 11px;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 10px;
        background: rgba(255,255,255,.035);
        font-size: 11px;
    }

    .candlestan-footer-menu a:hover,
    .candlestan-footer-menu a:focus-visible {
        transform: none;
    }

    .candlestan-footer-contact {
        grid-column: auto;
        display: block;
        padding-top: 25px;
    }

    .candlestan-footer-contact > p {
        margin-bottom: 15px !important;
    }

    .candlestan-footer-email {
        min-height: 40px;
        font-size: 12px;
    }

    .candlestan-footer-trust {
        margin-top: 14px;
        font-size: 10px;
    }

    .candlestan-footer-bottom {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 30px;
        padding-top: 17px;
    }

    .candlestan-footer-disclaimer,
    .candlestan-footer-copyright {
        font-size: 9.5px !important;
        line-height: 1.8 !important;
    }

    .candlestan-footer-copyright {
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .candlestan-footer-menu {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
 * CandleStan Global Header — v0.29

/* ==========================================================
 * CandleStan Global Header — v0.32
 * Clean flex-based rewrite after v0.29–v0.31 recovery work.
 *
 * Goals:
 * - Deterministic physical placement, independent of RTL Grid behavior.
 * - Desktop: Search LEFT / Navigation CENTER / Brand RIGHT.
 * - Mobile: Search LEFT / Brand TRUE CENTER / Hamburger RIGHT.
 * - Mobile menu/search panels are positioned against the full header row,
 *   never against a transformed 40px control.
 * - One authoritative header ruleset: no stacked recovery overrides.
 * ========================================================== */

.candlestan-global-header {
    --cs-header-navy: #071a3d;
    --cs-header-navy-2: #0b2a60;
    --cs-header-accent: #12c7bb;
    --cs-header-text: #10203f;
    --cs-header-muted: #6f7c91;
    --cs-header-line: #e8edf4;
    position: relative;
    z-index: 100;
    background: #fff;
    direction: rtl;
}

.candlestan-header-shell {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(circle at 91% 12%, rgba(18,199,187,.055), transparent 24%),
        #fff;
    border-bottom: 1px solid var(--cs-header-line);
    box-shadow: 0 8px 28px rgba(7,26,61,.055);
}

/*
 * Physical layout is LTR on purpose. Each child restores RTL internally.
 * This avoids logical-direction surprises while preserving Persian content.
 */
.candlestan-header-shell .site-container-width.candlestan-header-inner {
    position: relative !important;
    display: flex !important;
    direction: ltr !important;
    align-items: center !important;
    gap: 18px !important;
    width: min(1180px, calc(100% - 44px)) !important;
    max-width: 1180px !important;
    min-height: 80px !important;
    margin-inline: auto !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
}

/* Physical RIGHT — brand. */
.candlestan-header-brand {
    order: 3;
    direction: rtl;
    flex: 0 0 220px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
}

.candlestan-header-logo,
.candlestan-header-logo .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 !important;
}

.candlestan-header-logo .custom-logo {
    display: block !important;
    width: auto !important;
    max-width: 220px !important;
    max-height: 60px !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: right center !important;
}

.candlestan-header-title {
    color: var(--cs-header-navy) !important;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none !important;
}

/* Physical CENTER — navigation. */
.candlestan-main-navigation {
    order: 2;
    direction: rtl;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    margin: 0 !important;
}

.candlestan-main-navigation .candlestan-primary-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Physical LEFT — search. */
.candlestan-header-actions {
    order: 1;
    direction: rtl;
    flex: 0 0 44px;
    min-width: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

.candlestan-header-search {
    width: 44px !important;
    height: 44px !important;
    position: relative;
}

.candlestan-header-search .header-search-wrap,
.candlestan-header-search .header-search-icon {
    width: 44px !important;
    height: 44px !important;
}

.candlestan-header-search .header-search-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e7edf4;
    border-radius: 13px;
    background: #f8fafc;
    color: var(--cs-header-navy) !important;
    font-size: 15px !important;
    opacity: 1 !important;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.candlestan-header-search .header-search-icon:hover,
.candlestan-header-search .header-search-icon:focus-visible {
    border-color: rgba(18,199,187,.35);
    background: rgba(18,199,187,.08);
    color: #087f85 !important;
    box-shadow: 0 0 0 4px rgba(18,199,187,.07);
}

.candlestan-header-search .header-search-form {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: auto !important;
    inset-inline: auto !important;
    width: min(360px, calc(100vw - 28px)) !important;
    padding: 10px !important;
    border: 1px solid #e5ebf2 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(7,26,61,.14) !important;
}

.candlestan-header-search .header-search-form .search-form {
    display: flex !important;
    gap: 7px;
}

.candlestan-header-search .header-search-form .search-form label {
    width: auto !important;
    flex: 1 1 auto;
}

.candlestan-header-search .header-search-form .search-field {
    min-height: 42px;
    padding: 8px 12px !important;
    border: 1px solid #e4eaf1 !important;
    border-radius: 9px !important;
    background: #f9fbfd !important;
    font-size: 12px !important;
}

.candlestan-header-search .header-search-form .search-submit {
    width: auto !important;
    min-width: 74px;
    min-height: 42px;
    border-radius: 9px !important;
    background: var(--cs-header-navy) !important;
    font-size: 11px !important;
    font-weight: 750;
}

/* Ticker — keep the proven Essence News engine, only reskin it. */
.candlestan-global-header .news-highlights {
    border-radius: 0 !important;
    background: #071120 !important;
    box-shadow: none !important;
}

.candlestan-global-header .news-highlights .news-highlights-container {
    min-height: 30px;
    border-radius: 0 !important;
}

.candlestan-global-header .news-highlights .news-highlights-icon {
    background: linear-gradient(135deg, #bd0041, #dd164e) !important;
}

.candlestan-global-header .news-highlights .content-title a,
.candlestan-global-header .news-highlights .content-title span {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

/* ---------------- DESKTOP ---------------- */
@media (min-width: 992px) {
    .candlestan-main-navigation .menu-toggle {
        display: none !important;
    }

    /* Force every top-level item onto the exact same vertical centerline. */
    .candlestan-main-navigation .candlestan-primary-menu > li {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 46px !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .candlestan-main-navigation .candlestan-primary-menu > li > a {
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        min-height: 44px !important;
        padding: 0 11px !important;
        border-radius: 10px;
        color: #24344f !important;
        font-size: 14px !important;
        font-weight: 720 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-transform: none !important;
        text-decoration: none !important;
        transition: color .18s ease, background .18s ease, transform .18s ease;
    }

    .candlestan-main-navigation .candlestan-primary-menu > li.menu-item-has-children > a::after {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-inline-start: 7px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        transform: translateY(1px);
    }

    .candlestan-main-navigation .candlestan-primary-menu > li > a:hover,
    .candlestan-main-navigation .candlestan-primary-menu > li > a:focus-visible {
        color: var(--cs-header-navy) !important;
        background: #f2f7fb !important;
        transform: translateY(-1px);
        text-decoration: none !important;
    }

    .candlestan-main-navigation ul .current_page_item > a,
    .candlestan-main-navigation ul .current-menu-item > a,
    .candlestan-main-navigation ul .current_page_ancestor > a,
    .candlestan-main-navigation ul .current-menu-ancestor > a {
        color: #075c70 !important;
        background: rgba(18,199,187,.10) !important;
        font-weight: 800 !important;
    }

    .candlestan-main-navigation ul .current_page_item > a::before,
    .candlestan-main-navigation ul .current-menu-item > a::before,
    .candlestan-main-navigation ul .current_page_ancestor > a::before,
    .candlestan-main-navigation ul .current-menu-ancestor > a::before {
        content: "";
        position: absolute;
        right: 12px;
        left: 12px;
        bottom: 4px;
        height: 2px;
        border-radius: 999px;
        background: var(--cs-header-accent);
    }

    .candlestan-main-navigation ul ul {
        top: calc(100% + 7px) !important;
        width: 225px !important;
        padding: 8px !important;
        border: 1px solid #e8edf4 !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,.99) !important;
        box-shadow: 0 18px 45px rgba(7,26,61,.13) !important;
        text-align: right !important;
    }

    .candlestan-main-navigation ul ul li {
        border: 0 !important;
    }

    .candlestan-main-navigation ul ul a {
        padding: 10px 11px !important;
        border-radius: 8px !important;
        font-size: 12.5px !important;
        line-height: 1.6 !important;
        text-transform: none !important;
    }
}

/* ---------------- MOBILE / TABLET ---------------- */
@media (max-width: 991px) {
    .candlestan-header-shell .site-container-width.candlestan-header-inner {
        width: 100% !important;
        max-width: none !important;
        min-height: 68px !important;
        padding: 7px 10px !important;
        gap: 10px !important;
    }

    /* Search LEFT. No transforms — fixed/absolute descendants remain sane. */
    .candlestan-header-actions {
        order: 1;
        flex: 0 0 42px;
        min-width: 42px;
        position: static !important;
        transform: none !important;
    }

    /* Logo TRUE CENTER in the flexible middle column. */
    .candlestan-header-brand {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        position: static !important;
        transform: none !important;
        justify-content: center !important;
    }

    .candlestan-header-logo,
    .candlestan-header-logo .custom-logo-link {
        width: 100% !important;
        max-width: 180px !important;
        justify-content: center !important;
    }

    .candlestan-header-logo .custom-logo {
        width: auto !important;
        max-width: min(47vw, 180px) !important;
        max-height: 52px !important;
        object-position: center !important;
    }

    /* Hamburger RIGHT. nav is STATIC so the menu panel anchors to header-inner. */
    .candlestan-main-navigation {
        order: 3;
        flex: 0 0 42px;
        min-width: 42px;
        width: 42px !important;
        height: 42px !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
    }

    .candlestan-main-navigation .menu-toggle {
        display: block !important;
        position: relative !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #e4eaf1 !important;
        border-radius: 13px !important;
        background: #f8fafc !important;
        box-shadow: none !important;
    }

    .candlestan-main-navigation .menu-toggle span:not(.screen-reader-text) {
        display: block !important;
        position: absolute !important;
        right: 9px !important;
        left: auto !important;
        width: 22px !important;
        height: 2px !important;
        border-radius: 999px !important;
        background: var(--cs-header-navy) !important;
    }

    .candlestan-main-navigation .menu-toggle span:nth-child(1) { top: 11px !important; }
    .candlestan-main-navigation .menu-toggle span:nth-child(2) { top: 20px !important; transform: none !important; }
    .candlestan-main-navigation .menu-toggle span:nth-child(3) { top: 29px !important; bottom: auto !important; }

    .candlestan-main-navigation.toggled .menu-toggle span:nth-child(1),
    .candlestan-main-navigation .menu-toggle.open span:nth-child(1) {
        top: 20px !important;
        width: 22px !important;
        right: 9px !important;
        left: auto !important;
        transform: rotate(45deg) !important;
    }

    .candlestan-main-navigation.toggled .menu-toggle span:nth-child(2),
    .candlestan-main-navigation .menu-toggle.open span:nth-child(2) {
        opacity: 0 !important;
    }

    .candlestan-main-navigation.toggled .menu-toggle span:nth-child(3),
    .candlestan-main-navigation .menu-toggle.open span:nth-child(3) {
        top: 20px !important;
        transform: rotate(-45deg) !important;
    }

    /* Header-wide dropdown panel. */
    .candlestan-main-navigation ul.nav-menu {
        position: absolute !important;
        z-index: 10020 !important;
        top: calc(100% + 8px) !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        max-height: min(72vh, 590px) !important;
        margin: 0 !important;
        padding: 10px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        direction: rtl !important;
        border: 1px solid #e4eaf1 !important;
        border-radius: 16px !important;
        background: rgba(255,255,255,.995) !important;
        box-shadow: 0 22px 54px rgba(7,26,61,.18) !important;
        text-align: right !important;
        box-sizing: border-box !important;
    }

    .candlestan-main-navigation ul.nav-menu > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .candlestan-main-navigation ul.nav-menu > li + li {
        border-top: 1px solid #eef2f6 !important;
    }

    .candlestan-main-navigation ul.nav-menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 46px !important;
        width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 9px !important;
        color: #24344f !important;
        font-size: 13px !important;
        font-weight: 720 !important;
        line-height: 1.7 !important;
        text-align: right !important;
        text-transform: none !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .candlestan-main-navigation ul.nav-menu > li > a:hover,
    .candlestan-main-navigation ul.nav-menu > li > a:focus-visible,
    .candlestan-main-navigation ul.nav-menu > .current-menu-item > a,
    .candlestan-main-navigation ul.nav-menu > .current_page_item > a {
        color: #075c70 !important;
        background: rgba(18,199,187,.09) !important;
        text-decoration: none !important;
    }

    .candlestan-main-navigation ul ul {
        position: static !important;
        width: auto !important;
        margin: 0 12px 7px 0 !important;
        padding: 0 9px 0 0 !important;
        border: 0 !important;
        border-right: 2px solid rgba(18,199,187,.18) !important;
        box-shadow: none !important;
        background: transparent !important;
        text-align: right !important;
    }

    .candlestan-main-navigation ul ul a {
        padding: 8px 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        text-transform: none !important;
    }

    /* Search panel also belongs to the entire header row. */
    .candlestan-header-search,
    .candlestan-header-search .header-search-wrap {
        position: static !important;
    }

    .candlestan-header-search .header-search-form {
        position: absolute !important;
        z-index: 10030 !important;
        top: calc(100% + 8px) !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 620px) {
    .candlestan-global-header .news-highlights,
    .candlestan-global-header .news-highlights .jctkr-wrapper,
    .candlestan-global-header .news-highlights .jctkr-wrapper ul,
    .candlestan-global-header .news-highlights .jctkr-wrapper ul li {
        min-height: 26px !important;
        height: 26px !important;
        line-height: 26px !important;
    }

    .candlestan-header-shell .site-container-width.candlestan-header-inner {
        min-height: 64px !important;
        padding-inline: 10px !important;
    }

    .candlestan-header-logo,
    .candlestan-header-logo .custom-logo-link {
        max-width: 168px !important;
    }

    .candlestan-header-logo .custom-logo {
        max-width: min(47vw, 168px) !important;
        max-height: 49px !important;
    }

    .candlestan-header-actions,
    .candlestan-main-navigation,
    .candlestan-main-navigation .menu-toggle,
    .candlestan-header-search,
    .candlestan-header-search .header-search-wrap,
    .candlestan-header-search .header-search-icon {
        flex-basis: 40px;
        min-width: 40px;
        width: 40px !important;
        height: 40px !important;
    }

    .candlestan-main-navigation .menu-toggle span:not(.screen-reader-text) {
        right: 9px !important;
        width: 20px !important;
    }

    .candlestan-main-navigation.toggled .menu-toggle span:nth-child(1),
    .candlestan-main-navigation .menu-toggle.open span:nth-child(1) {
        width: 20px !important;
        right: 9px !important;
    }

    .candlestan-main-navigation ul.nav-menu,
    .candlestan-header-search .header-search-form {
        top: calc(100% + 7px) !important;
        right: 8px !important;
        left: 8px !important;
    }
}

@media (max-width: 380px) {
    .candlestan-header-logo,
    .candlestan-header-logo .custom-logo-link {
        max-width: 150px !important;
    }

    .candlestan-header-logo .custom-logo {
        max-width: min(46vw, 150px) !important;
    }

    .candlestan-main-navigation ul.nav-menu > li > a {
        min-height: 44px !important;
        font-size: 12.5px !important;
    }
}

/* ==========================================================
 * CandleStan Global Header — v0.33
 * Mobile menu state + accordion recovery.
 *
 * Root cause fixed:
 * the base .candlestan-primary-menu rule is flex on all viewports,
 * which overrode the parent theme's closed mobile state and forced the
 * mobile menu into a horizontal strip. Mobile state is now explicit:
 * CLOSED = display:none; OPEN (.toggled) = vertical sheet.
 * Parent submenus remain touch-accessible through the theme's existing
 * .focus behavior, but are rendered as deterministic inline accordions.
 * ========================================================== */
@media (max-width: 991px) {
    /* Closed means closed — ignore jQuery inline slide styles unless the
       navigation state itself is toggled open. */
    .candlestan-main-navigation ul.nav-menu,
    .candlestan-main-navigation .candlestan-primary-menu {
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .candlestan-main-navigation.toggled > ul.nav-menu,
    .candlestan-main-navigation.toggled > .candlestan-primary-menu {
        display: block !important;
    }

    /* Premium mobile sheet. */
    .candlestan-main-navigation.toggled > ul.nav-menu {
        top: calc(100% + 7px) !important;
        right: 10px !important;
        left: 10px !important;
        max-height: min(72vh, 560px) !important;
        padding: 8px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px !important;
        background: rgba(255,255,255,.995) !important;
        box-shadow: 0 20px 52px rgba(7,26,61,.16) !important;
    }

    .candlestan-main-navigation ul.nav-menu > li {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .candlestan-main-navigation ul.nav-menu > li + li {
        border-top: 1px solid #eef2f6 !important;
    }

    .candlestan-main-navigation ul.nav-menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 9px 12px !important;
        white-space: normal !important;
        font-size: 13px !important;
        line-height: 1.75 !important;
        text-align: right !important;
    }

    /* Items with children behave like accordion rows: label right, chevron left. */
    .candlestan-main-navigation ul.nav-menu > li.menu-item-has-children > a,
    .candlestan-main-navigation ul.nav-menu > li.page_item_has_children > a {
        justify-content: space-between !important;
    }

    .candlestan-main-navigation ul.nav-menu > li.menu-item-has-children > a::after,
    .candlestan-main-navigation ul.nav-menu > li.page_item_has_children > a::after {
        flex: 0 0 auto;
        margin: 0 10px 0 0 !important;
        transition: transform .18s ease;
    }

    .candlestan-main-navigation ul.nav-menu > li.menu-item-has-children.focus > a::after,
    .candlestan-main-navigation ul.nav-menu > li.page_item_has_children.focus > a::after {
        transform: rotate(180deg) !important;
    }

    /* Submenus are deterministic accordions, not off-canvas desktop dropdowns. */
    .candlestan-main-navigation ul.nav-menu ul.sub-menu,
    .candlestan-main-navigation ul.nav-menu ul.children {
        display: none !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        margin: 0 12px 7px 0 !important;
        padding: 4px 10px 5px 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
        inset: auto !important;
        border: 0 !important;
        border-right: 2px solid rgba(18,199,187,.20) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .candlestan-main-navigation ul.nav-menu li.menu-item-has-children.focus > ul.sub-menu,
    .candlestan-main-navigation ul.nav-menu li.page_item_has_children.focus > ul.children,
    .candlestan-main-navigation ul.nav-menu li.menu-item-has-children:focus-within > ul.sub-menu,
    .candlestan-main-navigation ul.nav-menu li.page_item_has_children:focus-within > ul.children {
        display: block !important;
    }

    .candlestan-main-navigation ul.nav-menu ul.sub-menu li,
    .candlestan-main-navigation ul.nav-menu ul.children li {
        width: 100% !important;
        border: 0 !important;
    }

    .candlestan-main-navigation ul.nav-menu ul.sub-menu a,
    .candlestan-main-navigation ul.nav-menu ul.children a {
        display: block !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        color: #56657b !important;
        font-size: 12px !important;
        line-height: 1.75 !important;
        text-align: right !important;
    }

    .candlestan-main-navigation ul.nav-menu ul.sub-menu a:hover,
    .candlestan-main-navigation ul.nav-menu ul.sub-menu a:focus-visible,
    .candlestan-main-navigation ul.nav-menu ul.children a:hover,
    .candlestan-main-navigation ul.nav-menu ul.children a:focus-visible {
        color: #075c70 !important;
        background: rgba(18,199,187,.075) !important;
    }
}

/* =========================================================
   CandleStan v0.36 — official footer brand mark
   ========================================================= */
.candlestan-footer-mark--official {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.candlestan-footer-mark--official::before,
.candlestan-footer-mark--official::after,
.candlestan-footer-mark--official > span {
    display: none !important;
}

.candlestan-footer-mark--official img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, .18));
}

/* =========================================================
   CandleStan v0.38 — Persian real-content ticker
   Replaces the parent-theme demo highlight strip with a child-theme owned
   ticker that only renders genuine Persian CandleStan posts.
   ========================================================= */
.candlestan-news-ticker {
    --cs-ticker-bg: #06152f;
    --cs-ticker-line: rgba(255,255,255,.10);
    --cs-ticker-accent: #19cabb;
    position: relative;
    z-index: 20;
    height: 34px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(90deg, #06152f, #0b2046 58%, #06152f);
    color: #fff;
    direction: rtl;
}

.candlestan-news-ticker__inner {
    width: min(1320px, calc(100% - 28px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.candlestan-news-ticker__label {
    flex: 0 0 auto;
    height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid rgba(25,202,187,.28);
    border-radius: 999px;
    background: rgba(25,202,187,.10);
    color: #7cf0e6;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.candlestan-news-ticker__label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cs-ticker-accent);
    box-shadow: 0 0 0 4px rgba(25,202,187,.10);
}

.candlestan-news-ticker__viewport {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.candlestan-news-ticker__track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    will-change: transform;
}

.candlestan-news-ticker__group {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    flex: 0 0 auto;
    padding-left: 34px;
}

.candlestan-news-ticker__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #f7fbff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
    direction: rtl;
}

.candlestan-news-ticker__item::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 17px;
    border-radius: 50%;
    background: rgba(25,202,187,.75);
}

.candlestan-news-ticker__item:hover,
.candlestan-news-ticker__item:focus-visible {
    color: #73ebe0 !important;
}

.candlestan-news-ticker.is-moving .candlestan-news-ticker__track {
    animation: candlestanTickerFlow 36s linear infinite;
}

.candlestan-news-ticker.is-moving:hover .candlestan-news-ticker__track,
.candlestan-news-ticker.is-moving:focus-within .candlestan-news-ticker__track {
    animation-play-state: paused;
}

.candlestan-news-ticker.is-single .candlestan-news-ticker__track {
    justify-content: flex-start;
}

@keyframes candlestanTickerFlow {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .candlestan-news-ticker {
        height: 30px;
    }

    .candlestan-news-ticker__inner {
        width: calc(100% - 16px);
        gap: 9px;
    }

    .candlestan-news-ticker__label {
        height: 22px;
        padding: 0 8px;
        font-size: 9px;
    }

    .candlestan-news-ticker__viewport {
        mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    }

    .candlestan-news-ticker__group {
        gap: 24px;
        padding-left: 24px;
    }

    .candlestan-news-ticker__item {
        min-height: 30px;
        font-size: 10.5px;
    }
}

@media (max-width: 390px) {
    .candlestan-news-ticker__label {
        max-width: 86px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (prefers-reduced-motion: reduce) {
    .candlestan-news-ticker.is-moving .candlestan-news-ticker__track {
        animation: none !important;
    }
}

/* ==========================================================
 * CandleStan Global Header — v0.39
 * Desktop dropdown anchoring recovery.
 *
 * Why this exists:
 * Essence News positions menu <li> elements only through
 * `.main-navigation .menu li { position: relative; }`.
 * CandleStan intentionally uses a custom menu class
 * (`nav-menu candlestan-primary-menu`), so that selector does not match.
 * First-level submenus therefore anchored to the whole navigation box
 * instead of their own parent item. This section makes the anchor explicit
 * and uses physical right/left coordinates so RTL logical inset rules from
 * the parent theme cannot relocate the dropdown to the navigation edge.
 * ========================================================== */
@media (min-width: 992px) {
    .candlestan-main-navigation,
    .candlestan-main-navigation .candlestan-primary-menu {
        overflow: visible !important;
    }

    .candlestan-main-navigation .candlestan-primary-menu > li,
    .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu > li,
    .candlestan-main-navigation .candlestan-primary-menu ul.children > li {
        position: relative !important;
    }

    /* First level: always belongs to the item that owns it. */
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.children {
        top: calc(100% + 7px) !important;
        right: 0 !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(6px) !important;
        transform-origin: top right !important;
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease !important;
        z-index: 10020 !important;
    }

    .candlestan-main-navigation .candlestan-primary-menu > li:hover > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu > li:hover > ul.children,
    .candlestan-main-navigation .candlestan-primary-menu > li:focus-within > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu > li:focus-within > ul.children,
    .candlestan-main-navigation .candlestan-primary-menu > li.focus > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu > li.focus > ul.children {
        right: 0 !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Future-proof nested desktop levels for RTL: open toward the left,
       away from the logo/right edge rather than outside the viewport. */
    .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu li > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu ul.children li > ul.children {
        top: -8px !important;
        right: calc(100% + 7px) !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }

    .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu li:hover > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu li:focus-within > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu li.focus > ul.sub-menu,
    .candlestan-main-navigation .candlestan-primary-menu ul.children li:hover > ul.children,
    .candlestan-main-navigation .candlestan-primary-menu ul.children li:focus-within > ul.children,
    .candlestan-main-navigation .candlestan-primary-menu ul.children li.focus > ul.children {
        top: -8px !important;
        right: calc(100% + 7px) !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }
}


/* ==========================================================
 * CandleStan Global Header — v0.54.1
 * Product navigation distinction + desktop hover bridge.
 * ========================================================== */
@media (min-width: 992px) {
    /*
     * Product surfaces should read as a distinct part of CandleStan without
     * turning the header into a row of CTA buttons. Attribute matching keeps
     * this independent from WordPress menu IDs.
     */
    .candlestan-main-navigation .candlestan-primary-menu > li > a[href*="/market-pulse/"],
    .candlestan-main-navigation .candlestan-primary-menu > li > a[href*="/tools/"] {
        color: #075c70 !important;
        background: rgba(18, 199, 187, .055);
        box-shadow: inset 0 0 0 1px rgba(18, 199, 187, .13);
        font-weight: 800 !important;
    }

    .candlestan-main-navigation .candlestan-primary-menu > li > a[href*="/market-pulse/"]:hover,
    .candlestan-main-navigation .candlestan-primary-menu > li > a[href*="/market-pulse/"]:focus-visible,
    .candlestan-main-navigation .candlestan-primary-menu > li > a[href*="/tools/"]:hover,
    .candlestan-main-navigation .candlestan-primary-menu > li > a[href*="/tools/"]:focus-visible {
        color: #06465c !important;
        background: rgba(18, 199, 187, .105) !important;
        box-shadow: inset 0 0 0 1px rgba(18, 199, 187, .22);
    }

    /*
     * v0.39 intentionally leaves 7px of visual air below a top-level item.
     * That air was also a real pointer dead-zone: :hover could be lost before
     * the cursor reached the submenu. The transparent bridge preserves the
     * visual gap while making the whole path hoverable.
     */
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu::before,
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.children::before {
        content: "";
        position: absolute;
        top: -10px;
        right: -1px;
        left: -1px;
        height: 10px;
        background: transparent;
        pointer-events: auto;
    }
}

/* SureCookie: compact, keyboard-accessible footer preferences control. */
.candlestan-global-footer .candlestan-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    min-width: 0;
}
.candlestan-global-footer .candlestan-footer-cookie-settings {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.candlestan-global-footer .candlestan-footer-cookie-settings :is(a, button) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 7px;
    background: transparent !important;
    box-shadow: none !important;
    color: #93e4dc !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    cursor: pointer;
    white-space: normal;
}
.candlestan-global-footer .candlestan-footer-cookie-settings :is(a, button):hover {
    background: rgba(18, 199, 187, .09) !important;
    color: #d0fff9 !important;
}
.candlestan-global-footer .candlestan-footer-cookie-settings :is(a, button):focus-visible {
    outline: 2px solid #93e4dc !important;
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .candlestan-global-footer .candlestan-footer-legal {
        justify-content: flex-start;
        gap: 2px 10px;
    }
}
