/* ==================== Past Competitions Page ==================== */

/* Nav overrides: white background by default (non-home pages) */
body.past-layout .nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.past-layout .nav-logo {
    color: #1a1a1a;
}

body.past-layout .nav-links a {
    color: #1a1a1a;
}

body.past-layout .nav-links a::after {
    background-color: #274B92;
}

body.past-layout .nav-links a:hover {
    color: #274B92;
}

body.past-layout .nav.scrolled .nav-logo {
    color: #1a1a1a;
}

body.past-layout .nav-lang {
    color: #1a1a1a;
}

body.past-layout .nav-lang:hover {
    color: #274B92;
}

body.past-layout .nav-links::before {
    background: rgba(39, 75, 146, 0.15);
}

/* Hero */
.past-hero {
    position: relative;
    overflow: hidden;
    height: 620px;
}

.past-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.past-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22,35,60,0.82) 0%, rgba(22,35,60,0.55) 50%, rgba(22,35,60,0.35) 100%);
}

.past-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-hero-swiper {
    width: 100%;
    height: 620px;
    position: relative;
}

.past-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.past-hero-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22,35,60,0.82) 0%, rgba(22,35,60,0.55) 50%, rgba(22,35,60,0.35) 100%);
}

.past-hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.past-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.past-hero-overlay .container {
    max-width: 640px;
    pointer-events: auto;
}

.past-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fac10c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.past-hero-kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: rgba(250, 193, 12, 0.8);
}

.past-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}

.past-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.past-hero-btn {
    display: inline-flex;
    background: #FAC10C;
    border-color: #FAC10C;
    color: #1A1A1A;
}

.past-hero-btn:hover {
    background: #e0ab00;
    border-color: #e0ab00;
}

.past-hero-swiper .swiper-button-next,
.past-hero-swiper .swiper-button-prev {
    color: #fff;
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease;
}

.past-hero-swiper .swiper-button-next::after,
.past-hero-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.past-hero-swiper .swiper-button-next:hover,
.past-hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

.past-hero-swiper .swiper-pagination {
    bottom: 20px;
}

.past-hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.past-hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* Tabs */
.past-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.past-tab {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 1px solid #e3e9f3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.past-tab:hover {
    border-color: #274B92;
    color: #274B92;
}

.past-tab.active {
    background: #274B92;
    color: #fff;
    border-color: #274B92;
}

/* Grid */
.past-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.past-card {
    display: block;
    background: #fff;
    border: 1px solid #eaf0f8;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.past-card:hover {
    border-color: #d0dce8;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.06);
    transform: translateY(-4px);
}

.past-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f6fb;
}

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

.past-card:hover .past-image img {
    transform: scale(1.03);
}

.past-content {
    padding: 18px;
}

.past-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #274B92;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.past-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.past-location {
    font-size: 0.85rem;
    color: #65738e;
    margin-bottom: 10px;
}

.past-desc {
    font-size: 0.85rem;
    color: #65738e;
    line-height: 1.6;
    margin-bottom: 14px;
}

.past-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #274B92;
    transition: color 0.2s ease;
}

.past-link:hover {
    color: #1E3A73;
}

/* CTA override */
body.past-layout .cta {
    padding: 88px 0;
    background: #274b92;
    color: #fff;
}

body.past-layout .cta-title {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

body.past-layout .cta-subtitle {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.9;
}

body.past-layout .cta .btn-primary {
    background: #FAC10C;
    border-color: #FAC10C;
    color: #1A1A1A;
}

body.past-layout .cta .btn-primary:hover {
    background: #e0ab00;
    border-color: #e0ab00;
    color: #1A1A1A;
}

body.past-layout .detail-footer .btn-outline-primary {
    border: 1.5px solid #274B92;
    color: #274B92;
    background: transparent;
    border-radius: 0;
}

body.past-layout .detail-footer .btn-outline-primary:hover {
    background: #274B92;
    color: #fff;
}

body.past-layout .cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
    .past-hero {
        height: 540px;
    }

    .past-hero-swiper {
        height: 540px;
    }

    .past-hero-overlay .container {
        padding: 0 24px;
    }

    .past-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .past-hero {
        height: 480px;
    }

    .past-hero-swiper {
        height: 480px;
    }

    .past-hero-swiper .swiper-slide::after {
        background: linear-gradient(90deg, rgba(22,35,60,0.88) 0%, rgba(22,35,60,0.65) 100%);
    }

    .past-hero-bg::after {
        background: linear-gradient(90deg, rgba(22,35,60,0.88) 0%, rgba(22,35,60,0.65) 100%);
    }

    .past-hero-title {
        font-size: 2rem;
    }

    .past-hero-desc {
        font-size: 0.9rem;
    }

    .past-grid {
        grid-template-columns: 1fr;
    }

    body.past-layout .cta {
        padding: 64px 0;
    }

    body.past-layout .cta-title {
        font-size: 1.6rem;
    }
}
