/* ==========================================
   متغیرهای رنگی - تم روشن و قرمز رسمی
========================================== */
:root {
    --primary-red: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FCA5A5;
    --secondary-red: #EF4444;
    --accent-gold: #D4AF37;
    --light-bg: #FFFFFF;
    --light-card: #F8FAFC;
    --light-hover: #F1F5F9;
    --cream-bg: #FFFBF5;
    --text-dark: #1E293B;
    --text-gray: #475569;
    --text-light: #64748B;
    --border-light: #E2E8F0;
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   ریست و تنظیمات پایه
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   پس‌زمینه رسمی
========================================== */
.official-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(220, 38, 38, 0.02) 0%, 
        rgba(255, 255, 255, 0) 30%,
        rgba(212, 175, 55, 0.02) 100%
    );
}

.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    background-image: 
        repeating-linear-gradient(
            90deg,
            var(--primary-red) 0px,
            var(--primary-red) 1px,
            transparent 1px,
            transparent 100px
        );
}

/* ==========================================
   دکمه بازگشت
========================================== */
.back-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-button:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: translateX(5px);
}

.back-button.scrolled {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.back-button i {
    transition: var(--transition);
}

.back-button:hover i {
    transform: translateX(3px);
}

/* ==========================================
   هدر صفحه
========================================== */
.page-header {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    z-index: 1;
    background: linear-gradient(180deg, 
        rgba(220, 38, 38, 0.03) 0%, 
        transparent 100%
    );
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
}

/* نماد رسمی */
.header-emblem {
    margin-bottom: 35px;
}

.emblem-outer {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 50%;
    padding: 5px;
    box-shadow: 
        0 10px 40px rgba(220, 38, 38, 0.3),
        inset 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.emblem-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-red);
    transition: transform 0.8s ease;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.header-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 40px;
}

/* تزئین هدر */
.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.decoration-wing {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.decoration-wing.right {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.decoration-center {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), #C5A028);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================
   محتوای اصلی
========================================== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

/* انیمیشن بخش‌ها */
.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   بخش معرفی
========================================== */
.intro-section {
    margin-bottom: 80px;
}

.intro-wrapper {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.intro-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), transparent);
    border-radius: 0 0 0 100%;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

.intro-content {
    position: relative;
    z-index: 1;
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--text-gray);
    text-align: justify;
    margin-bottom: 20px;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   عنوان بخش‌ها
========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.header-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-light));
}

.header-line:last-child {
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.section-title i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

/* ==========================================
   بخش وظایف
========================================== */
.duties-section {
    margin-bottom: 100px;
}

.duties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.duty-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.animate-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.duty-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.duty-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(220, 38, 38, 0.06);
    font-family: 'Arial', sans-serif;
    line-height: 1;
}

.duty-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    transition: var(--transition);
}

.duty-card:hover .duty-icon {
    transform: scale(1.1) rotate(5deg);
}

.duty-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.duty-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-gray);
}

/* ==========================================
   بخش رئیس شورا
========================================== */
.chairman-section {
    margin-bottom: 100px;
}

.chairman-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.chairman-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
}

/* تصویر رئیس */
.chairman-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.chairman-card:hover .image-container img {
    transform: scale(1.05);
}

.image-frame {
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    border: 3px solid var(--accent-gold);
    border-radius: 24px;
    pointer-events: none;
}

.chairman-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-gold), #C5A028);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    white-space: nowrap;
}

.chairman-badge i {
    font-size: 1.2rem;
}

/* اطلاعات رئیس */
.chairman-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.name-section {
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-light);
}

.chairman-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.chairman-title {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 600;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: var(--light-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.credential-item:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: var(--primary-light);
    transform: translateX(-5px);
}

.credential-item i {
    color: var(--primary-red);
    font-size: 1.3rem;
    width: 25px;
}

.chairman-quote {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03), rgba(212, 175, 55, 0.03));
    border-radius: 16px;
    border-right: 4px solid var(--primary-red);
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(220, 38, 38, 0.15);
}

.chairman-quote p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
    font-style: italic;
    padding-right: 30px;
}

/* ==========================================
   بخش اعضا
========================================== */
.members-section {
    margin-bottom: 100px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-row {
    display: grid;
    grid-template-columns: 70px 1fr auto auto 50px;
    align-items: center;
    gap: 25px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.member-row:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.member-row.expanded {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02), white);
}

.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-light);
    transition: var(--transition);
}

.member-row:hover .member-avatar {
    border-color: var(--primary-red);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    min-width: 0;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.member-position {
    font-size: 0.95rem;
    color: var(--text-light);
}

.member-expertise {
    display: flex;
    align-items: center;
}

.expertise-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.member-experience {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: nowrap;
}

.member-experience i {
    color: var(--accent-gold);
}

.member-expand {
    width: 50px;
    height: 50px;
    background: var(--light-card);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-gray);
}

.member-expand:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.member-row.expanded .member-expand {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* پنل جزئیات عضو */
.member-detail-panel {
    background: white;
    border: 2px solid var(--primary-red);
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin-top: -15px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.member-detail-panel.visible {
    max-height: 500px;
    padding: 30px;
}

.detail-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
}

.detail-photo {
    width: 150px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.detail-section h4 i {
    color: var(--primary-red);
}

.detail-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.responsibilities-list {
    list-style: none;
}

.responsibilities-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.responsibilities-list li i {
    color: var(--primary-red);
    margin-top: 5px;
}

/* ==========================================
   بخش جلسات
========================================== */
.meetings-section {
    margin-bottom: 100px;
}

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.meeting-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.meeting-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.meeting-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.meeting-info {
    flex: 1;
}

.meeting-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.meeting-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

.meeting-stat {
    text-align: center;
    padding: 15px 25px;
    background: var(--light-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.meeting-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
    font-family: 'Arial', sans-serif;
}

.meeting-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================
   بخش آمار
========================================== */
.stats-section {
    margin-bottom: 80px;
}

.stats-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center;
    padding: 0 30px;
}

.stat-item .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

/* ==========================================
   فوتر
========================================== */
.page-footer {
    background: white;
    border-top: 2px solid var(--border-light);
    padding: 50px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-emblem {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.footer-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================
   ریسپانسیو
========================================== */

/* تبلت بزرگ */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .chairman-card {
        grid-template-columns: 320px 1fr;
        gap: 40px;
        padding: 40px;
    }

    .duties-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .stats-wrapper {
        gap: 30px;
        padding: 40px;
    }
}

/* تبلت */
@media (max-width: 992px) {
    .chairman-card {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .chairman-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .member-row {
        grid-template-columns: 60px 1fr auto 45px;
        gap: 15px;
        padding: 15px 20px;
    }

    .member-expertise {
        display: none;
    }

    .member-experience {
        display: none;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-photo {
        margin: 0 auto;
    }

    .detail-info {
        grid-template-columns: 1fr;
    }

    .stats-wrapper {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 45%;
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .back-button {
        top: 20px;
        right: 20px;
        padding: 12px 20px;
    }

    .back-button span {
        display: none;
    }

    .page-header {
        padding: 120px 0 70px;
    }

    .emblem-outer {
        width: 100px;
        height: 100px;
    }

    .emblem-inner {
        font-size: 2.5rem;
    }

    .header-title {
        font-size: 2.5rem;
    }

    .header-subtitle {
        font-size: 1.1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
    }

    .header-line {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .intro-wrapper {
        padding: 35px;
    }

    .duties-grid {
        grid-template-columns: 1fr;
    }

    .duty-card {
        padding: 30px;
    }

    .chairman-card {
        padding: 25px;
    }

    .chairman-name {
        font-size: 2rem;
    }

    .member-row {
        grid-template-columns: 55px 1fr 40px;
        gap: 12px;
        padding: 12px 15px;
    }

    .member-avatar {
        width: 55px;
        height: 55px;
    }

    .member-name {
        font-size: 1.1rem;
    }

    .member-position {
        font-size: 0.85rem;
    }

    .member-expand {
        width: 40px;
        height: 40px;
    }

    .meetings-grid {
        grid-template-columns: 1fr;
    }

    .meeting-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .stats-wrapper {
        padding: 30px;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .intro-wrapper {
        padding: 25px;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .duty-card {
        padding: 25px;
    }

    .duty-title {
        font-size: 1.2rem;
    }

    .chairman-card {
        padding: 20px;
    }

    .chairman-name {
        font-size: 1.7rem;
    }

    .chairman-quote p {
        font-size: 1rem;
        padding-right: 20px;
    }

    .member-detail-panel.visible {
        padding: 20px;
    }
}