﻿@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam.eot') format('embedded-opentype'), url('../fonts/Shabnam.ttf') format('truetype'), url('../fonts/Shabnam.woff') format('woff'); }
@font-face { font-family: 'BNazanin'; src: url('../fonts/BNazanin.eot') format('embedded-opentype'), url('../fonts/BNazanin.ttf') format('truetype'), url('../fonts/BNazanin.woff') format('woff'); }
@font-face { font-family: 'IranSans'; src: url('../fonts/IRANSansWeb_Medium.eot') format('embedded-opentype'), url('../fonts/IRANSansWeb_Medium.ttf') format('truetype'), url('../fonts/IRANSansWeb_Medium.woff') format('woff'); }
@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'), url('../fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary: #006a68;
    --primary-dark: #004f4e;
    --primary-darker: #003d3c;
    --primary-light: #008a87;
    --primary-lighter: #e0f5f4;
    --primary-50: #f0faf9;
    --accent: #c8a96e;
    --accent-light: #e8d5aa;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --text: #1e293b;
    --text-muted: #475569;
    --text-light: #64748b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-primary: 0 8px 30px rgba(0,106,104,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-size-base: 14px;
    --line-height-base: 1.9;
    --letter-spacing: 0;
    --font-family: 'Vazirmatn','IranSans','BNazanin','Shabnam', Shabnam, sans-serif;
    --transition: all .35s cubic-bezier(.4,0,.2,1);
}

.dark-mode {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #94a3b8;
    --border: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
    --primary-lighter: rgba(0,138,135,0.15);
    --primary-50: rgba(0,106,104,0.08);
}

/* Simple View */
.simple-view,
.simple-view * {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: Tahoma, sans-serif !important;
    font-size: 16px !important;
    line-height: 2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    float: none !important;
    position: static !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

    .simple-view .a11y-panel,
    .simple-view .btt,
    .simple-view .ticker,
    .simple-view .slider-wrap,
    .simple-view .hero-side,
    .simple-view .stats-bar,
    .simple-view .site-footer,
    .simple-view .top-bar,
    .simple-view .main-nav,
    .simple-view .search-modal,
    .simple-view .en-modal,
    .simple-view .page-loader,
    .simple-view .svc-card,
    .simple-view .report-section,
    .simple-view .farakhan-section,
    .simple-view .modern-tabs,
    .simple-view .sec-header .sec-icon,
    .simple-view .sec-header .sec-line,
    .simple-view .sec-archive,
    .simple-view .read-more,
    .simple-view .card-date,
    .simple-view .news-card .card-img,
    .simple-view .news-card.featured .card-img {
        display: none !important;
    }

    .simple-view main {
        display: block !important;
    }

.highlight-links a {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
    border-radius: 4px !important;
}

/* Skip Link */
.skip-link {
    position: fixed;
    top: -100px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 99999;
    font-size: 14px;
    font-weight: 700;
    transition: top .3s ease;
}

    .skip-link:focus {
        top: 0;
        outline: 3px solid var(--accent);
        outline-offset: 2px;
    }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    letter-spacing: var(--letter-spacing);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary);
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== ACCESSIBILITY PANEL ===== */
.a11y-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    direction: rtl;
}

.a11y-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .a11y-toggle:hover {
        transform: scale(1.1);
        background: var(--primary-dark);
    }

.a11y-content {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform-origin: bottom right;
}

    .a11y-content.open {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
    }

.a11y-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

    .a11y-header h3 {
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
        margin: 0;
    }

    .a11y-header button {
        background: none;
        border: none;
        font-size: 16px;
        color: var(--text-light);
        cursor: pointer;
        padding: 4px;
    }

.a11y-body {
    padding: 16px 20px;
}

.a11y-group {
    margin-bottom: 18px;
}

    .a11y-group:last-child {
        margin-bottom: 0;
    }

    .a11y-group > label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.a11y-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .a11y-btns button {
        padding: 7px 14px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
        border: 2px solid var(--border);
        background: var(--bg);
        color: var(--text-muted);
        cursor: pointer;
        transition: var(--transition);
        font-family: var(--font-family);
    }

        .a11y-btns button:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .a11y-btns button.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

.a11y-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

    .a11y-row:last-child {
        border-bottom: none;
    }

    .a11y-row span {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
    }

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

    .toggle-slider::before {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        top: 3px;
        right: 3px;
        transition: var(--transition);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(-20px);
    }

.a11y-reset {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--primary-lighter);
    color: var(--primary);
    border: 2px solid transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    margin-top: 8px;
}

    .a11y-reset:hover {
        background: var(--primary);
        color: #fff;
    }

/* ===== TOP BAR ===== */
.top-bar {
    background: #014c4a;
    padding: 0;
    font-size: 12px;
    position: relative;
    z-index: 1050;
}

    .top-bar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    }

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    transition: var(--transition);
}

    .top-bar a:hover {
        color: #fff;
    }

.top-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .top-links .sep {
        width: 3px;
        height: 3px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
    }

.gov-banners {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .gov-banners img {
        height: 28px;
        width: auto;
        border-radius: 4px;
        opacity: 0.5;
        transition: var(--transition);
    }

        .gov-banners img:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }

.top-date {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7) !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

    .lang-btn:hover {
        background: rgba(255,255,255,0.2);
        color: #fff !important;
    }

/* ===== HEADER ===== */
.site-header {
    /*background: var(--bg-card);*/
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: var(--transition);
}

    .site-header.scrolled {
        box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    }

.header-inner {
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .brand img {
        height: 75px;
        width: auto;
       /* filter: drop-shadow(0 2px 8px rgba(0,106,104,0.15));*/
    }

    .brand h1 {
        font-size: 20px;
        font-weight: 800;
        color: var(--primary-dark);
        margin: 0;
        line-height: 1.4;
    }

    .brand small {
        font-size: 11px;
        color: var(--text-light);
        font-weight: 400;
        letter-spacing: 0.5px;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

    .search-box input {
        border: 2px solid var(--border);
        border-radius: 50px;
        padding: 10px 44px 10px 18px;
        font-family: var(--font-family);
        font-size: 13px;
        width: 260px;
        background: var(--bg);
        transition: var(--transition);
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--bg-card);
            box-shadow: 0 0 0 4px rgba(0,106,104,0.08);
            width: 320px;
        }

    .search-box button {
        position: absolute;
        right: 3px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary);
        color: #fff;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 13px;
        transition: var(--transition);
    }

        .search-box button:hover {
            background: var(--primary-dark);
        }

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--primary-lighter);
    color: var(--primary);
    background: transparent;
    transition: var(--transition);
    white-space: nowrap;
}

    .pill-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-primary);
    }

    .pill-btn.filled {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

        .pill-btn.filled:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
        }

/* ===== NAV ===== */
.main-nav {
    background: var(--primary);
    position: relative;
}

    .main-nav::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
    }

    .main-nav .navbar {
        padding: 0;
    }

    .main-nav .navbar-nav .nav-link {
        color: rgba(255,255,255,0.85);
        font-size: 13px;
        font-weight: 500;
        padding: 13px 15px;
        position: relative;
        transition: var(--transition);
    }

        .main-nav .navbar-nav .nav-link:hover,
        .main-nav .navbar-nav .nav-link:focus {
            color: #fff;
            background: rgba(255,255,255,0.08);
        }

        .main-nav .navbar-nav .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 15px;
            left: 15px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px 2px 0 0;
            transform: scaleX(0);
            transition: transform .3s ease;
        }

        .main-nav .navbar-nav .nav-link:hover::before {
            transform: scaleX(1);
        }

    .main-nav .dropdown-menu {
        border: none;
        border-radius: var(--radius);
        box-shadow: var(--shadow-xl);
        padding: 8px;
        margin-top: 0;
        background: var(--bg-card);
        min-width: 220px;
        animation: menuIn .2s ease;
    }

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav .dropdown-item {
    font-size: 13px;
    padding: 9px 16px;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

    .main-nav .dropdown-item:hover {
        background: var(--primary-lighter);
        color: var(--primary);
    }

.main-nav .dropdown-submenu {
    position: relative;
}

    .main-nav .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%;
        margin-right: 6px;
        border-radius: var(--radius);
    }

.main-nav .navbar-toggler {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 7px 11px;
}

    .main-nav .navbar-toggler:focus {
        box-shadow: none;
    }

/* ===== TICKER ===== */
.ticker {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-badge {
    background: var(--primary);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

    .ticker-badge::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.ticker-track {
    overflow: hidden;
    flex: 1;
    height: 28px;
    position: relative;
}

.ticker-scroll {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
    animation: scrollX 45s linear infinite;
}

    .ticker-scroll a {
        font-size: 13px;
        color: var(--text);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .ticker-scroll a::before {
            content: '';
            width: 5px;
            height: 5px;
            background: var(--primary);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .ticker-scroll a:hover {
            color: var(--primary);
        }

@keyframes scrollX {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


/* ===== HERO ===== */


.hero-side {
    height: 440px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sideBanners {
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

#sideBanners .swiper-wrapper {
    height: 100%;
}

#sideBanners .swiper-slide {
    height: 100% !important;
}

#sideBanners .side-card {
    width: 100%;
    height: 100%;
    min-height: 0;
}

#sideBanners .side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



#heroSlider {
    width: 100%;
    height: 440px !important;
    overflow: hidden;
}

#heroSlider .swiper-wrapper {
    height: 440px !important;
}

#heroSlider .swiper-slide {
    width: 100%;
    height: 440px !important;
    position: relative;
    overflow: hidden;
}

#heroSlider .swiper-slide img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.hero {
    padding: 28px 0 0;
    background: transparent; /* ← این رو اضافه کن */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    background: transparent; /* ← این خط رو اضافه کن */
}

.slider-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 440px;
}

    .slider-wrap .swiper {
        width: 100%;
        height: 100%;
        background: transparent;
        overflow: hidden;
    }

    .slider-wrap .swiper-wrapper {
        height: 100%;
    }

    .slider-wrap .swiper-slide {
        height: 440px;
        position: relative;
        overflow: hidden;
    }

        .slider-wrap .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 7s ease;
        }

    .slider-wrap .swiper-slide-active img {
        transform: scale(1.06);
    }

.slide-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 45%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
}

    .slide-grad h2 {
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.5;
    }

        .slide-grad h2 a {
            color: #fff;
            text-decoration: none;
            transition: opacity 0.3s;
        }

            .slide-grad h2 a:hover {
                opacity: 0.85;
            }

    .slide-grad p {
        color: rgba(255,255,255,0.7);
        font-size: 13px;
        max-width: 600px;
    }

.slider-wrap .swiper-pagination {
    bottom: 16px;
}

.slider-wrap .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 8px;
    height: 8px;
    transition: var(--transition);
}

.slider-wrap .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent);
    width: 26px;
    border-radius: 4px;
}

.slider-wrap .swiper-button-next,
.slider-wrap .swiper-button-prev {
    color: #fff;
    background: rgba(0,106,104,0.5);
    backdrop-filter: blur(8px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: var(--transition);
}

    .slider-wrap .swiper-button-next::after,
    .slider-wrap .swiper-button-prev::after {
        font-size: 15px;
    }

    .slider-wrap .swiper-button-next:hover,
    .slider-wrap .swiper-button-prev:hover {
        background: var(--primary);
    }

/*.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}*/

.side-update {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.side-card {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    min-height: 100px;
}

    .side-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }

    .side-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .side-card .side-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0,30,30,0.8) 0%, transparent 60%);
        display: flex;
        align-items: flex-end;
        padding: 16px;
    }

        .side-card .side-overlay span {
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.7;
        }
/* ===== SERVICES ===== */
.services-strip {
    padding: 32px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.svc-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .svc-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--primary-light));
        transform: scaleX(0);
        transition: transform .4s ease;
    }

    .svc-card:hover::before {
        transform: scaleX(1);
    }

    .svc-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

.svc-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.svc-card:hover .svc-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-3deg);
}

.svc-card h4 {
    font-size: 14px;
    font-weight: 700;
  /*  color: var(--dark);*/
    margin-bottom: 6px;
}

.svc-card p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* ===== NEWS ===== */
.news-section {
    padding: 0 0 40px;
}

.sec-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .sec-header .sec-icon {
        width: 44px;
        height: 44px;
        background: var(--primary);
        color: #fff;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .sec-header h2 {
        font-size: 20px;
        font-weight: 800;
        color: var(--dark);
        margin: 0;
    }

    .sec-header .sec-line {
        flex: 1;
        height: 2px;
        background: var(--border);
        border-radius: 2px;
        position: relative;
        min-width: 40px;
    }

        .sec-header .sec-line::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 40px;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
        }

.sec-archive {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

    .sec-archive:hover {
        color: var(--primary-dark);
    }

.modern-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .modern-tabs .tab-btn {
        padding: 9px 22px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 600;
        border: 2px solid var(--border);
        background: var(--bg-card);
        color: var(--text-light);
        cursor: pointer;
        transition: var(--transition);
        font-family: var(--font-family);
    }

        .modern-tabs .tab-btn:hover {
            border-color: var(--primary-lighter);
            color: var(--primary);
        }

        .modern-tabs .tab-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: var(--shadow-primary);
        }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
        animation: fadeUp .35s ease;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

    .news-card .card-img {
        height: 180px;
        overflow: hidden;
        position: relative;
        background: var(--border);
    }

        .news-card .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s ease;
        }

    .news-card:hover .card-img img {
        transform: scale(1.08);
    }

    .news-card .card-img .card-date {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(0,106,104,0.9);
        backdrop-filter: blur(6px);
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .news-card .card-body-inner {
        padding: 18px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

        .news-card .card-body-inner h3 {
            font-size: 14px;
            font-weight: 700;
         /*   color: var(--dark);*/
            line-height: 1.8;
            margin-bottom: 10px;
            transition: var(--transition);
        }

    .news-card:hover .card-body-inner h3 {
        color: var(--primary);
    }

    .news-card .card-body-inner .read-more {
        margin-top: auto;
        font-size: 12px;
       /* color: var(--primary);*/
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

        .news-card .card-body-inner .read-more i {
            transition: transform .3s ease;
        }

    .news-card:hover .card-body-inner .read-more i {
        transform: translateX(-4px);
    }

    .news-card.featured {
        grid-column: 1 / -1;
        flex-direction: row;
    }

        .news-card.featured .card-img {
            width: 45%;
            height: auto;
            min-height: 240px;
        }

        .news-card.featured .card-body-inner {
            width: 55%;
            justify-content: center;
            padding: 28px;
        }

            .news-card.featured .card-body-inner h3 {
                font-size: 18px;
                line-height: 1.7;
            }

            .news-card.featured .card-body-inner .news-excerpt {
                font-size: 13px;
                color: var(--text-light);
                margin-bottom: 16px;
                line-height: 1.8;
            }

/* ===== REPORT ===== */
/*.report-section {
    padding: 0 0 40px;
}*/

.report-swiper {
    padding-bottom: 50px;
}

    .report-swiper .swiper-slide {
        border-radius: var(--radius);
        overflow: hidden;
    }

    .report-swiper .r-img {
        height: 200px;
        overflow: hidden;
        border-radius: var(--radius);
        position: relative;
    }

        .report-swiper .r-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .5s ease;
        }

    .report-swiper .swiper-slide:hover .r-img img {
        transform: scale(1.06);
    }

    .report-swiper .r-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%);
    }

    .report-swiper .r-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin-top: 12px;
        line-height: 1.8;
        text-align: center;
        transition: var(--transition);
    }

        .report-swiper .r-title:hover {
            color: var(--primary);
        }

    .report-swiper .swiper-pagination-bullet {
        background: var(--primary);
        opacity: 0.25;
        width: 8px;
        height: 8px;
    }

    .report-swiper .swiper-pagination-bullet-active {
        opacity: 1;
        width: 24px;
        border-radius: 4px;
    }

/* ===== FARAKHAN ===== */
.farakhan-section {
    padding: 40px 0;
}

.farakhan-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.farakhan-card {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    align-items: center;
    transition: var(--transition);
}

    .farakhan-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: var(--primary-lighter);
    }

    .farakhan-card img {
        width: 80px;
        height: 65px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }

    .farakhan-card h5 {
        font-size: 13px;
        font-weight: 700;
       /* color: var(--dark);*/
        margin: 0 0 4px;
        line-height: 1.7;
        transition: var(--transition);
    }

    .farakhan-card:hover h5 {
        color: var(--primary);
    }

    .farakhan-card .f-date {
        font-size: 11px;
        color: var(--text-light);
        display: flex;
        align-items: center;
        gap: 4px;
    }

/* ===== STATS ===== */
.stats-bar {
    background: var(--dark);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

    .stats-bar::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(0,106,104,0.15), transparent 70%);
        border-radius: 50%;
    }

    .stats-bar::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -60px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(200,169,110,0.1), transparent 70%);
        border-radius: 50%;
    }

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.08);
    align-self: center;
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #0a1f1f 0%, #061515 100%);
    color: rgba(255, 255, 255, 0.6);
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

    /* خط تزئینی بالای فوتر */
    .site-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary, #006a68), var(--accent, #e8a838), var(--primary, #006a68));
    }

/* ===== BRAND ===== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

    .footer-brand img {
        height: 50px;
        filter: brightness(1.1);
    }

    .footer-brand h4 {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }

/* ===== DESC ===== */
.footer-desc {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== SOCIAL ===== */
.footer-social {
    display: flex;
    gap: 8px;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.4);
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .footer-social a:hover {
            background: var(--primary, #006a68);
            color: #fff;
            border-color: var(--primary, #006a68);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 106, 104, 0.3);
        }

/* ===== HEADING ===== */
.footer-heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #006a68);
    display: inline-block;
}

/* ===== LINKS ===== */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 0;
}

    .footer-links a::before {
        content: '';
        width: 5px;
        height: 5px;
        background: rgba(0, 180, 170, 0.4);
        border-radius: 50%;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .footer-links a:hover {
        color: #fff;
        padding-right: 6px;
    }

        .footer-links a:hover::before {
            background: var(--accent, #e8a838);
            box-shadow: 0 0 6px rgba(232, 168, 56, 0.5);
        }

/* ===== CONTACTS ===== */
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

    .footer-contacts li i {
        color: var(--primary-light, #00b4aa);
        margin-top: 4px;
        width: 16px;
        text-align: center;
        font-size: 13px;
    }

/* ===== STATS SECTION — بخش آمار ===== */
.site-footer > .container > .row {
    padding: 40px 0 0;
}

.footervisitor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
    padding: 28px 24px;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

    .footervisitor span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.45);
        padding: 6px 0;
        white-space: nowrap;
    }

        .footervisitor span i {
            color: rgba(0, 180, 170, 0.5);
            font-size: 12px;
            width: 16px;
            text-align: center;
        }

    /* اعداد — رنگ طلایی ملایم */
    .footervisitor .text-warning {
        color: var(--accent, #e8a838) !important;
        font-weight: 700;
        font-size: 13px;
        direction: ltr;
        display: inline-block;
    }

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 32px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

    .footer-bottom .row {
        padding: 0;
    }

    .footer-bottom .col-md-12 {
        margin-bottom: 4px;
    }

        .footer-bottom .col-md-12:last-child {
            margin-bottom: 0;
        }

.footer-year {
    color: var(--accent, #e8a838);
    font-weight: 700;
}

.footer-design {
    color: rgba(255, 255, 255, 0.2);
}

    .footer-design a {
        color: rgba(255, 255, 255, 0.35);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

        .footer-design a:hover {
            color: var(--accent, #e8a838);
        }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .site-footer > .container > .row {
        padding: 28px 0 0;
    }

    .footervisitor {
        padding: 20px 16px;
        gap: 4px 16px;
        border-radius: 10px;
    }

        .footervisitor span {
            font-size: 11px;
            padding: 5px 0;
        }

        .footervisitor .text-warning {
            font-size: 12px;
        }

    .footer-bottom {
        padding: 16px 0;
        margin-top: 24px;
    }

        .footer-bottom .col-md-12 {
            font-size: 11px;
        }
}

@media (max-width: 480px) {
    .footervisitor {
        justify-content: flex-start;
        gap: 2px 12px;
        padding: 16px 12px;
    }

        .footervisitor span {
            font-size: 10.5px;
        }
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

    .search-modal.open {
        display: flex;
        animation: fadeIn .2s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 640px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-input {
    width: 100%;
    padding: 20px 24px;
    border: none;
    font-family: var(--font-family);
    font-size: 16px;
    background: transparent;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

    .search-modal-input:focus {
        outline: none;
    }

    .search-modal-input::placeholder {
        color: var(--text-light);
    }

.search-results {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}

.search-result-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

    .search-result-item:hover {
        background: var(--primary-lighter);
    }

    .search-result-item h4 {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 4px;
    }

    .search-result-item p {
        font-size: 12px;
        color: var(--text-light);
        margin: 0;
    }

.search-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-light);
    font-size: 13px;
}

/* ===== EN MODAL ===== */
.en-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .en-modal.open {
        display: flex;
        animation: fadeIn .2s ease;
    }

.en-modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideDown .3s ease;
}

.en-modal-header {
    background: var(--primary);
    color: #fff;
    padding: 24px 28px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .en-modal-header h2 {
        font-size: 20px;
        font-weight: 800;
        margin: 0;
        font-family: 'Segoe UI', Tahoma, sans-serif;
    }

    .en-modal-header button {
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 16px;
        transition: var(--transition);
    }

        .en-modal-header button:hover {
            background: rgba(255,255,255,0.3);
        }

.en-modal-body {
    padding: 28px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 2;
    direction: ltr;
    text-align: left;
    color: var(--text);
}

    .en-modal-body h3 {
        color: var(--primary);
        font-size: 17px;
        margin: 20px 0 10px;
        font-weight: 700;
    }

        .en-modal-body h3:first-child {
            margin-top: 0;
        }

    .en-modal-body ul {
        padding-right: 20px;
    }

    .en-modal-body li {
        margin-bottom: 6px;
    }

/* ===== BACK TO TOP ===== */
.btt {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9980;
    transition: var(--transition);
}

    .btt.show {
        display: flex;
    }

    .btt:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
    }

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-card);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}

    .loader.done {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader-ring {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader span {
    margin-top: 14px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== RESPONSIVE ===== */
@media(max-width:991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        background: transparent; /* ← این خط رو اضافه کن */
    }

    .slider-wrap .swiper-slide {
        height: 320px;
    }

    .slide-grad h2 {
        font-size: 18px;
    }

    .slide-grad {
        padding: 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        flex-direction: column;
    }

        .news-card.featured .card-img {
            width: 100%;
            min-height: 200px;
        }

        .news-card.featured .card-body-inner {
            width: 100%;
        }

    .farakhan-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 200px;
    }

        .search-box input:focus {
            width: 240px;
        }

    .stat-divider {
        display: none;
    }

    .main-nav .navbar-collapse {
        background: var(--bg-card);
        max-height: 75vh;
        overflow-y: auto;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-xl);
        padding: 6px 0;
        margin-top: 4px;
    }

    .main-nav .navbar-nav .nav-link {
        color: var(--text);
        padding: 10px 18px;
        border-radius: var(--radius-sm);
        margin: 2px 6px;
    }

        .main-nav .navbar-nav .nav-link:hover {
            background: var(--primary-lighter);
            color: var(--primary);
        }

        .main-nav .navbar-nav .nav-link::before {
            display: none;
        }

    .main-nav .dropdown-menu {
        box-shadow: none;
        border-radius: var(--radius-sm);
        padding-right: 16px;
    }

    .a11y-content {
        width: 290px;
        right: -8px;
    }
}

@media(max-width:575px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .news-card .card-img {
        height: 160px;
    }

    .slide-grad h2 {
        font-size: 15px;
    }

    .slide-grad p {
        font-size: 12px;
    }

    .slider-wrap .swiper-slide {
        height: 240px;
    }

    .stat-num {
        font-size: 26px;
    }

    .gov-banners {
        display: none !important;
    }

    .brand img {
        height: 60px;
    }

    .brand h1 {
        font-size: 16px;
    }

    .search-box {
        display: none;
    }

    .header-actions .pill-btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .a11y-panel {
        bottom: 16px;
        right: 16px;
    }

    .a11y-content {
        width: calc(100vw - 32px);
        right: 0;
    }

    .btt {
        bottom: 16px;
        left: 16px;
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
           ARCHIVE PAGE
  ========================================================= */
.archive-page {
    padding: 32px 0 60px;
}

/* Header */

.archive-page .sec-header {
    margin-bottom: 24px;
}

.archive-title {
    margin: 0;
}

/* Archive grid */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Card */

.archive-card {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, #fff);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 18px rgba(0,0,0,.07));
    border: 1px solid rgba(0,0,0,.05);
    min-height: 180px;
    transition: var(--transition, all .25s ease);
}

    .archive-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,.12));
    }

    /* Image */

    .archive-card .archive-img {
        width: 220px;
        min-width: 220px;
        height: 180px;
        overflow: hidden;
        position: relative;
    }

        .archive-card .archive-img img {
            width: 100%;
            height: 100%;
            /* object-fit: cover;*/
            display: block;
            transition: transform .5s ease;
        }

    .archive-card:hover .archive-img img {
        transform: scale(1.05);
    }

    /* Body */

    .archive-card .archive-body {
        flex: 1;
        min-width: 0;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .archive-card h3 {
        margin: 0 0 14px;
        font-size: 16px;
        line-height: 1.9;
        font-weight: 700;
        color: var(--text, #263238);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .archive-card:hover h3 {
        color: var(--primary, #006a68);
    }

/* Date */

.archive-date {
    color: var(--text-muted, #89939b);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

    .archive-date i {
        color: var(--primary, #006a68);
    }

/* Read more */

.archive-read-more {
    color: var(--primary, #006a68);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .archive-read-more i {
        transition: transform .2s ease;
    }

.archive-card:hover .archive-read-more i {
    transform: translateX(-4px);
}

/* Empty */

.archive-empty {
    background: var(--card-bg, #fff);
    border-radius: var(--radius-lg, 16px);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted, #89939b);
    box-shadow: var(--shadow, 0 4px 18px rgba(0,0,0,.07));
}

    .archive-empty i {
        font-size: 36px;
        margin-bottom: 12px;
        display: block;
        color: var(--primary, #006a68);
    }

/* Pagination */

.archive-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .archive-pagination table {
        margin: 0 auto;
    }

    .archive-pagination td {
        padding: 0 3px;
    }

    .archive-pagination a,
    .archive-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        border-radius: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: var(--transition, all .25s ease);
    }

    .archive-pagination a {
        background: #fff;
        color: var(--primary, #006a68);
        border: 1px solid rgba(0,0,0,.08);
    }

        .archive-pagination a:hover {
            background: var(--primary, #006a68);
            color: #fff;
            border-color: var(--primary, #006a68);
        }

    .archive-pagination .currentLable {
        background: var(--primary, #006a68);
        color: #fff;
        border: 1px solid var(--primary, #006a68);
    }


/* =========================================================
           TABLET
        ========================================================= */

@media (max-width: 991px) {

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-card .archive-img {
        width: 200px;
        min-width: 200px;
    }
}


/* =========================================================
           MOBILE
        ========================================================= */

@media (max-width: 576px) {

    .archive-page {
        padding: 22px 0 40px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .archive-card {
        min-height: 130px;
    }

        .archive-card .archive-img {
            width: 125px;
            min-width: 125px;
            height: 145px;
        }

        .archive-card .archive-body {
            padding: 14px;
        }

        .archive-card h3 {
            font-size: 13px;
            line-height: 1.8;
            margin-bottom: 8px;
            -webkit-line-clamp: 3;
        }

    .archive-date {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .archive-read-more {
        font-size: 11px;
    }

    .archive-page .sec-header {
        margin-bottom: 18px;
    }
}


/* ===== End Archive ===== */



/* ===== TWO COL SECTION (پربیننده + مقالات) ===== */
.two-col-section {
    padding: 48px 0;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* --- کارت --- */
.col-card {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.06));
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

    .col-card:hover {
        box-shadow: var(--shadow-lg, 0 8px 30px rgba(0,0,0,0.1));
    }

/* --- هدر کارت --- */
.col-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border, #e8efef);
}

    .col-card-head h4 {
        font-size: 15px;
        font-weight: 700;
        color: var(--text, #1a2e2e);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .col-card-head h4 i {
            color: var(--primary, #006a68);
            font-size: 16px;
        }

    .col-card-head a {
        font-size: 12px;
        font-weight: 600;
        color: var(--primary, #006a68);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: opacity 0.2s;
        white-space: nowrap;
    }

        .col-card-head a:hover {
            opacity: 0.7;
        }

/* --- بدنه کارت --- */
.col-card-body {
    padding: 8px 0;
}

/* --- آیتم خبر --- */
.col-news-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 22px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light, #f2f6f6);
}

    .col-news-item:last-child {
        border-bottom: 0;
    }

    .col-news-item:hover {
        background: rgba(0, 106, 104, 0.03);
    }

/* --- عکس --- */
.cni-img {
    flex-shrink: 0;
    width: 80px;
    height: 64px;
    border-radius: var(--radius, 10px);
    overflow: hidden;
}

    .cni-img a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .cni-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.col-news-item:hover .cni-img img {
    transform: scale(1.08);
}

/* --- متن --- */
.col-news-item > div:last-child {
    flex: 1;
    min-width: 0;
}

.col-news-item h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #1a2e2e);
    margin: 0 0 6px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .col-news-item h5 a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

        .col-news-item h5 a:hover {
            color: var(--primary, #006a68);
        }

/* --- تاریخ --- */
.cni-date {
    font-size: 11px;
    color: var(--text-muted, #7a8f8f);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .cni-date i {
        font-size: 11px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .two-col-section {
        padding: 32px 0;
    }

    .col-card-head {
        padding: 14px 16px;
    }

    .col-news-item {
        padding: 12px 16px;
        gap: 12px;
    }

    .cni-img {
        width: 70px;
        height: 56px;
    }

    .col-news-item h5 {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* ===== End TWO COL SECTION (پربیننده + مقالات) ===== */

/*<style>--------------------------Show Details-----------------------------*/
/* === WRAPPER === */
.page_main_wrapper {
    padding: 32px 0 60px;
    min-height: 60vh;
}

/* === PANEL === */
.panel_inner {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow, 0 2px 16px rgba(0,0,0,0.06));
    overflow: hidden;
}

/* === PANEL HEADER === */
.panel_header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--primary, #006a68), var(--primary-dark, #00504e));
    color: #fff;
}

    .panel_header h4 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.8;
        flex: 1 1 100%;
    }

        .panel_header h4 strong {
            font-weight: 700;
        }

    .panel_header span {
        font-size: 12px;
        opacity: 0.85;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .panel_header a {
        color: #fff;
        opacity: 0.8;
        transition: opacity 0.2s;
        display: flex;
        align-items: center;
        margin-right: auto;
    }

        .panel_header a:hover {
            opacity: 1;
        }

    .panel_header .fa-2x {
        font-size: 18px !important;
    }

/* === PANEL BODY === */
.panel_body {
    padding: 32px 28px;
}

/* === MAIN IMAGE === */
.mainImg {
    margin-bottom: 28px;
}

    .mainImg img {
        max-width: 100%;
        max-height: 440px;
        object-fit: contain;
        border-radius: var(--radius-lg, 14px);
        box-shadow: var(--shadow-lg, 0 8px 30px rgba(0,0,0,0.1));
        transition: transform 0.4s ease;
        cursor: zoom-in;
    }

        .mainImg img:hover {
            transform: scale(1.02);
        }

/* === BLOCKQUOTE (لید خبر) === */
blockquote {
    position: relative;
    margin: 0 0 24px;
    padding: 20px 24px 20px 28px;
    background: var(--bg-section, #f4f9f8);
    border-right: 4px solid var(--primary, #006a68);
    border-radius: 0 var(--radius, 10px) var(--radius, 10px) 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #1a2e2e);
    line-height: 2;
}

    blockquote::before {
        content: '\f10d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: -8px;
        right: -14px;
        width: 28px;
        height: 28px;
        background: var(--primary, #006a68);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
    }

/* === DETAIL TEXT (متن اصلی) === */
.detail-text {
    font-size: 14.5px;
    line-height: 2.2;
    color: var(--text, #2a3e3e);
    text-align: justify;
    margin-bottom: 28px;
}

    .detail-text img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius, 10px);
        margin: 12px 0;
    }

    .detail-text p {
        margin-bottom: 14px;
    }

    .detail-text a {
        color: var(--primary, #006a68);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* === GALLERY === */
.deatils-gallery {
    margin: 24px 0 32px;
}

    .deatils-gallery ul {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .deatils-gallery li {
        width: calc(25% - 9px);
        padding: 0 !important;
        margin: 0 !important;
        border-radius: var(--radius, 10px);
        overflow: hidden;
        box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,0.06));
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

        .deatils-gallery li:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.12));
        }

        .deatils-gallery li a {
            display: block;
        }

    .deatils-gallery .img-thumbnail {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        transition: transform 0.4s ease;
    }

    .deatils-gallery li:hover .img-thumbnail {
        transform: scale(1.08);
    }

/* === FILE BOX (فایل‌های پیوست) === */
.detail-files {
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.file-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-section, #f4f9f8);
    border: 1px solid var(--border, #e0eded);
    border-radius: var(--radius, 12px);
    padding: 16px 20px;
    width: 100%;
    max-width: 420px;
    transition: all 0.3s ease;
}

    .file-box:hover {
        border-color: var(--primary, #006a68);
        box-shadow: 0 4px 16px rgba(0,106,104,0.1);
        transform: translateY(-2px);
    }

    .file-box p {
        margin: 0;
        font-size: 13px;
        color: var(--text, #1a2e2e);
        line-height: 1.8;
    }

        .file-box p:nth-child(3) {
            font-size: 11px;
            color: var(--text-muted, #7a8f8f);
        }

    .file-box .fa-info-circle {
        margin: 0 2px;
        color: var(--primary, #006a68);
        opacity: 0.6;
        font-size: 11px;
    }

    .file-box a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        background: var(--primary, #006a68);
        color: #fff !important;
        border-radius: 12px;
        flex-shrink: 0;
        transition: all 0.3s ease;
        text-decoration: none !important;
    }

        .file-box a:hover {
            background: var(--primary-dark, #00504e);
            transform: scale(1.06);
        }

        .file-box a .fa-3x {
            font-size: 20px !important;
        }

.clearBoth {
    display: block;
    clear: both;
}

/* === SOURCE & AUTHOR & TAGS === */
.panel_body > .col-md-12 > p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text, #2a3e3e);
    margin-bottom: 10px;
    padding: 0;
}

    .panel_body > .col-md-12 > p .fa-link,
    .panel_body > .col-md-12 > p .fa-pencil,
    .panel_body > .col-md-12 > p .fa-tag {
        color: var(--primary, #006a68);
        font-size: 13px;
        flex-shrink: 0;
    }

    .panel_body > .col-md-12 > p a {
        color: var(--primary, #006a68);
        text-decoration: none;
    }

    .panel_body > .col-md-12 > p .btn {
        font-size: 11px;
        padding: 3px 12px;
        border-radius: 20px;
        background: var(--bg-section, #f4f9f8);
        color: var(--text, #2a3e3e);
        border: 1px solid var(--border, #e0eded);
        transition: all 0.2s;
        margin: 2px;
    }

        .panel_body > .col-md-12 > p .btn:hover {
            background: var(--primary, #006a68);
            color: #fff;
            border-color: var(--primary, #006a68);
        }

/* === SHARE (اگه بعداً فعال بشه) === */
.share_post {
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border, #e0eded);
    border-bottom: 1px solid var(--border, #e0eded);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* === COMMENTS SECTION === */
.comment_post {
    margin-top: 28px;
}

/* --- تب‌ها --- */
.custom-tabs {
    display: flex;
    border-bottom: 2px solid var(--border, #e0eded);
    margin-bottom: 24px;
    gap: 0;
}

    .custom-tabs > li {
        margin: 0;
    }

        .custom-tabs > li > a {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 12px 22px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted, #7a8f8f);
            border: none !important;
            border-bottom: 2px solid transparent !important;
            margin-bottom: -2px;
            border-radius: 0 !important;
            background: transparent !important;
            transition: all 0.2s;
        }

            .custom-tabs > li > a:hover {
                color: var(--primary, #006a68);
                background: transparent !important;
            }

        .custom-tabs > li.active > a,
        .custom-tabs > li.active > a:focus,
        .custom-tabs > li.active > a:hover {
            color: var(--primary, #006a68) !important;
            border-bottom-color: var(--primary, #006a68) !important;
            background: transparent !important;
        }

/* --- کامنت باکس --- */
.comment-box {
    padding: 20px !important;
    margin-bottom: 16px;
    background: var(--bg-section, #f8fbfa);
    border-radius: var(--radius, 12px);
    border: 1px solid var(--border-light, #eef3f2);
    transition: box-shadow 0.3s;
}

    .comment-box:hover {
        box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    }

.comment-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light, #eef3f2);
}

    .comment-box-header .col-md-4,
    .comment-box-header .col-md-8 {
        padding: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--text-muted, #7a8f8f);
    }

    .comment-box-header .fa-user {
        color: var(--primary, #006a68);
    }

/* لایک / دیس‌لایک */
.com-like,
.com-dislike {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted, #7a8f8f);
    transition: color 0.2s;
    user-select: none;
}

    .com-like:hover {
        color: #27ae60;
    }

    .com-dislike:hover {
        color: #e74c3c;
    }

    .com-like i,
    .com-dislike i {
        font-size: 15px;
        transition: transform 0.2s;
    }

    .com-like:hover i {
        transform: scale(1.2);
    }

    .com-dislike:hover i {
        transform: scale(1.2);
    }

/* متن کامنت */
.comment-box > .col-md-12:last-of-type {
    padding: 0;
    font-size: 14px;
    line-height: 2;
    color: var(--text, #2a3e3e);
    text-align: justify;
}

/* --- پاسخ ادمین --- */
.answer-box {
    margin-top: 14px;
    padding: 16px 18px !important;
    background: #fff;
    border-radius: var(--radius, 10px);
    border-right: 3px solid var(--primary, #006a68);
    box-shadow: inset 0 0 0 1px var(--border-light, #eef3f2);
}

    .answer-box > .col-md-12 {
        padding: 0;
    }

        .answer-box > .col-md-12:first-child {
            font-size: 12px;
            color: var(--text-muted, #7a8f8f);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

            .answer-box > .col-md-12:first-child .fa-user {
                color: var(--primary, #006a68);
            }

        .answer-box > .col-md-12:last-child {
            font-size: 13px;
            line-height: 2;
            color: var(--text, #2a3e3e);
            text-align: justify;
        }

/* --- فرم ارسال نظر --- */
#sendComment .form-group {
    margin-bottom: 14px;
}

#sendComment .txtBox {
    border: 1px solid var(--border, #e0eded) !important;
    border-radius: var(--radius, 10px) !important;
    padding: 10px 16px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: var(--text, #2a3e3e) !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
    height: auto !important;
}

    #sendComment .txtBox:focus {
        border-color: var(--primary, #006a68) !important;
        box-shadow: 0 0 0 3px rgba(0,106,104,0.1) !important;
    }

    #sendComment .txtBox::placeholder {
        color: #aab8b8;
    }

#sendComment textarea.txtBox {
    resize: vertical;
    min-height: 100px;
}

/* کپچا */
#sendComment img {
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--border, #e0eded);
    height: 42px;
    vertical-align: middle;
}

#sendComment .fa-2x {
    font-size: 20px !important;
    color: var(--primary, #006a68);
    cursor: pointer;
    transition: transform 0.3s;
    vertical-align: middle;
    margin-right: 6px;
}

    #sendComment .fa-2x:hover {
        transform: rotate(180deg);
    }

/* دکمه ثبت */
#sendComment .btn-primary {
    background: var(--primary, #006a68);
    border: none;
    padding: 10px 32px;
    border-radius: var(--radius, 10px);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
}

    #sendComment .btn-primary:hover {
        background: var(--primary-dark, #00504e);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(0,106,104,0.2);
    }

/* ولیدیشن ارور */
.validation-error {
    color: #e74c3c !important;
    font-size: 11px !important;
/*    display: block;*/
    margin-bottom: 4px;
}

/* ارور کپچا */
.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: var(--radius, 10px);
    padding: 10px 14px;
    font-size: 12px;
}

/* متن "تاکنون نظری ثبت نشده" */
.tab-pane > :not(.comment-box):not(.col-md-12):not(ul):not(.form-group):not(.alert) {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted, #7a8f8f);
    font-size: 13px;
}

/* === LIGHTGALLERY OVERRIDE === */
.lg-backdrop {
    background: rgba(0, 30, 30, 0.92) !important;
}

.lg-toolbar,
.lg-actions .lg-next,
.lg-actions .lg-prev {
    background: transparent !important;
    color: #fff !important;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .panel_body {
        padding: 24px 20px;
    }

    .panel_header {
        padding: 18px 20px;
    }

    .deatils-gallery li {
        width: calc(33.333% - 8px);
    }
}

@media (max-width: 767px) {
    .page_main_wrapper {
        padding: 20px 0 40px;
    }

    .panel_header {
        padding: 16px;
        gap: 8px 14px;
    }

        .panel_header h4 {
            font-size: 15px;
        }

        .panel_header span {
            font-size: 11px;
        }

    .panel_body {
        padding: 20px 16px;
    }

    blockquote {
        padding: 16px 18px 16px 22px;
        font-size: 14px;
    }

    .detail-text {
        font-size: 14px;
        line-height: 2;
    }

    .deatils-gallery li {
        width: calc(50% - 6px);
    }

    .deatils-gallery .img-thumbnail {
        height: 120px;
    }

    .file-box {
        max-width: 100%;
    }

    .custom-tabs > li > a {
        padding: 10px 14px;
        font-size: 12px;
    }

    .comment-box {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .deatils-gallery li {
        width: calc(50% - 4px);
    }

    .deatils-gallery {
        gap: 8px;
    }

        .deatils-gallery .img-thumbnail {
            height: 100px;
        }

    .mainImg img {
        max-height: 260px;
    }
}

/*</style>--------------------------End Show Details-----------------------------*/



/* ===== LIBRARY / GALLERY / LINKS — SWIPER CARDS ===== */


/* ---hedere--- */
.lib-gallery-section .sec-header {
    margin-bottom: 28px;
}

/* --- خود swiper --- */

.lib-gallery-section {
    padding: 15px 0;
    /*background: var(--bg-section, #f6faf9);*/
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

    .lib-gallery-section .container {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

.lg-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 48px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

    .lg-swiper .swiper-wrapper {
        width: 100%;
        box-sizing: border-box;
    }

    .lg-swiper .swiper-slide {
        height: auto !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .lg-swiper .swiper-pagination {
        bottom: 0 !important;
    }

    .lg-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: var(--primary, #006a68);
        opacity: 0.25;
        transition: all 0.3s ease;
    }

    .lg-swiper .swiper-pagination-bullet-active {
        opacity: 1;
        width: 24px;
        border-radius: 4px;
        background: var(--accent, #e8a838);
    }

    /* ===== کارت کتاب / گالری ===== */
    .lg-swiper .swiper-slide {
        height: auto !important;
    }

        .lg-swiper .swiper-slide > a {
            display: block;
        }

/* --- عکس --- */
.lg-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,0.08));
    background: var(--bg-card, #fff);
}

    .lg-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

/* هاور زوم عکس */
.lg-swiper .swiper-slide:hover .lg-img img {
    transform: scale(1.07);
}

/* اورلی روی عکس */
.lg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient( 180deg, transparent 50%, rgba(0, 40, 40, 0.55) 100% );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lg-swiper .swiper-slide:hover .lg-img::after {
    opacity: 1;
}

/* آیکون مشاهده روی عکس */
.lg-img::before {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    color: #fff;
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 106, 104, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.lg-swiper .swiper-slide:hover .lg-img::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- عنوان --- */
.lg-title {
    padding: 12px 4px 0;
}

    .lg-title a {
        font-size: 13px;
        font-weight: 600;
        color: var(--text, #1a2e2e);
        text-decoration: none;
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s;
        text-align:center;
    }

        .lg-title a:hover {
            color: var(--primary, #006a68);
        }

/* --- نویسنده (فقط کتابخانه) --- */
.lg-author {
    padding: 4px 4px 0;
    font-size: 11px;
    color: var(--text-muted, #7a8f8f);
    /*display: flex;*/
    align-items: center;
    gap: 5px;
    text-align:center;
}

    .lg-author::before {
        content: '\f007';
        font-family: 'Font Awesome 6 Free';
        font-weight: 400;
        font-size: 10px;
        color: var(--primary, #006a68);
        opacity: 0.6;
    }

/* ===== بخش پیوندها (فقط موبایل) ===== */
.d-lg-none .lg-img {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius, 10px);
}

.d-lg-none .lg-title {
    text-align: center;
    padding: 10px 4px 0;
    font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .lib-gallery-section {
        padding: 36px 0;
    }

    .lg-swiper {
        padding-bottom: 40px !important;
    }
}

@media (max-width: 575px) {
    .lib-gallery-section {
        padding: 28px 0;
    }

    .lg-img {
        aspect-ratio: 3 / 3.5;
        border-radius: var(--radius, 10px);
    }

    .lg-title {
        font-size: 12px;
    }
}

/* ===== End  LIBRARY / GALLERY / LINKS—SWIPER CARDS  ===== */

/* =========================================================
   SUGGESTIONS PAGE — پیشنهادات و انتقادات
   ========================================================= */

/* === WRAPPER === */
/*.page_main_wrapper .container {
    max-width: 800px;
}*/

/* === PANEL === */
.panel_inner.mt10 {
    margin-top: 24px;
}

/* === HEDER === */
.panel_inner .panel_header {
    border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;
}

/* === INNER PADDING === */
.in-padd {
    padding: 32px 28px 40px;
}

    .in-padd.m-t20 {
        margin-top: 20px;
    }

    /* === ALERT (پیام موفقیت/خطا) === */
    .in-padd .alert,
    #result_Panel .alert-success,
    #captcha_alarm {
        border-radius: var(--radius, 10px);
        padding: 14px 18px;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .in-padd .alert {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fde68a;
    }

#result_Panel .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

    .in-padd .alert .close,
    #result_Panel .alert-success .close,
    .alert-danger .close {
        margin-right: auto;
        font-size: 18px;
        opacity: 0.5;
        color: inherit;
        text-decoration: none;
        transition: opacity 0.2s;
    }

        .in-padd .alert .close:hover,
        #result_Panel .alert-success .close:hover,
        .alert-danger .close:hover {
            opacity: 1;
        }

/* === LABELS === */
.titleForm {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #1a2e2e);
    margin-bottom: 6px;
}

    .titleForm .text-danger {
        font-size: 11px;
    }

/* === INPUTS === */
.in-padd .form-control {
    border: 1px solid var(--border, #dce8e7) !important;
    border-radius: var(--radius, 10px) !important;
    padding: 11px 16px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    color: var(--text, #2a3e3e) !important;
    background: #fff !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
}

    .in-padd .form-control:focus {
        border-color: var(--primary, #006a68) !important;
        box-shadow: 0 0 0 3px rgba(0, 106, 104, 0.1) !important;
        outline: none !important;
    }

    .in-padd .form-control::placeholder {
        color: #aab8b8;
    }

    /* فیلدهای LTR (تلفن، ایمیل) */
    .in-padd .form-control.ltr {
        text-align: left !important;
        direction: ltr;
    }

/* textarea */
.in-padd textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.9;
}


/* === FILE UPLOAD === */
.in-padd input[type="file"],
.in-padd .form-control[type="file"] {
    padding: 10px 14px !important;
    border-style: dashed !important;
    border-color: var(--border, #c5d8d7) !important;
    background: var(--bg-section, #f8fbfa) !important;
    cursor: pointer;
}

    .in-padd input[type="file"]::file-selector-button,
    .in-padd .form-control[type="file"]::file-selector-button {
        background: var(--primary, #006a68);
        color: #fff;
        border: none;
        padding: 7px 18px;
        border-radius: 8px;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        margin-left: 12px;
        transition: background 0.2s;
    }

        .in-padd input[type="file"]::file-selector-button:hover,
        .in-padd .form-control[type="file"]::file-selector-button:hover {
            background: var(--primary-dark, #00504e);
        }

/* خط قرمز خطای فایل */
.errorLabel {
    font-size: 11px !important;
    margin-top: 6px;
    display: block;
}

/* === FILE INFO TEXT === */
.text-danger.text12 {
    font-size: 11px !important;
    line-height: 1.8;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* === CAPTCHA === */
.CaptchaControl {
    display: block;
    margin-top: 10px;
    border-radius: var(--radius-sm, 8px) !important;
    overflow: hidden;
    border: 1px solid var(--border, #dce8e7) !important;
}

/* === SUBMIT BUTTON === */
.in-padd .btn-warning {
    background: var(--primary, #006a68) !important;
    border: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 0 !important;
    border-radius: var(--radius, 10px) !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(0, 106, 104, 0.15);
}

    .in-padd .btn-warning:hover {
        background: var(--primary-dark, #00504e) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 22px rgba(0, 106, 104, 0.25) !important;
    }

    .in-padd .btn-warning:active {
        transform: translateY(0) !important;
    }

/* === FORM GROUP SPACING === */
.in-padd .form-group {
    margin-bottom: 20px;
}

/* === RESULT PANEL === */
#result_Panel {
    margin-top: 20px;
}

    #result_Panel .alert-success {
        text-align: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        padding: 18px;
    }

/* === PULL-RIGHT FIX (بوت‌استرپ ۳) === */
.pull-right {
    float: right !important;
}

/* === COL-MD-OFFSET FIX === */
.col-md-offset-3 {
    margin-right: 25% !important;
    margin-left: 0 !important;
}

/* === MARG10 === */
.marg10 {
    margin: 10px 0;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .page_main_wrapper {
        padding: 16px 0 40px;
    }

    .in-padd {
        padding: 20px 16px 32px;
    }

    .panel_inner .panel_header {
        padding: 16px;
    }

        .panel_inner .panel_header h4 {
            font-size: 15px;
        }

    .in-padd .form-group {
        margin-bottom: 16px;
    }

    .col-md-offset-3 {
        margin-right: 0 !important;
    }

    .in-padd .btn-lg {
        width: 100%;
    }

    .in-padd input[type="file"]::file-selector-button,
    .in-padd .form-control[type="file"]::file-selector-button {
        margin-left: 8px;
        padding: 6px 14px;
        font-size: 11px;
    }

    .CaptchaControl {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .in-padd .form-control {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    .titleForm {
        font-size: 12px;
    }
}


/* =========================================================
   DESK ARCHIVES PAGE — میز خدمت الکترونیکی
   ========================================================= */

/* === CONTAINER === */
.p-t-10 {
    padding-top: 24px;
}

/* === TABS === */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: none !important;
    border-bottom: 2px solid var(--border, #dce8e7) !important;
    margin-bottom: 0;
    padding: 0;
    background: var(--bg-card, #fff);
    border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;
    padding: 0 8px;
}

    .nav-tabs > li {
        margin: 0;
    }

        .nav-tabs > li > a {
            display: flex;
            align-items: center;
            padding: 14px 22px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted, #7a8f8f) !important;
            border: none !important;
            border-bottom: 2px solid transparent !important;
            border-radius: 0 !important;
            background: transparent !important;
            margin: 0;
            transition: all 0.25s ease;
            white-space: nowrap;
            cursor: pointer;
            text-decoration: none !important;
        }

            .nav-tabs > li > a:hover {
                color: var(--primary, #006a68) !important;
                background: transparent !important;
                border-bottom-color: var(--primary, #006a68) !important;
            }

        .nav-tabs > li.active > a,
        .nav-tabs > li.active > a:hover,
        .nav-tabs > li.active > a:focus {
            color: var(--primary, #006a68) !important;
            background: transparent !important;
            border-bottom-color: var(--primary, #006a68) !important;
            border-top: none !important;
            border-left: none !important;
            border-right: none !important;
        }

/* === TABLE WRAPPER === */
.tbl-scroll {
    margin-top: 0;
    background: var(--bg-card, #fff);
    border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
    box-shadow: var(--shadow, 0 2px 16px rgba(0,0,0,0.06));
    overflow: hidden;
}

.scroll-content {
    padding: 0;
}

/* === TABLE HEADER === */
.table_header {
    display: flex !important;
    align-items: center;
    background: linear-gradient(135deg, var(--primary, #006a68), var(--primary-dark, #00504e));
    color: #fff;
    padding: 16px 28px !important;
    margin: 0 !important;
    font-size: 13px;
    font-weight: 700;
}

    .table_header > div {
        padding: 0 8px;
    }

/* === TABLE ROWS === */
.table_row_border_b {
    display: flex !important;
    align-items: center;
    padding: 14px 28px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--border-light, #eef3f2) !important;
    transition: background 0.2s ease;
}

    .table_row_border_b:last-child {
        border-bottom: none !important;
    }

    .table_row_border_b:hover {
        background: rgba(0, 106, 104, 0.03);
    }

    .table_row_border_b > div {
        padding: 0 8px;
    }

        /* === ستون‌ها — عرض دستی (چون col-xs در بوت‌استرپ ۵ نیست) === */
        .table_header > div:nth-child(1),
        .table_row_border_b > div:nth-child(1) {
            flex: 0 0 50%;
            max-width: 50%;
        }

        .table_header > div:nth-child(2),
        .table_row_border_b > div:nth-child(2) {
            flex: 0 0 16.66%;
            max-width: 16.66%;
        }

        .table_header > div:nth-child(3),
        .table_row_border_b > div:nth-child(3) {
            flex: 0 0 16.66%;
            max-width: 16.66%;
        }

        .table_header > div:nth-child(4),
        .table_row_border_b > div:nth-child(4) {
            flex: 0 0 16.66%;
            max-width: 16.66%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* === عنوان خدمت === */
        .table_row_border_b > div:first-child a {
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text, #1a2e2e);
            text-decoration: none;
            line-height: 1.7;
            transition: color 0.2s;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

            .table_row_border_b > div:first-child a:hover {
                color: var(--primary, #006a68);
            }

        /* === شناسه خدمت === */
        .table_row_border_b > div:nth-child(2) {
            font-size: 12px;
            color: var(--text-muted, #7a8f8f);
            font-weight: 500;
            direction: ltr;
        }

        /* === لینک ارائه خدمت (آیکون‌ها) === */
        .table_row_border_b > div:nth-child(3) {
            display: flex !important;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
        }

            .table_row_border_b > div:nth-child(3) a {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 32px;
                height: 32px;
                background: var(--bg-section, #f4f9f8);
                border-radius: 8px;
                transition: all 0.2s;
                padding: 4px;
            }

                .table_row_border_b > div:nth-child(3) a:hover {
                    background: var(--primary, #006a68);
                    transform: translateY(-2px);
                    box-shadow: 0 3px 10px rgba(0,106,104,0.2);
                }

                .table_row_border_b > div:nth-child(3) a img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    filter: brightness(0.7);
                    transition: filter 0.2s;
                }

                .table_row_border_b > div:nth-child(3) a:hover img {
                    filter: brightness(10);
                }

/* === نظرسنجی === */
.color_red a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c !important;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

    .color_red a:hover {
        background: #e74c3c;
        color: #fff !important;
        transform: scale(1.1);
    }

.color_red .glyphicon-retweet {
    font-size: 14px;
    top: 0;
}

/* === TAB CONTENT === */
.tab-content {
    overflow: visible !important;
}

.tab-pane {
    padding: 0;
}

    /* === پیام خالی === */
    .tab-pane > li {
        list-style: none;
        text-align: center;
        padding: 48px 20px;
        color: var(--text-muted, #7a8f8f);
        font-size: 13px;
    }

/* === FS-25 === */
.fs-25 {
    font-size: inherit !important;
}

/* === P-T / P-B === */
.p-t-20 {
    padding-top: 0 !important;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .table_header {
        padding: 14px 20px !important;
        font-size: 12px;
    }

    .table_row_border_b {
        padding: 14px 20px !important;
    }

        .table_header > div:nth-child(2),
        .table_row_border_b > div:nth-child(2),
        .table_header > div:nth-child(3),
        .table_row_border_b > div:nth-child(3) {
            display: none !important;
        }

        .table_header > div:nth-child(1),
        .table_row_border_b > div:nth-child(1) {
            flex: 1 1 70%;
            max-width: 70%;
        }

        .table_header > div:nth-child(4),
        .table_row_border_b > div:nth-child(4) {
            flex: 0 0 auto;
            max-width: none;
        }
}

@media (max-width: 767px) {
    .p-t-10 {
        padding-top: 16px;
    }

    .nav-tabs {
        border-bottom-width: 1px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .nav-tabs::-webkit-scrollbar {
            display: none;
        }

        .nav-tabs > li > a {
            padding: 10px 16px;
            font-size: 12px;
        }

    .table_header {
        padding: 12px 16px !important;
    }

    .table_row_border_b {
        padding: 12px 16px !important;
    }

        .table_row_border_b > div:first-child a {
            font-size: 13px;
        }
}
/* =========================================================
   SEARCH RESULTS PAGE — Result.aspx
   ========================================================= */

/* === CAT CONTAINER === */
.cat.small-cat {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

    .cat.small-cat > li {
        list-style: none;
    }

/* === کارت خبر === */
.col-p {
    padding: 0 !important;
    margin: 0 !important;
}

    .col-p > .panel_inner {
        background: var(--bg-card, #fff);
        border-radius: var(--radius-lg, 14px);
        overflow: hidden;
        box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.05));
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
    }

        .col-p > .panel_inner:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg, 0 8px 28px rgba(0,0,0,0.1));
        }

/* === NEWS LIST ITEM === */
.news-list-item.articles-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* === عکس === */
.news-list-item > div:first-child {
    overflow: hidden;
}

.news-list-item .thumb {
    display: block;
    overflow: hidden;
}

.news-list-item .img-Result {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.col-p > .panel_inner:hover .img-Result {
    transform: scale(1.06);
}

/* === اطلاعات خبر === */
.post-info-2 {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .post-info-2 h5 {
        margin: 0 0 10px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.8;
    }

        .post-info-2 h5 a {
            color: var(--text, #1a2e2e);
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s;
        }

            .post-info-2 h5 a:hover {
                color: var(--primary, #006a68);
            }

/* === تاریخ === */
.authar-info {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .authar-info li {
        font-size: 11px;
        color: var(--text-muted, #7a8f8f);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* جایگزینی آیکون ti-timer با FA */
    .authar-info .ti-timer {
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 400;
        font-style: normal;
        speak: none;
    }

        .authar-info .ti-timer::before {
            content: '\f017';
            font-family: 'Font Awesome 6 Free' !important;
            font-weight: 400;
        }

/* === PAGINATION === */
.PagingButton,
.currentLable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: var(--radius, 8px);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border, #dce8e7);
    background: var(--bg-card, #fff);
    color: var(--text, #1a2e2e);
}

    .PagingButton:hover {
        background: var(--primary, #006a68);
        color: #fff !important;
        border-color: var(--primary, #006a68);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0,106,104,0.2);
        text-decoration: none !important;
    }

.currentLable {
    background: var(--primary, #006a68) !important;
    color: #fff !important;
    border-color: var(--primary, #006a68) !important;
    cursor: default;
    box-shadow: 0 3px 10px rgba(0,106,104,0.15);
}

/* === پیام عدم نتیجه === */
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: var(--radius, 12px);
    padding: 24px 20px;
    font-size: 14px;
    text-align: center;
    margin-top: 24px;
}

    .alert-warning::before {
        content: '\f002';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        display: block;
        font-size: 28px;
        margin-bottom: 10px;
        opacity: 0.4;
    }
.news-list-item .thumb {
    display: block;
    overflow: hidden;
}

.news-list-item .img-Result {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.news-list-item .thumb:hover .img-Result {
    transform: scale(1.07);
    filter: brightness(1.08);
}
/* === RESPONSIVE === */
@media (hover: none) {
    .news-list-item .img-Result:hover {
        transform: none !important;
        filter: none !important;
    }

    .news-list-item .thumb::before,
    .news-list-item .thumb::after {
        display: none !important;
    }

    .col-p > .panel_inner:hover .img-Result {
        transform: none !important;
    }
}
@media (max-width: 991px) {
    .cat.small-cat {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .news-list-item .img-Result {
        height: 180px;
    }

    .post-info-2 {
        padding: 14px 16px;
    }

        .post-info-2 h5 {
            font-size: 13px;
        }

    .PagingButton,
    .currentLable {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* =========================================================
   POLL / SURVEY PAGE — نظرسنجی
   ========================================================= */
/* === CONTAINER === */
.teaForm {
    padding: 0 8px;
}

/* === ALERT INFO (پیام بالای فرم) === */
.teaForm > .col-md-12 > .alert-info,
.in-padd > .col-md-12 > .alert-info {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius, 12px);
    padding: 20px 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

    .teaForm > .col-md-12 > .alert-info::before,
    .in-padd > .col-md-12 > .alert-info::before {
        content: '\f05a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 32px;
        color: #3b82f6;
        opacity: 0.15;
    }

    .teaForm > .col-md-12 > .alert-info h5,
    .in-padd > .col-md-12 > .alert-info h5 {
        font-size: 13.5px;
        font-weight: 600;
        line-height: 2;
        margin: 0;
        padding-left: 20px;
    }

/* === SECTION HEADERS (سبز — شفافیت، پاسخگویی و...) === */
.teaForm .alert-success.text-center {
    background: linear-gradient(135deg, var(--primary, #006a68), var(--primary-dark, #00504e)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius, 10px) !important;
    padding: 14px 20px !important;
    margin: 28px 0 16px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
}

    .teaForm .alert-success.text-center:first-child {
        margin-top: 0 !important;
    }

    .teaForm .alert-success.text-center::before {
        content: '\f0e3';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: 10px;
        font-size: 14px;
        opacity: 0.7;
    }

/* === STEPPING — شماره‌گذاری سکشن‌ها === */
.teaForm .row {
    position: relative;
}

/* === FORM GROUPS === */
.teaForm .form-group {
    margin-bottom: 22px;
}

/* === RADIO BUTTON LISTS === */
/* ASP.NET RadioButtonList به صورت table رندر میشه */

.teaForm table.PriceLabel,
.teaForm table.Taste {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px 0;
    margin-top: 6px;
}

    .teaForm table.PriceLabel td,
    .teaForm table.Taste td {
        padding: 0 !important;
        border: none !important;
    }

    /* خود رادیو دکمه */
    .teaForm table.PriceLabel input[type="radio"],
    .teaForm table.Taste input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid var(--border, #c5d8d7);
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        position: relative;
        vertical-align: middle;
        margin-left: 6px;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

        .teaForm table.PriceLabel input[type="radio"]:checked,
        .teaForm table.Taste input[type="radio"]:checked {
            border-color: var(--primary, #006a68);
            background: var(--primary, #006a68);
            box-shadow: inset 0 0 0 3px #fff;
        }

        .teaForm table.PriceLabel input[type="radio"]:hover,
        .teaForm table.Taste input[type="radio"]:hover {
            border-color: var(--primary, #006a68);
        }

    /* لیبل رادیو — حالت کارتی */
    .teaForm table.PriceLabel label,
    .teaForm table.Taste label {
        display: inline-flex !important;
        align-items: center;
        gap: 0;
        padding: 10px 16px;
        background: var(--bg-section, #f4f9f8);
        border: 1px solid var(--border, #e0eded);
        border-radius: var(--radius, 10px);
        font-size: 13px;
        font-weight: 500;
        color: var(--text, #2a3e3e);
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        margin: 0 !important;
    }

        .teaForm table.PriceLabel label:hover,
        .teaForm table.Taste label:hover {
            border-color: var(--primary, #006a68);
            background: rgba(0, 106, 104, 0.04);
        }

    /* حالت انتخاب شده */
    .teaForm table.PriceLabel input[type="radio"]:checked + label,
    .teaForm table.Taste input[type="radio"]:checked + label {
        background: rgba(0, 106, 104, 0.08);
        border-color: var(--primary, #006a68);
        color: var(--primary, #006a68);
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(0, 106, 104, 0.1);
    }

/* === ستاره الزامی === */
.color_red {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 700;
    margin-right: 4px;
}

/* === TEXTAREA === */
.teaForm textarea.form-control {
    resize: vertical;
    min-height: 80px;
    line-height: 1.9;
}

.teaForm textarea[style*="text-align: right"] {
    text-align: right !important;
}

/* === CAPTCHA === */
.teaForm .CaptchaControl {
    display: block;
    margin-top: 10px;
    border-radius: var(--radius-sm, 8px) !important;
    overflow: hidden;
    border: 1px solid var(--border, #dce8e7) !important;
    max-width: 220px;
}

/* === P-0 FIX === */
.p-0 {
    padding: 0 !important;
}

/* === RESULT PANEL === */
#result_Panel {
    margin-top: 20px;
}

    #result_Panel .alert-success {
        text-align: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        padding: 20px;
        background: #ecfdf5;
        color: #065f46;
        border: 1px solid #a7f3d0;
        border-radius: var(--radius, 10px);
    }

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .teaForm table.PriceLabel,
    .teaForm table.Taste {
        border-spacing: 6px 0;
    }

        .teaForm table.PriceLabel label,
        .teaForm table.Taste label {
            padding: 8px 12px;
            font-size: 12px;
        }

    .teaForm .CaptchaControl {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .teaForm > .col-md-12 > .alert-info::before {
        display: none;
    }

    .teaForm > .col-md-12 > .alert-info h5 {
        padding-left: 0;
    }

    .teaForm table.PriceLabel,
    .teaForm table.Taste {
        border-spacing: 5px 4px;
    }

        .teaForm table.PriceLabel label,
        .teaForm table.Taste label {
            padding: 8px 10px;
            font-size: 11.5px;
        }

    .teaForm .alert-success.text-center {
        font-size: 13px;
        padding: 12px 16px !important;
        margin: 20px 0 12px !important;
    }
}

@media (max-width: 480px) {
    .teaForm table.PriceLabel label,
    .teaForm table.Taste label {
        padding: 7px 8px;
        font-size: 11px;
    }

    .teaForm table.PriceLabel input[type="radio"],
    .teaForm table.Taste input[type="radio"] {
        width: 17px;
        height: 17px;
    }
}
/* =========================================================
   CONTENTS PAGE — لیست محتوا + جزئیات
   ========================================================= */

/* =============================================
   ۱) VIEW ۱ — لیست محتواها (titlePanel)
   ============================================= */

/* گرید آیتم‌ها */
#titlePanel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 4px;
}

    #titlePanel > .col-md-6 {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        flex: none !important;
    }

/* کارت هر آیتم */
.Cshow {
    display: flex !important;
    background: var(--bg-card, #fff);
    border: none !important;
    border-radius: var(--radius-lg, 14px) !important;
    overflow: hidden;
    box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .Cshow:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg, 0 8px 28px rgba(0,0,0,0.1));
    }

    /* عکس — ۴ ستون */
    .Cshow > .col-md-4 {
        flex: 0 0 160px !important;
        max-width: 160px !important;
        padding: 0 !important;
        overflow: hidden;
    }

        .Cshow > .col-md-4 a {
            display: block;
            height: 100%;
        }

        .Cshow > .col-md-4 img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
            transition: transform 0.5s ease;
            display: block !important;
        }

    .Cshow:hover > .col-md-4 img {
        transform: scale(1.06);
    }

    /* محتوا — ۸ ستون */
    .Cshow > .box-content {
        flex: 1 !important;
        padding: 18px 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none !important;
        width: auto !important;
    }

    /* عنوان */
    .Cshow .title {
        font-size: 14px;
        font-weight: 700;
        color: var(--text, #1a2e2e);
        margin: 0 0 12px;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s;
    }

        .Cshow .title:hover {
            color: var(--primary, #006a68);
        }

    /* حذف استایل پیش‌فرض h3 */
    .Cshow h3.title {
        font-family: inherit;
    }

        .Cshow h3.title a {
            color: inherit;
            text-decoration: none;
        }

    /* تاریخ و بازدید */
    .Cshow .post {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        color: var(--text-muted, #7a8f8f);
        margin-bottom: 4px;
    }

        .Cshow .post:last-child {
            margin-bottom: 0;
        }

        .Cshow .post i {
            font-size: 10px;
            color: var(--primary, #006a68);
            opacity: 0.5;
        }

    /* حذف کلاس‌های اضافی */
    .Cshow > .col-md-4.p10 {
        padding: 0 !important;
    }

.p10 {
    padding: 0 !important;
}

/* انیمیشن */
.animated.fadeInUpBig {
    animation: none !important;
    opacity: 1 !important;
}


/* =============================================
   ۲) VIEW ۲ — جزئیات محتوا (contentPanel)
   ============================================= */

/* تاریخ و بازدید بالای صفحه */
.contentPanel > div > span,
#contentPanel > div > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted, #7a8f8f);
    margin-left: 16px;
}

    .contentPanel > div > span i,
    #contentPanel > div > span i {
        color: var(--primary, #006a68);
        opacity: 0.6;
    }

/* عکس اصلی — وسط‌چین */
.contentPanel .mainImg,
#contentPanel .mainImg {
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

    .contentPanel .mainImg img,
    #contentPanel .mainImg img {
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
        border-radius: var(--radius-lg, 14px);
        box-shadow: var(--shadow-lg, 0 8px 30px rgba(0,0,0,0.1));
        cursor: zoom-in;
        transition: transform 0.4s ease;
    }

        .contentPanel .mainImg img:hover,
        #contentPanel .mainImg img:hover {
            transform: scale(1.02);
        }

/* بلاک‌کوت */
.contentPanel blockquote,
#contentPanel blockquote {
    position: relative;
    margin: 0 0 24px;
    padding: 20px 24px 20px 28px;
    background: var(--bg-section, #f4f9f8);
    border-right: 4px solid var(--primary, #006a68);
    border-radius: 0 var(--radius, 10px) var(--radius, 10px) 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #1a2e2e);
    line-height: 2;
    border-left: none;
    border-top: none;
    border-bottom: none;
}

    .contentPanel blockquote::before,
    #contentPanel blockquote::before {
        content: '\f10d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: -8px;
        right: -14px;
        width: 28px;
        height: 28px;
        background: var(--primary, #006a68);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
    }

/* متن اصلی — از CSS صفحه showDetails استفاده میشه */

/* گالری — از CSS صفحه showDetails استفاده میشه */

/* فایل‌ها — از CSS صفحه showDetails استفاده میشه */

/* نویسنده */
#contentPanel > p > i.fa-pencil {
    color: var(--primary, #006a68);
    margin-left: 4px;
}

/* === دکمه بازگشت === */
#backPanel {
    margin-top: 28px;
    padding-bottom: 20px;
}

    #backPanel > div {
        width: 100% !important;
        text-align: center !important;
    }

    #backPanel a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 28px;
        background: var(--bg-section, #f4f9f8);
        color: var(--text, #1a2e2e);
        border-radius: var(--radius, 10px);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid var(--border, #e0eded);
    }

        #backPanel a:hover {
            background: var(--primary, #006a68);
            color: #fff;
            border-color: var(--primary, #006a68);
        }

    #backPanel .fa-2x {
        font-size: 14px !important;
    }

/* === PANEL BODY === */
.panel_body .container-fluid {
    padding: 0;
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    #titlePanel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .Cshow > .col-md-4 {
        flex: 0 0 130px !important;
        max-width: 130px !important;
    }
}

@media (max-width: 575px) {
    #titlePanel {
        padding: 16px 0;
    }

    .Cshow {
        flex-direction: column !important;
    }

        .Cshow > .col-md-4 {
            flex: none !important;
            max-width: 100% !important;
            height: 180px;
        }

            .Cshow > .col-md-4 img {
                height: 100% !important;
            }

        .Cshow > .box-content {
            padding: 14px 16px !important;
        }

        .Cshow .title {
            font-size: 13px;
            -webkit-line-clamp: 2;
        }

    .contentPanel .mainImg,
    #contentPanel .mainImg {
        max-width: 100%;
    }

        .contentPanel .mainImg img,
        #contentPanel .mainImg img {
            max-height: 260px;
        }
}

/* =========================================================
                    MENUE IN MASTER
   ========================================================= */
/* باز شدن منو با hover در دسکتاپ */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu

{
    display: block;
    margin-top: 0;
}


.navbar .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    top: 0;
    right: 100%;
    left: auto;
    margin-top: 0;
}


.navbar .dropdown-toggle::after {
    margin-right: 5px;
}

}

/*زیرمنوی چند سطحی*/
@media (min-width: 992px) {

    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            right: 100%;
            left: auto;
        }
}


/* =========================================================
   MODERN HEADER
   ========================================================= */
.site-header {
    position: relative;
    z-index: 1000;
    background: #fff;
}

.header-inner {
    padding: 18px 0 20px;
}

.brand {
    display: flex;
    align-items: center;
}

    .brand img {
        /* width: 110px;
    height: 110px;*/
        object-fit: contain;
    }


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}


/* =========================================================
   SEARCH
   ========================================================= */

.modern-search-panel {
    width: 100%;
}

.modern-search-box {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0f5f4;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    transition: all .2s ease;
}

    .modern-search-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(0,115,110,.08), 0 8px 25px rgba(0,0,0,.07);
    }


/* Search Icon */

.modern-search-icon {
    width: 60px;
    min-width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}


/* Input Wrapper */

.modern-search-input-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}


/* Input */

.modern-search-input {
    width: 100%;
    height: 50px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 5px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    box-shadow: none !important;
}

    .modern-search-input::placeholder {
        color: #98a5a5;
    }


/* Search Button */

.modern-search-button {
    height: 40px;
    min-width: 115px;
    margin: 0 8px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 25px;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

    .modern-search-button:hover {
        background: var(--primary-dark, #00605c);
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(0,115,110,.2);
    }


/* Validator */

.modern-search-validator {
    position: absolute;
    right: 5px;
    top: calc(100% + 5px);
    font-size: 11px;
    z-index: 20;
}


/* =========================================================
   NAVIGATION
   ========================================================= */



.main-nav .navbar {
    min-height: 58px;
}

.main-nav .navbar-nav {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 15px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s ease;
}

    .main-nav .nav-link:hover {
        color: var(--primary);
        background: rgba(0,115,110,.05);
    }


/* =========================================================
   DESKTOP DROPDOWN
   ========================================================= */

@media (min-width: 992px) {

    .main-nav .dropdown {
        position: relative;
    }

        .main-nav .dropdown:hover > .dropdown-menu {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

    .main-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        margin-top: 0;
        min-width: 220px;
        padding: 8px;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 12px 35px rgba(0,0,0,.12);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .main-nav .dropdown-item {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 13px;
        color: var(--text);
        text-align: right;
        transition: all .2s ease;
    }

        .main-nav .dropdown-item:hover {
            background: rgba(0,115,110,.07);
            color: var(--primary);
        }


    /* Multi level menu */

    .main-nav .dropdown-submenu {
        position: relative;
    }

        .main-nav .dropdown-submenu > .dropdown-menu {
            top: -8px;
            right: 100%;
            left: auto;
            margin-right: 6px;
        }

        .main-nav .dropdown-submenu:hover > .dropdown-menu {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .header-inner {
        padding: 12px 0 16px;
    }

    .brand {
        justify-content: center;
    }

        .brand img {
            /*   width: 80px;*/
            height: 80px;
        }

    /* Search */

    .modern-search-box {
        min-height: 52px;
        margin-top: 2px;
    }

    .modern-search-icon {
        width: 50px;
        min-width: 50px;
        height: 52px;
    }

    .modern-search-input {
        height: 52px;
        font-size: 13px;
    }

    .modern-search-button {
        height: 40px;
        min-width: 50px;
        width: 50px;
        padding: 0;
        margin: 0 6px;
        border-radius: 10px;
    }

        .modern-search-button span {
            display: none;
        }


    /* Header buttons */

    .header-actions {
        justify-content: center;
        margin-top: 2px;
    }


    /* Navigation */

    .main-nav .navbar {
        padding: 8px 0;
    }

    .main-nav .navbar-collapse {
        margin-top: 8px;
        background: #fff;
        border: 1px solid #e5ebeb;
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,.06);
    }

    .main-nav .navbar-nav {
        display: block;
    }

    .main-nav .nav-item {
        width: 100%;
    }

    .main-nav .nav-link {
        min-height: 46px;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 9px;
        font-size: 13px;
    }


    /* Mobile dropdown */

    .main-nav .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 0;
        padding: 4px 8px;
        border: 0;
        box-shadow: none;
        background: #f8fafb;
        border-radius: 10px;
    }

    .main-nav .dropdown-item {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 7px;
    }

    .main-nav .dropdown-submenu > .dropdown-menu {
        margin-right: 10px;
        width: calc(100% - 10px);
        background: #eef5f5;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .header-inner {
        padding-top: 10px;
    }

    /*    .brand img {
        width: 70px;
        height: 70px;
    }*/

    .header-actions {
        width: 100%;
    }

        .header-actions .pill-btn {
            flex: 1;
            justify-content: center;
            min-width: 0;
        }

    .modern-search-input::placeholder {
        font-size: 12px;
    }
}

/* =========================================================
   GALLERY PAGE — گالری تصاویر
   ========================================================= */

/* =============================================
   VIEW ۱ — لیست آلبوم‌ها (titlePanel)
   ============================================= */

#titlePanel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px 4px;
}

    #titlePanel > .col-md-4 {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        flex: none !important;
    }

/* === کارت آلبوم === */
.gallery12 {
    position: relative;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    background: var(--bg-card, #fff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .gallery12:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg, 0 10px 32px rgba(0, 0, 0, 0.12));
    }

    /* عکس آلبوم */
    .gallery12 > img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block !important;
    }

    .gallery12:hover > img {
        transform: scale(1.06);
    }

    /* اورلی روی عکس آلبوم */
    .gallery12 > div {
        flex: 1;
        padding: 16px 18px;
        display: flex;
        flex-direction: column;
    }

    /* عنوان آلبوم */
    .gallery12 .title {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 4px;
        line-height: 1.7;
    }

        .gallery12 .title a {
            color: var(--text, #1a2e2e);
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s;
        }

            .gallery12 .title a:hover {
                color: var(--primary, #006a68);
            }

    /* خط جداکننده */
    .gallery12 hr {
        border: none;
        height: 1px;
        background: var(--border-light, #eef3f2);
        margin: 8px 0;
    }

    /* خلاصه */
    .gallery12 p {
        font-size: 12px;
        color: var(--text-muted, #7a8f8f);
        line-height: 1.8;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }

/* =============================================
   VIEW ۲ — تصاویر آلبوم (ImagePanel)
   ============================================= */

.p20 {
    padding: 20px 4px !important;
}

.portfolio-w3ls {
    margin: 0;
}

/* === گرید تصاویر === */
#lightgallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

    #lightgallery::before,
    #lightgallery::after {
        display: none !important;
    }

/* === آیتم تصویر === */
.gallery-grid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    flex: none !important;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    background: var(--bg-card, #fff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

    .gallery-grid:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg, 0 10px 28px rgba(0, 0, 0, 0.12));
    }

    /* کانتینر داخلی */
    .gallery-grid > .gallery {
        position: relative;
        overflow: hidden;
    }

    /* عکس */
    .gallery-grid .agallery {
        display: block;
        position: relative;
        overflow: hidden;
    }

    .gallery-grid img {
        width: 100% !important;
        height: 220px;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block !important;
    }

    .gallery-grid:hover img {
        transform: scale(1.08);
    }

    /* اورلی روی عکس — آیکون زوم */
    .gallery-grid .gallery::after {
        content: '\f00e';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(6px);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        opacity: 0;
        transition: all 0.35s ease;
        z-index: 2;
        pointer-events: none;
    }

    .gallery-grid:hover .gallery::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    /* گرادیان تیره پایین عکس */
    .gallery-grid .gallery::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
        opacity: 0;
        transition: opacity 0.35s ease;
        z-index: 1;
        pointer-events: none;
    }

    .gallery-grid:hover .gallery::before {
        opacity: 1;
    }

    /* عنوان و توضیح زیر عکس */
    .gallery-grid .title {
        font-size: 13px;
        font-weight: 600;
        margin: 0 0 2px;
        padding: 12px 14px 0;
        line-height: 1.7;
    }

        .gallery-grid .title a {
            color: var(--text, #1a2e2e);
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s;
        }

            .gallery-grid .title a:hover {
                color: var(--primary, #006a68);
            }

    .gallery-grid hr {
        border: none;
        height: 1px;
        background: var(--border-light, #eef3f2);
        margin: 6px 14px;
    }

    .gallery-grid p {
        font-size: 11.5px;
        color: var(--text-muted, #7a8f8f);
        line-height: 1.7;
        margin: 0;
        padding: 0 14px 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* === بازدید === */
.DateView {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 0;
    font-size: 12px;
    color: var(--text-muted, #7a8f8f);
}

    .DateView i {
        color: var(--primary, #006a68);
        opacity: 0.5;
    }

/* === دکمه بازگشت === */
.panel_body > div > div[style*="float: left"] {
    float: none !important;
    text-align: center;
    padding: 16px 0 8px;
}

    .panel_body > div > div[style*="float: left"] a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 28px;
        background: var(--bg-section, #f4f9f8);
        color: var(--text, #1a2e2e);
        border-radius: var(--radius, 10px);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid var(--border, #e0eded);
    }

        .panel_body > div > div[style*="float: left"] a:hover {
            background: var(--primary, #006a68);
            color: #fff;
            border-color: var(--primary, #006a68);
        }

    .panel_body > div > div[style*="float: left"] .fa-2x {
        font-size: 14px !important;
    }

/* === CLEAR FIX === */
.clearBoth {
    display: block;
    clear: both;
}

/* === LIGHTGALLERY OVERRIDE === */
.lg-backdrop {
    background: rgba(0, 20, 20, 0.94) !important;
}

.lg-toolbar,
.lg-actions .lg-next,
.lg-actions .lg-prev {
    background: transparent !important;
    color: #fff !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    #titlePanel {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    #lightgallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .gallery-grid img {
        height: 200px;
    }
}

@media (max-width: 575px) {
    #titlePanel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 0;
    }

    #lightgallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery12 > img {
        height: 180px;
    }

    .gallery-grid img {
        height: 150px;
    }

    .gallery-grid .title {
        font-size: 12px;
    }

    .gallery-grid p {
        font-size: 11px;
        padding-bottom: 10px;
    }

    .gallery-grid .gallery::after {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    #lightgallery {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 220px;
    }
}