/*
Theme Name: Qoqnossho
Theme URI: https://qoqnossho.ir
Author: Qoqnossho Team
Author URI: https://qoqnossho.ir
Description: تخصصی‌ترین سامانه حمایتی از اصناف تولید کشور - پوسته وردپرس ققنوس شو
Version: 1.0.57
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: qoqnossho
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl, one-column, custom-menu, featured-images, theme-options
*/

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Peyda — only 3 weights are published on the live site (qoqnossho.ir Elementor kit).
   Declared at their true weights; --font-sans still points at Vazirmatn until the
   missing 400/500/700 faces are sourced, otherwise body copy renders hairline-thin. */
@font-face {
    font-family: 'Peyda';
    src: url('assets/fonts/peyda/Peyda-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('assets/fonts/peyda/PeydaWeb-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('assets/fonts/peyda/Peyda-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6CE4EC, #184D7D);
  border-radius: 4px;
}



/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #6CE4EC, #184D7D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient backgrounds */
.gradient-phoenix {
  background: linear-gradient(135deg, #6CE4EC 0%, #22b0c4 50%, #184D7D 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 228, 236, 0.4); }
  50% { box-shadow: 0 0 40px rgba(108, 228, 236, 0.8); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hero pattern */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23184D7D' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Category card hover */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: scale(1.03);
}

/* Feature icon animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: rotate(5deg) scale(1.1);
}

/* WordPress specific */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Alignments */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid #184D7D;
    border-radius: 0.5rem;
    color: #184D7D;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: linear-gradient(135deg, #6CE4EC 0%, #22b0c4 50%, #184D7D 100%);
  color: white;
}

/* Phones: one scrollable row so long page lists never overflow or overlap. */
@media (max-width: 640px) {
    .pagination .nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 0.25rem;
    }

    .pagination .nav-links::-webkit-scrollbar {
        display: none;
    }

    .pagination .page-numbers {
        flex-shrink: 0;
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.6rem;
        font-size: 0.85rem;
    }
}

/* Button hover fallback: darkens secondary-600 buttons on hover for the few that
   carry no hover: utility. Scoped to real buttons/links — the bare class also hit
   big non-interactive areas (top bar, footer) and !important beat intentional
   hover colors elsewhere. #143f66 = --color-secondary-700. */
a.bg-secondary-600:hover,
button.bg-secondary-600:hover {
  background-color: #143f66;
}
button:hover {

  cursor: pointer !important;
}
button[type="submit"]:hover,
.btn-primary:hover {
  background-color: #143f66 !important;
  cursor: pointer !important;
}

nav button:not(.dropdown-toggle):hover {
    background-color: transparent !important;
}

/* Provider list view */
#provider-results.provider-view-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#provider-results.provider-view-list .provider-card-wrapper > a {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

#provider-results.provider-view-list .provider-card-wrapper > a > div:first-child {
    width: 16rem;
    height: auto;
    min-height: 12rem;
    flex-shrink: 0;
}

#provider-results.provider-view-list .provider-card-wrapper > a > div:first-child img {
    height: 100%;
    object-fit: cover;
}

#provider-results.provider-view-list .provider-card-wrapper > a > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 640px) {
    #provider-results.provider-view-list .provider-card-wrapper > a > div:first-child {
        width: 7rem;
        min-height: 7rem;
    }
}

/* Imported provider-category content typography (theme has no @tailwindcss/typography) */
.category-content {
    color: #374151;
    font-size: 1rem;
    line-height: 2;
    text-align: justify;
}
.category-content > *:first-child { margin-top: 0; }
.category-content > *:last-child { margin-bottom: 0; }

.category-content p {
    margin: 0 0 1.1rem;
    line-height: 2;
}

.category-content h2,
.category-content h3,
.category-content h4 {
    color: #111827;
    font-weight: 700;
    line-height: 1.6;
}
.category-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.85rem;
}
.category-content h3 {
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
}
.category-content h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.6rem;
}

.category-content ul,
.category-content ol {
    margin: 0 0 1.1rem;
    padding-right: 1.75rem;
}
.category-content ul { list-style: disc; }
.category-content ol { list-style: decimal; }
.category-content li {
    margin-bottom: 0.6rem;
    line-height: 2;
}
.category-content li > p { margin: 0; }
.category-content li::marker { color: #2f5f96; }

.category-content a {
    color: #184D7D;
    text-decoration: underline;
}
.category-content a:hover { color: #22b0c4; }

.category-content blockquote {
    margin: 1.25rem 0;
    padding: 0.25rem 1rem 0.25rem 0;
    border-right: 4px solid #d4e0f0;
    color: #4b5563;
}

.category-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    line-height: 1.8;
}
.category-content th,
.category-content td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.75rem;
    text-align: right;
    vertical-align: top;
}
.category-content th {
    background: #f9fafb;
    font-weight: 700;
    color: #111827;
}

.category-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
    display: block;
}

.category-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.75rem 0;
}

/* Hero: text column ~1/3, slideshow takes the rest */
@media (min-width: 1024px) {
    .hero-layout {
        gap: 4rem;
    }

    .hero-text-col {
        flex: 0 0 34%;
        max-width: 34%;
    }
}

/* Hero search stacks on mobile (the single-row layout crushed the text field to
   nothing), and returns to one row of content-sized fields from lg up. */
@media (min-width: 1024px) {
    .hero-search .hero-field,
    .hero-search button[type="submit"] {
        width: auto;
    }
}

.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Readability scrim for the controls, like the reference slider */
.hero-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 45%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-controls {
    position: absolute;
    bottom: 1.25rem;
    inset-inline-start: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 9999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0.5rem;
}

.hero-slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.hero-slider-dot.is-active {
    width: 1.5rem;
    background: #6ce4ec;
}

/* Compact light hero */
.hero-light {
    background-color: #ffffff;
    color: #111827;
}

.hero-light .hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hero-light .hero-layout {
    gap: 1.5rem;
}

.hero-light .hero-text-col {
    color: #40598c;
}

.hero-light .hero-slideshow {
    box-shadow: none;
}

.hero-light .hero-badge {
    background-color: #eef3f9;
    color: #184D7D;
}

.hero-light .hero-text-col h1 {
    margin-bottom: 0.75rem;
}

.hero-light .hero-copy p {
    margin-bottom: 0.75rem;
}

.hero-light .hero-copy p:last-child {
    margin-bottom: 1rem;
}

.hero-light .hero-actions {
    margin-top: 1rem;
}

.hero-light .hero-actions .glass {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.hero-light .hero-actions .glass:hover {
    background-color: #f3f4f6;
}

.hero-light .hero-stats {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-color: #e5e7eb;
}

.hero-light .hero-search {
    margin-top: 1.25rem;
}

.hero-light .hero-search input,
.hero-light .hero-search select {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #111827;
}

.hero-light .hero-search input::placeholder {
    color: #9ca3af;
}

.hero-light .hero-text-col p.text-gray-300 {
    color: #4b5563;
}

.hero-light .hero-text-col p.text-gray-400 {
    color: #6b7280;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 40;
    }

    .mobile-bottom-nav__bar {
        position: relative;
        background: linear-gradient(180deg, #17517f 0%, #0c3154 100%);
        border-radius: 1.375rem 1.375rem 0 0;
        box-shadow: 0 -12px 30px rgba(12, 37, 61, 0.35);
        padding: 0.65rem 0.5rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav__list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-bottom-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
        padding: 0.25rem 0.1rem;
        border: 0;
        background: transparent;
        color: #d9ecff;
        font-size: 0.72rem;
        line-height: 1.6;
        text-decoration: none;
    }

    .mobile-bottom-nav__link:hover {
        color: #ffffff;
    }

    .mobile-bottom-nav__link:focus-visible,
    .mobile-bottom-nav__home:focus-visible {
        outline: 2px solid #6ce4ec;
        outline-offset: 3px;
        border-radius: 0.75rem;
    }

    .mobile-bottom-nav__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 1.5rem;
    }

    .mobile-bottom-nav__label {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 2.3em;
        max-width: 4.5rem;
        text-align: center;
    }

    .mobile-bottom-nav__item--home {
        position: relative;
        min-height: 3.4rem;
    }

    .mobile-bottom-nav__home {
        position: absolute;
        inset: 0;
        display: block;
    }

    .mobile-bottom-nav__medallion {
        position: absolute;
        left: 50%;
        bottom: 0.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4.5rem;
        height: 5.75rem;
        border-radius: 999px;
        background: linear-gradient(180deg, #82eff6 0%, #22b0c4 55%, #12879a 100%);
        box-shadow: 0 14px 28px rgba(8, 44, 66, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.35);
        transform: translateX(-50%);
    }

    .mobile-bottom-nav__logo {
        width: 2rem;
        height: auto;
        color: #ffffff;
    }

    #provider-select-bar {
        bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
    }

    #back-to-top {
        bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
        left: 1rem;
        width: 3rem;
        height: 3rem;
    }
}

/* space-y-4 never made it into the prebuilt tailwind.min.css. Scoped fallback
   for the two filter forms only — a global rule would double-space the 30+
   other space-y-4 users whose children already carry their own margins. */
.provider-filter-form > * + *,
.auction-filter-form > * + * {
    margin-top: 1rem;
}

/* Tailwind's prebuilt bundle has no mt-auto; provider cards use it to pin the
   footer so equal-height cards keep their text lines aligned. */
.mt-auto {
    margin-top: auto;
}

/* Mobile menu (shows below 1024px): the eleven links fit two compact columns
   instead of one tall list; the login/register row spans both. */
.mobile-menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.mobile-menu-list > a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.mobile-menu-list > div {
    grid-column: 1 / -1;
}

/* Footer: on mobile the two menu widgets (دسترسی سریع / صنایع پرطرفدار) sit side
   by side; the brand and contact columns stay full width around them. */
@media (max-width: 767.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile homepage carousels: the ads / magazine / news lists and the superiority
   points keep their desktop grid; below 768px each becomes one swipeable row with
   auto-advance, arrows and dots (assets/js/main.js). */
.m-carousel__nav {
    display: none;
}

.sup-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    /* The homepage was one very long scroll: tighten every section's rhythm. */
    .home section[id] {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .m-carousel {
        position: relative;
    }

    .m-carousel__track {
        display: flex;
        gap: 0.9rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .m-carousel__track::-webkit-scrollbar {
        display: none;
    }

    /* Peek of the next card, so the row reads as swipeable. */
    .m-carousel__track > * {
        flex: 0 0 86%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .m-carousel__nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .m-carousel--single .m-carousel__nav {
        display: none;
    }

    .m-carousel__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border: 0;
        border-radius: 9999px;
        background: #eef3f9;
        color: #184d7d;
    }

    .m-carousel__btn:hover {
        background: #dce8f5;
    }

    .m-carousel__dots {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        margin: 0 0.25rem;
    }

    .m-carousel__dot {
        width: 0.5rem;
        height: 0.5rem;
        padding: 0;
        border: 0;
        border-radius: 9999px;
        background: #cbd5e1;
        transition: all 0.3s ease;
    }

    .m-carousel__dot.is-active {
        width: 1.25rem;
        background: #22b0c4;
    }

    /* Superiority + industries merged: smaller logo, points as a slide, then the
       9 industries in two columns (the standalone #categories section is hidden). */
    .sup-desktop,
    .sup-badge {
        display: none;
    }

    .sup-mobile {
        display: block;
    }

    .sup-head {
        margin-bottom: 1rem;
    }

    .sup-mobile__logo {
        display: block;
        width: 6.5rem;
        height: auto;
        margin: 0 auto 1.25rem;
    }

    #categories {
        display: none;
    }

    .sup-mobile__industries {
        margin-top: 2rem;
    }

    .sup-mobile__industries .cat-card {
        border-radius: 0.75rem;
    }

    .sup-mobile__industries .cat-card > div:first-child {
        padding: 0.5rem;
    }

    .sup-mobile__industries .cat-card h4 {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .sup-mobile__industries .cat-card > div:last-child {
        padding: 0.4rem 0.3rem;
    }

    .sup-mobile__industries .cat-card span {
        font-size: 0.65rem;
    }

    /* Messaging section: smaller heading, the six points as one swipeable row and
       the chat mockups + video as a second row instead of one long column. */
    .msg-grid > * {
        min-width: 0;
    }

    .msg-head {
        font-size: 1.35rem;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .msg-head__icon {
        width: 2.4rem;
        height: 2.4rem;
    }

    .msg-head__icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .msg-intro {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .msg-panel {
        padding: 1rem;
    }

    .msg-slides {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .msg-slides::-webkit-scrollbar {
        display: none;
    }

    .msg-slides > * {
        flex: 0 0 88%;
        min-width: 0;
        scroll-snap-align: start;
    }

    /* Hero: the desktop slideshow also runs on mobile as a short banner above the
       headline, so the hero keeps a visual without growing much taller. */
    .hero-section {
        min-height: auto;
    }

    .hero-side.hero-side {
        display: block;
        order: -1;
    }

    .hero-slideshow {
        aspect-ratio: 2.6 / 1;
        border-radius: 0.75rem;
    }

    .hero-slider-controls {
        bottom: 0.4rem;
        inset-inline-start: 0.5rem;
        gap: 0.25rem;
    }

    .hero-slider-btn {
        width: 1.6rem;
        height: 1.6rem;
    }

    .hero-slider-btn svg {
        width: 0.85rem;
        height: 0.85rem;
    }

    .hero-slider-dots {
        gap: 0.25rem;
        margin: 0 0.25rem;
    }

    .hero-slider-dot {
        width: 0.45rem;
        height: 0.45rem;
    }

    .hero-slider-dot.is-active {
        width: 0.9rem;
    }

    .hero-light .hero-inner {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }
}

/* On phones the bell sits next to the menu toggle, so an absolutely positioned
   320px panel would hang off the screen. Pin it to the viewport edges instead and
   keep its vertical static position (right below the bell). */
@media (max-width: 767px) {
    #notification-dropdown {
        position: fixed;
        top: auto;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-width: none;
    }
}

/* Fixed background watermark logo (echoed in footer.php; main.js moves it inside
   <main> so z-index:-1 lands above the main background, below the content). */
.qoq-watermark {
    pointer-events: none;
    z-index: -1;
    filter: invert(1);
    transform: scale(-1, 1);
    position: fixed;
    top: 100px;
    left: 50px;
    opacity: 0.1;
    width: 400px;
}

@media (max-width: 640px) {
    .qoq-watermark {
        left: 0;
        width: 320px;
    }
}

/* ============================================================
   Article single (magazine + news) — long-form reading layout
   Signature: numbered h2 sections mirrored by a numbered TOC.
   ============================================================ */
.artb-hero {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px -24px rgba(16, 51, 80, 0.45);
}

.artb-hero img {
    width: 100%;
    height: clamp(260px, 42vw, 420px);
    object-fit: cover;
    display: block;
}

.artb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 40, 66, 0.92) 0%, rgba(13, 40, 66, 0.45) 45%, rgba(13, 40, 66, 0.05) 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.artb-chip {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0e3253;
    background: linear-gradient(135deg, #6CE4EC 0%, #3dd4e0 100%);
}

.artb-tldr {
    border: 1px solid #d4e0f0;
    border-inline-start: 4px solid #22b0c4;
    background: linear-gradient(to left, #eef3f9, #f8fbfd);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.artb-tldr p {
    margin: 0.5rem 0 0;
    line-height: 2;
    color: #103350;
}

/* --- numbered body sections ---------------------------------- */
.article-body {
    counter-reset: arth2;
    line-height: 2.1;
    font-size: 1.05rem;
    color: #1f2937;
}

.article-body > * + * {
    margin-top: 1.25rem;
}

.article-body h2 {
    counter-increment: arth2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #103350;
    line-height: 1.6;
    padding-block-start: 2rem;
    scroll-margin-top: 5.5rem;
}

.article-body h2::before {
    content: counter(arth2, persian);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6CE4EC 0%, #22b0c4 55%, #184D7D 100%);
    box-shadow: 0 6px 14px -6px rgba(34, 176, 196, 0.7);
}

.article-body h2::after {
    content: "";
    order: 3;
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, #b3f3f9, transparent);
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #143f66;
    border-inline-start: 3px solid #22b0c4;
    padding-inline-start: 0.75rem;
    scroll-margin-top: 5.5rem;
}

.article-body a {
    color: #184D7D;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #80eaf4;
    text-underline-offset: 4px;
}

.article-body a:hover {
    color: #22b0c4;
}

.article-body blockquote {
    border-inline-start: 4px solid #22b0c4;
    background: #f0fdfe;
    border-radius: 0.5rem 1rem 1rem 0.5rem;
    padding: 1rem 1.25rem;
    color: #103350;
    font-style: normal;
}

.article-body ul,
.article-body ol {
    padding-inline-start: 1.5rem;
}

.article-body ul li {
    list-style: none;
    position: relative;
}

.article-body ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: -1.1rem;
    top: 0.85em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 2px;
    transform: rotate(45deg);
    background: #22b0c4;
}

.article-body ol li::marker {
    color: #22b0c4;
    font-weight: 700;
}

.article-body img,
.article-body figure img {
    border-radius: 1rem;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-body thead th {
    background: #103350;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: right;
}

.article-body tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

.article-body tbody tr:nth-child(even) {
    background: #f8fbfd;
}

.artb-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

/* --- TOC (inline card + sidebar) ------------------------------ */
.artb-toc-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    color: #4b5563;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.artb-toc-link .artb-toc-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #184D7D;
    background: #eef3f9;
}

.artb-toc-link:hover {
    color: #143f66;
    background: #f0fdfe;
}

.artb-toc-link.is-active {
    color: #103350;
    font-weight: 700;
    background: #f0fdfe;
    border-color: #80eaf4;
}

.artb-toc-link.is-active .artb-toc-num {
    color: #fff;
    background: linear-gradient(135deg, #6CE4EC 0%, #22b0c4 100%);
}

@media (prefers-reduced-motion: reduce) {
    .artb-toc-link,
    .article-body h2 {
        transition: none;
        scroll-behavior: auto;
    }
}

/* FAQ accordion rows */
.artb-faq-toggle[aria-expanded="true"] .artb-faq-icon {
    transform: rotate(180deg);
}

/* ============================================================
   Prose — baseline typography for user-authored content.
   Tailwind Typography plugin is NOT in this build, so `.prose` was a
   dead class: headings, paragraphs and lists rendered unstyled.
   :where() keeps specificity at zero, so any utility class on an
   element still wins, while these rules beat the preflight reset.
   ============================================================ */
:where(.prose) {
    line-height: 2;
    font-size: 1.05rem;
    color: #374151;
}

:where(.prose) > :first-child {
    margin-top: 0;
}

:where(.prose) > :last-child {
    margin-bottom: 0;
}

:where(.prose) p {
    margin: 0 0 1.1em;
}

:where(.prose) h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #103350;
    line-height: 1.6;
    margin: 1.8em 0 0.6em;
}

:where(.prose) h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #143f66;
    margin: 1.5em 0 0.5em;
}

:where(.prose) h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #143f66;
    margin: 1.3em 0 0.4em;
}

:where(.prose) ul,
:where(.prose) ol {
    margin: 0 0 1.1em;
    padding-inline-start: 1.5rem;
}

:where(.prose) ul {
    list-style: disc;
}

:where(.prose) ol {
    list-style: decimal;
    list-style: persian;
}

:where(.prose) li {
    margin: 0.3em 0;
}

:where(.prose) li > ul,
:where(.prose) li > ol {
    margin: 0.3em 0;
}

:where(.prose) a {
    color: #184D7D;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #80eaf4;
    text-underline-offset: 3px;
}

:where(.prose) a:hover {
    color: #22b0c4;
}

:where(.prose) strong {
    color: #103350;
    font-weight: 700;
}

:where(.prose) img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

:where(.prose) blockquote {
    border-inline-start: 4px solid #22b0c4;
    background: #f0fdfe;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 0 0 1.1em;
    font-style: normal;
    color: #103350;
}

:where(.prose) table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.1em;
    font-size: 0.95rem;
}

:where(.prose) th {
    background: #103350;
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    text-align: right;
}

:where(.prose) td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

:where(.prose) hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

/* Dark hero descriptions (archive header): keep the text light. */
:where(.prose-invert),
:where(.prose-invert) p,
:where(.prose-invert) li {
    color: #d1d5db;
}

:where(.prose-invert) h2,
:where(.prose-invert) h3,
:where(.prose-invert) strong {
    color: #fff;
}

:where(.prose-invert) a {
    color: #6CE4EC;
}
