﻿/* =========================================
   SPORTS PAGE - COMPACT PROFESSIONAL DESIGN
   BLACK & WHITE THEME
   ========================================= */

.sports-page {
    min-height: 100vh;
    background: #ffffff;
    padding-top: 0;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PAGE TITLE SECTION
   ========================================= */
.page-title-section {
    background: #000000;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

    .page-title-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
        animation: patternMoveSports 20s ease-in-out infinite;
    }

@keyframes patternMoveSports {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    /* Title Animation */
    opacity: 0; /* Start hidden */
    animation: titleFadeIn 1s ease-out 0.2s forwards;
}

/* =========================================
   COMMON CAROUSEL STYLES
   ========================================= */
.sports-categories, .achievements-timeline {
    padding: 60px 20px;
}

.achievements-timeline {
    background: #f8fafc;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 40px;
    /* Header Animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

    .section-header-modern h2 {
        font-size: 2.2rem;
        font-weight: 800;
        color: #000000;
        margin-bottom: 10px;
    }

    .section-header-modern p {
        font-size: 1rem;
        color: #64748b;
    }

.carousel-container-modern {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}

.carousel-track-wrapper {
    width: 100%;
    overflow: visible; /* Show shadows */
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    align-items: stretch;
}

/* =========================================
   1. SPORTS CATEGORY CARD (CAROUSEL)
   ========================================= */
.sports-card-carousel {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards visible */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    /* Base state for JS animation */
    opacity: 0;
}

    .sports-card-carousel:hover {
        transform: translateY(-8px);
        border-color: #000;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.cat-icon-carousel {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #000;
}

    .cat-icon-carousel svg {
        width: 100%;
        height: 100%;
    }

.sports-card-carousel h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #000;
}

.sports-card-carousel p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* =========================================
   2. ACHIEVEMENT CARD (CAROUSEL)
   ========================================= */
.achievement-card-carousel {
    flex: 0 0 calc(33.333% - 14px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    /* Base state for JS animation */
    opacity: 0;
}

    .achievement-card-carousel:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border-color: #000;
    }

.ach-img-wrapper {
    width: 100%;
    height: 200px;
    background: #000;
    position: relative;
    overflow: hidden;
}

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

.achievement-card-carousel:hover img {
    transform: scale(1.05);
}

.ach-medal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    border: 2px solid #000;
    z-index: 2;
    background: #fff;
    color: #000;
}

    .ach-medal.gold {
        background: #000;
        color: #fff;
        border-color: #fff;
    }

    .ach-medal.silver {
        background: #94a3b8;
        color: #fff;
        border-color: #fff;
    }

    .ach-medal.bronze {
        background: #64748b;
        color: #fff;
        border-color: #fff;
    }

.ach-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ach-year {
    align-self: flex-start;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-radius: 4px;
}

.ach-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
}

.ach-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .page-title {
        font-size: 2.5rem;
    }

    /* 2 Cards per row */
    .sports-card-carousel, .achievement-card-carousel {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    /* 1 Card per row (Mobile) */
    .sports-card-carousel, .achievement-card-carousel {
        flex: 0 0 100%;
    }

    /* Enable Horizontal Scroll on Mobile */
    .carousel-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .sports-card-carousel, .achievement-card-carousel {
        scroll-snap-align: center;
    }
}
