@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;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --text: #334155;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    
    --radius: 20px;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--light);
    color: var(--text);
    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%; }

/* --- دکمه‌ها --- */
.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; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* --- هدر --- */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: 15px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; width: 50px; background: var(--white); padding: 5px; border-radius: 50%; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
/* --- منوی هدر --- */
.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu ul {
    display: flex; /* کلید حل مشکل: افقی کردن لیست */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* فاصله بین آیتم‌ها */
}

.nav-menu li {
    display: inline-block; /* اطمینان از کنار هم بودن */
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark);
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* خط زیر لینک در هاور */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ریسپانسیو (مخفی کردن در موبایل) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* هیرو */
.hero { height: 80vh; min-height: 600px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(79, 70, 229, 0.7)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 900; line-height: 1.3; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }

/* تایم لاین */
.timeline-section { padding: 80px 0; background: var(--white); }
.timeline { display: flex; justify-content: space-between; position: relative; margin-top: 40px; text-align: center; }
.timeline::before { content: ''; position: absolute; top: 20px; left: 50px; right: 50px; height: 4px; background: var(--light); z-index: 0; border-radius: 4px; }
.timeline-item { position: relative; z-index: 1; flex: 1; }
.t-icon { width: 45px; height: 45px; background: var(--white); border: 4px solid var(--primary); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto 15px; transition: 0.3s; }
.timeline-item:hover .t-icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.t-date { font-weight: 700; color: var(--dark); display: block; margin-bottom: 5px; }
.t-label { font-size: 0.9rem; color: var(--gray); }

/* اخبار */
.news-section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; color: var(--dark); font-weight: 800; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.4s; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.news-img { height: 200px; width: 100%; object-fit: cover; }
.news-body { padding: 25px; }
.news-title { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.news-meta { font-size: 0.85rem; color: var(--gray); margin-top: 15px; border-top: 1px solid var(--light); padding-top: 15px; display: flex; justify-content: space-between; }

/* استایل کارت‌های بلاگ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 50px; }
.post-card { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); transition: 0.4s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.post-img-link { display: block; overflow: hidden; height: 220px; }
.post-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; border-radius: 0; }
.post-card:hover .post-img { transform: scale(1.1); }
.post-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.post-cat { color: var(--primary); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; display: block; text-transform: uppercase; }
.post-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; line-height: 1.4; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--gray); font-size: 0.95rem; margin-bottom: 25px; flex: 1; }
.post-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 20px; color: #94a3b8; font-size: 0.85rem; margin-top: auto; }

/* استایل صفحه تکی */
.single-container { max-width: 900px; margin: 40px auto 80px; padding: 0 20px; }
.single-article { background: #fff; border-radius: 30px; padding: 50px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.single-header { text-align: center; margin-bottom: 40px; }
.single-cat { color: var(--primary); font-weight: bold; margin-bottom: 10px; display: block; background: #eef2ff; display: inline-block; padding: 5px 15px; border-radius: 50px; }
.single-title { font-size: 2.5rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px; color: var(--dark); }
.single-meta { display: flex; justify-content: center; gap: 30px; color: var(--gray); font-size: 0.95rem; }
.single-img-box { margin-bottom: 40px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.single-content { font-size: 1.15rem; line-height: 2; color: var(--text); }
.single-content h2 { font-size: 1.8rem; font-weight: 800; margin-top: 40px; margin-bottom: 20px; color: var(--dark); border-right: 4px solid var(--primary); padding-right: 15px; }
.single-content img { border-radius: 15px; margin: 30px 0; box-shadow: var(--shadow-sm); max-width: 100%; height: auto; }

/* استایل صفحه ثبت اثر */
.submit-box { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 700px; margin: -75px auto 50px; position: relative; z-index: 10; border: 1px solid var(--border); }
.label { font-weight: 700; margin-bottom: 8px; display: block; color: var(--dark); }
.form-control { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 10px; background: #f8fafc; transition: 0.3s; font-family: inherit; font-size: 1rem; }
.form-control:focus { border-color: var(--primary); background: var(--white); }

/* --- فوتر --- */
.footer { background: var(--dark); color: #fff; padding: 60px 0 20px; margin-top: 100px; }
.footer h3 { color: var(--white); margin-bottom: 20px; }

/* --- استایل بخش جوایز (NEW) --- */
.awards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px;
}
.award-card {
    background: #fff; padding: 30px 20px; border-radius: 20px; text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; transition: 0.3s;
}
.award-card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary);
}
.award-icon {
    font-size: 3rem; margin-bottom: 15px; background: #fffbeb; width: 80px; height: 80px;
    line-height: 80px; border-radius: 50%; margin: 0 auto 20px;
}
.award-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.award-desc { color: #059669; font-weight: 700; font-size: 1rem; }

/* --- استایل بخش حامیان (NEW) --- */
.sponsors-grid {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 30px;
}
.sponsor-item {
    width: 150px; height: 100px; display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 15px; padding: 15px; border: 1px solid #eee;
    transition: 0.3s; filter: grayscale(100%); opacity: 0.7;
}
.sponsor-item:hover {
    filter: grayscale(0%); opacity: 1; transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.sponsor-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* --- استایل بخش داوران --- */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.judge-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.judge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.judge-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.judge-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.judge-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--dark);
}

.judge-role {
    font-size: 0.85rem;
    color: var(--gray);
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 50px;
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .single-article { padding: 25px; }
    .single-title { font-size: 1.8rem; }
    .submit-box { margin-top: -50px; padding: 25px; }
}