*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #faf7f2;
    --warm-white: #fffef9;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark: #8b6914;
    --brown: #5c3d1e;
    --brown-light: #8b5e3c;
    --brown-dark: #2c1a0a;
    --red: #9b2335;
    --red-light: #c0392b;
    --red-muted: rgba(155, 35, 53, 0.1);
    --text: #1a1208;
    --text-muted: #7a6548;
    --border: rgba(201, 168, 76, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--warm-white);
    color: var(--text);
    overflow-x: hidden;
}

.ornament {
    width: 100%;
    opacity: 0.12;
    pointer-events: none;
    position: absolute;
}

/* ══ NAVBAR ══ */
nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 254, 249, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--brown));
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.35);
}
.logo-text {
    line-height: 1.2;
}
.logo-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brown-dark);
}
.logo-sub {
    font-size: 0.65rem;
    color: var(--gold-dark);
    letter-spacing: 0.05em;
}

/* لینک‌ها پنهان در موبایل */
.nav-links {
    display: none;
}

.btn-register {
    background: linear-gradient(135deg, var(--gold), #a8751e);
    color: #fff !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 9px !important;
    font-size: 0.8rem;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.4);
    transition:
        transform 0.2s,
        box-shadow 0.2s !important;
    white-space: nowrap;
}
.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.5) !important;
    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    ) !important;
    color: var(--brown-dark) !important;
}

@media (min-width: 900px) {
    .nav-inner {
        padding: 0 2rem;
        height: 72px;
    }
    .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        border-radius: 12px;
    }
    .logo-title {
        font-size: 1rem;
    }
    .logo-sub {
        font-size: 0.7rem;
    }
    .nav-links {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        list-style: none;
    }
    .nav-links a {
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.875rem;
        font-weight: 500;
        padding: 0.5rem 0.85rem;
        border-radius: 8px;
        transition: all 0.2s;
    }
    .nav-links a:hover {
        color: var(--brown);
        background: rgba(201, 168, 76, 0.1);
    }
    .btn-register {
        padding: 0.55rem 1.25rem !important;
        font-size: 0.875rem;
    }
}

/* ══ HERO ══ */
.hero {
    min-height: 100svh;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (min-width: 900px) {
    .hero {
        padding-top: 72px;
    }
}

/* ─ اسلایدر ─ */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--img-d);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    filter: blur(2px) brightness(0.55);
    transform: scale(1.04);
}
.hero-slide.active {
    opacity: 1;
}
@media (max-width: 640px) {
    .hero-slide {
        background-image: var(--img-m);
        background-position: top center;
    }
}

/* ─ overlay ─ */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        170deg,
        rgba(20, 10, 5, 0.55) 0%,
        rgba(80, 35, 10, 0.45) 50%,
        rgba(10, 5, 0, 0.7) 100%
    );
}

/* ─ خطوط ─ */
.hero-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
@media (min-width: 900px) {
    .hero-lines {
        background-size: 60px 60px;
    }
}

/* ─ نقش‌های گوشه ─ */
.corner-ornament {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.15;
    z-index: 3;
}
.corner-ornament.tl {
    top: 70px;
    right: 0;
}
.corner-ornament.br {
    bottom: 0;
    left: 0;
    transform: rotate(180deg);
}
@media (min-width: 900px) {
    .corner-ornament {
        width: 280px;
        height: 280px;
        opacity: 0.18;
    }
}

/* ─ محتوای اصلی ─ */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
}
@media (min-width: 900px) {
    .hero-content {
        padding: 4rem 2rem 2rem;
    }
}

/* ─ Badge ─ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.18);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f0d080;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
}
.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #f0d080;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

/* ─ خط تزئینی ─ */
.hero-ornament-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    margin-bottom: 1rem;
}
.hero-ornament-line span:not(.ornament-diamond) {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 168, 76, 0.7),
        transparent
    );
}
.ornament-diamond {
    color: #c9a84c;
    font-size: 0.7rem;
    line-height: 1;
}

/* ─ عنوان ─ */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 1rem;
    line-height: 2.1;
}
.title-line-small {
    font-size: clamp(2.1rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: #e8d5a3;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.title-line-main {
    font-size: clamp(2.4rem, 9vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #f5e070 0%, #e0a830 45%, #d4622a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}
.title-line-place {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #f0e0c0;
    letter-spacing: 0.15em;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.title-line-place::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e07830, transparent);
    border-radius: 2px;
}

.hero-sub {
    font-size: 1.09rem;
    font-weight: 500;
    color: #c8a84a;
    margin-bottom: 1rem;
    margin-top: 0.75rem;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
@media (min-width: 900px) {
    .hero-sub {
        font-size: 1rem;
    }
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #e07830,
        #f0c040,
        transparent
    );
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

.hero-desc {
    font-size: 0.9rem;
    color: rgba(240, 225, 195, 0.88);
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 520px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 900px) {
    .hero-desc {
        font-size: 1rem;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        margin-bottom: 2.5rem;
    }
}

/* ─ دکمه‌ها ─ */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
    .hero-actions {
        margin-bottom: 3rem;
    }
}
.btn-primary {
    background: linear-gradient(135deg, #d4922a, #8b5010);
    color: #fff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(180, 100, 20, 0.5);
    transition: all 0.25s;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(180, 100, 20, 0.65);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #f0d080;
    border: 2px solid rgba(201, 168, 76, 0.5);
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
    text-decoration: none;
}
.btn-outline:hover {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.15);
}
@media (min-width: 900px) {
    .btn-primary,
    .btn-outline {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

/* ─ آمار ─ */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1rem 1.5rem;
    width: fit-content;
    margin: 0 auto;
    background: linear-gradient(45deg, #f8f8f8ad, #ff9c47a6);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
}
@media (min-width: 480px) {
    .hero-stats {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }
}
.stat {
    line-height: 1.2;
    text-align: center;
}
.stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #f3ab00;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.stat-label {
    font-size: 0.92rem;
    color: rgb(0 0 0);
    margin-top: 0.15rem;
}
.stat-divider {
    width: 1px;
    background: rgba(201, 168, 76, 0.3);
    align-self: stretch;
    display: none;
}
@media (min-width: 480px) {
    .stat-divider {
        display: block;
    }
}

/* ─ نوار پایین ─ */
.hero-strip {
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(12, 6, 2, 0.75);
    backdrop-filter: blur(14px);
}
.strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .strip-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 2rem;
        gap: 1rem;
    }
}
@media (max-width: 639px) {
    .strip-item:nth-child(3),
    .strip-item:nth-child(4) {
        display: none;
    }
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(210, 185, 140, 0.8);
}
.strip-icon {
    width: 34px;
    height: 34px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.strip-item strong {
    color: #e8c870;
    font-weight: 700;
    display: block;
}

/* ══ FOOTER ══ */
footer {
    background: var(--brown-dark);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
}

/* تزئین قرمز اشرافی بالای footer */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.footer-ornament {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    opacity: 0.04;
    pointer-events: none;
}

/* موبایل: 2 ستون، دسکتاپ: 4 ستون */
.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
/* برند تمام عرض در موبایل */
.footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .footer-top {
        padding: 4rem 2rem 3rem;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
    .footer-brand {
        grid-column: auto;
    }
}

.footer-brand .logo-title {
    color: #fff;
    font-size: 1.1rem;
}
.footer-brand .logo-sub {
    color: var(--gold-light);
}
.footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
}

.socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.social {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.social:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.7rem;
}
.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 1;
}
.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}
@media (min-width: 640px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.25rem 2rem;
        text-align: right;
    }
}
.footer-gold {
    color: var(--gold-light);
    font-weight: 600;
}

/* ══ HERITAGE INTRO ══ */
.heritage-intro {
    position: relative;
    background: linear-gradient(
        165deg,
        var(--warm-white) 0%,
        #fef9f0 50%,
        var(--cream) 100%
    );
    padding: 3rem 1.25rem;
    overflow: hidden;
}
@media (min-width: 900px) {
    .heritage-intro {
        padding: 5rem 2rem;
    }
}

/* بته‌جقه شناور پس‌زمینه */
.heritage-ornament-bg {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 20 C80 30, 70 50, 68 70 C66 90, 75 105, 70 120 C65 135, 50 145, 52 165 C54 185, 75 195, 95 190 C115 185, 125 170, 127 150 C129 130, 120 115, 125 100 C130 85, 145 75, 142 55 C139 35, 120 15, 100 20 Z' fill='%23c9a84c' opacity='0.03'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.5;
}
@media (min-width: 900px) {
    .heritage-ornament-bg {
        width: 600px;
        height: 600px;
        top: -15%;
        left: -8%;
    }
}

.heritage-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .heritage-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ─ Badge ─ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}
.badge-icon {
    font-size: 1rem;
}

/* ─ عنوان ─ */
.heritage-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}
.heritage-title-top {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.1em;
}
.heritage-title-main {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--brown-dark);
    line-height: 1.2;
}

/* ─ خط تزئینی ─ */
.heritage-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.heritage-divider span:not(.divider-diamond) {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    max-width: 80px;
}
.divider-diamond {
    color: var(--gold);
    font-size: 0.7rem;
}

/* ─ متن ─ */
.heritage-text {
    font-size: 0.95rem;
    line-height: 1.95;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}
.heritage-text strong {
    color: var(--gold-dark);
    font-weight: 700;
}

/* ─ لینک ─ */
.heritage-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gold-dark);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.05);
    transition: all 0.25s;
}
.heritage-link:hover {
    background: var(--gold);
    color: #fff;
    transform: translateX(-3px);
}
.link-arrow {
    font-size: 1.1rem;
    transition: transform 0.25s;
}
.heritage-link:hover .link-arrow {
    transform: translateX(-4px);
}

/* ─ تصویر ─ */
.heritage-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.heritage-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow:
        0 10px 40px rgba(92, 61, 30, 0.2),
        0 0 0 8px rgba(201, 168, 76, 0.1);
}

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

/* گوشه‌های تزئینی قاب */
.heritage-frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
}
.heritage-frame-corner.tl {
    top: -3px;
    right: -3px;
    border-bottom: none;
    border-left: none;
}
.heritage-frame-corner.tr {
    top: -3px;
    left: -3px;
    border-bottom: none;
    border-right: none;
}
.heritage-frame-corner.bl {
    bottom: -3px;
    right: -3px;
    border-top: none;
    border-left: none;
}
.heritage-frame-corner.br {
    bottom: -3px;
    left: -3px;
    border-top: none;
    border-right: none;
}

/* تگ سال */
.heritage-tag {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    box-shadow:
        0 6px 20px rgba(201, 168, 76, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    white-space: nowrap;
}
.tag-year {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}
.tag-label {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ══ CRAFT CATEGORIES ══ */
.craft-categories {
    background: var(--warm-white);
    padding: 3rem 1rem;
}
@media (min-width: 768px) {
    .craft-categories {
        padding: 4rem 1.5rem;
    }
}
@media (min-width: 1024px) {
    .craft-categories {
        padding: 5rem 2rem;
    }
}

/* ─ هدر ─ */
.craft-header {
    max-width: 650px;
    margin: 0 auto 2rem;
    text-align: center;
}

.craft-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}
.craft-title-top {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.craft-title-main {
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    font-weight: 900;
    color: var(--brown-dark);
    line-height: 1.3;
}

.craft-subtitle {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ─ Grid (ریسپانسیو دقیق) ─ */
.craft-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    /* موبایل: 2 ستون */
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .craft-grid {
        gap: 1.25rem;
        /* تبلت کوچک: 3 ستون */
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .craft-grid {
        gap: 1.5rem;
        /* دسکتاپ: 4 ستون */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─ کارت ─ */
.craft-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        0 2px 12px rgba(92, 61, 30, 0.08),
        0 0 0 1px rgba(201, 168, 76, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.craft-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 28px rgba(92, 61, 30, 0.14),
        0 0 0 1px var(--gold);
}

/* ─ تصویر ─ */
.craft-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cream);
}

.craft-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.craft-card:hover .craft-img {
    transform: scale(1.08);
}

.craft-num {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow:
        0 2px 8px rgba(201, 168, 76, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@media (min-width: 640px) {
    .craft-num {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ─ اطلاعات ─ */
.craft-info {
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
@media (min-width: 640px) {
    .craft-info {
        padding: 1.1rem 1rem;
    }
}

.craft-title-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brown-dark);
    margin: 0;
    line-height: 1.3;
}
@media (min-width: 640px) {
    .craft-title-card {
        font-size: 1rem;
        gap: 0.45rem;
    }
}

.craft-icon {
    font-size: 1.1rem;
}
@media (min-width: 640px) {
    .craft-icon {
        font-size: 1.2rem;
    }
}

.craft-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}
@media (min-width: 640px) {
    .craft-meta {
        font-size: 0.8rem;
    }
}

/* ─ CTA ─ */
.craft-cta {
    text-align: center;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .craft-cta {
        margin-top: 2.5rem;
    }
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--brown-dark);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border: 2px solid var(--gold);
    border-radius: 11px;
    background: rgba(201, 168, 76, 0.05);
    transition: all 0.3s;
}
.view-all-link:hover {
    background: var(--gold);
    color: #fff;
    transform: scale(1.03);
}
.link-arrow {
    transition: transform 0.3s;
}
.view-all-link:hover .link-arrow {
    transform: translateX(-3px);
}
@media (min-width: 640px) {
    .view-all-link {
        font-size: 0.95rem;
        padding: 0.8rem 1.8rem;
    }
}

/* housework */

/* ══ FEATURED WORKSHOPS ══ */
.featured-workshops {
    background: linear-gradient(180deg, #231709 0%, #231508 60%, #1a1208 100%);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

/* خطوط پس‌زمینه دکوراتیو */
.featured-workshops::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(
        ellipse,
        rgb(123 91 3 / 28%) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.featured-workshops::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgb(201 168 76 / 8%) 0px,
            rgb(201 168 76 / 17%) 1px,
            transparent 1px,
            transparent 80px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(201, 168, 76, 0.025) 0px,
            rgb(201 168 76 / 5%) 1px,
            transparent 1px,
            transparent 80px
        );
    pointer-events: none;
}

@media (min-width: 768px) {
    .featured-workshops {
        padding: 4.5rem 1.5rem;
    }
}
@media (min-width: 1024px) {
    .featured-workshops {
        padding: 5.5rem 2rem;
    }
}

/* ─ هدر ─ */
.fw-header {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.fw-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.28);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.3rem;
}
.fw-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}
.fw-title-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}
.fw-title-main {
    font-size: clamp(1.45rem, 3.8vw, 2.4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
}
.fw-desc {
    font-size: 0.84rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.45);
}

/* ─ گرید اصلی ─ */
.fw-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
    /* موبایل: hero بالا، دوتای بعدی در ردیف دوم */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}
@media (min-width: 768px) {
    .fw-grid {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr;
        gap: 1.2rem;
    }
}
@media (min-width: 1024px) {
    .fw-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 1.4rem;
    }
}

/* کارت هیرو — موبایل: ردیف اول، تمام عرض */
.fw-card--hero {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .fw-card--hero {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
}

/* ستون سمت چپ — موبایل: ردیف دوم، دو ستونه */
.fw-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .fw-col {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
}

/* ─ کارت پایه ─ */
.fw-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #26180a, #1e1208);
    border: 1px solid rgba(201, 168, 76, 0.14);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* برجستگی با box-shadow لایه‌ای */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 -1px 0 rgba(0, 0, 0, 0.4) inset,
        0 4px 16px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.3);
}
.fw-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.4) inset,
        0 16px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(201, 168, 76, 0.18),
        0 0 30px rgba(201, 168, 76, 0.07);
}

/* خط برجستگی بالایی روی کارت */
.fw-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    z-index: 2;
}

/* ─ تصویر ─ */
.fw-img-wrap {
    position: relative;
    overflow: hidden;
}
.fw-card--hero .fw-img-wrap {
    height: 220px;
}
.fw-card--side .fw-img-wrap {
    height: 110px;
}
@media (min-width: 640px) {
    .fw-card--hero .fw-img-wrap {
        height: 280px;
    }
    .fw-card--side .fw-img-wrap {
        height: 140px;
    }
}
@media (min-width: 1024px) {
    .fw-card--hero .fw-img-wrap {
        height: 340px;
    }
    .fw-card--side .fw-img-wrap {
        height: 175px;
    }
}

.fw-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.88);
}
.fw-card:hover .fw-img {
    transform: scale(1.06);
    filter: brightness(0.97);
}
.fw-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 25%,
        rgba(8, 4, 1, 0.65) 100%
    );
}

/* ─ ریبون ─ */
.fw-ribbon {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #c9a84c, #a07830);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
    box-shadow:
        0 3px 12px rgba(201, 168, 76, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    z-index: 3;
}

/* ─ محتوا ─ */
.fw-card-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}
@media (min-width: 768px) {
    .fw-card-body {
        padding: 1.1rem;
    }
}

/* ─ تگ‌ها ─ */
.fw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.fw-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.22);
    letter-spacing: 0.04em;
}
.fw-tag--alt {
    background: rgba(120, 80, 200, 0.1);
    color: #b08af0;
    border-color: rgba(120, 80, 200, 0.22);
}
.fw-tag--green {
    background: rgba(60, 160, 100, 0.1);
    color: #6fcf97;
    border-color: rgba(60, 160, 100, 0.22);
}

/* ─ تایتل و متن ─ */
.fw-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}
.fw-card--hero .fw-card-title {
    font-size: clamp(0.98rem, 2.2vw, 1.25rem);
}
/* کارت‌های side در موبایل — تایتل کوچک‌تر */
@media (max-width: 767px) {
    .fw-col .fw-card-title {
        font-size: 0.8rem;
    }
}

.fw-card-excerpt {
    font-size: 0.77rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}
.fw-card--side .fw-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* موبایل: excerpt رو توی side cards مخفی کن */
@media (max-width: 767px) {
    .fw-col .fw-card-excerpt {
        display: none;
    }
}

/* ─ فوتر کارت ─ */
.fw-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fw-stats {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.4);
}
.fw-stat {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.fw-stat-icon {
    font-size: 0.8rem;
}
.fw-stat-sep {
    opacity: 0.3;
}
/* موبایل: آمار رو توی side cards ساده‌تر کن */
@media (max-width: 767px) {
    .fw-col .fw-stat-sep,
    .fw-col .fw-stats .fw-stat:last-child {
        display: none;
    }
}

.fw-cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--gold);
    transition: gap 0.3s;
}
.fw-card:hover .fw-cta-inline {
    gap: 0.5rem;
}
.fw-arrow {
    transition: transform 0.3s;
}
.fw-card:hover .fw-arrow {
    transform: translateX(-3px);
}

/* ─ فوتر بخش ─ */
.fw-footer {
    max-width: 1100px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
    /* خط جداکننده با گرادیان */
    padding-top: 2rem;
}
.fw-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 168, 76, 0.25),
        transparent
    );
}
@media (min-width: 640px) {
    .fw-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}
.fw-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 500;
}
.fw-footer-count {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold);
    margin-left: 0.35rem;
}
.fw-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.8rem 1.8rem;
    border-radius: 11px;
    letter-spacing: 0.03em;
    box-shadow:
        0 6px 22px rgba(201, 168, 76, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s;
}
.fw-footer-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 10px 32px rgba(201, 168, 76, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.btn-arrow-icon {
    transition: transform 0.3s;
}
.fw-footer-btn:hover .btn-arrow-icon {
    transform: translateX(-4px);
}

/* stat */

/* ══ LIVE STATS ══ */
.live-stats {
    position: relative;
    background: linear-gradient(
        160deg,
        var(--cream) 0%,
        #fdf5e4 40%,
        var(--warm-white) 100%
    );
    padding: 3.5rem 1.25rem;
    overflow: hidden;
}
@media (min-width: 768px) {
    .live-stats {
        padding: 5rem 1.5rem;
    }
}
@media (min-width: 1024px) {
    .live-stats {
        padding: 6rem 2rem;
    }
}

/* ─ پس‌زمینه ─ */
.ls-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.07) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    pointer-events: none;
}
.ls-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}
.ls-bg-glow--right {
    top: -100px;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.1) 0%,
        transparent 70%
    );
}
.ls-bg-glow--left {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(
        circle,
        rgba(139, 94, 60, 0.08) 0%,
        transparent 70%
    );
}

/* ─ container ─ */
.ls-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ─ هدر ─ */
.ls-header {
    text-align: center;
    margin-bottom: 3rem;
}
.ls-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.9rem;
}
.ls-title-top {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.1em;
}
.ls-title-main {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    color: var(--brown-dark);
    line-height: 1.2;
    margin: 0;
}
.ls-header-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.9rem auto;
    max-width: 200px;
}
.ls-header-divider span:not(.divider-diamond) {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ls-header-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}

/* ─ گرید ─ */
.ls-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) {
    .ls-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* ─ آیتم ─ */
.ls-item {
    position: relative;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(201, 168, 76, 0.18);
    box-shadow:
        0 4px 24px rgba(92, 61, 30, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ls-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow:
        0 16px 48px rgba(92, 61, 30, 0.14),
        0 0 0 1px rgba(201, 168, 76, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* آیتم accent — طلایی‌تر */
.ls-item--accent {
    background: linear-gradient(145deg, #fffbf0, #fef6e0);
    border-color: rgba(201, 168, 76, 0.35);
}
.ls-item--accent .ls-progress-fill {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}
.ls-item--accent .ls-number {
    background: linear-gradient(135deg, var(--gold-dark), #a07020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* محتوای داخلی */
.ls-item-inner {
    padding: 1.4rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}
@media (min-width: 768px) {
    .ls-item-inner {
        padding: 1.75rem 1.25rem 1.5rem;
        gap: 0.5rem;
    }
}

/* آیکون */
.ls-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(
        135deg,
        rgba(201, 168, 76, 0.12),
        rgba(201, 168, 76, 0.04)
    );
    border: 1.5px solid rgba(201, 168, 76, 0.22);
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.1);
    transition: all 0.3s;
}
.ls-item:hover .ls-icon-wrap {
    background: linear-gradient(
        135deg,
        rgba(201, 168, 76, 0.2),
        rgba(201, 168, 76, 0.08)
    );
    transform: scale(1.08) rotate(-3deg);
}
.ls-icon {
    font-size: 1.5rem;
    line-height: 1;
}
@media (min-width: 768px) {
    .ls-icon-wrap {
        width: 60px;
        height: 60px;
    }
    .ls-icon {
        font-size: 1.75rem;
    }
}

/* عدد */
.ls-number-wrap {
    line-height: 1;
}
.ls-number {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 900;
    color: var(--brown-dark);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* لیبل */
.ls-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brown);
    margin-top: 0.1rem;
}
@media (min-width: 768px) {
    .ls-label {
        font-size: 0.95rem;
    }
}
.ls-sub-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}
@media (min-width: 768px) {
    .ls-sub-label {
        font-size: 0.75rem;
    }
}

/* نوار پیشرفت */
.ls-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(201, 168, 76, 0.12);
    border-radius: 10px;
    margin-top: 0.6rem;
    overflow: hidden;
}
.ls-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 10px;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.ls-progress-fill.animated {
    width: var(--progress);
}

/* گوشه‌های تزئینی روی آیتم */
.ls-item-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(201, 168, 76, 0.4);
    border-style: solid;
}
.ls-item-corner.tl {
    top: 8px;
    right: 8px;
    border-width: 1.5px 1.5px 0 0;
}
.ls-item-corner.br {
    bottom: 8px;
    left: 8px;
    border-width: 0 0 1.5px 1.5px;
}

/* ─ نوار پایین ─ */
.ls-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
@media (min-width: 640px) {
    .ls-footer-bar {
        flex-wrap: nowrap;
        gap: 0;
    }
}
.ls-footer-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.ls-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ls-pulse 2.5s infinite;
}
.ls-footer-dot--green {
    background: #27ae60;
}
.ls-footer-dot--gold {
    background: var(--gold);
}
.ls-footer-dot--red {
    background: var(--red);
}

@keyframes ls-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.35);
    }
}

.ls-footer-divider {
    display: none;
}
@media (min-width: 640px) {
    .ls-footer-divider {
        display: block;
        width: 1px;
        height: 22px;
        background: rgba(201, 168, 76, 0.22);
        margin: 0 1.25rem;
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   MAP SECTION
════════════════════════════════════════════════════════ */

/* Leaflet CDN override — باید قبل از </head> اضافه بشه:
   <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/>
   <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
*/

.map-section {
    position: relative;
    padding: 5rem 1.25rem;
    background: linear-gradient(
        160deg,
        var(--brown-dark) 0%,
        #1a0f05 40%,
        #0e0804 100%
    );
    overflow: hidden;
}

/* Background pattern */
.map-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(201, 168, 76, 0.06) 1px,
        transparent 0
    );
    background-size: 32px 32px;
    pointer-events: none;
}

/* Glow blobs */
.map-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.map-bg-glow--right {
    top: -100px;
    right: -150px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.12) 0%,
        transparent 70%
    );
}
.map-bg-glow--left {
    bottom: -100px;
    left: -150px;
    background: radial-gradient(
        circle,
        rgba(92, 61, 30, 0.3) 0%,
        transparent 70%
    );
}

/* Container */
.map-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Header ── */
.map-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.map-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 1rem 0 0.75rem;
    line-height: 1.2;
}
.map-title-top {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--gold-light);
    font-weight: 400;
    letter-spacing: 0.05em;
}
.map-title-main {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold),
        var(--gold-dark)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.map-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Map wrapper ── */
.map-wrapper {
    position: relative;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 12px;
    overflow: hidden;
    background: #0e0804;
    box-shadow:
        0 0 0 1px rgba(201, 168, 76, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(201, 168, 76, 0.15);
}

/* Decorative corners */
.map-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 10;
    pointer-events: none;
}
.map-corner--tl {
    top: 0;
    right: 0;
}
.map-corner--tr {
    top: 0;
    left: 0;
    transform: scaleX(-1);
}
.map-corner--bl {
    bottom: 0;
    right: 0;
    transform: scaleY(-1);
}
.map-corner--br {
    bottom: 0;
    left: 0;
    transform: scale(-1);
}

/* ── Filter bar ── */
.map-filters {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(14, 8, 4, 0.85);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    flex-wrap: wrap;
    backdrop-filter: blur(8px);
}

.map-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: Vazirmatn, sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.map-filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
}
.map-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-color: var(--gold);
    color: var(--brown-dark);
    font-weight: 700;
}

/* ── Leaflet map element ── */
#malay-map {
    width: 100%;
    height: 460px;
    z-index: 1;
    filter: saturate(0.7) brightness(0.82) sepia(0.18);
}

@media (max-width: 640px) {
    #malay-map {
        height: 320px;
    }
}

/* ── Map legend ── */
.map-legend {
    position: absolute;
    bottom: 60px;
    left: 16px;
    z-index: 10;
    background: rgba(14, 8, 4, 0.88);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(8px);
    min-width: 130px;
}
.map-legend-title {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding-bottom: 0.4rem;
}
.map-legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}
.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.map-legend-dot--mobel {
    background: #c9a84c;
}
.map-legend-dot--monabat {
    background: #9b2335;
}
.map-legend-dot--moaragh {
    background: #4a8c6f;
}

/* ── Stats bar ── */
.map-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 1.75rem;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}
.map-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0 2rem;
    flex: 1;
    min-width: 100px;
}
.map-stat-num {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.map-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}
.map-stat-sep {
    width: 1px;
    height: 36px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(201, 168, 76, 0.3),
        transparent
    );
    flex-shrink: 0;
}

/* ── Leaflet popup override ── */
.leaflet-popup-content-wrapper {
    background: rgba(14, 8, 4, 0.95) !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    color: #fff !important;
    font-family: Vazirmatn, sans-serif !important;
    direction: rtl !important;
}
.leaflet-popup-tip {
    background: rgba(14, 8, 4, 0.95) !important;
}
.leaflet-popup-close-button {
    color: var(--gold) !important;
    font-size: 18px !important;
    top: 6px !important;
    left: 8px !important;
    right: auto !important;
}

/* کنترل‌های zoom */
.leaflet-control-zoom a {
    background: rgba(14, 8, 4, 0.9) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    color: var(--gold) !important;
    font-family: Vazirmatn, sans-serif !important;
}
.leaflet-control-zoom a:hover {
    background: rgba(201, 168, 76, 0.15) !important;
}

/* =========================================
   EXHIBITIONS SECTION
   ========================================= */

.exhibitions {
    position: relative;
    background: linear-gradient(
        160deg,
        var(--warm-white) 0%,
        var(--cream) 60%,
        var(--warm-white) 100%
    );
    padding: 5rem 1.25rem 4rem;
    overflow: hidden;
}

/* Background pattern */
.ex-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(201, 168, 76, 0.06) 60px,
            rgba(201, 168, 76, 0.06) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(201, 168, 76, 0.06) 60px,
            rgba(201, 168, 76, 0.06) 61px
        );
    pointer-events: none;
}

.ex-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.1;
}

.ex-bg-glow--right {
    background: var(--gold);
    top: -100px;
    right: -150px;
}

.ex-bg-glow--left {
    background: var(--red-muted);
    bottom: -100px;
    left: -150px;
}

/* Container */
.ex-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Header ---- */
.ex-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ex-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--gold-dark, #8b6914);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

.ex-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.ex-title-top {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.ex-title-main {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--brown-dark);
    line-height: 1.2;
}

.ex-title-main::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.ex-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Grid ---- */
.ex-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .ex-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ex-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        grid-template-rows: auto;
    }

    .ex-card--featured {
        grid-row: span 1;
    }
}

/* ---- Card base ---- */
.ex-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ex-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ex-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(201, 168, 76, 0.15);
}

.ex-card:hover::before {
    opacity: 1;
}

/* Featured card */
.ex-card--featured .ex-img-wrap {
    height: 240px;
}

/* ---- Image ---- */
.ex-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.ex-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ex-card:hover .ex-img {
    transform: scale(1.05);
}

.ex-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(60, 30, 5, 0.55) 0%,
        transparent 60%
    );
}

/* ---- Ribbon ---- */
.ex-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(
        135deg,
        var(--gold-dark, #8b6914),
        var(--gold, #c9a84c)
    );
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    z-index: 2;
}

/* ---- Card body ---- */
.ex-card-body {
    padding: 1.1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

/* ---- Tags ---- */
.ex-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ex-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-dark, #8b6914);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.ex-tag--alt {
    background: rgba(139, 105, 20, 0.08);
    color: var(--brown);
    border-color: rgba(139, 105, 20, 0.25);
}

.ex-tag--green {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.25);
}

/* ---- Title & excerpt ---- */
.ex-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.4;
}

.ex-card--featured .ex-card-title {
    font-size: 1.15rem;
}

.ex-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

/* ---- Card footer ---- */
.ex-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.ex-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ex-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ex-stat-icon {
    font-size: 0.8rem;
}

.ex-stat-sep {
    color: var(--border);
    font-size: 0.9rem;
}

.ex-cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--gold-dark, #8b6914);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: gap 0.2s ease;
}

.ex-cta-inline:hover {
    gap: 0.55rem;
}

.ex-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.ex-cta-inline:hover .ex-arrow {
    transform: translateX(-3px);
}

/* ---- Section footer ---- */
.ex-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .ex-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

.ex-footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ex-footer-count {
    color: var(--gold-dark, #8b6914);
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 0.3rem;
}

.ex-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(
        135deg,
        var(--gold-dark, #8b6914),
        var(--gold, #c9a84c)
    );
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.6rem;
    text-decoration: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.ex-footer-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.ex-footer-btn .btn-arrow-icon {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.ex-footer-btn:hover .btn-arrow-icon {
    transform: translateX(-3px);
}

/* =========================================
   FESTIVALS SECTION
   ========================================= */

.festivals {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(160deg, #3f2b1a 0%, #1a0a02 55%, #0f0601 100%);
    overflow: hidden;
    direction: rtl;
}

/* --- Background texture pattern --- */
.fest-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgb(201 168 76 / 14%) 40px,
            rgba(201, 168, 76, 0.03) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgb(201 168 76 / 4%) 40px,
            rgba(201, 168, 76, 0.03) 41px
        );
    pointer-events: none;
}

/* --- Ambient glows --- */
.fest-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}
.fest-glow--right {
    top: -100px;
    right: -150px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.12) 0%,
        transparent 70%
    );
}
.fest-glow--left {
    bottom: -100px;
    left: -150px;
    background: radial-gradient(
        circle,
        rgba(155, 35, 53, 0.1) 0%,
        transparent 70%
    );
}

/* --- Container --- */
.festivals .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* =========================================
   HEADER
   ========================================= */
.fest-header {
    text-align: center;
    margin-bottom: 64px;
}

.fest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 100px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.fest-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.fest-title-line {
    color: rgba(255, 255, 255, 0.9);
}
.fest-title-accent {
    color: var(--gold);
    position: relative;
}
.fest-title-accent::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.fest-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =========================================
   COUNTDOWN BLOCK
   ========================================= */
.fest-countdown-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.fest-countdown-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.fest-countdown-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(201, 168, 76, 0.06) 0%,
        transparent 65%
    );
    pointer-events: none;
}

.fest-countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fest-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
    }
}

.fest-countdown-name {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.fest-countdown-date-display {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    margin-bottom: 40px;
}

/* --- Timer digits --- */
.fest-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.fest-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fest-timer-box {
    width: 90px;
    height: 90px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.fest-timer-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(201, 168, 76, 0.15);
    transform: translateY(-50%);
}
.fest-timer-box:hover {
    border-color: rgba(201, 168, 76, 0.5);
}

.fest-timer-digit {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
    line-height: 1;
    transition: transform 0.15s ease;
}
.fest-timer-digit.flip {
    animation: digitFlip 0.3s ease;
}
@keyframes digitFlip {
    0% {
        transform: translateY(-8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.fest-timer-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.fest-timer-sep {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.4);
    margin-top: -20px;
    animation: sepBlink 1s step-end infinite;
}
@keyframes sepBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

/* --- CTA button --- */
.fest-countdown-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.fest-countdown-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(201, 168, 76, 0.45);
}

/* =========================================
   GALLERY HEADER + FILTERS
   ========================================= */
.fest-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.fest-gallery-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.fest-filter-tabs {
    display: flex;
    gap: 8px;
}
.fest-filter-btn {
    padding: 7px 18px;
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    transition: all 0.2s ease;
}
.fest-filter-btn:hover {
    border-color: rgba(201, 168, 76, 0.5);
    color: var(--gold-light);
}
.fest-filter-btn.active {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* =========================================
   GALLERY GRID
   ========================================= */
.fest-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Card --- */
.fest-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.fest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    border-color: rgba(201, 168, 76, 0.35);
}
.fest-card[data-status="upcoming"] {
    border-color: rgba(201, 168, 76, 0.3);
}

/* Image wrapper */
.fest-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.fest-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fest-card:hover .fest-card-img {
    transform: scale(1.06);
}

.fest-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 5, 1, 0.75) 0%,
        rgba(10, 5, 1, 0.1) 60%,
        transparent 100%
    );
}

/* Status badge */
.fest-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.fest-card-status--upcoming {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}
.fest-card-status--past {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

/* Tags */
.fest-card-tags {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 6px;
}
.fest-tag {
    padding: 3px 10px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 100px;
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Card body */
.fest-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fest-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.fest-card-year {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
}
.fest-card-edition {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

.fest-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.5;
}

.fest-card-excerpt {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.fest-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding-top: 14px;
}
.fest-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}
.fest-card-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 100px;
    transition: all 0.2s ease;
}
.fest-card-link:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--gold);
}

/* =========================================
   HIDDEN (filter)
   ========================================= */
.fest-card.hidden {
    display: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .fest-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .festivals {
        padding: 70px 0 60px;
    }
    .fest-countdown-block {
        padding: 32px 20px;
    }
    .fest-timer-box {
        width: 68px;
        height: 68px;
    }
    .fest-timer-digit {
        font-size: 1.8rem;
    }
    .fest-timer {
        gap: 10px;
    }
    .fest-timer-sep {
        font-size: 1.4rem;
    }
    .fest-gallery {
        grid-template-columns: 1fr;
    }
    .fest-gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══ ARTICLES ══ */
.articles {
    position: relative;
    background: linear-gradient(
        160deg,
        var(--warm-white) 0%,
        var(--cream) 60%,
        #fef5e4 100%
    );
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}
@media (min-width: 900px) {
    .articles {
        padding: 5.5rem 3rem 4rem;
    }
}

/* پس‌زمینه تزئینی */
.art-bg-ornament {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.art-bg-ornament--tr {
    top: -140px;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.09) 0%,
        transparent 70%
    );
}
.art-bg-ornament--bl {
    bottom: -120px;
    right: -80px;
    background: radial-gradient(
        circle,
        rgba(92, 61, 30, 0.07) 0%,
        transparent 70%
    );
}
@media (min-width: 900px) {
    .art-bg-ornament {
        width: 600px;
        height: 600px;
    }
}

/* Container */
.art-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.art-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
    .art-header {
        margin-bottom: 3.5rem;
    }
}

.art-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.art-title-top {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.12em;
}
.art-title-main {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--brown-dark);
    line-height: 1.2;
}
.art-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 520px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .art-desc {
        font-size: 1rem;
    }
}

/* ── Slider Wrap ── */
.art-slider-wrap {
    position: relative;
    /* فضا برای دکمه‌های کنار */
    padding: 0 2rem;
}
@media (min-width: 900px) {
    .art-slider-wrap {
        padding: 0 2.5rem;
    }
}

.art-slider-overflow {
    overflow: hidden;
    border-radius: 16px;
}

/* track */
.art-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
    background: linear-gradient(
        160deg,
        var(--warm-white) 0%,
        var(--cream) 60%,
        #fef5e4 100%
    );
    border-radius: 50px;
}

/* ── Card ── */
.art-card {
    flex-shrink: 0;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    overflow: hidden;
    box-shadow:
        0 3px 12px rgba(92, 61, 30, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.art-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 40px rgba(92, 61, 30, 0.13),
        0 4px 10px rgba(201, 168, 76, 0.12);
}

/* Image */
.art-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    /* نسبت کمی بلندتر برای کارت بزرگ‌تر */
    aspect-ratio: 4 / 3;
    background: var(--cream);
    text-decoration: none;
}
.art-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.art-card:hover .art-card-img {
    transform: scale(1.06);
}

/* Category badge */
.art-card-cat {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: var(--gold);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.art-card-cat--history {
    background: var(--brown);
}
.art-card-cat--master {
    background: var(--red);
}
.art-card-cat--fest {
    background: linear-gradient(135deg, var(--red), var(--red-light));
}

/* Body */
.art-card-body {
    padding: 1.35rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
}

/* Meta */
.art-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.art-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}
.art-card-date svg {
    color: var(--gold);
    flex-shrink: 0;
}
.art-card-read {
    font-size: 0.73rem;
    color: var(--text-muted);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.22);
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Title — حداکثر ۲ خط، بعد ... */
.art-card-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.55;
    color: var(--brown-dark);
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.art-card-title a:hover {
    color: var(--gold-dark);
}

/* Excerpt — حداکثر ۳ خط، بعد ... */
.art-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Link */
.art-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    transition:
        gap 0.2s,
        color 0.2s;
}
.art-card-link svg {
    transition: transform 0.2s;
}
.art-card-link:hover {
    color: var(--brown);
    gap: 0.5rem;
}
.art-card-link:hover svg {
    transform: translateX(-3px);
}

/* ── Nav Buttons ── */
.art-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--brown);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: all 0.25s;
    box-shadow: 0 3px 14px rgba(92, 61, 30, 0.12);
}
.art-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.38);
}
.art-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.art-nav--prev {
    right: 0;
}
.art-nav--next {
    left: 0;
}
@media (min-width: 900px) {
    .art-nav {
        width: 50px;
        height: 50px;
    }
}

/* ── Dots ── */
.art-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.art-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(201, 168, 76, 0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.art-dot.active {
    background: var(--gold);
    width: 26px;
    border-radius: 4px;
}
.art-dot:hover:not(.active) {
    background: rgba(201, 168, 76, 0.5);
}

/* ── Footer CTA ── */
.art-footer {
    text-align: center;
    margin-top: 2.5rem;
}
.art-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gold-dark);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.05);
    transition: all 0.25s;
}
.art-all-link:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 168, 76, 0.32);
}
.art-all-link svg {
    transition: transform 0.2s;
}
.art-all-link:hover svg {
    transform: translateX(-4px);
}

/* ══ HAMBURGER ══ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition:
        background 0.2s,
        border-color 0.2s;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        width 0.3s ease;
    transform-origin: center;
}
.nav-hamburger:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

/* حالت X وقتی منو بازه */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══ MOBILE NAV ══ */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: flex; /* ← اضافه شد */
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        background: #fff;
        box-shadow: -6px 0 32px rgba(92, 61, 30, 0.14);
        flex-direction: column;
        padding: 5rem 1.75rem 2rem;
        gap: 0.25rem;
        z-index: 1000000000;
        overflow-y: auto;

        /* پنهان — انیمیشن اسلاید از راست */
        transform: translateX(100%);
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.35s; /* ← اضافه شد */
        visibility: hidden;
    }

    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0s; /* ← اضافه شد */
    }

    .nav-links li a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--brown-dark);
        border-bottom: 1px solid rgba(201, 168, 76, 0.12);
        text-decoration: none;
        transition:
            color 0.2s,
            padding-right 0.2s;
    }
    .nav-links li a:hover {
        color: var(--gold-dark);
        padding-right: 0.5rem;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .btn-register {
        margin-top: 1rem;
        display: block;
        text-align: center;
        padding: 0.85rem 1rem !important;
        background: var(--gold);
        color: #fff !important;
        border-radius: 12px;
        border-bottom: none !important;
    }
    .btn-register:hover {
        background: var(--gold-dark);
        padding-right: 1rem !important;
    }
}

/* ── Overlay پشت منو ── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden; /* ← جای display: none رو گرفت */
    transition:
        opacity 0.3s ease,
        visibility 0s linear 0.3s; /* ← اضافه شد */
}
.nav-overlay.open {
    opacity: 1;
    visibility: visible; /* ← جای display: block رو گرفت */
    transition:
        opacity 0.3s ease,
        visibility 0s linear 0s; /* ← اضافه شد */
    z-index: 10;
}
