﻿/* ==========================================
   فونت‌ها
========================================== */
@font-face {
    font-family: 'Sahel';
    src: url('fonts/Sahel.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sahel';
    src: url('fonts/Sahel-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Sahel';
    src: url('fonts/Sahel-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* ==========================================
   تنظیمات پایه
========================================== */
:root {
    --bg: #0d0f12;
    --bg-2: #14171c;
    --surface: #181c22;
    --surface-2: #1f242b;
    --line: #2a3038;
    --line-soft: #232830;
    --text: #e8eaed;
    --text-2: #a4abb5;
    --muted: #6b7280;
    --molten: #c1272d;
    --molten-2: #e63946;
    --molten-soft: rgba(193, 39, 45, .1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
    --shadow-md: 0 10px 30px rgba(0,0,0,.4);
    --hero-image: url("Images/festival-hero.webp");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sahel', Tahoma, sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background: var(--bg);
    line-height: 1.85;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font: inherit;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}


/* ==========================================
   هدر (Header & Navigation)
========================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 18, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
}

/* ==========================================
   هدر (Header & Navigation)
========================================== */
/* ==========================================
   هدر (Header & Navigation)
========================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 18, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
}

div.nav,
.festival-nav {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

/* لوگو دوخطی و چسبیده به راست */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    color: #fff !important;
    text-decoration: none !important;
    margin: 0 !important;
    z-index: 2 !important;
}

    .logo img {
        height: 42px;
        border-radius: 8px;
        flex-shrink: 0;
    }

.logo-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.3 !important;
}

.logo small {
    display: block !important;
    font-size: 10px !important;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* منو دقیقاً در مرکز کل صفحه */
nav#primary-navigation {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
}

    nav#primary-navigation ul {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 26px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        direction: rtl !important;
    }

    nav#primary-navigation a {
        position: relative;
        display: inline-block;
        padding: 6px 0;
        color: var(--text-2);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        nav#primary-navigation a::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--molten);
            border-radius: 2px;
            transition: width 0.25s ease;
        }

        nav#primary-navigation a:hover {
            color: #fff;
        }

            nav#primary-navigation a:hover::after {
                width: 100%;
            }

/* دکمه همبرگری (موبایل) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #d4af37;
        border-radius: 2px;
        transition: all 0.3s ease;
    }


/* ==========================================
   هیرو
========================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
    background: var(--hero-image) center/cover no-repeat;
    background-color: var(--bg);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(13,15,18,0.88) 0%, rgba(13,15,18,0.75) 45%, rgba(13,15,18,0.55) 100%);
        z-index: 1;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 20%, rgba(193, 39, 45, 0.22), transparent 60%);
        z-index: 1;
        pointer-events: none;
    }

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 100px;
    background: rgba(193, 39, 45,.1);
    color: var(--molten-2);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 26px;
    border: 1px solid rgba(193, 39, 45,.25);
    backdrop-filter: blur(6px);
}

    .badge::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--molten);
        box-shadow: 0 0 0 3px rgba(193, 39, 45,.22);
    }

.hero h1 {
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.22;
    margin-bottom: 22px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,.6);
}

.hero p {
    color: #e2e8f0;
    font-size: clamp(14.5px,1.6vw,17px);
    max-width: 600px;
    line-height: 1.9;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    padding: 14px 30px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: .2px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg,var(--molten),var(--molten-2));
    color: #fff;
    box-shadow: 0 8px 26px rgba(193, 39, 45,.38);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(193, 39, 45,.55);
    }

.btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
}

    .btn-ghost:hover {
        border-color: var(--molten);
        color: var(--molten-2);
        background: rgba(193, 39, 45,.15);
        transform: translateY(-2px);
    }

.hero-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 40px 80px rgba(0,0,0,.65);
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}

    .hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 20%, rgba(193, 39, 45,.25), transparent 50%), linear-gradient(180deg, rgba(11,14,17,.2) 0%, rgba(11,14,17,.7) 60%, rgba(11,14,17,.95) 100%);
    }

    .hero-card .hot-circle {
        position: absolute;
        top: 20%;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: radial-gradient(circle, #fff0bf 0%, #ff9b2f 28%, #c1272d 61%, transparent 70%);
        filter: blur(6px);
        opacity: .85;
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%,100% {
        transform: scale(1);
        opacity: .85;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.hero-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

    .hero-card-content small {
        display: block;
        color: var(--molten-2);
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .hero-card-content span {
        font-size: 48px;
        font-weight: 800;
        color: #fff;
        line-height: 1;
        letter-spacing: -2px;
    }

    .hero-card-content strong {
        display: block;
        color: var(--molten-2);
        font-size: 96px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -4px;
        text-shadow: 0 4px 30px rgba(193, 39, 45,.5);
    }

    .hero-card-content em {
        display: block;
        color: #cfd4da;
        font-style: normal;
        font-size: 12px;
        margin-top: 10px;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

.hero-card-tag {
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(11,14,17,.8);
    border: 1px solid rgba(193, 39, 45,.3);
    color: var(--molten-2);
    font: 700 11px;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

/* ==========================================
   آمار
========================================== */
.stats {
    position: relative;
    z-index: 4;
    margin-top: -50px;
    padding: 0 28px 90px;
    box-sizing: border-box;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(180deg,var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 16px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px;
    box-sizing: border-box;
}

.stat {
    text-align: center;
    padding: 8px 16px;
    border-inline-end: 1px solid var(--line-soft);
}

    .stat:last-child {
        border-inline-end: none;
    }

    .stat .num {
        font-size: 32px;
        font-weight: 900;
        color: #fff;
        letter-spacing: -1px;
        line-height: 1.2;
    }

        .stat .num em {
            font-style: normal;
            color: var(--molten-2);
        }

    .stat .lbl {
        font-size: 13px;
        color: var(--muted);
        margin-top: 4px;
        font-weight: 500;
    }

/* ==========================================
   بخش‌های عمومی
========================================== */
section.block {
    width: 100%;
    padding: 50px 0;
    box-sizing: border-box;
}

.sec-head {
    text-align: center;
    margin-bottom: 30px;
}

    .sec-head .kicker {
        color: var(--molten);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .sec-head h2 {
        font-size: clamp(26px,3.6vw,40px);
        margin: 12px 0 14px;
        font-weight: 900;
        letter-spacing: -.5px;
        color: #fff;
    }

    .sec-head p {
        color: var(--text-2);
        max-width: 620px;
        margin: 0 auto;
        font-size: 15px;
        line-height: 1.9;
    }

/* ==========================================
   درباره ما + گالری (صفحه اصلی)
========================================== */
.about {
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 28px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
    box-sizing: border-box;
}

.about-gallery-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

    .about-gallery-wrapper .swiper.gallery-slider-wrapper {
        width: 100%;
        max-width: 100%;
        height: 340px;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--line);
        box-sizing: border-box;
        background: var(--surface);
        margin: 0 auto;
        position: relative;
    }

    .about-gallery-wrapper .swiper-slide.gallery-slider-item {
        position: relative;
        width: 100%;
        height: 100%;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        cursor: pointer;
    }

        .about-gallery-wrapper .swiper-slide.gallery-slider-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .about-gallery-wrapper .gallery-slider-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
        color: #fff;
        padding: 30px 15px 15px;
        font-size: 14px;
        text-align: center;
        font-weight: 600;
        z-index: 10;
        pointer-events: none;
    }

    .about-gallery-wrapper .swiper-pagination {
        bottom: 15px !important;
        z-index: 20;
    }

    .about-gallery-wrapper .swiper-pagination-bullet {
        background: rgba(255,255,255,0.5);
        opacity: 1;
    }

    .about-gallery-wrapper .swiper-pagination-bullet-active {
        background: var(--molten) !important;
    }

    .about-gallery-wrapper .swiper-button-next,
    .about-gallery-wrapper .swiper-button-prev {
        color: var(--molten) !important;
        background: rgba(0,0,0,0.5);
        width: 40px !important;
        height: 40px !important;
        border-radius: 50%;
        backdrop-filter: blur(4px);
        z-index: 20;
    }

        .about-gallery-wrapper .swiper-button-next::after,
        .about-gallery-wrapper .swiper-button-prev::after {
            font-size: 16px !important;
            font-weight: 900;
        }

.about-content {
    padding-top: 0;
}

    .about-content .kicker {
        color: var(--molten);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        margin-top: 0;
    }

    .about-content h2 {
        color: #fff;
        margin: 12px 0 20px;
        font-size: clamp(28px,3.8vw,42px);
        font-weight: 900;
        letter-spacing: -.5px;
        line-height: 1.35;
    }

    .about-content > p {
        color: #e9ecf1;
        font-size: 15.5px;
        line-height: 2;
        background: #0b0d10;
        border: 1px solid var(--line-soft);
        border-radius: 14px;
        padding: 22px 26px;
        margin: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }

    .about-content .about-kicker {
        display: block;
        text-align: right;
        color: var(--molten);
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }

        .about-content .about-kicker::before,
        .about-content .about-kicker::after {
            content: none;
        }

        .about-content .about-kicker span {
            color: var(--molten);
            border: none;
            background: none;
            padding: 0;
            font-size: 12px;
            letter-spacing: 3px;
        }

    .about-content .about-more-btn {
        margin-top: 1.5rem;
        display: inline-block;
        padding: 14px 40px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(193,39,45,.35);
    }

.about-grid > .about-content {
    order: 1;
}

.about-grid > .about-gallery-wrapper {
    order: 2;
}

.about-gallery-wrapper .swiper.gallery-slider-wrapper {
    margin-top: 0;
    border: 1px solid var(--molten);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(193,39,45,.25), 0 14px 36px rgba(0,0,0,.45);
}

.about-gallery-wrapper .swiper-slide.gallery-slider-item .gallery-slider-caption {
    font-size: 15px;
}

.about-gallery-wrapper .swiper-button-next,
.about-gallery-wrapper .swiper-button-prev {
    background: var(--molten) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(193,39,45,.45);
}

.about-gallery-wrapper .album-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px !important;
    font-size: 14px !important;
    background: #0b0d10;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

/* ==========================================
   محصولات
========================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* قرار دادن دقیقاً ۴ ستون در یک ردیف */
    gap: 20px; /* برای جا شدن بهتر و متناسب شدن ابعاد */
    justify-content: center;
    box-sizing: border-box;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 16px; /* کمی جمع‌وجورتر */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 100%;
    min-width: 0; /* جلوگیری از به هم ریختن ستون‌ها */
}

    .product-card:hover {
        border-color: rgba(193, 39, 45, 0.5);
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    }

.product-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 15px;
}

.product-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #21191d;
    border: 1.5px solid #4a2226;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: inset 0 0 15px rgba(193, 39, 45, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon-wrapper {
    transform: scale(1.05);
    border-color: #c1272d;
    box-shadow: 0 0 20px rgba(193, 39, 45, 0.2);
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-badge {
    background: #2a2e37;
    color: #ee3535;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-family: Sahel, sans-serif;
    font-weight: 700;
    margin: 0 auto 16px;
    display: inline-block;
    border: 1px solid #3a404d;
}

.product-card h3 {
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin: 0 0 12px;
}

.product-desc {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-2);
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .product-specs li {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px dashed var(--line);
        font-size: 13px;
    }

        .product-specs li:last-child {
            border-bottom: none;
        }

.spec-label {
    color: var(--text-2);
}

.spec-value {
    color: #fff;
    font-weight: 700;
    font-family: 'Sahel', sans-serif;
}

.product-card .product-specs-html {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-2);
    width: 100%;
}

    .product-card .product-specs-html table {
        width: 100%;
        border-collapse: collapse;
    }

    .product-card .product-specs-html td {
        padding: 10px 0;
        border-bottom: 1px dashed var(--line);
        text-align: right;
    }

        .product-card .product-specs-html td:first-child {
            text-align: right;
            color: #e8eaed;
            font-weight: 600;
        }

        .product-card .product-specs-html td:last-child {
            text-align: left;
            direction: ltr;
            color: #fff;
            font-weight: 700;
            font-family: 'Sahel', sans-serif;
        }

    .product-card .product-specs-html tr:last-child td {
        border-bottom: none;
    }

/* ==========================================
   اخبار
========================================== */
#news.block {
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 40px 0 !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.news-card-grid {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

    .news-card-grid:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        border-color: rgba(193, 39, 45, 0.3);
    }

    .news-card-grid img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-bottom: 2px solid var(--line-soft);
    }

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.news-card-body h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body .read-more {
    color: var(--molten-2);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s;
    align-self: flex-start;
}

    .news-card-body .read-more:hover {
        color: #fff;
    }

/* ==========================================
   فرآیند
========================================== */
.process {
    background: radial-gradient(circle at 80% 20%, rgba(193, 39, 45,.06), transparent 40%), var(--bg-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.process-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 24px;
    box-sizing: border-box;
}

.step {
    padding: 30px 26px;
    border-radius: 18px;
    background: linear-gradient(180deg,var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    position: relative;
    transition: all .25s;
    overflow: hidden;
    box-sizing: border-box;
}

    .step::before {
        content: "";
        position: absolute;
        top: 0;
        inset-inline-start: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg,var(--molten),var(--molten-2));
        transform: scaleX(0);
        transform-origin: var(--start,right);
        transition: transform .35s;
    }

    .step:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0,0,0,.5);
        border-color: rgba(193, 39, 45,.3);
    }

        .step:hover::before {
            transform: scaleX(1);
        }

    .step .step-num {
        display: inline-block;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 2px;
        color: var(--molten-2);
        padding: 4px 10px;
        background: rgba(193, 39, 45,.1);
        border-radius: 6px;
        border: 1px solid rgba(193, 39, 45,.2);
        margin-bottom: 16px;
    }

    .step h4 {
        font-size: 17px;
        margin-bottom: 8px;
        color: #fff;
        font-weight: 800;
    }

    .step p {
        font-size: 13.5px;
        color: var(--text-2);
        line-height: 1.8;
    }

/* ==========================================
   مدیران
========================================== */
.managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

@media (max-width: 1199px) {
    .managers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .managers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .managers-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   گالری تصاویر (لیست آلبوم‌ها و صفحه داخلی)
========================================== */
.gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-album-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

    .gallery-album-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        border-color: rgba(193, 39, 45, 0.3);
    }

    .gallery-album-card .cover-wrapper {
        position: relative;
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

    .gallery-album-card .cover-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .gallery-album-card:hover .cover-img {
        transform: scale(1.06);
    }

.gallery-album-header {
    background: linear-gradient(135deg, #1e3a5f, #2a5298);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-sizing: border-box;
}

    .gallery-album-header h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        line-height: 1.4;
    }

    .gallery-album-header svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        flex-shrink: 0;
    }

.gallery-album-caption {
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--molten) !important;
    background: rgba(0,0,0,0.5);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    transition: background 0.2s;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: rgba(193, 39, 45, 0.6);
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px !important;
        font-weight: 900;
    }

.swiper-pagination-bullet-active {
    background: var(--molten) !important;
}

.camera-icon {
    font-size: 22px;
    line-height: 1;
}

/* ====== استایل صفحه داخلی آلبوم (GalleryDetail) ====== */
.gallery-hero {
    position: relative;
    width: 100%;
    background: #000;
}

.hero-gallery-swiper {
    width: 100%;
    height: 100%;
}

    .hero-gallery-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8);
    }

    .hero-gallery-swiper .swiper-button-next,
    .hero-gallery-swiper .swiper-button-prev {
        color: #fff;
        background: rgba(0,0,0,0.5);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        transition: background 0.3s;
    }

        .hero-gallery-swiper .swiper-button-next:hover,
        .hero-gallery-swiper .swiper-button-prev:hover {
            background: rgba(0,0,0,0.8);
        }

        .hero-gallery-swiper .swiper-button-next::after,
        .hero-gallery-swiper .swiper-button-prev::after {
            font-size: 18px;
            font-weight: bold;
        }

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 30px 40px;
    text-align: right;
    z-index: 10;
}

    .hero-caption h1 {
        font-size: 28px;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .hero-caption p {
        font-size: 15px;
        color: #ddd;
    }

.gallery-content {
    padding: 30px 20px;
}
/* ==========================================
   استایل مودال (پنجره نمایش عکس)
   ========================================== */
.custom-modal {
    display: none; /* به طور پیش‌فرض مخفی است */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* پس‌زمینه تیره */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

    .close-modal:hover {
        color: #c1272d;
    }
/* ==========================================
   استایل شبکه تصاویر صفحه داخلی گالری (Masonry)
   ========================================== */
.masonry-grid {
    column-count: 3;
    column-gap: 15px;
    width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1e24;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

    .masonry-item img {
        width: 100%;
        display: block;
        transition: transform 0.3s ease;
    }

    .masonry-item:hover img {
        transform: scale(1.03);
    }

/* واکنش‌گرایی برای موبایل و تبلت */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.gallery-hero {
    background: #0d0f12;
    border-bottom: 1px solid #2a3038;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr); /* در تبلت: ۲ ستونه */
    }
}

@media (max-width: 576px) {
    .cards {
        grid-template-columns: 1fr; /* در موبایل: تک‌ستونه */
    }
}

/* ==========================================
   تماس (فرم و اطلاعات)
========================================== */
.quote {
    background: radial-gradient(circle at 90% 10%, rgba(193, 39, 45,.2), transparent 45%), radial-gradient(circle at 10% 90%, rgba(230, 57, 70,.1), transparent 45%), linear-gradient(135deg, #14181c, #0d0f12);
    position: relative;
}

.quote-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    box-sizing: border-box;
}

.quote-content .kicker {
    color: var(--molten);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.quote-content h2 {
    color: #fff;
    margin: 12px 0 18px;
    font-size: clamp(28px,3.8vw,42px);
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.35;
}

.quote-content p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.quote-contact {
    display: grid;
    gap: 12px;
    font-size: 14px;
}

    .quote-contact div {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #e8eaed;
    }

    .quote-contact span.icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: rgba(193, 39, 45,.12);
        border: 1px solid rgba(193, 39, 45,.25);
        display: grid;
        place-items: center;
        color: var(--molten-2);
        font-size: 15px;
        flex-shrink: 0;
    }

/* ==========================================
   فرم تماس
========================================== */
.quote-form {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

    .form-row.full-width {
        grid-template-columns: 1fr;
    }

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

    .quote-form input:focus,
    .quote-form select:focus,
    .quote-form textarea:focus {
        border-color: var(--molten);
        box-shadow: 0 0 0 3px rgba(193, 39, 45,.15);
    }

.quote-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

.quote-form button[type="submit"] {
    background: linear-gradient(135deg,var(--molten),var(--molten-2));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    margin-top: 5px;
    width: 100%;
    box-shadow: 0 8px 26px rgba(193, 39, 45,.38);
}

    .quote-form button[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(193, 39, 45,.55);
    }

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   فوتر
========================================== */
/* ==========================================
   فوتر (تمیز و کاملاً ریسپانسیو)
========================================== */
.site-footer {
    background: #0b0d11;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 0 25px 0;
    color: #d1d5db;
    font-family: inherit;
    direction: rtl;
}

    .site-footer .container {
        max-width: 1400px;
        width: 95%;
        margin: 0 auto;
        padding: 0 15px;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr;
    align-items: center;
    gap: 30px;
}

/* ستون‌ها */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* برند و لوگو */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .footer-brand svg {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px;
        display: block;
    }

    .footer-brand strong {
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.4;
    }

.footer-desc {
    color: #9ca3af;
    font-size: 0.86rem;
    line-height: 1.8;
    margin: 0;
    max-width: 380px;
}

/* نقشه */
.footer-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    max-width: 320px;
    height: 160px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    margin: 0 auto;
}

    .footer-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

/* اطلاعات تماس */
.footer-col:last-child {
    align-items: flex-start;
}

.footer-title {
    color: #e53935;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.footer-contact {
    text-align: right;
    min-width: 240px;
}

/* کپی رایت */
.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 35px;
    padding-top: 16px;
    font-size: 0.82rem;
    color: #6b7280;
}

/* ==========================================
   ریسپانسیو فوتر
========================================== */

/* تبلت */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col:last-child {
        grid-column: 1 / -1; /* ستون تماس در ردیف جدید و تمام عرض */
        align-items: center;
    }

    .footer-contact {
        text-align: center;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-map {
        max-width: 100%;
        height: 200px;
    }

    .footer-col:last-child {
        align-items: center;
    }

    .footer-contact {
        text-align: center;
        min-width: 100%;
    }
}

/* ==========================================
   ریسپانسیو (مدیا کوئری‌ها)
========================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-card {
        min-height: 380px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 28px;
    }

    .about-gallery-wrapper {
        height: auto;
        min-height: 300px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 28px;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 20px;
    }

    nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 70px 0 90px;
    }

    .hero-grid {
        padding: 0 20px;
    }

    .stats {
        padding: 0 20px 60px;
    }

    .stats-grid {
        padding: 24px 12px;
    }

    .stat {
        border-inline-end: none;
        border-bottom: 1px solid var(--line-soft);
        padding: 14px 8px;
    }

        .stat:last-child {
            border-bottom: none;
        }

    .process-grid,
    .about-grid,
    .quote-grid {
        padding: 50px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 30px;
    }

    .copy {
        padding: 20px 20px 0;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14.5px;
    }

    .logo small {
        display: none;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card-content strong {
        font-size: 68px;
    }

    .hero-card-content span {
        font-size: 34px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 24px 18px;
    }

    .gallery-album-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-album-card .cover-wrapper {
        height: 200px;
    }

    .quote-form {
        padding: 24px 18px;
    }

    .sec-head h2 {
        letter-spacing: -.3px;
    }

    .quote-form button[type="submit"] {
        position: relative !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .quote {
        position: relative;
    }

        .quote::before, .quote::after {
            pointer-events: none !important;
        }

    .quote-grid {
        position: relative;
        z-index: 10 !important;
    }
}
/* ==========================================
   استایل اختصاصی و تمیز برای گالری صفحه اصلی
   ========================================== */

/* کادر اصلی اسلایدر */
/* ==========================================
   طراحی دقیق و لوکس اسلایدر (مطابق عکس)
   ========================================== */

/* کادر اصلی */
.main-gallery-slider {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
    border: 1px solid #2a3038;
    /* هاله قرمز ملایم دور کادر */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(193, 39, 45, 0.2);
}

/* لینک داخل اسلاید */
.gallery-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* تصویر */
.gallery-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .gallery-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.gallery-card-link:hover .gallery-card-image img {
    transform: scale(1.05); /* زوم ملایم */
}

/* هدر بالای عکس (شیشه‌ای) */
.gallery-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 10;
}

.top-left .slash-icon {
    color: #c1272d;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.camera-icon {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* خط قرمز نازک زیر هدر */
.gallery-top-overlay::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 20px;
    left: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #c1272d 50%, transparent 100%);
    opacity: 0.8;
}

/* کپشن پایین عکس (شیشه‌ای) */
.gallery-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    z-index: 10;
    display: flex;
    justify-content: flex-start; /* متن در سمت راست (به دلیل RTL) */
}

.caption-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* دکمه‌های ناوبری (فلش‌های قرمز توپر و شناور) */
.gallery-nav-btn {
    background: #c1272d !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 20;
    margin: 0 15px; /* فاصله از لبه‌ها */
    margin-top: -18px; /* تنظیم دقیق در مرکز عمودی */
}

    .gallery-nav-btn:hover {
        background: #e63946 !important;
        transform: scale(1.1);
    }

    .gallery-nav-btn::after {
        font-size: 14px !important;
        font-weight: 900;
    }

/* دکمه مشاهده همه آلبوم‌ها */
.about-gallery-wrapper .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

    .about-gallery-wrapper .btn-ghost:hover {
        background: rgba(193, 39, 45, 0.1);
        border-color: #c1272d;
        color: #c1272d;
    }

/* واکنش‌گرایی */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-gallery-slider {
        height: 300px;
    }
}
/* ==========================================
   استایل دکمه‌ها (قرمز درخشان با عمق مشکی ملایم)
   ========================================== */

/* دکمه‌های اصلی (دکمه بیشتر بدانید و ارسال فرم) */
.btn-primary,
.quote-form button[type="submit"] {
    /* درصد مشکی را بسیار کم کردیم تا دکمه قرمز و شاداب بماند */
    background: linear-gradient(90deg, #2d1113 0%, #c1272d 40%, #e63946 100%) !important;
    border: 1px solid #7a1318 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

    .btn-primary:hover,
    .quote-form button[type="submit"]:hover {
        /* در هاور، قرمز روشن‌تر شده و مشکی کاملاً محو می‌شود */
        background: linear-gradient(90deg, #4a1b1e 0%, #d42a30 30%, #ff4b4b 100%) !important;
        box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5) !important;
        transform: translateY(-2px) !important;
    }

/* فلش‌های اسلایدر (دکمه‌های چپ و راست) */
.gallery-nav-btn,
.swiper-button-next,
.swiper-button-prev {
    /* گرادیانت ملایم از تیره به قرمز */
    background: linear-gradient(135deg, #2d1113 0%, #e63946 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

    .gallery-nav-btn:hover,
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: linear-gradient(135deg, #4a1b1e 0%, #ff4b4b 100%) !important;
        box-shadow: 0 6px 15px rgba(230, 57, 70, 0.5) !important;
        transform: scale(1.05); /* افکت زوم در هاور */
    }
/* ==========================================
   بازنویسی اجباری استایل آلبوم‌ها (رفع تداخل)
   ========================================== */

/* کادر اصلی کارت */
.gallery-album-grid .gallery-album-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #2a3038 !important;
    background: #14171c !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.4s ease !important;
}

    .gallery-album-grid .gallery-album-card:hover {
        transform: translateY(-8px) !important;
        border-color: #c1272d !important;
        box-shadow: 0 20px 40px rgba(193, 39, 45, 0.2) !important;
    }

/* حذف کامل رنگ آبی از هدر */
.gallery-album-grid .gallery-album-header {
    background: linear-gradient(to bottom, rgba(13, 15, 18, 0.95) 0%, transparent 100%) !important;
    border-bottom: none !important;
    padding: 15px 20px !important;
}

    .gallery-album-grid .gallery-album-header h3 {
        color: #ffffff !important;
        font-size: 16px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    }

    .gallery-album-grid .gallery-album-header svg {
        color: #c1272d !important;
        stroke: #c1272d !important;
    }

/* حذف نوار مشکی پایین و تبدیل آن به متن شفاف */
.gallery-album-grid .gallery-album-caption {
    background: transparent !important;
    color: #e8eaed !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: right !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

    /* نقطه قرمز کنار تعداد عکس */
    .gallery-album-grid .gallery-album-caption::before {
        content: "" !important;
        display: inline-block !important;
        width: 6px !important;
        height: 6px !important;
        background-color: #c1272d !important;
        border-radius: 50% !important;
        box-shadow: 0 0 8px rgba(193, 39, 45, 0.8) !important;
    }

/* زوم عکس در هاور */
.gallery-album-grid .gallery-album-card .cover-img {
    transition: transform 0.6s ease !important;
}

.gallery-album-grid .gallery-album-card:hover .cover-img {
    transform: scale(1.08) !important;
}
/* ==========================================
   استایل ایزوله و لاکچری برای صفحه آلبوم‌ها
   ========================================== */

/* شبکه کارت‌ها */
.custom-album-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* کادر کارت */
a.custom-album-card {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #14171c !important;
    border: 1px solid #2a3038 !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    height: 350px !important;
}

    a.custom-album-card:hover {
        transform: translateY(-5px) !important;
        border-color: #c1272d !important;
        box-shadow: 0 15px 40px rgba(193, 39, 45, 0.2) !important;
    }

/* هدر کارت */
.custom-album-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to bottom, rgba(13, 15, 18, 0.95) 0%, transparent 100%) !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 10 !important;
}

.custom-album-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

/* عکس کاور */
.custom-album-cover {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000 !important;
}

    .custom-album-cover img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.4s ease !important;
    }

a.custom-album-card:hover .custom-album-cover img {
    transform: scale(1.08) !important;
}

/* پوشش تیره روی عکس */
.custom-album-cover::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(13, 15, 18, 0.95) 0%, transparent 40%) !important;
    pointer-events: none !important;
}

/* فوتر (تعداد عکس‌ها) */
.custom-album-footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    z-index: 10 !important;
}

.custom-album-count {
    color: #e8eaed !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

    .custom-album-count::before {
        content: "" !important;
        display: inline-block !important;
        width: 6px !important;
        height: 6px !important;
        background-color: #c1272d !important;
        border-radius: 50% !important;
        box-shadow: 0 0 8px rgba(193, 39, 45, 0.8) !important;
    }

/* ==========================================
   استایل صفحه‌بندی (Pagination)
   ========================================== */
.custom-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 50px !important;
    margin-bottom: 30px !important;
}

.custom-page-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #14171c !important;
    border: 1px solid #2a3038 !important;
    color: #a4abb5 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

    .custom-page-btn:hover {
        background: #1f242b !important;
        border-color: #c1272d !important;
        color: #ffffff !important;
    }

    .custom-page-btn.active {
        background: #c1272d !important;
        border-color: #c1272d !important;
        color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(193, 39, 45, 0.4) !important;
    }
/* ==========================================
   ریسپانسیو (مدیا کوئری‌ها)
========================================== */

@media (max-width: 1199px) {
    .managers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-card {
        min-height: 380px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 28px;
    }

    .about-gallery-wrapper {
        height: auto;
        min-height: 300px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 28px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 20px;
    }

    nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 70px 0 90px;
    }

    .hero-grid {
        padding: 0 20px;
    }

    .stats {
        padding: 0 20px 60px;
    }

    .stats-grid {
        padding: 24px 12px;
    }

    .stat {
        border-inline-end: none;
        border-bottom: 1px solid var(--line-soft);
        padding: 14px 8px;
    }

        .stat:last-child {
            border-bottom: none;
        }

    .process-grid, .about-grid, .quote-grid {
        padding: 50px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .managers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* فوتر موبایل */
    .foot-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 25px;
    }

    .map-wrapper {
        height: 200px;
    }

    .site-footer {
        padding: 40px 0 20px 0;
    }

    /* منوی همبرگری */
    .nav-toggle {
        display: flex;
    }

    #primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(17, 19, 21, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

        #primary-navigation.is-open {
            max-height: 450px;
        }

        #primary-navigation ul {
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            gap: 15px !important;
            margin: 0;
        }

            #primary-navigation ul li {
                width: 100%;
                text-align: center;
            }

                #primary-navigation ul li a {
                    font-size: 1rem;
                    padding: 10px 20px;
                    display: block;
                }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14.5px;
    }

    .logo small {
        display: none;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card-content strong {
        font-size: 68px;
    }

    .hero-card-content span {
        font-size: 34px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 24px 18px;
    }

    .gallery-album-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-album-card .cover-wrapper {
        height: 200px;
    }

    .quote-form {
        padding: 24px 18px;
    }

    .sec-head h2 {
        letter-spacing: -.3px;
    }

    .managers-grid {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-form button[type="submit"] {
        position: relative !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .quote {
        position: relative;
    }

        .quote::before, .quote::after {
            pointer-events: none !important;
        }

    .quote-grid {
        position: relative;
        z-index: 10 !important;
    }
}

/* حل اسکرول افقی در موبایل */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    header, .nav {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .mark-img {
        max-width: 100%;
        height: auto !important;
    }

    .logo-text, #primary-navigation {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    /* اصلاح کلی گرید آلبوم‌های گالری */
    .gallery-album-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 28px !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    /* کارت آلبوم */
    .gallery-album-card {
        background: var(--surface) !important;
        border: 1px solid var(--line) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        text-decoration: none !important;
        display: flex !important;
        flex-direction: column !important;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }

        .gallery-album-card:hover {
            transform: translateY(-6px) !important;
            border-color: var(--molten) !important;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
        }

        /* کانتینر تصویر کاور */
        .gallery-album-card .cover-wrapper {
            width: 100% !important;
            height: 230px !important;
            overflow: hidden !important;
            position: relative !important;
            background: var(--bg-2) !important;
        }

        .gallery-album-card .cover-img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            transition: transform 0.5s ease !important;
        }

        .gallery-album-card:hover .cover-img {
            transform: scale(1.06) !important;
        }

        /* هدر کارت (عنوان و تعداد عکس) */
        .gallery-album-card .gallery-album-header {
            padding: 20px 20px 12px 20px !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: flex-start !important;
            gap: 12px !important;
            background: transparent !important;
        }

            .gallery-album-card .gallery-album-header h3 {
                font-size: 1.15rem !important;
                font-weight: 700 !important;
                color: var(--text) !important;
                margin: 0 !important;
                line-height: 1.4 !important;
            }

            .gallery-album-card .gallery-album-header span {
                background: rgba(255, 255, 255, 0.06) !important;
                border: 1px solid var(--line) !important;
                padding: 4px 10px !important;
                border-radius: 20px !important;
                font-size: 0.8rem !important;
                color: var(--text-2) !important;
                white-space: nowrap !important;
            }

        /* کپشن و توضیحات آلبوم */
        .gallery-album-card .gallery-album-caption {
            padding: 0 20px 20px 20px !important;
            margin-top: auto !important;
            background: transparent !important;
            position: static !important;
        }

            .gallery-album-card .gallery-album-caption p {
                color: var(--text-2) !important;
                font-size: 0.9rem !important;
                line-height: 1.6 !important;
                margin: 0 !important;
                display: -webkit-box !important;
                -webkit-line-clamp: 2 !important;
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
            }

    /* استایل صفحه‌بندی (Pagination) */
    .custom-pagination {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 50px !important;
    }

    .custom-page-btn {
        min-width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--surface) !important;
        border: 1px solid var(--line) !important;
        color: var(--text) !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

        .custom-page-btn:hover,
        .custom-page-btn.active {
            background: var(--molten) !important;
            border-color: var(--molten) !important;
            color: #fff !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
        }
    /* ========================================================
   اصلاح کامل و حرفه‌ای گرید و کارت‌های گالری (کاملاً هم‌ارتفاع)
   ======================================================== */

    .gallery-album-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 28px !important;
        width: 100% !important;
        margin-top: 25px !important;
        align-items: stretch !important;
    }

    .gallery-album-card {
        background: var(--surface) !important;
        border: 1px solid var(--line) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        text-decoration: none !important;
        display: flex !important;
        flex-direction: column !important;
        height: 390px !important; /* ارتفاع کاملاً ثابت و یکدست برای همه کارت‌ها */
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    }

        .gallery-album-card:hover {
            transform: translateY(-6px) !important;
            border-color: var(--molten) !important;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
        }

        /* عکس کاور بالای کارت */
        .gallery-album-card .cover-wrapper {
            width: 100% !important;
            height: 230px !important;
            min-height: 230px !important;
            overflow: hidden !important;
            position: relative !important;
            background: var(--bg-2) !important;
        }

        .gallery-album-card .cover-img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            transition: transform 0.5s ease !important;
        }

        .gallery-album-card:hover .cover-img {
            transform: scale(1.05) !important;
        }

        /* هدر کارت (عنوان و تعداد عکس) */
        .gallery-album-card .gallery-album-header {
            padding: 16px 20px 8px 20px !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: flex-start !important;
            gap: 12px !important;
            background: transparent !important;
            position: static !important;
        }

            .gallery-album-card .gallery-album-header h3 {
                font-size: 1.1rem !important;
                font-weight: 700 !important;
                color: var(--text) !important;
                margin: 0 !important;
                line-height: 1.4 !important;
                display: -webkit-box !important;
                -webkit-line-clamp: 1 !important;
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
            }

            .gallery-album-card .gallery-album-header span {
                background: rgba(255, 255, 255, 0.05) !important;
                border: 1px solid var(--line) !important;
                padding: 3px 10px !important;
                border-radius: 20px !important;
                font-size: 0.8rem !important;
                color: var(--text-2) !important;
                white-space: nowrap !important;
            }

        /* کپشن و توضیحات پایین کارت */
        .gallery-album-card .gallery-album-caption {
            padding: 0 20px 18px 20px !important;
            margin-top: auto !important;
            background: transparent !important;
            position: static !important;
        }

            .gallery-album-card .gallery-album-caption p {
                color: var(--text-2) !important;
                font-size: 0.88rem !important;
                line-height: 1.5 !important;
                margin: 0 !important;
                display: -webkit-box !important;
                -webkit-line-clamp: 2 !important;
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
            }

}
