﻿/* ===== متغیرهای رنگی ===== */
:root {
    --primary-color: #0B4F6C;
    --primary-light: #1A6D8A;
    --primary-dark: #083C52;
    --secondary-color: #F4B400;
    --bg-light: #FFFFFF;
    --bg-offwhite: #F8FAFE;
    --text-dark: #1E2B37;
    --text-muted: #546E7A;
    --border-light: #E2E8F0;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* ===== ناوبری ===== */
.navbar {
    background-color: var(--bg-light) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

    .navbar-brand i {
        color: var(--secondary-color);
        margin-left: 8px;
        font-size: 1.8rem;
    }

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
    }

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-primary-custom:hover {
        background-color: transparent;
        color: var(--primary-color) !important;
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(11, 79, 108, 0.15);
    }

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-color) !important;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .btn-outline-custom:hover {
        background-color: var(--primary-color);
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(11, 79, 108, 0.15);
    }

/* ===== هدر صفحه ===== */
.page-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F8FF 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

    .page-title span {
        color: var(--primary-color);
    }

/* ===== استایل اصلاح شده Breadcrumb ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 1rem 0 0;
    justify-content: center;
}

.breadcrumb-item , .breadcrumb-item::after {
    content: "/";
    padding: 0 0.3rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .breadcrumb-item a:hover {
        color: var(--primary-color);
    }

.breadcrumb-item.active {
    color: var(--primary-color);
}
.breadcrumb-item-active {
    color: var(--primary-color);
}
/* ===== تب‌های دسته‌بندی ===== */
.category-tabs {
    padding: 40px 0 20px;
    background-color: var(--bg-light);
}

.nav-tabs-custom {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: none;
    flex-wrap: wrap;
}

    .nav-tabs-custom .nav-link {
        background: white;
        border: 2px solid var(--primary-color);
        border-radius: 60px !important;
        padding: 0.9rem 2.2rem !important;
        font-weight: 700;
        color: var(--primary-color);
        transition: all 0.3s ease;
        font-size: 1.05rem;
    }

        .nav-tabs-custom .nav-link i {
            margin-left: 10px;
            font-size: 1.2rem;
        }

        .nav-tabs-custom .nav-link:hover {
            background: var(--primary-color);
            color: white !important;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(11, 79, 108, 0.2);
        }

        .nav-tabs-custom .nav-link.active {
            background: var(--primary-color);
            color: white !important;
            border-color: var(--primary-color);
            box-shadow: 0 10px 25px rgba(11, 79, 108, 0.3);
        }

/* ===== کارت‌های اخبار ===== */
.news-section {
    padding: 40px 0 80px;
    background-color: var(--bg-light);
}

.news-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 45px rgba(11, 79, 108, 0.15);
    }

.news-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.category-news {
    background: var(--primary-color);
    color: white;
}

.category-announce {
    background: var(--warning);
    color: white;
}

.category-event {
    background: var(--success);
    color: white;
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0,0.1);
    
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content {
    padding: 1.8rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.2rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .news-author i {
        color: var(--secondary-color);
    }

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

    .read-more:hover {
        gap: 10px;
        color: var(--secondary-color);
    }

/* ===== کارت‌های رویداد ===== */
.event-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    height: 100%;
}

    .event-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 45px rgba(11, 79, 108, 0.15);
    }

.event-date-box {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 20px 20px 0;
}

    .event-date-box .day {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .event-date-box .month {
        font-size: 1rem;
        font-weight: 600;
    }

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.event-location, .event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

    .event-location i, .event-time i {
        color: var(--secondary-color);
        width: 18px;
    }

.event-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.8rem 0 1.2rem;
    line-height: 1.6;
}

.btn-register {
    background: var(--primary-color);
    color: white;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-register:hover {
        background: transparent;
        color: var(--primary-color);
    }

/* ===== خبر ویژه ===== */
.featured-news {
    padding: 30px 0 30px;
    background-color: var(--bg-offwhite);
    border-bottom: 1px solid var(--border-light);
}

.featured-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(11, 79, 108, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

    .featured-card:hover {
        transform: translateY(-5px);
    }

.featured-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.featured-content {
    padding: 2rem;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.featured-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===== فوتر ===== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 70px 0 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.2rem;
}

    .footer-logo i {
        color: var(--secondary-color);
        margin-left: 8px;
    }

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--secondary-color);
        color: var(--primary-dark);
        transform: translateY(-5px);
    }

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 3px;
        background: var(--secondary-color);
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 1rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .footer-links a:hover {
            color: white;
            padding-right: 8px;
        }

    .footer-links i {
        color: var(--secondary-color);
        font-size: 0.8rem;
    }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .featured-img {
        height: 220px;
    }

    .event-date-box .day {
        font-size: 1.5rem;
    }

    .nav-tabs-custom .nav-link {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.9rem;
    }
}
