/*
Theme Name: پیش فرض مدرن
Author: تیم توسعه
Version: 2.0
Description: قالب اصلی سایت با قابلیت تنظیمات.
*/


@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    /* پالت رنگی مدرن */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    
    /* متغیرهای سایز و سایه */
    --radius: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    outline: none; 
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.3s ease; 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block; 
    border-radius: var(--radius); 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.text-center { 
    text-align: center; 
}

/* --- اشکال پس‌زمینه --- */
.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    z-index: -1;
}

.blob-1 {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    top: -200px;
    left: -200px;
}

.blob-2 {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    bottom: -200px;
    right: -200px;
}

/* --- دکمه‌ها --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: #eef2ff;
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- هدر --- */
.header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 0 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: 0.3s;
    border-radius: 10px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.auth-box {
    display: flex;
    gap: 10px;
}

.desktop-auth {
    display: flex;
}

/* --- دکمه همبرگر --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background-color: var(--primary);
}

/* --- منوی موبایل --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-light);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-logo img {
    height: 35px;
    width: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f1f5f9;
    color: var(--dark);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-menu {
    margin-bottom: 30px;
}

.mobile-nav-menu li {
    margin-bottom: 5px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: #f8fafc;
    color: var(--primary);
    padding-right: 20px;
}

.mobile-menu-item ion-icon {
    font-size: 1.2rem;
    color: var(--primary);
    min-width: 24px;
}

.mobile-auth-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* --- دکمه بالا رونده --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* --- هیرو --- */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #e0e7ff, transparent 40%),
                radial-gradient(circle at bottom left, #fef3c7, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text h1 span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-img-box {
    position: relative;
}

.hero-main-img {
    border-radius: 40px;
    transform: rotate(-2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 8px solid #fff;
    position: relative;
    z-index: 2;
}

/* --- بج‌های اطراف عکس هیرو --- */
.hero-badge {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s infinite ease-in-out;
    z-index: 3;
    min-width: 180px;
}

.hero-badge-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-badge-1 .hero-badge-icon { 
    background: #10b981; 
}

.hero-badge-2 .hero-badge-icon { 
    background: #3b82f6; 
}

.hero-badge-3 .hero-badge-icon { 
    background: #8b5cf6; 
}

.hero-badge-4 .hero-badge-icon { 
    background: #f59e0b; 
}

.hero-badge-text {
    display: flex;
    flex-direction: column;
}

.hero-badge-text strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
}

.hero-badge-text span {
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* موقعیت‌های بج‌ها اطراف عکس */
.hero-badge-1 {
    bottom: 60px;
    right: -20px;
    animation-delay: 0s;
}

.hero-badge-2 {
    top: 40px;
    right: -30px;
    animation-delay: 0.5s;
}

.hero-badge-3 {
    bottom: 40px;
    left: -20px;
    animation-delay: 1s;
}

.hero-badge-4 {
    top: 100px;
    left: -30px;
    animation-delay: 1.5s;
}

/* انیمیشن شناور */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* --- ویژگی‌ها --- */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
}

.section-header p {
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: #fff;
}

.f-icon {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    background: #e0e7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    transition: 0.4s;
}

.feature-card:hover .f-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.f-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* --- بخش اخبار --- */
.posts-section {
    padding: 80px 0;
}

.posts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.posts-section .section-header h2 {
    font-size: 2rem;
    font-weight: 900;
}

/* --- کارت‌های بلاگ قابل کلیک --- */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card-link:hover {
    transform: translateY(-5px);
}

.blog-card-link:hover .blog-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.blog-card-link:hover .blog-img {
    transform: scale(1.1);
}

.blog-card-link:hover .blog-title {
    color: var(--primary);
}

/* تنظیمات کارت‌ها در grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* تغییرات در خود کارت */
.blog-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    cursor: pointer;
}

.blog-img-wrap {
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.blog-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-img-placeholder {
    height: 240px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.blog-img-placeholder ion-icon {
    font-size: 3rem;
}

.blog-content {
    padding: 30px;
    position: relative;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat {
    position: absolute;
    top: -20px;
    right: 30px;
    background: var(--accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark);
    transition: color 0.3s ease;
}

.blog-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.blog-meta ion-icon {
    vertical-align: -2px;
}











/* --- بخش تعرفه‌ها --- */
.pricing-section {
    padding: 80px 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: #fff;
    border-radius: 35px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    transition: 0.4s;
    border: 2px solid transparent;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.15);
}

.pricing-card.featured {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.3);
    border: 2px solid var(--accent);
}

.pricing-card.featured .btn {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.pricing-card.featured .btn:hover {
    background: #eef2ff;
    color: var(--primary);
}

.pricing-card.featured .plan-features ion-icon {
    color: var(--accent);
}

.pricing-card.featured .price {
    color: #fff;
}

.pricing-card.featured .plan-desc {
    opacity: 0.9;
    color: #e2e8f0;
}
























/* --- بخش آخرین جشنواره‌ها --- */
.festivals-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff, #fefce8);
}

.festivals-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.festivals-section .section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
}

.festivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.festival-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.festival-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.festival-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 2;
}

.festival-img-wrap {
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    position: relative;
    height: 220px;
}

.festival-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.festival-card:hover .festival-img {
    transform: scale(1.1);
}

.festival-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.festival-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.festival-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.4;
}

.festival-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.festival-timer {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #fcd34d;
}

.festival-timer-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.festival-timer-content {
    flex: 1;
}

.festival-timer-label {
    display: block;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 5px;
}

.festival-time {
    display: flex;
    gap: 8px;
    direction: ltr;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 8px 5px;
    min-width: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.time-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.time-label {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
    text-transform: uppercase;
}

.festival-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.festival-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.85rem;
}

.festival-participants ion-icon {
    color: var(--primary);
    font-size: 1.2rem;
}







/* --- برچسب پیشنهاد ویژه --- */
.special-offer-label {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 8px 30px 8px 20px;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    z-index: 10;
    overflow: hidden;
    text-align: center;
    transform: rotate(0deg);
}

/* گوشه برچسب (مثلث زرد تیره) */
.special-offer-label::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 10px solid #d97706;
    border-right: 10px solid transparent;
}

/* انیمیشن برای برچسب */
@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3); 
        transform: translateX(0);
    }
    50% { 
        box-shadow: 0 5px 20px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.2); 
        transform: translateX(-3px);
    }
}

.special-offer-label {
    animation: badgePulse 2s infinite ease-in-out;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
}

.price sub {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.7;
}

.plan-desc {
    opacity: 0.8;
    margin-bottom: 30px;
}

.plan-features {
    text-align: right;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.plan-features li {
    margin-bottom: 10px;
}

.plan-features ion-icon {
    color: var(--primary);
    margin-left: 8px;
}

.pricing-card.featured .plan-features ion-icon {
    color: var(--accent);
}

/* --- صفحه آرشیو --- */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- صفحه‌بندی --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-number {
    padding: 8px 15px;
    min-width: 40px;
}

/* --- وضعیت خالی --- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-state ion-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #475569;
}

/* --- صفحه تکی --- */
.single-container {
    padding-top: 60px;
    padding-bottom: 80px;
}

.single-article {
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.single-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-cat {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.single-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
}

.single-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--gray);
    font-size: 0.9rem;
}

.single-meta ion-icon {
    vertical-align: -2px;
    font-size: 1.2rem;
}

.single-img-box {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.single-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #334155;
}

.single-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--dark);
}

.single-content img {
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}




/* =========================================
   استایل‌های صفحه لیست جشنواره‌ها
   ========================================= */

/* تنظیمات کلی صفحه */
.festivals-page {
    padding: 60px 0 80px;
}

/* هدر صفحه */
.festivals-header {
    text-align: center;
    margin-bottom: 50px;
}

.festivals-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}

.festivals-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* نوار فیلتر و جستجو */
.filters-form {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filters-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* باکس جستجو */
.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--light);
    font-family: inherit;
    transition: 0.3s;
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* گرید کارت‌های جشنواره */
.festivals-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* استایل کارت تکی */
.festival-page-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.festival-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

/* تصویر کارت */
.festival-img-link {
    display: block;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.festival-page-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.festival-page-card:hover .festival-page-img {
    transform: scale(1.1);
}

.festival-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 3rem;
}

/* بدنه کارت */
.festival-page-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* برچسب وضعیت */
.festival-page-cat {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.festival-page-cat.active {
    background: #dcfce7; /* سبز روشن */
    color: #166534;
}

.festival-page-cat.finished {
    background: #f3f4f6; /* خاکستری */
    color: #4b5563;
}

/* عنوان و توضیحات */
.festival-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.festival-page-title a {
    color: var(--dark);
    transition: color 0.3s;
}

.festival-page-title a:hover {
    color: var(--primary);
}

.festival-page-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1; /* باعث می‌شود فوتر کارت‌ها هم‌تراز شود */
    line-height: 1.6;
}

/* فوتر کارت */
.festival-page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.festival-page-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.festival-page-date ion-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.festival-page-btn {
    padding: 6px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* وضعیت خالی (یافت نشد) */
.festivals-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.festivals-empty-state ion-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.festivals-empty-state h3 {
    color: var(--text);
    margin-bottom: 5px;
}

.festivals-empty-state p {
    color: var(--gray);
}

/* صفحه‌بندی */
.festivals-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.festivals-pagination .btn {
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 10px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filters-buttons {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .filters-buttons .btn {
        white-space: nowrap;
    }
    
    .festivals-title {
        font-size: 1.8rem;
    }
}







/* --- فوتر --- */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 80px 0 30px;
    margin-top: 80px;
    border-radius: 50px 50px 0 0;
}

.footer .container {
    text-align: center;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-content p {
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* بخش میانی فوتر - مجوزها و شبکه‌های اجتماعی */
.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* بخش شبکه‌های اجتماعی */
.footer-social {
    flex: 1;
    min-width: 300px;
}

.footer-social h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-align: right;
}

.social-icons {
display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.social-icons a:nth-child(1):hover { background: #E1306C; } /* اینستاگرام */
.social-icons a:nth-child(2):hover { background: #0088cc; } /* تلگرام */
.social-icons a:nth-child(3):hover { background: #1DA1F2; } /* توییتر */
.social-icons a:nth-child(4):hover { background: #0077B5; } /* لینکدین */
.social-icons a:nth-child(5):hover { background: #25D366; } /* واتساپ */

/* بخش مجوزها */
.footer-licenses {
    flex: 1;
    min-width: 300px;
}

.footer-licenses h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-align: right;
}

.license-badges {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
}

.license-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
}

.license-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.license-badge img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.license-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.license-images {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.license-images img {
    height: 80px;
    width: auto;
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.license-images img:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.copyright strong {
    color: #fff;
}

/* --- انیمیشن برای باز شدن منو --- */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu.active .mobile-menu-content {
    animation: slideIn 0.3s ease-out;
}

/* جلوگیری از اسکرول پشت منو */
body.menu-open {
    overflow: hidden;
}

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
    .header {
        margin: 20px 20px 0 20px;
        border-radius: 20px;
        position: sticky;
        top: 20px;
        padding: 15px 30px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    .nav-menu,
    .desktop-auth {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .scroll-to-top {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* تغییر ترتیب hero در موبایل */
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-img-box {
        order: 1;
        margin-top: 0;
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
        margin: 0 auto 30px;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .single-article {
        padding: 30px;
    }
    
    .single-title {
        font-size: 2rem;
    }
    
    .posts-section .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* تنظیمات hero-badge برای تبلت */
    .hero-badge {
        padding: 10px 16px;
        min-width: 160px;
    }
    
    .hero-badge-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .hero-badge-text strong {
        font-size: 1.1rem;
    }
    
    .hero-badge-text span {
        font-size: 0.75rem;
    }
    
    .hero-badge-1 {
        bottom: 40px;
        right: -15px;
    }
    
    .hero-badge-2 {
        top: 30px;
        right: -20px;
    }
    
    .hero-badge-3 {
        bottom: 30px;
        left: -15px;
    }
    
    .hero-badge-4 {
        top: 60px;
        left: -20px;
    }
    
    .special-offer-label {
        top: 15px;
        right: -8px;
        padding: 6px 25px 6px 15px;
        font-size: 0.8rem;
    }
    
    /* ریسپانسیو فوتر */
    .footer-middle {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-social,
    .footer-licenses {
        min-width: 100%;
    }
    
    .footer-social h3,
    .footer-licenses h3 {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .license-badges {
        justify-content: center;
    }
    
    .license-images {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        margin: 15px 15px 0 15px;
        padding: 12px 20px;
        border-radius: 18px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero-text h1 {
        font-size: 2.3rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-main-img {
        transform: rotate(0deg);
        max-width: 95%;
        margin: 0 auto;
        border-radius: 30px;
        border-width: 6px;
    }
    
    /* تنظیمات hero-badge برای موبایل متوسط */
    .hero-badge {
        position: absolute;
        padding: 8px 14px;
        min-width: 140px;
        animation: float 4s infinite ease-in-out;
    }
    
    .hero-badge-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .hero-badge-text strong {
        font-size: 1rem;
    }
    
    .hero-badge-text span {
        font-size: 0.7rem;
    }
    
    .hero-badge-1 {
        bottom: 20px;
        right: -10px;
    }
    
    .hero-badge-2 {
        top: 20px;
        right: -15px;
    }
    
    .hero-badge-3 {
        bottom: 20px;
        left: -10px;
    }
    
    .hero-badge-4 {
        top: 40px;
        left: -15px;
    }
    
    .posts-grid,
    .archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .blog-card-link:hover .blog-card {
        transform: translateY(-5px);
    }
    
    .mobile-menu {
        width: 85%;
        max-width: 350px;
    }
    
    .scroll-to-top {
        left: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .special-offer-label {
        top: 12px;
        right: -6px;
        padding: 5px 20px 5px 12px;
        font-size: 0.75rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .features,
    .posts-section,
    .pricing-section {
        padding: 60px 0;
    }
    
    /* فوتر */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-middle {
        margin: 40px 0 30px;
        padding: 30px 0;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .license-badge {
        min-width: 120px;
        padding: 12px;
    }
    
    .license-badge img {
        width: 35px;
        height: 35px;
    }
    
    .license-images img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .header {
        margin: 10px 10px 0 10px;
        border-radius: 15px;
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* تنظیمات hero-badge برای موبایل کوچک */
    .hero-badge {
        padding: 6px 10px;
        min-width: 120px;
        gap: 8px;
    }
    
    .hero-badge-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .hero-badge-text strong {
        font-size: 0.9rem;
    }
    
    .hero-badge-text span {
        font-size: 0.65rem;
    }
    
    .hero-badge-1 {
        bottom: 10px;
        right: -5px;
    }
    
    .hero-badge-2 {
        top: 10px;
        right: -10px;
    }
    
    .hero-badge-3 {
        bottom: 10px;
        left: -5px;
    }
    
    .hero-badge-4 {
        top: 30px;
        left: -10px;
    }
    
    /* مخفی کردن یک یا دو badge در صفحات خیلی کوچک */
    @media (max-width: 400px) {
        .hero-badge-2,
        .hero-badge-4 {
            display: none;
        }
        
        .hero-badge-1,
        .hero-badge-3 {
            min-width: 110px;
            padding: 5px 8px;
        }
        
        .hero-badge-1 {
            bottom: 15px;
            right: -3px;
        }
        
        .hero-badge-3 {
            bottom: 15px;
            left: -3px;
        }
        
        .hero-main-img {
            border-radius: 20px;
            border-width: 4px;
        }
    }
    
    .mobile-menu {
        width: 90%;
        max-width: 300px;
    }
    
    .scroll-to-top {
        left: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .single-article {
        padding: 20px;
        border-radius: 20px;
    }
    
    .single-title {
        font-size: 1.5rem;
    }
    
    .single-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .footer {
        padding: 50px 0 15px;
        margin-top: 50px;
        border-radius: 30px 30px 0 0;
    }
    
    .footer-content h2 {
        font-size: 1.5rem;
    }
    
    .footer-middle {
        margin: 30px 0 20px;
        padding: 20px 0;
        gap: 20px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .license-badges {
        gap: 10px;
    }
    
    .license-badge {
        min-width: 100px;
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .license-badge span {
        font-size: 0.75rem;
    }
    
    .license-images {
        gap: 10px;
    }
    
    .license-images img {
        height: 40px;
        padding: 6px;
    }
    
    .special-offer-label {
        top: 10px;
        right: -5px;
        padding: 4px 15px 4px 10px;
        font-size: 0.7rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .features,
    .posts-section,
    .pricing-section {
        padding: 50px 0;
    }
}