:root {
    --primary-color: #9C0000;
    --secondary-color: #FFD700;
    --dark-color: #333333;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

.logo img {
    height: 50px;
    margin-left: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1500x600') no-repeat center center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}


/* Matches Table Styles */
.matches-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 2fr;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.match-row.header {
    background-color: #9C0000;
    color: white;
    font-weight: bold;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row.highlight {
    background-color: #fff9e6;
}

.match-date, .match-time, .match-teams, .match-competition {
    padding: 0.5rem;
    text-align: center;
}

/* Responsive matches table */
@media (max-width: 768px) {
    .match-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "date time"
            "teams teams"
            "competition competition";
        gap: 0.5rem;
    }
    
    .match-row.header {
        display: none;
    }
    
    .match-date {
        grid-area: date;
        font-weight: bold;
        color: #9C0000;
    }
    
    .match-time {
        grid-area: time;
        text-align: left;
    }
    
    .match-teams {
        grid-area: teams;
        font-weight: bold;
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
    
    .match-competition {
        grid-area: competition;
        font-size: 0.9rem;
        color: #666;
    }
}




/* Features Section */
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-img {
    height: 200px;
    background-color: #ddd;
    background-position: center;
    background-size: cover;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Upcoming Matches */
.matches {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.match-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.match-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.match-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.match-content {
    padding: 1.5rem;
    text-align: center;
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background-color: #ddd;
    border-radius: 50%;
}

.vs {
    font-weight: bold;
    margin: 0 1rem;
}

.match-info {
    margin: 1rem 0;
}

/* Tickets Section */
.tickets {
    padding: 4rem 0;
}

.ticket-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    width: 200px;
}

.search-box button {
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
}

.ticket-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ticket-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ticket-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.ticket-content {
    padding: 1.5rem;
}

.ticket-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
    text-align: center;
}

.ticket-features {
    list-style: none;
    margin: 1rem 0;
}

.ticket-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.ticket-features li:last-child {
    border-bottom: none;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-section, .audience-gallery, .membership-benefits {
    margin-top: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-date {
    display: block;
    margin-top: 1rem;
    color: #777;
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 150px;
    background-color: #ddd;
    border-radius: 8px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
}