@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.ttf') format('truetype'),
         url('../fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.ttf') format('truetype'),
         url('../fonts/Vazir.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    direction: rtl;
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazir', Tahoma, sans-serif;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 20px;
    font-weight: bold;
}

.logo-img {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    font-weight: bold;
    font-size: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.date-display {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.navbar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar a {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 13px;
}

.navbar a:hover {
    background: #1e3c72;
    color: white;
}

.announcement-bar {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-label {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.announcement-text {
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.slideshow {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    position: relative;
    height: 400px;
    background: #ddd;
    align-items: center;
    justify-content: center;
}

.slide.active {
    display: flex;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s;
}

.slide-nav:hover {
    background: white;
}

.slide-nav.prev { right: 10px; }
.slide-nav.next { left: 10px; }

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 20px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e3c72;
}

.news-card p {
    color: #666;
    font-size: 13px;
}

.news-card .date {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.league-table {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.league-table h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

.league-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.league-table th {
    background: #1e3c72;
    color: white;
    padding: 10px;
    text-align: center;
}

.league-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.league-table tr:hover {
    background: #f9f9f9;
}

.footer {
    background: #1e3c72;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    font-size: 13px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    .main-content {
        grid-template-columns: 1fr;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .slide {
        height: 250px;
    }
    .slide-content h2 {
        font-size: 18px;
    }
    .news-card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 16px;
    }
    .slide {
        height: 200px;
    }
    .news-card img {
        height: 120px;
    }
}
