﻿/* =========================
                   Design System: Tokens
                ========================== */
:root {
    --gold: #d4a574;
    --teal: #4a9c8f;
    --gray: #495057;
    --light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 28px;
    --text-2xl: 36px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--light);
    color: var(--gray);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    padding-right: 1.2rem;
}

/* =========================
                   Utilities
                ========================== */
.ds-shadow {
    box-shadow: var(--shadow);
}

.ds-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.ds-muted {
    color: #64748b;
}

.ds-accent {
    color: var(--teal);
}

.ds-title {
    font-weight: 700;
    color: var(--gray);
}

/* =========================
                   Layout: Header / Nav
                ========================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    padding: 12px 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
}

.nav-links {
    list-style: none;
    display: none;
    gap: 24px;
    margin: 0;
}

    .nav-links a {
        color: var(--gray);
        font-weight: 500;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: var(--teal);
        }

.nav-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

/* =========================
                   Section: Announcement
                ========================== */
.announcement-bar {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
}

    .announcement-bar a {
        color: white;
        text-decoration: underline;
        margin-right: 10px;
    }

/* =========================
                   Section: Hero
                ========================== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 16px;
}

    .hero h1 {
        font-size: clamp(28px, 5vw, 48px);
        font-weight: 700;
        margin-bottom: 16px;
    }

.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: #64748b;
    margin-bottom: 32px;
}

.domains {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.domain {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

    .domain:hover {
        border-color: var(--teal);
        background: var(--teal);
        color: white;
        transform: translateY(-2px);
    }

/* =========================
                   Section: Stats
                ========================== */
.stats {
    padding: 48px 0;
    background: var(--white);
}

.stat {
    padding: 24px 12px;
    background: var(--light);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

    .stat:hover {
        transform: translateY(-4px);
    }

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* =========================
                   General Sections
                ========================== */
.section {
    padding: 64px 0;
}

    .section:nth-of-type(even) {
        background: var(--white);
    }

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gray);
}

/* =========================
                   Slideshow
                ========================== */
.slideshow-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}



.slide-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 16px;
    max-width: 80%;
    box-shadow: var(--shadow);
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slide-prev {
    left: 16px;
}

.slide-next {
    right: 16px;
}

    .slide-prev:hover, .slide-next:hover {
        background: var(--teal);
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

.dots {
    text-align: center;
    padding: 24px 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

    .dot.active, .dot:hover {
        background-color: var(--teal);
        transform: scale(1.2);
    }

/* =========================
                   Permanent News
                ========================== */
.permanent-news {
    background: #fefce8;
    border-right: 6px solid #f59e0b;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

    .permanent-news h3 {
        color: #92400e;
        margin-bottom: 1rem;
    }

/* =========================
                   Note + News
                ========================== */
.dual-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-sidebar, .note-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.news-sidebar {
    order: -1;
}

.news-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .news-item:last-child {
        border-bottom: none;
    }

.news-title {
    font-weight: 600;
    font-size: 15px;
}

.news-time {
    color: #9ca3af;
    font-size: 13px;
}

/* =========================
                   Partners
                ========================== */
.partners-section {
    background: #f0f9ff;
    padding: 3rem 0;
}

.partners-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 24px;
}

.partners-container {
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: scrollPartners 30s linear infinite;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    height: 80px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

    .partner-logo:hover {
        opacity: 1;
        filter: grayscale(0%);
    }

/* =========================
                   Articles
                ========================== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-right: 4px solid var(--teal);
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    }

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-meta {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 16px;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.7;
}

/* =========================
                   Contact
                ========================== */
.contact-section {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    padding: 4rem 0;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--gold);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 12px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

    .contact-form input::placeholder, .contact-form textarea::placeholder {
        color: rgba(255,255,255,0.7);
    }

.contact-form button {
    background: var(--gold);
    color: #1e3a8a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

    .contact-form button:hover {
        background: #b45309;
        transform: translateY(-2px);
    }

/* =========================
                   Footer
                ========================== */
.footer {
    background: var(--gray);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* =========================
                   Responsive
                ========================== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .dual-section {
        flex-direction: row;
        gap: 48px;
    }

    .news-sidebar {
        order: initial;
        flex: 0 0 320px;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .contact-form button {
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 20px 12px;
    }

}



