﻿:root {
    --primary-blue: #1a3e72;
    --secondary-blue: #2a56a5;
    --gold-accent: #d4af37;
    --dark-gray: #333333;
    --light-gray: #f8f9fa;
}

body {
    padding-top : 60px;
    font-family: 'Vazir', 'B Nazanin', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-gray);
}

/* Fix to Top */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff; /* رنگ پس زمینه */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* استایل دکمه بستن در موبایل */
.mobile-close-btn {
    display: none;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    color: #333;
    font-size: 1.5rem;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 0 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1020;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

        .navbar-collapse.show {
            max-height: 100vh;
            overflow-y: auto;
        }

    .mobile-close-btn {
        display: block;
    }


    /* اضافه کردن فضای خالی برای محتوا به دلیل fixed بودن نوار */
    body {
        padding-top: 70px;
    }
}
@media(min-width:768px){
    #menuToggle {
        display : none;
    }
}
/* هدر رسمی */
.official-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gold-accent);
}

.official-logo {
    height: 30px;
    margin-left: 10px;
}

/* نوبار اصلی */
.main-navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-blue);
    padding: 0.75rem 1.25rem;
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        color: var(--secondary-blue);
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 1.25rem;
            left: 1.25rem;
            height: 3px;
            background-color: var(--gold-accent);
        }

/* بخش اصلی */
.main-content {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin: 2rem auto;
    padding: 2rem;
    border-top: 4px solid var(--gold-accent);
}

.page-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* کارت‌های سازمانی */
.official-card {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border-top: 3px solid var(--gold-accent);
}

    .official-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.card-header {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    padding: 1rem;
}

/* فوتر رسمی */
.official-footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--gold-accent);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 2px;
        background-color: var(--gold-accent);
    }

.footer-link {
    color: #d1d1d1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

    .footer-link:hover {
        color: white;
        padding-right: 5px;
    }

.contact-info {
    color: #d1d1d1;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--gold-accent);
    margin-left: 8px;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s;
}

    .social-badge:hover {
        background-color: var(--gold-accent);
        color: var(--primary-blue);
    }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: #aaa;
    font-size: 0.85rem;
}

