/* Base styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --section-padding: 4rem 0;
}

/* General styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

section {
    padding: var(--section-padding);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../assets/images/R.jpeg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Featured Sports Section */
.featured-sports {
    background-color: var(--white);
}

.featured-sports {
    padding: 4rem 0;
    background-color: #f5f6f8;
}

.featured-sports h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sport-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.sport-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sport-card:hover .sport-image {
    transform: scale(1.05);
}

.sport-content {
    padding: 1.5rem;
    background: var(--white);
}

.sport-content h3 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.sport-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.explore-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.explore-link:hover {
    gap: 0.75rem;
}

.explore-link:hover svg {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .featured-sports {
        padding: 3rem 0;
    }

    .featured-sports h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .sports-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }

    .card-image {
        height: 200px;
    }

    .sport-content {
        padding: 1.25rem;
    }

    .sport-content h3 {
        font-size: 1.25rem;
    }

    .sport-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .featured-sports h2 {
        font-size: 1.75rem;
    }

    .sports-grid {
        padding: 0 0.75rem;
    }

    .card-image {
        height: 180px;
    }
}

/* Upcoming Events Section */
.upcoming-events {
    background-color: #fff;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-description {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.stats-counter-grid {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.counter-box {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.2);
}

.counter-box:hover::before {
    opacity: 1;
}

.counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.counter-number {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    background-clip: text; /* fallback for non-webkit browsers */
    -webkit-background-clip: text;
    color: transparent; /* fallback for non-webkit browsers */
    -webkit-text-fill-color: transparent;
}

.counter-plus {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
    color: #ffffff;
    opacity: 0.9;
    transform: translateY(-5px);
}

.counter-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Responsive styles for counter grid */
@media (max-width: 1200px) {
    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-counter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .counter-box {
        padding: 1.5rem;
    }

    .counter-number {
        font-size: 2.8rem;
    }

    .counter-label {
        font-size: 1rem;
    }
}

.events-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-item:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.event-date .date {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 3px;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta i {
    color: var(--primary-color);
    font-size: 1rem;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover {
    gap: 0.75rem;
}

.learn-more:hover i {
    transform: translateX(3px);
}

/* Responsive styles for events section */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upcoming-events {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .events-card {
        padding: 1.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }

    .events-card {
        padding: 1rem;
    }

    .event-content {
        padding: 1.25rem;
    }

    .event-content h3 {
        font-size: 1rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: inline-block;
    margin-right: 15px;
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--white);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 2rem;
    }
}

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

    .hero p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
