/* --- Variables & Global Styles --- */
:root {
    --color-primary: #4CAF50; /* Grass Green */
    --color-secondary: #001F3F; /* Navy Blue */
    --color-light: #FFFFFF;
    --color-dark: #333333;
    --color-accent: #FFD700; /* Gold for highlights */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 60px 0;
}

h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 20px;
    text-align: center;
}
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 2px solid var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-secondary);
    border: 2px solid var(--color-light);
}
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-light);
    border: 2px solid var(--color-secondary);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--color-secondary);
    text-decoration: none;
    padding: 0 15px;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

/* --- Dots --- */

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%; /* Makes it circular */
    display: inline-block; /* Allows dots to appear side-by-side */
    margin-right: 5px; /* Adds spacing between dots */
}

.red-dot {
    background-color: red;
}

.green-dot {
    background-color: green;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 31, 63, 0.6), rgba(0, 31, 63, 0.6)), url('leo-cambridge-tennis-action-photo.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 80px; /* Space for the stats banner */
}

.hero-content {
    color: var(--color-light);
    z-index: 1;
}

.hero-content h2 {
    font-size: 4.5em;
    margin-bottom: 10px;
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.pre-headline {
    font-size: 1.2em;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* Stats Banner */
.stats-banner {
    background-color: var(--color-primary);
    color: var(--color-light);
    width: 100%;
    padding: 15px 0;
    position: absolute;
    bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* --- Bio Section --- */
.bio-section {
    background-color: #f7f7f7;
}

.bio-section h3 {
    color: var(--color-primary);
    margin-bottom: 40px;
}

.intro-paragraph {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    padding: 0 5%;
}

.bio-details {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
}

.detail-block {
    flex: 1;
    padding: 20px;
    background-color: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.detail-block h4 {
    color: var(--color-secondary);
    text-align: left;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.detail-block ul {
    list-style: disc;
    margin-left: 20px;
}

/* --- Schedule Section --- */
.schedule-section {
    background: #e6f3ff; /* Light court blue */
}

.schedule-section h3 {
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: var(--color-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

thead tr {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-heading {
    margin-top: 20px;
    color: var(--color-dark);
}

.results-block p {
    text-align: center;
    margin: 10px 0;
    font-size: 1.1em;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--color-light);
}

.contact-grid {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.form-column, .sponsorship-column {
    flex: 1;
}

.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

.contact-form button {
    width: 100%;
}

.sponsorship-column h4 {
    color: var(--color-primary);
    text-align: left;
}

.sponsorship-column p {
    margin-bottom: 20px;
}

.email-link {
    margin-top: 20px;
    font-size: 1.1em;
    color: var(--color-secondary);
}

/* --- Social Links Styling (Header) --- */
.social-links a {
    color: var(--color-secondary);
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-primary); /* Green hover effect */
}

/* Update Header container to accommodate new element */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Footer Social Links Styling --- */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social-links a {
    color: var(--color-light);
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-social-links a:hover {
    color: var(--color-accent); /* Gold hover effect for contrast */
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--color-light); /* White background */
}

.gallery-section h3 {
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
    color: #666;
}

.gallery-grid {
    display: grid;
    /* Creates a responsive grid: 3 columns on large screens, minimum size 300  */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
}

.gallery-item {
    background-color: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Uniform height for all images */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
}

.gallery-item figcaption {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--color-dark);
    background-color: var(--color-light);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .bio-details, .contact-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-block h4, .sponsorship-column h4 {
        text-align: center;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li a {
        padding: 5px 10px;
    }
    .hero-content h2 {
        font-size: 3em;
        display: none;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .cta-buttons .btn {
        margin: 0;
    }
    .social-links {
        margin-top: 10px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-social-links {
        margin-top: 10px;
    }
    .footer-social-links a {
        margin: 0 10px;
    }
}