:root {
    --primary-blue: #96CADA;
    --dark-blue: #023554;
    --accent-green: #408251;
    --accent-yellow: #F3C234;
    --white: #ffffff;
    --light-bg: #f4f7f8;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark-blue);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 20px;
    position: relative;
}

.header-container {
    display: flex;
    flex-direction: column; /* Stacks everything vertically */
    align-items: center;    /* Centers them horizontally */
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.logo {
    position: absolute;
    left: 20px;
    top: 20px;
    height: 100px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    text-align: center;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-yellow);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.course-intro {
    text-align: center;
    margin-bottom: 60px;
}

.course-intro h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
}

.hole-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 20px;
    border-radius: 20px;
}

.hole-section.reverse {
    flex-direction: row-reverse;
}

.hole-section img {
    flex: 1.2;
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid var(--primary-blue);
}

.hole-text {
    flex: 1;
}

.hole-number {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
}

.stats {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-green);
    margin: 10px 0;
    border-bottom: 2px dashed var(--primary-blue);
    display: inline-block;
}

footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

@media (max-width: 800px) {
    .logo {
        position: static; /* Moves logo above title on small screens */
        margin-bottom: 10px;
    }
    .hole-section, .hole-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    .hole-section img {
        height: 250px;
    }
}