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

:root {
    --primary-color: #1a5276;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: var(--dark-color);
    background-image: url('bg_pattern.png');
    background-repeat: repeat;
}

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

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 20px 0;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.tournament-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.tournament-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-top: 8px;
    margin-bottom: 20px;
}


.info-card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease;
}

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

.info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}


.trophy-animation {
    position: relative;
    height: 100px;
    margin: 20px auto;
}

.trophy {
    width: 80px;
    height: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Info Card */
.info-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.info-card p {
    font-size: 1.1rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text in info cards */
}

.icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Teams Section */
.teams-section {
    margin: 50px 0;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.team-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.team-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.team-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.team-card p {
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Fixture Styles */
.fixtures-section {
    margin: 50px 0;
}

.fixture-toggle-btns {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-btn {
    background-color: var(--light-color);
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.fixture-content {
    display: none;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.fixture-content.active {
    display: block;
}

.fixture-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.matches {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.match:hover {
    transform: scale(1.02);
    background-color: #f8f9fa;
}

.match-date {
    text-align: center;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

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

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

.vs {
    padding: 0 15px;
    color: var(--dark-color);
    font-weight: bold;
}

.final-match {
    background-color: #fffaf0;
    border: 2px solid var(--accent-color);
}

/* Countdown Section */
.countdown-section {
    margin: 50px 0;
    text-align: center;
    padding: 40px 20px; /* Added padding */
    background: linear-gradient(to right, #002244, #004488); /* Added gradient */
    color: #fff; /* Changed text color */
    border-radius: 10px; /* Added border-radius */
}

.countdown-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white; /* Ensure heading color is white */
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Increased gap */
    flex-wrap: wrap;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.countdown-item span {
    font-size: 2.5rem; /* Increased font size */
    font-weight: bold;
    display: block;
}

.countdown-item p {
    margin-top: 5px;
    font-size: 1rem; /* Adjusted font size */
    letter-spacing: 1px;
    text-align: center; /* Ensure text is centered */
}


/* CTA Section */
.cta-section {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cta-button.pulsing {
  animation: pulse 0.5s ease-in-out;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--dark-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-title {
        font-size: 2rem;
    }

    .teams-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .countdown-container {
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 70px;
    }

    .fixture-toggle-btns {
        flex-wrap: wrap;
    }
     .info-card {
        width: 100%; /* Make info cards full width on smaller screens */
    }
    .tournament-info {
        flex-direction: column; /* Stack info cards vertically */
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .tournament-title {
        font-size: 1.7rem;
    }

    .teams-container {
        grid-template-columns: 1fr;
    }

    .toggle-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

