    @font-face {
    font-family: 'IRANSans';
    src: url('IRANSans-medium-fanum.woff2') format('woff2'),
         url('IRANSans-medium-fanum.woff') format('woff'),
         url('IRANSans-medium-fanum.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
body { font-family: 'IRANSans', sans-serif; }
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== کارت‌های خبری ===== */
.news-card {
    transition: all 0.3s ease;
    border-radius: 20px;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ===== اسکرول افقی ===== */
.horizontal-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/* ===== ارتفاع ثابت با اسکرول عمودی ===== */
.fixed-height-scroll {
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.fixed-height-scroll::-webkit-scrollbar {
    width: 5px;
}
.fixed-height-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.fixed-height-scroll::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}
.fixed-height-scroll::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* ===== لاین محدودیت متن ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== فوتر تیره ===== */
.dark-footer {
    background: #1e293b;
    color: #94a3b8;
}

/* ===== گرادیان آبی برای تگ‌ها ===== */
.badge-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* ===== کارت‌های باکس ===== */
.category-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* ===== استایل‌های هدر آبی فیروزه‌ای ===== */
.header-teal {
    background: linear-gradient(135deg, #0f2b3d 0%, #1a4a6f 50%, #0d3b55 100%);
    border-bottom: 3px solid #00d4ff;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover {
    color: #00d4ff !important;
}
.nav-link.active {
    color: #00d4ff !important;
    font-weight: bold;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 3px;
    background: #00d4ff;
    border-radius: 3px;
}

/* ===== منوی موبایل (راست به چپ) ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    overflow-y: auto;
}
.mobile-menu.active {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    display: none;
}
.menu-overlay.active {
    display: block;
}

/* ===== اسکرول منوی دسکتاپ ===== */
.desktop-nav {
    scrollbar-width: thin;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.desktop-nav::-webkit-scrollbar {
    height: 4px;
}
.desktop-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}
.desktop-nav::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 10px;
}
/* ===== هدر شیشه‌ای آبی فیروزه‌ای برای باکس‌ها ===== */
.glass-header {
    background: linear-gradient(135deg, rgba(15, 43, 61, 0.85) 0%, rgba(26, 74, 111, 0.85) 50%, rgba(13, 59, 85, 0.85) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid #00d4ff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* ===== مخفی کردن برای اسکرین‌ریدر ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.tag-header-card {
    background: linear-gradient(135deg, #2a658f 0%, #0f3d58 100%);
    border-radius: 24px;
    padding: 30px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.tag-header-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.tag-header-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.tag-header-card::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.tag-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.tag-title .hashtag {
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 1.8rem;
    margin-left: 10px;
    backdrop-filter: blur(5px);
}

.tag-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

.tag-counter {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: white;
}

@media (max-width: 768px) {
    .tag-title {
        font-size: 1.8rem;
    }
    
    .tag-title .hashtag {
        font-size: 1.4rem;
        padding: 2px 10px;
    }
    
    .tag-header-card {
        padding: 20px 15px;
        border-radius: 20px;
    }
}
/* ============================================
   بنر نصب اپلیکیشن (PWA Install Banner)
   ============================================ */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0f2b3d 0%, #1a4a6f 50%, #0d3b55 100%);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.install-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.install-banner-icon {
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.install-banner-text h4 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.install-banner-text p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin: 0;
}

.install-buttons {
    display: flex;
    gap: 10px;
}

.btn-install {
    background: #00d4ff;
    color: #0f2b3d;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-install:hover {
    background: #00e5ff;
    transform: scale(1.02);
}

.btn-close-install {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-install:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 500px) {
    .install-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .install-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .install-buttons {
        width: 100%;
        justify-content: center;
    }
}