/* Modern Reset & Base Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

/* Header Layout with Logo Support */
.site-header {
    background-color: #1b4332; /* Golf green */
    color: #fff;
    padding: 25px 0 0 0;
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Wraps cleanly on tiny screens */
}

.header-logo {
    height: 70px; /* Keeps the header rhino look sharp and uniform */
    width: auto;
}

.header-text {
    text-align: left;
}

@media (max-width: 600px) {
    .header-container {
        text-align: center;
        flex-direction: column;
    }
    .header-text {
        text-align: center;
    }
}

.header-container h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    line-height: 1.2;
}

.tagline {
    font-style: italic;
    color: #a3b18a;
    margin-top: 5px;
}

/* Navigation Menu & Button Styling (Streamlined for Desktop) */
.site-nav {
    margin-top: 20px;
    background-color: #132a13; /* Darker accent band */
    padding: 0; /* Removed thick vertical padding */
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Centers the row of items */
}

.nav-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px; /* Tight, intentional padding */
    font-weight: 600;
    font-size: 0.95rem;
    background-color: transparent; /* Blends seamlessly into the bar */
    transition: all 0.2s ease-in-out;
    text-align: center;
    border: none; /* Removed the chunky borders */
    border-bottom: 3px solid transparent; /* Subtle bottom anchor line instead */
}

/* Elegant Hover & Active States (No more blocky boxes) */
.nav-btn:hover {
    background-color: #2d6a4f; /* Soft highlight fill on hover */
    color: #fff;
    border-bottom: 3px solid #52b788;
}

.nav-btn.active {
    background-color: #2d6a4f;
    color: #fff;
    border-bottom: 3px solid #52b788; /* Clean green accent line under current page */
}

/* Responsive Button layout - Automatically adjusts ONLY for mobile phones */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 5px;
    }
    .nav-btn {
        width: 100%;
        padding: 10px;
        background-color: #2d6a4f;
        border-radius: 4px;
        border-bottom: none;
    }
    .nav-btn:hover, .nav-btn.active {
        background-color: #40916c;
        border-bottom: none;
    }
}

/* Main Content Layout Constraints */
.main-content {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Card Styling for Core Sections */
section {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #1b4332;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* Responsive Photo Containers */
.group-photo-container {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.responsive-group-photo {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.photo-caption {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 8px;
}

/* Component Level Adjustments */
.highlight-text {
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.event-details, .registration-box {
    background-color: #e8f5e9;
    padding: 15px;
    border-left: 5px solid #2d6a4f;
    border-radius: 4px;
    margin-top: 15px;
}

.event-details ul {
    list-style-position: inside;
    margin-top: 8px;
}

/* Contact Grid Layout */
.contact-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.contact-grid li {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.contact-grid a {
    color: #2d6a4f;
    text-decoration: none;
    display: block;
    word-break: break-all;
}

.contact-grid a:hover {
    text-decoration: underline;
}

/* Footer Accentuation */
.site-footer {
    text-align: center;
    padding: 20px;
    background-color: #1b4332;
    color: #a3b18a;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Responsive adjustments for narrow viewports */
@media (max-width: 600px) {
    .site-nav ul {
        flex-direction: column;
    }
    .site-nav a {
        text-align: center;
        border-bottom: 1px solid #40916c;
    }
}

/* Placeholder Callout Box for Latest Stats */
.latest-stats-box {
    border-left: 5px solid #52b788;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding-top: 35px; /* Makes room for the absolute badge layout */
}

.stats-badge {
    position: absolute;
    top: 12px;
    left: 25px;
    background-color: #1b4332;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.stats-box-content h3 {
    color: #1b4332;
    margin-bottom: 5px;
}

.stats-box-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Button embedded inside the placeholder block */
.action-btn {
    display: inline-block;
    background-color: #2d6a4f;
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background-color: #1b4332;
}

@media (max-width: 600px) {
    .latest-stats-box {
        flex-direction: column;
        gap: 10px;
    }
}

/* Layout rules for the About page structure */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-photos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.photo-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-card .caption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
    text-align: center;
}

/* Desktop Enhancement */
@media (min-width: 992px) {
    .about-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .about-text {
        flex: 2; /* Gives text more breathing room */
    }
    
    .about-photos {
        flex: 1; /* Side column for historical photos */
        position: sticky;
        top: 20px; /* Keeps photos visible as you read long text */
    }
}

figure.align-left {
    float: left;
    margin: 0 1.5rem 1rem 0; /* Creates breathing room to the right and bottom */
    max-width: 300px;        /* Limits image size on desktop */
    width: 100%;             /* Ensures responsiveness */
}

figure img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

figcaption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Mobile Fix: Prevent text from getting squished next to the photo */
@media (max-width: 600px) {
    figure.align-left {
        float: none;         /* Drops the image to its own line on small screens */
        margin: 1rem auto;   /* Centers it */
        max-width: 100%;
    }
}
/* Modern Image Wrapping & Scaling Rules */
.align-left {
    float: left;
    margin: 0 25px 15px 0; /* Pushes text away from the right and bottom of the photo */
    max-width: 280px;      /* Prevents the image from taking over the desktop screen */
    width: 100%;           /* Allows it to scale down responsively */
}

.align-left img {
    width: 100%;           /* Forces the image to fill the figure container */
    height: auto;          /* Maintains the photo's correct aspect ratio */
    border-radius: 6px;    /* Optional: matches your section card corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds a modern drop shadow */
}

figcaption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* Clearfix: Ensures the section card stretches to fit the floated photo */
.history-card::after {
    content: "";
    clear: both;
    display: table;
}

/* Mobile responsive override */
@media (max-width: 600px) {
    .align-left {
        float: none;       /* Un-floats the photo on phones */
        margin: 0 auto 20px auto; /* Centers the photo and adds bottom spacing */
        max-width: 100%;   /* Lets it fill the mobile screen width safely */
    }
}