/* --- Global Variables & Reset --- */
:root {
    --navy-blue: #0b1d3a;
    --navy-light: #18335f;
    --pure-white: #ffffff;
    --light-gray: #f4f6f9;
    --text-dark: #333333;
    --accent-gold: #f1c40f;
    --border-color: #e2e8f0;
    --button-ease: cubic-bezier(0.4, 0, 0.2, 1); /* Professional smooth easing */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pure-white);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-gray); }
.bg-navy { 
    /* 1. Fallback color if the image fails to load */
    background-color: var(--navy-blue); 
    color: var(--pure-white); 
    
    /* 2. The dark navy overlay + the image itself */
    /* Adjust the '0.85' values to make the overlay darker (0.95) or lighter (0.5) */
    background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/stadium.jpg');
    
    /* 3. Ensure the image covers the whole section beautifully */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Optional: Add this line if you want the image to stay still while scrolling (Parallax effect) */
    background-attachment: fixed; 
}
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* --- Typography & Dividers --- */
h1, h2, h3, h4 { color: var(--navy-blue); line-height: 1.2; }
.bg-navy h2, .bg-navy h3 { color: var(--pure-white); }

h2 { font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase; }
.icon-highlight { color: var(--accent-gold); margin-right: 10px; }

.divider {
    height: 4px; width: 60px;
    background-color: var(--navy-blue);
    margin-bottom: 30px;
}
.center-divider { margin: 0 auto 40px auto; }

/* --- Header & Navigation --- */
header {
    background-color: var(--navy-blue);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-container {
    display: flex; justify-content: space-between;
    align-items: center; padding: 10px 0;
}

.logo img { height: 75px; }

.main-nav ul {
    list-style: none; display: flex;
    align-items: center; gap: 25px;
}

.main-nav a {
    color: var(--pure-white); text-decoration: none;
    font-weight: 600; font-size: 15px;
    text-transform: uppercase; transition: color 0.3s ease;
    display: flex; align-items: center; gap: 6px;
}

.main-nav a:hover { color: var(--accent-gold); }

/* --- Upgraded Buttons --- */
.btn-nav, .btn-primary, .btn-secondary {
    padding: 12px 28px; 
    border-radius: 6px; /* Slightly rounder for a modern look */
    text-decoration: none; 
    font-weight: bold;
    text-transform: uppercase; 
    display: inline-flex;
    align-items: center; 
    gap: 8px; 
    /* The smooth transition magic happens here */
    transition: transform 0.2s var(--button-ease), 
                background-color 0.3s ease, 
                color 0.3s ease, 
                box-shadow 0.3s var(--button-ease);
    border: none; 
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Nav Button Specifics */
.btn-nav {
    background: var(--pure-white); 
    color: var(--navy-blue) !important;
    padding: 8px 16px; 
}
.btn-nav:hover { 
    background: var(--accent-gold); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Primary Button Specifics */
.btn-primary { 
    background-color: var(--navy-blue); 
    color: var(--pure-white); 
    box-shadow: 0 4px 6px rgba(11, 29, 58, 0.2);
}
.btn-primary:hover { 
    background-color: var(--accent-gold); 
    color: var(--navy-blue); 
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.4);
    transform: translateY(-2px);
}

/* Secondary Button Specifics */
.btn-secondary { 
    background-color: transparent; 
    border: 2px solid var(--pure-white); 
    color: var(--pure-white); 
}
.btn-secondary:hover { 
    background-color: var(--pure-white); 
    color: var(--navy-blue); 
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Button Overrides */
.hero .btn-primary { 
    background-color: var(--pure-white); 
    color: var(--navy-blue); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero .btn-primary:hover { 
    background-color: var(--accent-gold); 
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

/* Block Button */
.btn-block { 
    width: 100%; 
    justify-content: center; 
}

/* Active State (The Click Effect) - Applies to all buttons */
.btn-nav:active, .btn-primary:active, .btn-secondary:active {
    transform: scale(0.96) translateY(0); /* Shrinks the button slightly like a real press */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* Flattens the shadow */
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Snappy click response */
}

/* Mobile Menu Setup */
.menu-toggle { display: none; }
.menu-icon {
    display: none; color: var(--pure-white);
    font-size: 1.8rem; cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--navy-blue); color: var(--pure-white);
    padding: 120px 0; text-align: center;
}
.hero h1 { font-size: 3.5rem; color: var(--pure-white); margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px auto; color: #cbd5e1; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

/* --- Stats Banner --- */
.stats-banner { padding: 40px 0; border-bottom: 5px solid var(--accent-gold); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item i { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 10px; }
.stat-item h3 { font-size: 2rem; margin-bottom: 5px; }

/* --- Grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-list { list-style: none; margin-top: 20px; }
.about-list li { margin-bottom: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.about-list i { color: var(--navy-blue); }
.image-placeholder {
    background-color: var(--light-gray); height: 400px;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; border: 2px dashed #cbd5e1; border-radius: 8px;
    color: #94a3b8;
}
.image-placeholder i { font-size: 4rem; margin-bottom: 10px; }

/* --- Facilities Section --- */
.feature-box {
    background-color: var(--navy-blue); /* Fallback if image fails */
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s var(--button-ease), box-shadow 0.3s var(--button-ease);
    
    /* New: Setup for background images */
    background-size: cover;
    background-position: center;
    color: var(--pure-white); /* Flips the paragraph text to white */
}

/* Hover effect */
.feature-box:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.2); 
}

/* Make the heading white to override the global navy blue */
.feature-box h3 { 
    color: var(--pure-white);
    margin-bottom: 15px; 
}

/* Make the icon gold so it stands out against the dark image */
.feature-icon { 
    font-size: 3rem; 
    color: var(--accent-gold); 
    margin-bottom: 20px; 
}

/* Assigning individual images + the dark navy overlay 
   The '0.85' is the darkness of the tint. (1.0 is pitch black, 0.0 is invisible).
*/
.feature-box:nth-child(1) { background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/facility-1.jpg'); }
.feature-box:nth-child(2) { background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/facility-2.jpg'); }
.feature-box:nth-child(3) { background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/facility-3.jpg'); }
.feature-box:nth-child(4) { background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/facility-4.jpg'); }
.feature-box:nth-child(5) { background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/facility-5.jpg'); }
.feature-box:nth-child(6) { background-image: linear-gradient(rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.85)), url('images/facility-6.jpg'); }

/* --- Programs Section --- */
.card {
    background: var(--pure-white); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 30px; border-top: 5px solid var(--navy-blue);
    transition: box-shadow 0.3s ease;
}
.card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card-featured { border-top: 5px solid var(--accent-gold); transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.badge { background-color: var(--navy-light); color: var(--pure-white); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; }
.card-features { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-color); }
.card-features li { margin-bottom: 10px; color: #475569; display: flex; align-items: center; gap: 10px; }
.card-features i { color: var(--navy-blue); }

/* --- Coaches Section --- */
.coach-card { 
    text-align: center; 
    background: var(--pure-white); 
    padding: 30px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
}

/* New Image Styling */
.coach-img {
    width: 120px; 
    height: 120px; 
    border-radius: 50%; /* Makes it a perfect circle */
    object-fit: cover; /* Prevents the image from stretching/squishing */
    margin: 0 auto 20px auto; /* Centers the image */
    display: block; 
    border: 4px solid var(--pure-white); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.coach-card .role { 
    color: var(--accent-gold); 
    font-weight: bold; 
    font-size: 0.9rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
}

.coach-card .bio { 
    font-size: 0.95rem; 
    color: #475569; 
}

/* --- Contact & FAQ --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; gap: 20px; }
.info-item > i { font-size: 1.5rem; color: var(--pure-white); background: var(--navy-blue); padding: 15px; border-radius: 50%; width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; }
.faq-item { background: var(--light-gray); padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.faq-item p { margin-bottom: 5px; display: flex; gap: 10px; }
.faq-item i { color: var(--navy-blue); margin-top: 5px; }

.contact-form-container { background: var(--pure-white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
.contact-form h3 { margin-bottom: 25px; border-bottom: 2px solid var(--light-gray); padding-bottom: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--navy-blue); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.2); }

/* --- Footer --- */
footer { background-color: var(--navy-blue); color: var(--pure-white); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 70px; margin-bottom: 20px; }
.footer-about p { color: #cbd5e1; margin-bottom: 20px; }
.social-links a { color: var(--pure-white); background-color: rgba(255,255,255,0.1); width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; margin-right: 10px; text-decoration: none; transition: all 0.3s var(--button-ease); }
.social-links a:hover { background-color: var(--accent-gold); color: var(--navy-blue); transform: translateY(-4px) scale(1.1); box-shadow: 0 4px 10px rgba(241, 196, 15, 0.4); }
.footer-links ul { list-style: none; margin-top: 15px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: 0.3s ease; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 8px; }
.footer-hours p { color: #cbd5e1; margin-top: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-bottom { background-color: #061226; text-align: center; padding: 20px 0; color: #94a3b8; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .card-featured { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links, .footer-links a, .footer-hours p, .info-item { justify-content: center; }
}

@media (max-width: 768px) {
    .menu-icon { display: block; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0;
        width: 100%; background-color: var(--navy-light); padding: 20px 0;
    }
    .main-nav ul { flex-direction: column; gap: 15px; }
    #menu-toggle:checked ~ .main-nav { display: block; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Page Header (For subpages like Gallery) --- */
.page-header {
    padding: 60px 0;
    border-bottom: 5px solid var(--accent-gold);
}
.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.page-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.gallery-item {
    position: relative; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; background-color: var(--navy-blue);
}
.gallery-item img {
    width: 100%; height: 300px; object-fit: cover;
    display: block; transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 29, 58, 0.85); display: flex; flex-direction: column;
    justify-content: center; align-items: center; color: var(--pure-white);
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-overlay i { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 15px; transform: translateY(20px); transition: transform 0.3s ease; }
.gallery-overlay h4 { color: var(--pure-white); font-size: 1.2rem; transform: translateY(20px); transition: transform 0.3s ease; }

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i, .gallery-item:hover .gallery-overlay h4 { transform: translateY(0); }

/* --- Contact & FAQ --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; gap: 20px; }
.info-item > i { font-size: 1.5rem; color: var(--pure-white); background: var(--navy-blue); padding: 15px; border-radius: 50%; width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; }
.faq-item { background: var(--light-gray); padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.faq-item p { margin-bottom: 5px; display: flex; gap: 10px; }
.faq-item i { color: var(--navy-blue); margin-top: 5px; }

.contact-form-container { background: var(--pure-white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
.contact-form h3 { margin-bottom: 25px; border-bottom: 2px solid var(--light-gray); padding-bottom: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--navy-blue); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.2); }

/* --- Footer --- */
footer { background-color: var(--navy-blue); color: var(--pure-white); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 70px; margin-bottom: 20px; }
.footer-about p { color: #cbd5e1; margin-bottom: 20px; }
.social-links a { color: var(--pure-white); background-color: rgba(255,255,255,0.1); width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; margin-right: 10px; text-decoration: none; transition: all 0.3s var(--button-ease); }
.social-links a:hover { background-color: var(--accent-gold); color: var(--navy-blue); transform: translateY(-4px) scale(1.1); box-shadow: 0 4px 10px rgba(241, 196, 15, 0.4); }
.footer-links ul { list-style: none; margin-top: 15px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: 0.3s ease; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 8px; }
.footer-hours p { color: #cbd5e1; margin-top: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-bottom { background-color: #061226; text-align: center; padding: 20px 0; color: #94a3b8; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .card-featured { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links, .footer-links a, .footer-hours p, .info-item { justify-content: center; }
}

@media (max-width: 768px) {
    .menu-icon { display: block; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0;
        width: 100%; background-color: var(--navy-light); padding: 20px 0;
    }
    .main-nav ul { flex-direction: column; gap: 15px; }
    #menu-toggle:checked ~ .main-nav { display: block; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
    
    .event-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .page-header h1 { font-size: 2rem; }
}