body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

/* هدر */
.header-container {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.3s, border-color 0.3s;
}

.header-logo {
    height: 80px;
    object-fit: contain;
    max-width: 180px;
}

.header-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    font-size: 1.8rem;
}

/* نوار منوی آبی */
.menu-bar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 110, 255, 0.2);
    margin-top: 1.5rem;
    overflow: hidden;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #e6f7ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100px;
    height: 80px;
    text-align: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.menu-bar .nav-link {
    min-width: 70px;
}
@media (max-width: 992px) {
    .menu-bar {
        padding: 0.75rem;
    }
    .menu-bar .nav-link {
        width: 85px;
        height: auto;
        padding: 0.6rem 0.65rem;
    }
    .menu-bar .nav-link span {
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .header-container .d-flex.align-items-center.justify-content-between.w-100 {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .header-container .header-logo {
        height: 65px;
    }
    .header-container .header-title {
        font-size: 1.4rem;
        text-align: center;
    }
    .menu-bar .scroll-indicator-container {
        display: none;
    }
    #menu-scroll {
        padding: 0 4px;
    }
    .menu-bar .nav-link {
        width: 70px;
        gap: 0.25rem;
    }
    .menu-bar .nav-link span {
        font-size: 0.75rem;
    }
}
@media (max-width: 576px) {
    .menu-bar .nav-link {
        width: 60px;
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
    }
    .menu-bar .nav-link svg {
        width: 16px;
        height: 16px;
    }
    .header-container .header-title {
        font-size: 1.2rem;
    }
}

.nav-link i {
    width: 24px;
    height: 24px;
    fill: #e6f7ff;
    transition: fill 0.3s;
}

.nav-link:hover i {
    fill: #fff;
}

/* کارت خبر */
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-card img {
    border-radius: 12px 12px 0 0;
    height: 150px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1rem;
}

.news-card h5 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-card .date {
    color: #888;
    font-size: 0.85rem;
}

.section-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* ----------------------------------------
   فوتر - همیشه تیره باشد، مستقل از حالت صفحه
   ---------------------------------------- */

.footer {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #444;
}

.footer a,
.footer a:hover,
.footer a:focus {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: #007bff;
    transition: color 0.3s;
}

.footer h5,
.footer h6 {
    color: #fff;
    font-weight: 600;
}

.footer .section-title {
    color: #fff;
    border-color: #444;
}

.footer .list-group-item {
    background-color: #2e2e2e;
    color: #e0e0e0;
    border-color: #444;
    transition: background-color 0.3s;
}

.footer .list-group-item:hover {
    background-color: #3a3a3a;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer .hover-effect,
.footer .hover-link {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer .hover-effect:hover,
.footer .hover-link:hover {
    color: #007bff;
}

.footer .social-links a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: #007bff;
}

/* کپی‌رایت */
.footer .copyright {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0;
}

.footer .copyright a {
    color: #64b5f6;
}

.footer .copyright a:hover {
    color: #bbdefb;
}

/* حالت تیره */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .header-container {
    background-color: #1e1e1e;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .header-title {
    color: #e0e0e0;
}

body.dark-mode .section-title {
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .news-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .news-card h5 {
    color: #f0f0f0;
}

body.dark-mode .news-card .date {
    color: #aaa;
}

body.dark-mode .nav-link {
    color: #c5e1ff;
}

body.dark-mode .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .nav-link i {
    fill: #c5e1ff;
}

body.dark-mode .nav-link:hover i {
    fill: #fff;
}

body.dark-mode .album-group {
    background-color: #2e2e2e;
}

body.dark-mode .album-group .card-title {
    color: #64b5f6;
}

body.dark-mode .list-group-item {
    background-color: #2e2e2e;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

body.dark-mode .hover-link, body.dark-mode .hover-effect {
    color: #e0e0e0;
}

body.dark-mode .hover-link:hover, body.dark-mode .hover-effect:hover {
    color: #64b5f6 !important;
}

/* دکمه حالت تیره */
.theme-toggle-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s;
}

body.dark-mode .theme-toggle-btn {
    color: #e0e0e0;
}

body.dark-mode .theme-toggle-btn:hover {
    color: #64b5f6;
}