:root {
    /* Main site structure kept for compatibility */
    --primary: #FF7F00; /* Basketball orange */
    --secondary: #8B4513; /* Basketball brown */
    --dark: #2c3e50; /* Main site dark */
    --light: #ecf0f1; /* Main site light */
    --accent: #e74c3c; /* Main site accent */
    --highlight-color: #E74C3C; /* Red highlight for accents */
    --transition: all 0.3s ease;
    --sports-nav-height: 59px; /* Default value, will be overridden by JS */
    
    /* Alternative naming for consistency with other basketball files */
    --primary-color: #FF7F00; /* Basketball orange */
    --secondary-color: #8B4513; /* Basketball brown */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: var(--dark);
    line-height: 1.8;
}

header {
    background: linear-gradient(135deg, var(--primary), #1a5276);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

header p {
    margin-top: 0;
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Sports navigation */
.sports-nav {
    background-color: #f0f8ff;
    padding: 0.8rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: -webkit-sticky;
    position: sticky;
    top: 0; /* At the top */
    z-index: 100; /* Higher z-index */
    transition: padding 0.3s ease, background-color 0.3s ease, height 0.3s ease;
}

/* Navigation logo styles - Now at top of sports nav */
.sports-nav .nav-logo {
    position: relative;
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    margin: 0 auto 0.5rem;
    text-align: center;
    cursor: pointer;
    height: 0;
    overflow: hidden;
}

.sports-nav .nav-logo a {
    color: var(--primary);
    text-decoration: none;
    display: block;
}

/* Sports nav scrolled state */
.sports-nav.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(240, 248, 255, 0.98);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.sports-nav.scrolled .nav-logo {
    opacity: 1;
    visibility: visible;
    height: auto;
    margin-bottom: 0.5rem;
}

.sports-nav.scrolled ul {
    margin-left: 0; /* Remove side margin as logo is now on top */
}

/* Main navigation styles */
nav:not(.sports-nav) {
    background-color: rgba(255,255,255,0.95);
    padding: 1rem 0;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: var(--sports-nav-height); /* Use CSS variable set by JS for exact height */
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.2s ease;
    will-change: transform;
    display: block;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    transition: margin 0.3s ease;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 32px;
    transition: var(--transition);
    font-weight: 500;
    background-color: transparent;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.sports-nav-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sports-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sports-nav ul li {
    margin: 0;
}

.sport-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.sport-button:hover, .sport-button.active {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sport-button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
    }
    
    nav {
        position: relative;
    }
    
    nav:not(.sports-nav) ul {
        flex-direction: row; /* Keep horizontal alignment */
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        max-height: none;
        opacity: 1;
        display: flex;
        position: relative;
        background-color: transparent;
        box-shadow: none;
        overflow: visible;
    }
    
    nav:not(.sports-nav) ul li {
        margin: 0.3rem;
        width: auto;
        padding: 0;
        text-align: center;
        opacity: 1;
        transform: none;
    }
    
    nav:not(.sports-nav) ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        width: auto;
    }
    
    /* Make sure the back to APUFit button remains visible */
    .back-to-apufit {
        bottom: 20px;
        right: 20px;
    }
    
    .apufit-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Sports navigation mobile styles */
    .sports-nav {
        padding: 1rem 0;
        top: 0; /* Sports nav at the top */
        z-index: 100;
    }
    
    nav:not(.sports-nav) {
        top: 48px; /* Main nav below the sports nav */
        z-index: 99;
    }
    
    .sports-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 1rem;
        width: 90%;
        margin: 0 auto;
    }
    
    .sport-button {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
        display: flex;
    }
    
    /* Responsive adjustments for features */
    .features {
        padding: 30px 10px;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
        margin: 15px auto;
    }
    
    /* Make hero section more responsive */
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Rest of the existing styles with updated colors */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../../images/basketball-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 50px 20px;
}

.feature {
    width: 300px;
    text-align: center;
    margin: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

footer {
    background: linear-gradient(135deg, var(--primary), #1a5276);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--light);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: var(--light);
}

/* Page Banner - Moved from trainings.css to apply to all basketball pages */
.page-banner {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../../images/basketball-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.banner-content {
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Back to APUFit Button */
.back-to-apufit {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.apufit-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, var(--primary), #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.apufit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.apufit-button i {
    margin-right: 8px;
}