:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --danger: #dc3545;
    --success: #198754;
    --warning: #ffc107;
}

body {
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    border-radius: 0 0 20px 20px;
}

.card-match {
    transition: transform 0.3s;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-match:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.live-badge-match {
    position: absolute;
    top: -10px;
    right: -10px;
    animation: pulse 1.5s infinite;
}

.player-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    border: none;
}

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

.top-player-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.league-card {
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.league-card:hover {
    transform: translateY(-3px);
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* .category-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 0.8rem;
        } */
.trending-news {
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
}

.stat-card {
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.value-badge {
    background: linear-gradient(135deg, var(--success), #0f6e3e);
    color: white;
}

.goal-badge {
    background: linear-gradient(135deg, var(--danger), #a71d2a);
    color: white;
}

.assist-badge {
    background: linear-gradient(135deg, var(--primary), #0a58ca);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    font-weight: bold;
}

/* Hero Slider Styles */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 21px 21px;
}

.slide-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
    /* Tambahkan z-index */
}

.slide-content .container {
    position: relative;
    z-index: 2;
    /* Lebih tinggi dari overlay */
}

.bullets-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateX(-50%);
    z-index: 10;
}

.glide__slide {
    height: 500px;
}

.glide__bullet:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.glide__bullet {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    transition: all 0.3s ease;
}

.glide__bullet--active {
    background-color: white;
}

/* Style untuk arrows */
.glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    /* Pastikan arrows di atas overlay */
}

.glide__arrow--left {
    left: 20px;
}

.glide__arrow--right {
    right: 20px;
}

.glide__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* league table */
.league-card {
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
    height: 100%;
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.league-tab {
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.league-tab.active {
    border-bottom-color: var(--primary);
    font-weight: bold;
}

.team-logo {
    width: 25px;
    height: 25px;
}

.promotion {
    background-color: rgba(25, 135, 84, 0.1);
}

.relegation {
    background-color: rgba(220, 53, 69, 0.1);
}

.champions-league {
    border-left: 4px solid #1a3e72;
}

.europa-league {
    border-left: 4px solid #6f42c1;
}

.conference-league {
    border-left: 4px solid #fd7e14;
}

.form-badge {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.form-win {
    background-color: var(--success);
    color: white;
}

.form-draw {
    background-color: var(--warning);
    color: black;
}

.form-lose {
    background-color: var(--danger);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* match detail */
.match-header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border-radius: 0 0 20px 20px;
}

.team-badge {
    width: 120px;
    height: 120px;
}

.match-info-card {
    border-radius: 10px;
    border-left: 4px solid #0d6efd;
}

.prediction-card {
    transition: transform 0.3s;
    border-radius: 10px;
}

.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.player-card {
    transition: transform 0.3s;
    border-radius: 10px;
}

.player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.player-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.injury-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.form-badge {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.form-win {
    background-color: #198754;
    color: white;
}

.form-draw {
    background-color: #ffc107;
    color: black;
}

.form-lose {
    background-color: #dc3545;
    color: white;
}

.head-to-head-card {
    border-left: 4px solid #6f42c1;
}

.tactical-formation {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.pitch {
    background-color: #28a745;
    background-image: linear-gradient(transparent 66%, rgba(255, 255, 255, 0.3) 66%),
        linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.3) 50%);
    background-size: 6px 6px, 6px 6px;
    border-radius: 10px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.player-position {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* match feature */
.match-header {
    background: linear-gradient(135deg, #1a3e72, #0d6efd);
    color: white;
    border-radius: 0 0 20px 20px;
}

.team-badge {
    width: 80px;
    height: 80px;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
}

.match-timeline {
    position: relative;
    padding-left: 30px;
}

.match-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #0d6efd;
}

.timeline-event {
    position: relative;
    padding-bottom: 20px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
}

.goal-event {
    border-left: 3px solid #28a745;
}

.card-event {
    transition: transform 0.2s;
}

.card-event:hover {
    transform: translateY(-3px);
}

.player-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stat-card {
    border-radius: 10px;
    border-left: 4px solid #0d6efd;
}

.live-badge {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@media (max-width: 768px) {
    .slide-content {
        height: 400px;
    }

    .hero-slider h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .slide-content {
        height: 350px;
    }

    .hero-slider h1 {
        font-size: 2rem;
    }

    .hero-slider .lead {
        font-size: 1rem;
    }
}