﻿/* ═══════════════════════════════════════════════════════════════ */
/* Footer Links Section - Modern Blue Theme                        */
/* RTL Compatible • Touch-Friendly • Smooth Animations             */
/* ═══════════════════════════════════════════════════════════════ */
/* ─────────────────────────────────────────────────────────────────
   ROOT VARIABLES - آسان برای تغییر رنگ‌بندی
   ───────────────────────────────────────────────────────────────── */
:root {
    /* Primary Blue Palette */
    --flinks-blue-900: #0D47A1; /* تیره‌ترین آبی */
    --flinks-blue-700: #1565C0; /* آبی تیره */
    --flinks-blue-500: #1976D2; /* آبی اصلی */
    --flinks-blue-400: #42A5F5; /* آبی روشن */
    --flinks-blue-100: #E3F2FD; /* آبی بسیار روشن */
    --flinks-blue-50: #F0F7FF; /* آبی سفید */
    /* Neutrals */
    --flinks-white: #FFFFFF;
    --flinks-gray-100: #F5F7FA;
    --flinks-gray-300: #D1D5DB;
    --flinks-gray-500: #6B7280;
    --flinks-gray-700: #374151;
    /* Shadows */
    --flinks-shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.08);
    --flinks-shadow-md: 0 4px 16px rgba(13, 71, 161, 0.12);
    --flinks-shadow-lg: 0 8px 32px rgba(13, 71, 161, 0.16);
    --flinks-shadow-glow: 0 0 20px rgba(25, 118, 210, 0.3);
    /* Transitions */
    --flinks-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --flinks-transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─────────────────────────────────────────────────────────────────
   SECTION WRAPPER - پوشش اصلی
   ───────────────────────────────────────────────────────────────── */
.flinks-section {
    background: linear-gradient( 135deg, var(--flinks-blue-50) 0%, var(--flinks-white) 100% );
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
}

    /* Decorative Background Pattern */
    .flinks-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient( circle, rgba(25, 118, 210, 0.08) 0%, transparent 70% );
        border-radius: 50%;
        pointer-events: none;
    }

    .flinks-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 200px;
        height: 200px;
        background: radial-gradient( circle, rgba(25, 118, 210, 0.06) 0%, transparent 70% );
        border-radius: 50%;
        pointer-events: none;
    }

/* ─────────────────────────────────────────────────────────────────
   CONTAINER - محفظه محتوا
   ───────────────────────────────────────────────────────────────── */
.flinks-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────
   HEADER - عنوان بخش
   ───────────────────────────────────────────────────────────────── */
.flinks-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.flinks-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--flinks-blue-700);
    margin: 0;
    padding: 0.5rem 1.5rem;
    background: var(--flinks-white);
    border-radius: 50px;
    box-shadow: var(--flinks-shadow-sm);
    border: 1px solid var(--flinks-blue-100);
}

.flinks-icon {
    font-size: 1rem;
    color: var(--flinks-blue-500);
}

/* ─────────────────────────────────────────────────────────────────
   CAROUSEL WRAPPER - پوشش کاروسل
   ───────────────────────────────────────────────────────────────── */
.flinks-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hide scrollbar but keep functionality */
.flinks-carousel {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem;
    margin: 0 -0.5rem;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    .flinks-carousel::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

/* ─────────────────────────────────────────────────────────────────
   NAVIGATION BUTTONS - دکمه‌های ناوبری
   ───────────────────────────────────────────────────────────────── */
.flinks-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: none;
    border-radius: 50%;
    background: var(--flinks-white);
    color: var(--flinks-blue-600);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--flinks-shadow-md);
    border: 2px solid var(--flinks-blue-100);
    transition: var(--flinks-transition);
    z-index: 10;
}

    .flinks-nav:hover {
        background: var(--flinks-blue-500);
        color: var(--flinks-white);
        transform: scale(1.1);
        box-shadow: var(--flinks-shadow-lg);
        border-color: var(--flinks-blue-500);
    }

    .flinks-nav:active {
        transform: scale(0.95);
        box-shadow: var(--flinks-shadow-sm);
    }

    .flinks-nav:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

/* ─────────────────────────────────────────────────────────────────
   LINKS CONTAINER - هر آیتم لینک
   ───────────────────────────────────────────────────────────────── */
.flinks-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .flinks-item:nth-child(4n+1) {
        scroll-snap-align: start;
    }
}

/* ─────────────────────────────────────────────────────────────────
   LINK CARD - کارت هر لینک (دکمه اصلی)
   ───────────────────────────────────────────────────────────────── */
.flinks-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 180px;
    max-width: 280px;
    padding: 1rem 1.25rem;
    background: var(--flinks-white);
    border-radius: 16px;
    box-shadow: var(--flinks-shadow-sm);
    border: 1px solid var(--flinks-blue-100);
    text-decoration: none;
    color: var(--flinks-gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--flinks-transition);
    position: relative;
    overflow: hidden;
}

    /* Gradient Shine Effect on Hover */
    .flinks-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 135deg, transparent 0%, rgba(25, 118, 210, 0.04) 50%, transparent 100% );
        opacity: 0;
        transition: var(--flinks-transition);
    }

    .flinks-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--flinks-shadow-lg);
        border-color: var(--flinks-blue-300);
        color: var(--flinks-blue-700);
        text-decoration: none;
    }

        .flinks-card:hover::before {
            opacity: 1;
        }

    .flinks-card:active {
        transform: translateY(-2px);
        box-shadow: var(--flinks-shadow-md);
    }

/* Card Text */
.flinks-card-text {
    flex: 1;
    text-align: right;
    direction: rtl;
}

/* Arrow Icon */
.flinks-card-arrow {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--flinks-blue-400);
    transition: var(--flinks-transition);
}

.flinks-card:hover .flinks-card-arrow {
    color: var(--flinks-blue-600);
    transform: translateX(-4px);
}

/* ─────────────────────────────────────────────────────────────────
   EMPTY STATE - حالت بدون داده
   ───────────────────────────────────────────────────────────────── */
.flinks-card--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 180px;
    padding: 2rem 1.5rem;
    background: var(--flinks-gray-100);
    border-radius: 16px;
    border: 2px dashed var(--flinks-gray-300);
    color: var(--flinks-gray-500);
    font-size: 0.9rem;
    cursor: default;
    opacity: 0.8;
}

    .flinks-card--empty i {
        font-size: 1.5rem;
        color: var(--flinks-gray-300);
    }

/* ─────────────────────────────────────────────────────────────────
   SCROLL INDICATOR - نشانگر اسکرول
   ───────────────────────────────────────────────────────────────── */
.flinks-scroll-indicator {
    display: none; /* Hidden on mobile, shown on desktop */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.flinks-scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--flinks-gray-300);
    transition: var(--flinks-transition);
}

    .flinks-scroll-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--flinks-blue-500);
    }

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN - سازگاری با اندازه‌های مختلف
   ───────────────────────────────────────────────────────────────── */

/* Mobile First - گوشی‌ها */
@media (max-width: 575.98px) {
    .flinks-section {
        padding: 1.5rem 0;
    }

    .flinks-container {
        padding: 0 0.75rem;
    }

    .flinks-title {
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
    }

    .flinks-card {
        min-width: 160px;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        border-radius: 12px;
    }

    .flinks-card--empty {
        min-width: 160px;
        padding: 1.5rem 1rem;
    }

    /* Larger touch targets on mobile */
    .flinks-nav {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}

/* Tablet - تبلت‌ها */
@media (min-width: 576px) and (max-width: 991.98px) {
    .flinks-section {
        padding: 2rem 0;
    }

    .flinks-card {
        min-width: 200px;
    }

    .flinks-scroll-indicator {
        display: flex;
    }
}

/* Desktop - دسکتاپ */
@media (min-width: 992px) {
    .flinks-section {
        padding: 2.5rem 0;
    }

    .flinks-container {
        padding: 0 1.5rem;
    }

    .flinks-card {
        min-width: 200px;
        max-width: 240px;
    }

    .flinks-scroll-indicator {
        display: flex;
    }
}

/* ─────────────────────────────────────────────────────────────────
   ANIMATIONS - انیمیشن‌های ورود
   ───────────────────────────────────────────────────────────────── */

/* Fade In Animation */
@keyframes flinksFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flinks-section {
    animation: flinksFadeIn 0.6s ease-out;
}

/* Pulse on new items */
@keyframes flinksPulse {
    0%, 100% {
        box-shadow: var(--flinks-shadow-sm);
    }

    50% {
        box-shadow: var(--flinks-shadow-glow);
    }
}

.flinks-card:hover {
    animation: none;
}

/* ─────────────────────────────────────────────────────────────────
   ACCESSIBILITY - دسترس‌پذیری
   ───────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .flinks-card,
    .flinks-nav,
    .flinks-scroll-dot {
        transition: none;
        animation: none;
    }

    .flinks-section {
        animation: none;
    }
}

/* Focus states for keyboard navigation */
.flinks-card:focus,
.flinks-nav:focus {
    outline: 3px solid var(--flinks-blue-400);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .flinks-card {
        border-width: 2px;
        border-color: var(--flinks-blue-700);
    }

    .flinks-nav {
        border-width: 2px;
        border-color: var(--flinks-blue-700);
    }
}
/* ═══════════════════════════════════════════════════════════════ */
/* 🎨 VARIABLES - متغیرهای رنگ و اندازه */
/* ═══════════════════════════════════════════════════════════════ */
:root {
    /* Primary Blue Palette */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    /* Neutral */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 4px 14px 0 rgba(59, 130, 246, 0.35);
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    /* Touch-friendly sizes */
    --touch-min: 44px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 📰 NEWS TICKER - نوار اخبار متحرک */
/* ═══════════════════════════════════════════════════════════════ */
.news-ticker-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    border-radius: var(--radius-lg);
    margin: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-blue);
    direction: rtl;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--blue-600);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    min-height: var(--touch-min);
}

    .ticker-label i {
        font-size: 1.1rem;
        animation: pulse-glow 2s infinite;
    }

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    padding: 0 16px;
    direction: ltr;
}

.ticker-track {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 30s linear infinite;
    width: max-content;
}

    .ticker-track:hover {
        animation-play-state: paused;
    }

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 12px 0;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    opacity: 0.95;
    transition: var(--transition-fast);
    position: relative;
}

    .ticker-item::before {
        content: '';
        position: absolute;
        right: -1rem;
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
    }

    .ticker-item:hover {
        opacity: 1;
        color: var(--white);
        transform: scale(1.02);
    }

/* Duplicate content for seamless loop */
.ticker-track::after {
    content: '';
}

/* ═══════════════════════════════════════════════════════════════ */
/* 🎯 MAIN SHOWCASE - بخش اصلی */
/* ═══════════════════════════════════════════════════════════════ */
.main-showcase {
    padding: 1rem 0 2rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .showcase-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 991.98px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* 🖼️ SLIDER SECTION */
/* ═══════════════════════════════════════════════════════════════ */
.slider-section {
    position: relative;
}

.slider-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-100);
}

.slider-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--gray-100) 100%);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform var(--transition-slow);
}

.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

    .slide-link,
    .slide-item > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(30, 64, 175, 0.7) 0%, rgba(30, 64, 175, 0.3) 30%, transparent 60% );
    opacity: 0;
    transition: var(--transition-normal);
}

.slide-item:hover .slide-overlay {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.slide-item:hover .slide-image {
    transform: scale(1.03);
}

/* Navigation Arrows - Touch-friendly */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-600);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
    z-index: 10;
    opacity: 0;
    backdrop-filter: blur(8px);
}

.slider-frame:hover .slider-nav {
    opacity: 1;
}

.slider-nav--prev {
    right: 16px;
}

.slider-nav--next {
    left: 16px;
}

.slider-nav:hover {
    background: var(--blue-600);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-blue);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

    .slider-dot.active {
        background: var(--white);
        width: 32px;
        border-radius: 5px;
        box-shadow: var(--shadow-sm);
    }

    .slider-dot:hover:not(.active) {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

/* Placeholder */
.slider-placeholder {
    width: 100%;
    height: 100%;
}

.placeholder-svg {
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════════ */
/* 📋 NEWS PANEL - پنل اخبار */
/* ═══════════════════════════════════════════════════════════════ */
.news-panel-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    color: var(--white);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.panel-icon {
    font-size: 1.3rem;
}

.panel-viewall {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    min-height: var(--touch-min);
}

    .panel-viewall:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }

    .panel-viewall i {
        font-size: 0.75rem;
        transition: var(--transition-fast);
    }

    .panel-viewall:hover i {
        transform: translateX(-3px);
    }

/* News List */
.news-list {
    padding: 8px 0;
}

.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: var(--gray-400);
}

    .news-empty i {
        font-size: 3rem;
    }

    .news-empty span {
        font-size: 0.95rem;
    }

/* News Card - Touch-friendly */
.news-card {
    position: relative;
}

.news-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    min-height: var(--touch-min);
    border-right: 3px solid transparent;
}

    .news-card-link:hover {
        background: var(--blue-50);
        border-right-color: var(--blue-500);
    }

    .news-card-link:active {
        background: var(--blue-100);
    }

.news-card-content {
    flex: 1;
    min-width: 0;
}

.news-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 6px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.news-card:hover .news-card-title {
    color: var(--blue-600);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    margin-right: 12px;
}

.news-card:hover .news-card-arrow {
    color: var(--blue-500);
    transform: translateX(-4px);
}

/* Divider between cards */
.news-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 24px;
    left: 24px;
    height: 1px;
    background: var(--gray-100);
}

/* Panel Footer */
.panel-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gray-50);
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    min-height: var(--touch-min);
}

    .panel-footer-link:hover {
        background: var(--blue-500);
        color: var(--white);
    }

    .panel-footer-link i {
        font-size: 1.1rem;
        transition: var(--transition-fast);
    }

    .panel-footer-link:hover i {
        transform: rotate(90deg);
    }

/* ═══════════════════════════════════════════════════════════════ */
/* 📱 RESPONSIVE - اندروید و موبایل */
/* ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .news-ticker-wrapper {
        margin: 1rem;
        border-radius: var(--radius-md);
    }

    .ticker-label {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

        .ticker-label span {
            display: none;
        }

    .ticker-viewport {
        padding: 0 12px;
    }

    .ticker-item {
        font-size: 0.9rem;
    }

    .slider-frame {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-lg);
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .slider-nav--prev {
        right: 10px;
    }

    .slider-nav--next {
        left: 10px;
    }

    .news-panel-section {
        border-radius: var(--radius-lg);
    }

    .panel-header {
        padding: 16px 20px;
    }

    .panel-title {
        font-size: 1rem;
    }

    .news-card-link {
        padding: 14px 20px;
    }

    .news-card-title {
        font-size: 0.9rem;
    }

    .showcase-grid {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .news-ticker-wrapper {
        margin: 0.75rem;
    }

    .ticker-label i {
        font-size: 1rem;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ✨ HOVER EFFECTS & ANIMATIONS */
/* ═══════════════════════════════════════════════════════════════ */

/* Subtle entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.4s ease-out forwards;
}

    .news-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .news-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .news-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .news-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .news-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .news-card:nth-child(6) {
        animation-delay: 0.3s;
    }

/* Focus states for accessibility */
.news-card-link:focus-visible,
.panel-viewall:focus-visible,
.panel-footer-link:focus-visible,
.slider-nav:focus-visible,
.slider-dot:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .news-card-link:hover {
        border-right-width: 5px;
    }

    .slider-nav:hover {
        outline: 2px solid var(--blue-900);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }

    .news-card {
        animation: none;
    }

    .slide-image {
        transition: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}








/* ═══════════════════════════════════════════════════════════════
   MODERN FOOTER LINKS - Blue & White Theme
   ═══════════════════════════════════════════════════════════════ */

/* ─── Section Container ─── */
.modern-footer-links {
    padding: 40px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

    /* Background Decoration */
    .modern-footer-links::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
        animation: pulse-bg 8s ease-in-out infinite;
    }

@keyframes pulse-bg {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ─── Slider Wrapper ─── */
.modern-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

/* ─── Link Card ─── */
.modern-link-card {
    padding: 8px 0;
}

    .modern-link-card .owl-item & {
        padding: 5px;
    }

/* ─── Link Button ─── */
.modern-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 16px;
    color: #0056b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    /* Hover Shimmer Effect */
    .modern-link-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(0, 123, 255, 0.2), transparent );
        transition: left 0.6s ease;
    }

    .modern-link-btn:hover::before {
        left: 100%;
    }

    /* Button Hover State */
    .modern-link-btn:hover {
        transform: translateY(-5px) scale(1.02);
        background: #ffffff;
        border-color: rgba(0, 123, 255, 0.3);
        box-shadow: 0 15px 35px rgba(0, 123, 255, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
        color: #007bff;
    }

    /* Button Active/Click State */
    .modern-link-btn:active {
        transform: translateY(-2px) scale(0.98);
    }

/* ─── Icon ─── */
.modern-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.4s ease;
}

.modern-link-btn:hover .modern-link-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

/* ─── Text ─── */
.modern-link-text {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Arrow ─── */
.modern-link-arrow {
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.modern-link-btn:hover .modern-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Empty State Button ─── */
.modern-link-empty {
    background: rgba(255, 255, 255, 0.6);
    color: #6c757d;
    cursor: default;
}

    .modern-link-empty:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .modern-link-empty .modern-link-icon {
        background: #6c757d;
    }

/* ─── Navigation Buttons ─── */
.modern-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.modern-nav-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

    .modern-nav-btn:hover {
        background: #007bff;
        color: #fff;
        transform: scale(1.15);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35), 0 0 0 5px rgba(0, 123, 255, 0.2);
    }

    .modern-nav-btn:active {
        transform: scale(1.05);
    }

.modern-nav-prev {
    margin-right: 10px;
}

.modern-nav-next {
    margin-left: 10px;
}

/* ─── Owl Carousel Overrides ─── */
.modern-slider .owl-stage {
    display: flex;
    align-items: center;
}

.modern-slider .owl-item {
    transition: all 0.4s ease;
}

    .modern-slider .owl-item.center {
        z-index: 2;
    }

/* Hide default nav */
.modern-slider .owl-nav {
    display: none !important;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ─── Responsive Design ─── */
@media (max-width: 1200px) {
    .modern-slider-wrapper {
        padding: 0 40px;
    }

    .modern-link-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .modern-footer-links {
        padding: 30px 0;
    }

    .modern-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .modern-slider-wrapper {
        padding: 0 30px;
    }

    .modern-link-btn {
        padding: 12px 14px;
        font-size: 12px;
        border-radius: 12px;
    }

    .modern-link-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .modern-slider-wrapper {
        padding: 0 25px;
    }

    .modern-link-btn {
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 10px;
    }

    .modern-link-arrow {
        display: none;
    }

    .modern-nav-btn {
        width: 34px;
        height: 34px;
    }
}

/* ─── Accessibility: Focus States ─── */
.modern-nav-btn:focus,
.modern-link-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 0 5px #007bff;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   CUSTOM HEADER STYLES - Blue & White Theme
   Rounded, Animated, Smooth & Modern
   ============================================ */

/* --- Variables --- */
:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --primary-blue-light: #3B82F6;
    --primary-blue-lighter: #DBEAFE;
    --primary-blue-subtle: #EFF6FF;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #3D4852;
    --gray-800: #1F2937;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* --- Header Container --- */
.custom-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1000;
}

.custom-header-body {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-blue-subtle) 100%);
    border-bottom: 3px solid var(--primary-blue);
}

.custom-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Top Bar (Date & Auth) --- */
.custom-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 0;
    flex-wrap: wrap;
}

/* Date Display - Elliptical Border */
.custom-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius-xl);
    background: var(--primary-blue-subtle);
    color: var(--primary-blue-dark);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
    direction: rtl;
}

    .custom-date-badge:hover {
        background: var(--primary-blue);
        color: var(--white);
        transform: scale(1.02);
    }

    .custom-date-badge i {
        font-size: 14px;
    }

/* Auth Buttons Container - Elliptical */
.custom-auth-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--primary-blue);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.custom-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: var(--border-radius-xl);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
}

    .custom-auth-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
        transform: translateY(-1px);
    }

    .custom-auth-btn:active {
        transform: translateY(0);
    }

    .custom-auth-btn.login-btn {
        background: var(--white);
        color: var(--primary-blue);
    }

        .custom-auth-btn.login-btn:hover {
            background: var(--gray-100);
            color: var(--primary-blue-dark);
        }

.custom-auth-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

/* User Profile Button */
.custom-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid var(--primary-blue);
}

    .custom-user-btn:hover {
        background: var(--primary-blue);
        color: var(--white);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.custom-logout-btn {
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

    .custom-logout-btn:hover {
        background: #FEE2E2;
        color: #DC2626;
    }

/* --- Search Bar --- */
.custom-search-form {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.custom-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-search-input {
    width: 220px;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-xl);
    font-size: 14px;
    direction: rtl;
    transition: all var(--transition-base);
    background: var(--white);
}

    .custom-search-input:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        width: 280px;
    }

    .custom-search-input::placeholder {
        color: var(--gray-500);
        direction: rtl;
    }

.custom-search-btn {
    position: absolute;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
}

    .custom-search-btn:hover {
        background: var(--primary-blue-dark);
        transform: scale(1.05);
    }

/* --- Main Navigation Row --- */
.custom-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

/* --- Logo --- */
.custom-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-base);
}

    .custom-logo:hover {
        transform: scale(1.02);
    }

    .custom-logo img {
        height: 70px;
        width: auto;
        transition: all var(--transition-base);
    }

/* --- Main Menu --- */
.custom-main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.custom-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-nav-item {
    position: relative;
}

.custom-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

    .custom-nav-link:hover,
    .custom-nav-link.active {
        color: var(--white);
        background: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .custom-nav-link i {
        font-size: 10px;
        transition: transform var(--transition-base);
    }

.custom-nav-item:hover .custom-nav-link i {
    transform: rotate(180deg);
}

/* --- Mega Menu --- */
.custom-mega-menu {
    position: static;
}

.custom-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    min-width: calc(100% - 48px);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-slow);
    z-index: 100;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.custom-mega-menu:hover .custom-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-mega-content {
    padding: 24px;
}

    .custom-mega-content .row {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }

.custom-mega-column {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.custom-mega-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue-lighter);
}

    .custom-mega-title a {
        color: inherit;
        text-decoration: none;
        transition: color var(--transition-fast);
    }

        .custom-mega-title a:hover {
            color: var(--primary-blue-dark);
        }

.custom-sub-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .custom-sub-nav li a {
        display: block;
        padding: 8px 12px;
        color: var(--gray-600);
        text-decoration: none;
        font-size: 14px;
        border-radius: var(--border-radius-sm);
        transition: all var(--transition-fast);
    }

        .custom-sub-nav li a:hover {
            color: var(--primary-blue);
            background: var(--primary-blue-subtle);
            padding-right: 20px;
        }

/* --- Dropdown Menu --- */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 100;
    list-style: none;
    padding: 8px;
    margin: 0;
    border: 1px solid var(--gray-200);
}

.custom-dropdown:hover .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.custom-dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

    .custom-dropdown-menu li a:hover {
        background: var(--primary-blue-subtle);
        color: var(--primary-blue);
    }

/* Nested Dropdown */
.custom-dropdown-submenu {
    position: relative;
}

    .custom-dropdown-submenu > .custom-dropdown-menu {
        top: 0;
        right: 100%;
        margin-right: 4px;
    }

    .custom-dropdown-submenu:hover > .custom-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

/* --- Social Icons --- */
.custom-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 24px;
}

.custom-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 18px;
}

    .custom-social-icon:hover {
        background: var(--primary-blue);
        color: var(--white);
        transform: translateY(-3px) rotate(5deg);
        box-shadow: var(--shadow-md);
    }

    .custom-social-icon.telegram:hover {
        background: #0088CC;
    }

    .custom-social-icon.instagram:hover {
        background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
    }

/* --- Mobile Menu Toggle --- */
.custom-mobile-toggle {
    display: none;
    padding: 12px 16px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-base);
}

    .custom-mobile-toggle:hover {
        background: var(--primary-blue-dark);
        transform: scale(1.05);
    }

/* --- Empty State --- */
.custom-empty-menu {
    padding: 12px 20px;
    color: var(--gray-500);
    font-size: 14px;
}

/* ============================================
   MOBILE RESPONSIVE (Android-Friendly)
   ============================================ */
@media (max-width: 991px) {
    .custom-header-container {
        padding: 0 16px;
    }

    .custom-top-bar {
        justify-content: center;
        gap: 12px;
        padding: 8px 0;
    }

    .custom-search-form {
        margin: 8px 0 0 0;
        width: 100%;
        justify-content: center;
    }

    .custom-search-input {
        width: 100%;
        max-width: 300px;
    }

        .custom-search-input:focus {
            width: 100%;
            max-width: 350px;
        }

    .custom-nav-row {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }

    .custom-main-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-nav-list {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .custom-nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }

    .custom-social-icons {
        display: none;
    }

    .custom-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

        .custom-mobile-toggle span {
            font-size: 12px;
            font-weight: 600;
        }

    /* Mobile Menu Open State */
    .custom-main-nav.mobile-open .custom-nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .custom-main-nav.mobile-open .custom-nav-link {
        justify-content: space-between;
    }

    .custom-mega-dropdown,
    .custom-dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 0 16px;
        margin-top: 8px;
        border: none;
        background: var(--gray-50);
        border-radius: var(--border-radius-sm);
    }

    .custom-mega-content {
        padding: 16px;
    }

        .custom-mega-content .row {
            flex-direction: column;
            gap: 16px;
        }

    .custom-mega-column {
        max-width: 100%;
    }

    .custom-dropdown-submenu > .custom-dropdown-menu {
        position: static;
        margin: 8px 0 0 16px;
    }
}

@media (max-width: 576px) {
    .custom-header-container {
        padding: 0 12px;
    }

    .custom-date-badge {
        padding: 6px 14px;
        font-size: 11px;
    }

    .custom-auth-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    .custom-logo img {
        height: 56px;
    }

    .custom-nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .custom-search-input {
        font-size: 13px;
        padding: 8px 40px 8px 12px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.custom-header-body {
    animation: slideDown 0.4s ease-out;
}

.custom-auth-container {
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.custom-date-badge {
    animation: fadeIn 0.5s ease-out 0.3s both;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hover effects enhancement */
.custom-nav-item .custom-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue-light);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform: translateX(50%);
}

.custom-nav-item:hover .custom-nav-link::after {
    width: 40%;
}

/* Focus styles for accessibility */
.custom-nav-link:focus,
.custom-auth-btn:focus,
.custom-search-input:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}





/* ============================================
   📺 Media Showcase - Modern Blue Theme
   ============================================ */

/* --- Variables --- */
:root {
    --media-primary: #2563EB;
    --media-primary-light: #3B82F6;
    --media-primary-dark: #1D4ED8;
    --media-secondary: #1E40AF;
    --media-accent: #60A5FA;
    --media-white: #FFFFFF;
    --media-gray-50: #F8FAFC;
    --media-gray-100: #F1F5F9;
    --media-gray-200: #E2E8F0;
    --media-gray-500: #64748B;
    --media-gray-700: #334155;
    --media-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -2px rgba(37, 99, 235, 0.1);
    --media-shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.15), 0 4px 6px -4px rgba(37, 99, 235, 0.1);
    --media-radius: 16px;
    --media-radius-sm: 12px;
    --media-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Section Container --- */
.media-showcase {
    background: linear-gradient(180deg, var(--media-gray-50) 0%, var(--media-white) 100%);
    padding: 3rem 0 4rem;
    direction: rtl;
}

/* --- Header Section --- */
.media-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.media-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--media-primary-dark);
    margin: 0 0 0.75rem 0;
    position: relative;
    display: inline-block;
}

    .media-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        right: 50%;
        transform: translateX(50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--media-primary), var(--media-accent));
        border-radius: 2px;
    }

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--media-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--media-transition);
    margin-top: 1rem;
}

    .media-link:hover {
        background: var(--media-primary);
        color: var(--media-white);
        transform: translateX(-4px);
    }

    .media-link i {
        font-size: 0.875rem;
        transition: var(--media-transition);
    }

    .media-link:hover i {
        transform: translateX(-4px);
    }

/* --- Video Grid --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

/* --- Media Card --- */
.media-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

    .media-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .media-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .media-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .media-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .media-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .media-card:nth-child(6) {
        animation-delay: 0.6s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-card-inner {
    background: var(--media-white);
    border-radius: var(--media-radius);
    overflow: hidden;
    box-shadow: var(--media-shadow);
    transition: var(--media-transition);
    border: 1px solid var(--media-gray-200);
}

    .media-card-inner:hover {
        box-shadow: var(--media-shadow-lg);
        transform: translateY(-4px);
        border-color: var(--media-accent);
    }

/* --- Video Wrapper --- */
.media-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--media-gray-100);
    overflow: hidden;
}

.media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--media-transition);
    background: #000;
}

/* --- Play Overlay --- */
.media-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: var(--media-transition);
}

.media-card-inner:hover .media-play-overlay {
    opacity: 0;
}

.media-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--media-transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.media-card-inner:hover .media-play-btn {
    transform: scale(1.1);
}

/* --- Video Controls Styling --- */
.media-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* --- Empty State --- */
.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--media-white);
    border-radius: var(--media-radius);
    border: 2px dashed var(--media-gray-200);
}

.media-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--media-accent);
}

    .media-empty-icon svg {
        width: 100%;
        height: 100%;
    }

.media-empty-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--media-gray-700);
    margin-bottom: 0.5rem;
}

.media-empty-desc {
    color: var(--media-gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

/* ============================================
   📱 Android-Friendly Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .media-showcase {
        padding: 2rem 0 3rem;
    }

    .media-title {
        font-size: 1.375rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .media-card-inner {
        border-radius: var(--media-radius-sm);
    }

    .media-play-btn {
        width: 56px;
        height: 56px;
    }

    /* Touch-friendly tap targets */
    .media-link {
        padding: 0.75rem 1.25rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .media-video {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .media-grid {
        gap: 0.875rem;
    }

    .media-card-inner {
        border-radius: var(--media-radius-sm);
    }

    .media-empty {
        padding: 3rem 1.5rem;
    }
}

/* Touch optimization for Android */
@media (hover: none) and (pointer: coarse) {
    .media-card-inner:active {
        transform: scale(0.98);
    }

    .media-link:active {
        background: var(--media-primary-dark);
    }

    /* Larger touch targets */
    .media-play-btn {
        width: 64px;
        height: 64px;
    }
}

/* Reduce motion for battery saving */
@media (prefers-reduced-motion: reduce) {
    .media-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .media-card-inner,
    .media-link,
    .media-play-btn {
        transition: none;
    }
}





/* ============================================
   CSS Variables - Blue & White Theme
   ============================================ */
:root {
    --eservices-primary: #2563eb;
    --eservices-primary-light: #3b82f6;
    --eservices-primary-dark: #1d4ed8;
    --eservices-primary-subtle: #dbeafe;
    --eservices-secondary: #0f172a;
    --eservices-text: #1e293b;
    --eservices-text-light: #64748b;
    --eservices-bg: #ffffff;
    --eservices-bg-alt: #f8fafc;
    --eservices-shadow: rgba(37, 99, 235, 0.15);
    --eservices-shadow-strong: rgba(37, 99, 235, 0.25);
    /* Android-friendly sizes */
    --eservices-card-min-height: 160px;
    --eservices-icon-size: 48px;
    --eservices-touch-target: 48px;
    --eservices-border-radius: 16px;
    --eservices-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Main Section
   ============================================ */
.eservices-section {
    background: linear-gradient(180deg, var(--eservices-bg) 0%, var(--eservices-bg-alt) 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

    .eservices-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -25%;
        width: 50%;
        height: 200%;
        background: radial-gradient(ellipse, var(--eservices-primary-subtle) 0%, transparent 70%);
        opacity: 0.5;
        pointer-events: none;
    }

/* ============================================
   Container
   ============================================ */
.eservices-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   Header / Title
   ============================================ */
.eservices-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.eservices-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--eservices-text);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.eservices-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--eservices-primary) 0%, var(--eservices-primary-dark) 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px var(--eservices-shadow);
}

.eservices-title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--eservices-primary), var(--eservices-primary-light));
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   Grid Layout
   ============================================ */
.eservices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Tablet */
@media (min-width: 576px) {
    .eservices-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .eservices-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Large Desktop */
@media (min-width: 992px) {
    .eservices-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* ============================================
   Service Card
   ============================================ */
.eservices-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: var(--eservices-card-min-height);
    padding: 1.5rem 1rem;
    background: var(--eservices-bg);
    border-radius: var(--eservices-border-radius);
    border: 1px solid rgba(37, 99, 235, 0.1);
    text-decoration: none;
    color: var(--eservices-text);
    position: relative;
    overflow: hidden;
    transition: var(--eservices-transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* Soft shadow */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

    /* Ripple effect for Android */
    .eservices-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, var(--eservices-primary-subtle) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
        pointer-events: none;
    }

    .eservices-card:active::before {
        width: 300px;
        height: 300px;
    }

/* ============================================
   Card Hover States (Desktop)
   ============================================ */
@media (hover: hover) {
    .eservices-card:hover {
        transform: translateY(-6px);
        border-color: var(--eservices-primary-light);
        box-shadow: 0 8px 25px var(--eservices-shadow), 0 0 0 1px var(--eservices-primary-subtle);
    }

        .eservices-card:hover .eservices-card-icon {
            transform: scale(1.1);
            background: linear-gradient(135deg, var(--eservices-primary) 0%, var(--eservices-primary-dark) 100%);
            color: white;
        }

        .eservices-card:hover .eservices-card-icon-glow {
            opacity: 1;
            transform: scale(1.5);
        }

        .eservices-card:hover .eservices-card-link-indicator {
            opacity: 1;
            transform: translateY(0);
        }

        .eservices-card:hover .eservices-card-title {
            color: var(--eservices-primary);
        }
}

/* ============================================
   Card Icon
   ============================================ */
.eservices-card-icon-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.eservices-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--eservices-icon-size);
    height: var(--eservices-icon-size);
    background: var(--eservices-primary-subtle);
    border-radius: 14px;
    color: var(--eservices-primary);
    font-size: 1.25rem;
    transition: var(--eservices-transition);
    position: relative;
    z-index: 2;
}

.eservices-card-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--eservices-primary);
    border-radius: 14px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    filter: blur(15px);
    transition: var(--eservices-transition);
    z-index: 1;
}

/* ============================================
   Card Title
   ============================================ */
.eservices-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eservices-text);
    margin: 0;
    line-height: 1.4;
    transition: var(--eservices-transition);
    /* Text truncation for long titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Link Indicator
   ============================================ */
.eservices-card-link-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--eservices-primary);
    opacity: 0;
    transform: translateY(5px);
    transition: var(--eservices-transition);
}

/* Always show on mobile */
@media (hover: none) {
    .eservices-card-link-indicator {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Empty State
   ============================================ */
.eservices-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.eservices-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--eservices-bg-alt);
    border-radius: 50%;
    color: var(--eservices-text-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.eservices-empty-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--eservices-text-light);
}

/* ============================================
   Accessibility & Focus States
   ============================================ */
.eservices-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--eservices-bg), 0 0 0 5px var(--eservices-primary);
}

.eservices-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--eservices-bg), 0 0 0 5px var(--eservices-primary);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .eservices-card {
        border: 2px solid var(--eservices-primary);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eservices-card,
    .eservices-card-icon,
    .eservices-card-icon-glow,
    .eservices-card-title,
    .eservices-card-link-indicator {
        transition: none;
    }

        .eservices-card:hover {
            transform: none;
        }
}





/* ==========================================
   متغیرهای CSS
   ========================================== */
:root {
    /* پالت رنگی آبی */
    --news-primary: #2563EB;
    --news-primary-light: #3B82F6;
    --news-primary-dark: #1D4ED8;
    --news-primary-pale: #EFF6FF;
    --news-primary-glow: rgba(37, 99, 235, 0.15);
    /* رنگ‌های پایه */
    --news-white: #FFFFFF;
    --news-gray-50: #F9FAFB;
    --news-gray-100: #F3F4F6;
    --news-gray-200: #E5E7EB;
    --news-gray-500: #6B7280;
    --news-gray-700: #374151;
    --news-gray-800: #1F2937;
    /* سایه‌ها */
    --news-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --news-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --news-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --news-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --news-shadow-blue: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
    /* گوشه‌های گرد */
    --news-radius-sm: 8px;
    --news-radius-md: 12px;
    --news-radius-lg: 16px;
    --news-radius-xl: 24px;
    /* انیمیشن‌ها */
    --news-transition-fast: 0.15s ease;
    --news-transition-normal: 0.3s ease;
    --news-transition-slow: 0.5s ease;
}

/* ==========================================
   استایل‌های RTL
   ========================================== */
[dir="rtl"] .news-item-arrow i {
    transform: rotate(180deg);
}

[dir="rtl"] .carousel-btn-next i {
    transform: rotate(180deg);
}

[dir="rtl"] .carousel-btn-prev i {
    transform: rotate(180deg);
}

[dir="rtl"] .news-view-all-btn i {
    transform: rotate(180deg);
}

/* ==========================================
   بخش اصلی
   ========================================== */
.news-modern-section {
    background: linear-gradient(180deg, var(--news-gray-50) 0%, var(--news-white) 100%);
    padding: 60px 0 80px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    overflow: hidden;
}

.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   عنوان اصلی
   ========================================== */
.news-main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.news-main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--news-primary-dark);
    margin: 0;
    white-space: nowrap;
    position: relative;
}

    .news-main-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        right: 0;
        width: 40px;
        height: 3px;
        background: var(--news-primary);
        border-radius: 2px;
    }

.news-header-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--news-primary), transparent);
    border-radius: 2px;
}

/* ==========================================
   گرید ستون‌ها
   ========================================== */
.news-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .news-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .special-news-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .news-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .special-news-column {
        grid-column: span 1;
    }

    .news-main-title {
        font-size: 22px;
    }
}

/* ==========================================
   کارت ستون
   ========================================== */
.news-column-card {
    background: var(--news-white);
    border-radius: var(--news-radius-xl);
    box-shadow: var(--news-shadow-lg);
    overflow: hidden;
    transition: transform var(--news-transition-normal), box-shadow var(--news-transition-normal);
}

    .news-column-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--news-shadow-xl);
    }

/* ==========================================
   هدر ستون - همه آبی
   ========================================== */
.news-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--news-primary) 0%, var(--news-primary-light) 100%);
    color: var(--news-white);
}

/* پربازدیدترین - آبی */
.popular-news-column .news-column-header {
    background: linear-gradient(135deg, var(--news-primary) 0%, var(--news-primary-light) 100%);
}

/* مطالب ویژه - آبی */
.special-news-column .news-column-header {
    background: linear-gradient(135deg, var(--news-primary) 0%, var(--news-primary-light) 100%);
}

.news-column-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--news-radius-md);
    font-size: 18px;
}

.news-column-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ==========================================
   لیست اخبار
   ========================================== */
.news-list-container {
    padding: 8px;
}

.news-list-item {
    border-radius: var(--news-radius-md);
    transition: background var(--news-transition-fast);
}

    .news-list-item:hover {
        background: var(--news-primary-pale);
    }

.news-item-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

/* تصویر آیتم */
.news-item-image-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--news-radius-md);
    overflow: hidden;
}

.news-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--news-transition-normal);
}

.news-list-item:hover .news-item-image {
    transform: scale(1.1);
}

.news-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--news-primary-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--news-transition-fast);
}

.news-list-item:hover .news-item-overlay {
    opacity: 1;
}

/* محتوای آیتم */
.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--news-gray-800);
    margin: 0 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--news-transition-fast);
}

.news-list-item:hover .news-item-title {
    color: var(--news-primary);
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--news-gray-500);
}

.news-meta-date i {
    margin-left: 4px;
    color: var(--news-primary);
}

/* آیکون بازدید - آبی */
.news-meta-views i {
    color: var(--news-primary);
}

/* فلش آیتم */
.news-item-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--news-gray-100);
    border-radius: 50%;
    color: var(--news-gray-500);
    font-size: 10px;
    transition: all var(--news-transition-fast);
    flex-shrink: 0;
}

.news-list-item:hover .news-item-arrow {
    background: var(--news-primary);
    color: var(--news-white);
    transform: translateX(-4px);
}

/* ==========================================
   حالت خالی
   ========================================== */
.news-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--news-gray-500);
    text-align: center;
}

    .news-empty-state i {
        font-size: 48px;
        margin-bottom: 12px;
        opacity: 0.5;
    }

    .news-empty-state span {
        font-size: 14px;
    }

/* آیکون خالی - آبی */
.special-empty i {
    color: var(--news-primary);
}

/* ==========================================
   کاروسل مطالب ویژه
   ========================================== */
.special-news-carousel {
    padding: 16px;
}

.carousel-wrapper {
    position: relative;
    border-radius: var(--news-radius-lg);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

.special-card-link {
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: start;
    text-decoration: none;
}

@media (min-width: 768px) {
    .special-card-link {
        flex: 0 0 calc(50% - 8px);
    }
}

.special-news-card {
    position: relative;
    height: 280px;
    border-radius: var(--news-radius-lg);
    overflow: hidden;
    box-shadow: var(--news-shadow-md);
    transition: transform var(--news-transition-normal), box-shadow var(--news-transition-normal);
}

.special-card-link:hover .special-news-card {
    transform: scale(1.02);
    box-shadow: var(--news-shadow-xl);
}

.special-card-image-wrapper {
    position: absolute;
    inset: 0;
}

.special-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100% );
}

.special-card-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
    color: var(--news-white);
}

/* بج ویژه - آبی */
.special-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--news-primary) 0%, var(--news-primary-light) 100%);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

    .special-card-badge i {
        font-size: 10px;
    }

.special-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.special-card-excerpt {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* دکمه‌های کاروسل */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--news-white);
    color: var(--news-primary);
    box-shadow: var(--news-shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--news-transition-fast);
    z-index: 10;
}

    .carousel-btn:hover {
        background: var(--news-primary);
        color: var(--news-white);
        transform: translateY(-50%) scale(1.1);
    }

.carousel-btn-next {
    right: 12px;
}

.carousel-btn-prev {
    left: 12px;
}

/* نشانگرهای کاروسل */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--news-gray-200);
    cursor: pointer;
    transition: all var(--news-transition-fast);
}

    .carousel-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--news-primary);
    }

    .carousel-dot:hover:not(.active) {
        background: var(--news-gray-500);
    }

/* ==========================================
   دکمه مشاهده همه
   ========================================== */
.news-view-all-wrapper {
    display: flex;
    justify-content: center;
}

.news-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--news-primary) 0%, var(--news-primary-dark) 100%);
    color: var(--news-white);
    text-decoration: none;
    border-radius: var(--news-radius-xl);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--news-shadow-blue);
    transition: all var(--news-transition-normal);
    position: relative;
    overflow: hidden;
}

    .news-view-all-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
        transition: left 0.5s ease;
    }

    .news-view-all-btn:hover::before {
        left: 100%;
    }

    .news-view-all-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    }

    .news-view-all-btn:active {
        transform: translateY(-1px);
    }

    .news-view-all-btn i {
        font-size: 14px;
        transition: transform var(--news-transition-fast);
    }

    .news-view-all-btn:hover i {
        transform: translateX(-4px);
    }

/* ==========================================
   انیمیشن‌های ورودی
   ========================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.news-column-card {
    animation: slideInUp 0.6s ease forwards;
}

    .news-column-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .news-column-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .news-column-card:nth-child(3) {
        animation-delay: 0.3s;
    }

/* ==========================================
   بهبود Touch برای اندروید
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    .news-list-item:active {
        background: var(--news-primary-pale);
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    .news-view-all-btn {
        padding: 18px 48px;
        min-height: 56px;
    }

    .news-item-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .news-item-title {
        font-size: 15px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

        .carousel-dot.active {
            width: 28px;
        }
}






/* ══════════════════════════════════════════════════════════════
   سیستم طراحی مدرن - Sidebar Modern System
   Color Palette: Blue (#1976D2, #2196F3, #BBDEFB) & White
   ══════════════════════════════════════════════════════════════ */

/* ═══════ متغیرهای CSS ═══════ */
:root {
    /* رنگ‌های اصلی آبی */
    --primary-blue: #1976D2;
    --secondary-blue: #2196F3;
    --light-blue: #64B5F6;
    --pale-blue: #BBDEFB;
    --ultra-pale-blue: #E3F2FD;
    --dark-blue: #0D47A1;
    /* رنگ‌های سفید و خاکستری */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F5F7FA;
    --medium-gray: #E0E6ED;
    --text-gray: #607D8B;
    --dark-text: #263238;
    /* سایه‌ها */
    --shadow-sm: 0 2px 8px rgba(25, 118, 210, 0.08);
    --shadow-md: 0 4px 20px rgba(25, 118, 210, 0.12);
    --shadow-lg: 0 8px 40px rgba(25, 118, 210, 0.16);
    --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.3);
    /* گوشه‌های گرد */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    /* انیمیشن‌ها */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════ استایل‌های پایه ═══════ */
.sidebar-wrapper {
    background: linear-gradient(180deg, var(--ultra-pale-blue) 0%, var(--white) 100%);
    padding: 40px 0 60px;
    min-height: 60vh;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    direction: rtl;
}

@media (max-width: 991px) {
    .sidebar-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ═══════ کارت‌ها ═══════ */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid var(--pale-blue);
    position: relative;
}

    .sidebar-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
        transform: scaleX(0);
        transform-origin: right;
        transition: var(--transition-slow);
    }

    .sidebar-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

        .sidebar-card:hover::before {
            transform: scaleX(1);
        }

.card-inner {
    padding: 24px;
}

/* ═══════ هدر کارت ═══════ */
.card-header-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ultra-pale-blue);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* ═══════ بدنه کارت ═══════ */
.card-body-custom {
    min-height: 200px;
}

/* ══════════════════════════════════════════════════════════════
   بخش مدیرعامل
   ══════════════════════════════════════════════════════════════ */

.ceo-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* تصویر با انیمیشن ring */
.ceo-image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.ceo-image-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 3px solid transparent;
    border-top-color: var(--secondary-blue);
    border-radius: 50%;
    animation: spin-ring 2s linear infinite;
}

@keyframes spin-ring {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.ceo-image-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.sidebar-card:hover .ceo-image-container {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.ceo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* اطلاعات مدیرعامل */
.ceo-info {
    margin-bottom: 20px;
}

.ceo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 8px 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.ceo-role {
    font-size: 14px;
    color: var(--secondary-blue);
    margin: 0;
    font-weight: 500;
    background: var(--ultra-pale-blue);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* دکمه تماس */
.ceo-actions {
    width: 100%;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-slow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .btn-modern::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: var(--transition-normal);
    }

    .btn-modern:hover::before {
        width: 300px;
        height: 300px;
    }

.btn-contact {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: var(--shadow-sm);
    width: 100%;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .btn-contact:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .btn-contact:active {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }

@media (max-width: 576px) {
    .btn-contact {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ══════════════════════════════════════════════════════════════
   بخش لینک‌ها
   ══════════════════════════════════════════════════════════════ */

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--ultra-pale-blue);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-slow);
    border: 1px solid transparent;
    min-height: 64px;
}

    .link-item:hover {
        background: var(--white);
        border-color: var(--pale-blue);
        box-shadow: var(--shadow-sm);
        transform: translateX(-4px);
    }

    .link-item:active {
        transform: translateX(-2px);
        background: var(--pale-blue);
    }

.link-image-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--medium-gray);
}

.link-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.link-arrow {
    color: var(--secondary-blue);
    font-size: 14px;
    transition: var(--transition-normal);
    opacity: 0.6;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(-4px);
}

/* ══════════════════════════════════════════════════════════════
   حالت‌های خالی
   ══════════════════════════════════════════════════════════════ */

.empty-placeholder,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

    .placeholder-icon,
    .empty-state i {
        font-size: 48px;
        color: var(--pale-blue);
        margin-bottom: 16px;
    }

        .placeholder-icon i {
            font-size: 48px;
            color: var(--pale-blue);
        }

    .empty-placeholder p,
    .empty-state p {
        color: var(--text-gray);
        font-size: 14px;
        margin: 0;
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

.sidebar-container {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.empty-state {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════════
   انیمیشن‌های ورود
   ══════════════════════════════════════════════════════════════ */

.sidebar-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.ceo-card {
    animation-delay: 0.1s;
}

.links-card {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════
   Touch-friendly برای موبایل (Android)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sidebar-wrapper {
        padding: 24px 0 40px;
    }

    .card-inner {
        padding: 20px;
    }

    .card-header-custom {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .card-title {
        font-size: 16px;
    }

    .ceo-image-ring {
        width: 140px;
        height: 140px;
    }

    .ceo-image-container {
        width: 120px;
        height: 120px;
    }

    .ceo-name {
        font-size: 18px;
    }

    .link-item {
        padding: 12px 14px;
        min-height: 60px;
    }

    .link-image-wrapper {
        width: 44px;
        height: 44px;
    }

    /* بهبود touch targets */
    .link-item,
    .btn-modern {
        min-height: 48px;
    }

    /* حذف hover effects در touch devices */
    @media (hover: none) {
        .sidebar-card:hover {
            transform: none;
            box-shadow: var(--shadow-md);
        }

        .link-item:hover {
            transform: none;
            background: var(--ultra-pale-blue);
        }

        .btn-contact:hover {
            transform: none;
        }
    }
}







/* ═══════════════════════════════════════════════════════════════
   بخش تب‌های پست‌ها - استایل مدرن و مینیمال
   ═══════════════════════════════════════════════════════════════ */

/* ===== متغیرهای رنگ ===== */
:root {
    --ps-primary: #0066CC;
    --ps-primary-light: #E8F4FD;
    --ps-primary-dark: #004C99;
    --ps-accent: #00A3E0;
    --ps-white: #FFFFFF;
    --ps-gray-50: #F8FAFC;
    --ps-gray-100: #F1F5F9;
    --ps-gray-200: #E2E8F0;
    --ps-gray-500: #64748B;
    --ps-gray-700: #334155;
    --ps-gray-900: #0F172A;
    --ps-shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.08);
    --ps-shadow-md: 0 4px 20px rgba(0, 102, 204, 0.12);
    --ps-shadow-lg: 0 8px 40px rgba(0, 102, 204, 0.16);
    --ps-radius-sm: 8px;
    --ps-radius-md: 12px;
    --ps-radius-lg: 16px;
    --ps-radius-xl: 24px;
    --ps-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== بخش اصلی ===== */
.ps-tabs-section {
    width: 100%;
    padding: 40px 16px;
    background: linear-gradient(180deg, var(--ps-gray-50) 0%, var(--ps-white) 100%);
    direction: rtl;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ps-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== هدر =====*/
.ps-tabs-header {
    text-align: center;
    margin-bottom: 32px;
}

.ps-tabs-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ps-gray-900);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ps-title-icon {
    color: var(--ps-primary);
    font-size: 1.5rem;
}

/* ===== دکمه‌های تب =====*/
.ps-tab-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 6px;
    background: var(--ps-white);
    border-radius: var(--ps-radius-xl);
    box-shadow: var(--ps-shadow-sm);
}

.ps-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ps-gray-500);
    background: transparent;
    border: none;
    border-radius: var(--ps-radius-lg);
    cursor: pointer;
    transition: var(--ps-transition);
    white-space: nowrap;
}

.ps-tab-btn:hover {
    color: var(--ps-primary);
    background: var(--ps-primary-light);
}

.ps-tab-btn.active {
    color: var(--ps-white);
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-accent) 100%);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.ps-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* ===== محتوای تب =====*/
.ps-tabs-content-area {
    position: relative;
    min-height: 400px;
}

.ps-tab-content {
    display: none;
    animation: ps-fadeIn 0.4s ease-out;
}

.ps-tab-content.active {
    display: block;
}

@keyframes ps-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== حالت خالی =====*/
.ps-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--ps-gray-500);
    text-align: center;
}

.ps-empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ps-empty-state p {
    font-size: 1.125rem;
    margin: 0;
}

/* ===== گرید پست‌ها =====*/
.ps-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===== کارت پست =====*/
.ps-post-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-sm);
    overflow: hidden;
    transition: var(--ps-transition);
    opacity: 0;
    transform: translateY(30px);
}

.ps-post-card.ps-visible {
    opacity: 1;
    transform: translateY(0);
}

.ps-post-card:hover {
    box-shadow: var(--ps-shadow-lg);
    transform: translateY(-8px);
}

.ps-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ===== تصویر پست =====*/
.ps-post-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.ps-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ps-post-card:hover .ps-post-image {
    transform: scale(1.08);
}

.ps-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 102, 204, 0) 50%,
        rgba(0, 102, 204, 0.4) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ps-transition);
}

.ps-post-card:hover .ps-post-overlay {
    opacity: 1;
}

.ps-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--ps-white);
    border-radius: 50%;
    color: var(--ps-primary);
    font-size: 1rem;
    transform: scale(0);
    transition: var(--ps-transition);
}

.ps-post-card:hover .ps-read-more {
    transform: scale(1);
}

/* ===== محتوای پست =====*/
.ps-post-content {
    padding: 20px;
}

.ps-post-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ps-gray-900);
    margin: 0 0 12px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ps-transition);
}

.ps-post-card:hover .ps-post-title {
    color: var(--ps-primary);
}

.ps-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ps-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ps-gray-500);
}

.ps-post-date i {
    color: var(--ps-accent);
    font-size: 0.8rem;
}

/* ===== دکمه مشاهده همه =====*/
.ps-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.ps-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ps-primary);
    background: var(--ps-white);
    border: 2px solid var(--ps-primary);
    border-radius: var(--ps-radius-xl);
    text-decoration: none;
    transition: var(--ps-transition);
}

.ps-view-all-btn:hover {
    color: var(--ps-white);
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-accent) 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

.ps-view-all-btn i {
    transition: var(--ps-transition);
}

.ps-view-all-btn:hover i {
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   ریسپانسیو - مخصوص اندروید و موبایل
   ═══════════════════════════════════════════════════════════════ */

/* تبلت‌های کوچک */
@media (max-width: 768px) {
    .ps-tabs-section {
        padding: 24px 12px;
    }

    .ps-tabs-title {
        font-size: 1.35rem;
    }

    .ps-tab-buttons {
        gap: 6px;
        padding: 4px;
    }

    .ps-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .ps-tab-icon {
        display: none;
    }

    .ps-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ps-post-image-wrapper {
        height: 160px;
    }

    .ps-post-content {
        padding: 16px;
    }

    .ps-post-title {
        font-size: 1rem;
    }

    .ps-view-all-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* موبایل‌های بزرگ */
@media (max-width: 480px) {
    .ps-tabs-section {
        padding: 20px 8px;
    }

    .ps-tabs-header {
        margin-bottom: 20px;
    }

    .ps-tabs-title {
        font-size: 1.2rem;
    }

    .ps-tab-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        margin-bottom: 24px;
    }

        .ps-tab-buttons::-webkit-scrollbar {
            display: none;
        }

    .ps-tab-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .ps-posts-grid {
        gap: 12px;
    }

    .ps-post-image-wrapper {
        height: 140px;
    }

    .ps-post-content {
        padding: 12px;
    }

    .ps-post-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .ps-post-date {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   انیمیشن‌های اضافی
   ═══════════════════════════════════════════════════════════════ */

/* Ripple Effect */
.ps-tab-btn {
    position: relative;
    overflow: hidden;
}

    .ps-tab-btn::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 50%;
        left: 50%;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.3s ease;
    }

    .ps-tab-btn:active::after {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
        transition: 0s;
    }

/* Skeleton Loading */
.ps-post-card.loading .ps-post-image-wrapper {
    background: linear-gradient( 90deg, var(--ps-gray-200) 0%, var(--ps-gray-100) 50%, var(--ps-gray-200) 100% );
    background-size: 200% 100%;
    animation: ps-skeleton 1.5s infinite;
}

@keyframes ps-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Touch Feedback برای اندروید */
@media (hover: none) {
    .ps-post-card {
        -webkit-tap-highlight-color: transparent;
    }

        .ps-post-card:active {
            transform: scale(0.98);
            transition: transform 0.1s ease;
        }

    .ps-tab-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .ps-view-all-btn:active {
        transform: scale(0.97);
    }
}








/* ============================================
       پالت رنگی آبی و سفید - طراحی مدرن
       ============================================ */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --primary-blue-hover: #1e40af;
    --secondary-blue: #dbeafe;
    --accent-blue: #eff6ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success-green: #10b981;
    --error-red: #ef4444;
    --warning-yellow: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
       استایل‌های عمومی صفحه
       ============================================ */
.auth-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--white) 50%, var(--secondary-blue) 100%);
    padding: 40px 16px;
}

.auth-breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

    .auth-breadcrumb-custom a {
        color: var(--primary-blue);
        text-decoration: none;
        transition: color var(--transition-fast);
    }

        .auth-breadcrumb-custom a:hover {
            color: var(--primary-blue-dark);
        }

    .auth-breadcrumb-custom .separator {
        color: var(--gray-400);
    }

    .auth-breadcrumb-custom .current {
        color: var(--gray-700);
        font-weight: 500;
    }

.auth-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    padding-right: 20px;
    position: relative;
}

    .auth-page-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 32px;
        background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
        border-radius: 4px;
    }

/* ============================================
       کارت اصلی احراز هویت
       ============================================ */
.auth-card-container {
    max-width: 560px;
    margin: 0 auto;
    animation: slideUpFade 0.6s ease-out;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    position: relative;
}

    .auth-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue) 100%);
    }

.auth-card-body {
    padding: 40px 36px;
}

/* ============================================
       هدر کارت
       ============================================ */
.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    animation: pulse 2s infinite;
}

    .auth-card-icon svg {
        width: 32px;
        height: 32px;
        color: var(--white);
    }

.auth-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px;
}

.auth-card-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0;
}

/* ============================================
       فیلدهای ورودی - طراحی مدرن
       ============================================ */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: color var(--transition-fast);
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    outline: none;
    text-align: right;
    direction: rtl;
}

.auth-input-ltr {
    text-align: left;
    direction: ltr;
}

.auth-input::placeholder {
    color: var(--gray-400);
}

.auth-input:hover {
    border-color: var(--gray-300);
    background: var(--white);
}

.auth-input:focus {
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

    .auth-input:focus + .auth-input-icon,
    .auth-input:focus ~ .auth-input-icon {
        color: var(--primary-blue);
    }

    .auth-input:focus ~ .auth-password-toggle {
        color: var(--primary-blue);
    }

    .auth-input:focus ~ .validation-icon {
        color: var(--primary-blue);
    }

/* فیلدهای موبایل - اندازه بزرگتر برای لمس راحت‌تر */
@media (max-width: 768px) {
    .auth-input {
        height: 56px;
        font-size: 16px;
    }
}

/* Toggle Password */
.auth-password-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

    .auth-password-toggle:hover {
        color: var(--gray-600);
    }

/* Validation Icon */
.validation-icon {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

/* ============================================
       پیام‌های خطا و موفقیت
       ============================================ */
.auth-validation-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--error-red);
    margin-top: 8px;
    animation: shakeX 0.5s ease;
}

    .auth-validation-error svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

/* ============================================
       چک‌باکس سفارشی
       ============================================ */
.auth-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

    .auth-checkbox input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index: 1;
    }

.auth-checkbox-mark {
    width: 22px;
    height: 22px;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

    .auth-checkbox-mark svg {
        width: 14px;
        height: 14px;
        color: var(--white);
        opacity: 0;
        transform: scale(0.5);
        transition: all var(--transition-fast);
    }

.auth-checkbox input:checked + .auth-checkbox-mark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

    .auth-checkbox input:checked + .auth-checkbox-mark svg {
        opacity: 1;
        transform: scale(1);
    }

.auth-checkbox:hover .auth-checkbox-mark {
    border-color: var(--primary-blue-light);
}

.auth-checkbox-label {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    cursor: pointer;
}

    .auth-checkbox-label a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 500;
        transition: color var(--transition-fast);
    }

        .auth-checkbox-label a:hover {
            color: var(--primary-blue-dark);
            text-decoration: underline;
        }

/* ============================================
       دکمه ثبت
       ============================================ */
.auth-submit-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}

    .auth-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    }

        .auth-btn:hover::before {
            left: 100%;
        }

    .auth-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    }

    .auth-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .auth-btn svg {
        width: 20px;
        height: 20px;
    }

/* ============================================
       لینک‌های پایین فرم
       ============================================ */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

    .auth-link:hover {
        color: var(--primary-blue);
    }

    .auth-link svg {
        width: 18px;
        height: 18px;
    }

.auth-link-primary {
    color: var(--primary-blue);
    font-weight: 500;
}

    .auth-link-primary:hover {
        color: var(--primary-blue-dark);
    }

/* ============================================
       هشدار CAPS LOCK
       ============================================ */
.auth-capslock-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #92400e;
    margin-top: 12px;
    animation: slideDownFade 0.3s ease;
}

    .auth-capslock-warning svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

/* ============================================
       طرح‌بندی دو ستونه برای فیلدها
       ============================================ */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ============================================
       انیمیشن‌ها
       ============================================ */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shakeX {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    }

    50% {
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
       ریسپانسیو - موبایل و تبلت
       ============================================ */
@media (max-width: 768px) {
    .auth-page-wrapper {
        padding: 24px 12px;
    }

    .auth-card-body {
        padding: 28px 20px;
    }

    .auth-card-title {
        font-size: 22px;
    }

    .auth-page-title {
        font-size: 24px;
    }

    .auth-submit-wrapper {
        flex-direction: column-reverse;
    }

    .auth-btn {
        width: 100%;
    }

    .auth-links {
        text-align: center;
    }
}

/* ============================================
       Floating Label Effect (Optional)
       ============================================ */
.auth-input-floating {
    position: relative;
}

    .auth-input-floating .auth-input {
        padding-top: 20px;
    }

    .auth-input-floating .auth-label {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        transition: all var(--transition-fast);
    }

    .auth-input-floating .auth-input:focus ~ .auth-label,
    .auth-input-floating .auth-input:not(:placeholder-shown) ~ .auth-label {
        top: 12px;
        font-size: 11px;
        color: var(--primary-blue);
    }
