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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #1a237e;
}

a {
    text-decoration: none;
    color: #1a237e;
    transition: color 0.3s;
}

a:hover {
    color: #3949ab;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: #1a237e;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a.active {
    background-color: #e8eaf6;
    color: #1a237e;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Live Score Section */
.live-score {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.live-score h2 {
    margin-bottom: 30px;
}

#match-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #f5f5f5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-match {
    padding: 30px;
}

.match-info {
    padding: 20px;
}

.players {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player .name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.player .score {
    font-size: 36px;
    font-weight: 700;
    color: #1a237e;
}

.vs {
    font-size: 20px;
    font-weight: 700;
    color: #757575;
}

.match-details {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* About Section */
.about {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.about p {
    margin-bottom: 15px;
}

/* Latest News Section */
.latest-news {
    padding: 50px 0;
    background-color: #fff;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.news-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.news-date {
    background-color: #1a237e;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
}

.news-item h3 {
    padding: 15px 15px 10px;
}

.news-item p {
    padding: 0 15px 15px;
}

.read-more {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 5px 10px;
    background-color: #e8eaf6;
    border-radius: 4px;
    font-weight: 500;
}

.all-news {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a237e;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.all-news:hover {
    background-color: #3949ab;
    color: #fff;
}

/* News Page */
.page-header {
    background-color: #1a237e;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.page-header h2 {
    color: #fff;
    margin: 0;
}

.news-page {
    padding: 50px 0;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination button {
    margin: 0 5px;
    padding: 8px 15px;
    background-color: #e8eaf6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button.active {
    background-color: #1a237e;
    color: #fff;
}

.pagination button:hover:not(.active) {
    background-color: #c5cae9;
}

/* Results Page */
.results-page {
    padding: 50px 0;
}

.year-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.year-tab {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #e8eaf6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.year-tab.active {
    background-color: #1a237e;
    color: #fff;
}

.results-year {
    display: none;
}

.results-year.active {
    display: block;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-table th, .results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background-color: #e8eaf6;
    font-weight: 700;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f1f1f1;
}

/* News Item Page */
.news-item-page {
    padding: 50px 0;
}

.news-item-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0 0 20px;
}

.news-item-header {
    margin-bottom: 20px;
}

.news-item-header .news-date {
    background-color: #1a237e;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    display: inline-block;
}

.news-item-header h2 {
    padding: 20px 20px 0;
    font-size: 28px;
}

.news-item-content {
    padding: 0 20px 20px;
    line-height: 1.8;
}

.news-item-content p {
    margin-bottom: 15px;
}

.news-item-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-to-news {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e8eaf6;
    color: #1a237e;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.back-to-news:hover {
    background-color: #c5cae9;
}

/* Footer */
footer {
    background-color: #1a237e;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-info h3, .footer-contact h3, .footer-social h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.social-icons {
    display: flex;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
