/* ===== Global Styles ===== */
:root {
    --primary-color: #053558;
    --secondary-color: #4C89BB;
    --accent-color: #ffffff;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== Navbar ===== */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    background-color: #ffffff !important;
}

.navbar-light {
    background-color: #ffffff !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    color: var(--primary-color) !important;
    position: relative;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid transparent;
}

.nav-link.active {
    border-bottom-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* ===== Dropdown Menu Styling ===== */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(5, 53, 88, 0.15);
    padding: 0.75rem 0;
    margin-top: 0.25rem;
    min-width: 200px;
}

.dropdown-menu .dropdown-item {
    color: var(--primary-color) !important;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f0f6ff !important;
    color: var(--secondary-color) !important;
}

.dropdown-menu .dropdown-item i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 8px;
}

.dropdown-menu .dropdown-item:hover i {
    color: var(--secondary-color);
}

.dropdown-divider {
    border-color: #e5e5e5 !important;
    margin: 0.5rem 0;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

/* Hover dropdown display */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Watch Live Button */
.btn-watch-live {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-watch-live:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* ===== Hero Section ===== */
.hero-section {
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1rem;
}
/* ===== Sports Section ===== */
.sports-card {
    transition: all 0.3s ease;
}

.sports-card .card {
    cursor: pointer;
}

.sports-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(76, 137, 187, 0.2);
}

.sports-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sports-card i {
    transition: all 0.3s ease;
}

.sports-card .card:hover i {
    transform: scale(1.15);
    color: #4C89BB !important;
}

/* ===== Team Cards / Flip Cards ===== */
.team-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Flip Card Styling ===== */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    background-color: white;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.flip-card-back {
    background: linear-gradient(135deg, #147eca 0%, #4C89BB 100%);
    color: white;
    transform: rotateY(180deg);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 1.1rem;
}

.flip-card-back h5 {
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

/* ===== Schedule Cards ===== */
.schedule-card {
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(76, 137, 187, 0.2);
}

.schedule-card .btn {
    margin-top: auto;
}

.schedule-card .btn:hover {
    background-color: #053558 !important;
    transform: translateY(-3px);
}

/* ===== Section Styling ===== */
h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fs-5 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin-left: 0.5rem;
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .btn-lg {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .fs-5 {
        font-size: 0.9rem !important;
    }
}

/* ===== Footer ===== */
footer {
    background-color: #1a1a1a !important;
    color: white;
    padding-top: 3rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
}

footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    font-size: 0.9rem;
}

footer .mt-3 a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

footer .mt-3 a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

footer [style*="border-bottom"] {
    border-color: #333 !important;
}

footer .text-muted {
    color: #888 !important;
}

footer .text-end {
    text-align: right !important;
}

/* ===== Animations ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sports-card {
    animation: slideUp 0.6s ease forwards;
}

.team-card {
    animation: slideUp 0.6s ease forwards;
}

.schedule-card {
    animation: slideUp 0.6s ease forwards;
}

.col-md-6:nth-child(1) .sports-card,
.col-lg-3:nth-child(1) .sports-card {
    animation-delay: 0s;
}

.col-md-6:nth-child(2) .sports-card,
.col-lg-3:nth-child(2) .sports-card {
    animation-delay: 0.1s;
}

.col-md-6:nth-child(3) .sports-card,
.col-lg-3:nth-child(3) .sports-card {
    animation-delay: 0.2s;
}

.col-md-6:nth-child(4) .sports-card,
.col-lg-3:nth-child(4) .sports-card {
    animation-delay: 0.3s;
}

/* ===== Utility Classes ===== */
.text-decoration-none:hover {
    text-decoration: none !important;
}

a.text-decoration-none {
    color: inherit;
}

a.text-decoration-none:hover {
    color: var(--primary-color);
}
