
/* ========== تنظیمات کلی ========== */
.wrapper {
    overflow-x: hidden;
}

.banner-container2 {
    background-image: url('../../../static/images/slider/01.jpg');
    background-size: cover;
    background-position: center;
    height: 44em;
    position: relative;
    border-radius: 0 0 30px 30px;
}

/* ========== استایل فرم انتخاب رده سنی ========== */
.container_ch {
    display: flex;
    justify-content: center;
    margin: 2em auto;
}

.filter-form {
    background: white;
    padding: 15px 25px;
    border-radius: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn_game {
    background: linear-gradient(135deg, #1a472a, #2d6a3b);
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_game:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.3);
}

/* ========== استایل جدول لیگ ========== */
.tabel_team {
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
}


.tabel_team_header {
    display: flex;
    background: linear-gradient(135deg, #1a472a, #2d6a3b);
    color: white;
    font-weight: 600;
    padding: 12px 0;
    min-width: 700px;
    width: 100%;
}

.table_team_data {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 14px;
    min-width: 60px;
}

.table_team_row {
    display: flex;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    min-width: 700px;
    width: 100%;
}

.table_team_row:hover {
    background: #f5f5f5;
  
}

.table_team_row .table_team_data {
    padding: 14px 8px;
}

/* رتبه‌های اول تا سوم */
.table_team_row:nth-child(1) .table_team_data:first-child {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a472a;
    font-weight: bold;
    border-radius: 30px;
    margin: 5px;
    display: inline-block;
    width: 40px;
    text-align: center;
}

.table_team_row:nth-child(2) .table_team_data:first-child {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #1a472a;
    font-weight: bold;
    border-radius: 30px;
    margin: 5px;
    display: inline-block;
    width: 40px;
    text-align: center;
}

.table_team_row:nth-child(3) .table_team_data:first-child {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #1a472a;
    font-weight: bold;
    border-radius: 30px;
    margin: 5px;
    display: inline-block;
    width: 40px;
    text-align: center;
}

.points-badge {
    background: linear-gradient(135deg, #1a472a, #2d6a3b);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

/* چیدمان دو ستونه */
.about-team-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin: 40px 0;
    padding: 0 15px;
}

.about-section {
    flex: 1;
    order: 2;
}

.tabel-container {
    flex: 1;
    order: 1;
}

.about-wrap {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.heading {
    font-size: 36px;
    color: #1a472a;
    text-align: center;
    display: block;
    margin: 40px 0 20px;
}

.heading .mx {
    color: #dd4b39;
}

/* ========== استایل برنامه مسابقات (طراحی زیبا و مدرن) ========== */
.latestResult {

    padding: 80px 0;
    position: relative;
}

.latestResult::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #f39c12, #00a65a);
}

.match-header {
    text-align: center;
    margin-bottom: 50px;
}

.match-header h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
}

.match-header h2 span {
    color: #ff6b6b;
}

.match-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* کارت مسابقات */
.matches-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.matches-list {
    flex: 2;
}

/* اسکرول برای لیست مسابقات */
.matches-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

/* استایل اسکرول بار */
.matches-list::-webkit-scrollbar {
    width: 6px;
}

.matches-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.matches-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b6b, #f39c12);
    border-radius: 10px;
}

.matches-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f39c12, #ff6b6b);
}

/* برای مرورگر فایرفاکس */
.matches-list {
    scrollbar-width: thin;
    scrollbar-color: #ff6b6b rgba(255, 255, 255, 0.1);
}

.sidebar-info {
    flex: 1;
}

.match-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.match-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.match-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a472a, #2d6a3b);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.team {
    flex: 1;
    text-align: center;
}

.team-home {
    text-align: right;
}

.team-away {
    text-align: left;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a472a;
    display: block;
    margin-bottom: 5px;
}

.match-score {
    text-align: center;
    min-width: 80px;
}

.score-badge {
    background: linear-gradient(135deg, #dd4b39, #c23321);
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
}

.vs-badge {
    background: linear-gradient(135deg, #f39c12, #e08e0b);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}

.match-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.match-date i {
    color: #2d6a3b;
}

.match-week {
    background: #e8f5e9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #1a472a;
    font-weight: 500;
}

.age-tag {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #1a472a;
    font-weight: 500;
}

/* باکس اطلاعات سمت راست */
.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.stats-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: white;
}

.stats-badge i {
    font-size: 14px;
    margin-left: 8px;
}

/* استایل گالری */









.gallery-info {
    padding: 20px;
}

.gallery-info h6 {
    font-size: 18px;
    color: #1a472a;
    margin-bottom: 10px;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    list-style: none;
}

.pagination .page-link {
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #1a472a;
    color: white;
}

.pagination .active .page-link {
    background: #1a472a;
    color: white;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .about-team-grid {
        flex-direction: column;
    }
    
    .matches-container {
        flex-direction: column;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .score-badge {
        padding: 5px 12px;
        font-size: 14px;
    }
        .about-section {
        flex: 1;
        order: 1;
    }
    
    .tabel-container {
        flex: 1;
        order: 2;
    }
}

@media (max-width: 768px) {
    .tabel-container form{
        display: flex;
    }
    .match-teams {
        flex-direction: column;
    }
    
    .team-home, .team-away {
        text-align: center;
    }
    
    .match-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .heading {
        font-size: 28px;
    }
    
    .tabel_team {
        overflow-x: auto;
    }
    
    .tabel_team_header,
    .table_team_row {
        min-width: 700px;
    }
}


/* ========== استایل گالری مانند صفحه gallery ========== */
.gallery {
    padding: 60px 0;
    background: #f8f9fa;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* گرید گالری */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* کارت گالری */
.gallery-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 71, 42, 0.1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 71, 42, 0.15);
    border-color: rgba(26, 71, 42, 0.3);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* بخش تصویر با گوشه‌های گرد */
.gallery-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    margin: 15px;
    margin-bottom: 0;
    border-radius: 16px;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 16px;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

/* اورلی روی تصویر */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 71, 42, 0.85);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 32px;
    color: white;
}

.gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* بخش اطلاعات */
.gallery-info {
    padding: 20px;
    text-align: center;
}

.gallery-info h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* آمار تصاویر */
.gallery-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    color: #1a472a;
    font-weight: 500;
}

.gallery-stats i {
    font-size: 12px;
}

/* صفحه‌بندی */
.pagination-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image-wrapper {
        height: 200px;
        margin: 12px;
    }
}
