﻿.container {
    max-width: 1200px; /* header/nav/content all same width */
    margin: 0 auto;
    padding: 0 15px; /* small side padding */
}

#nav-placeholder .main-nav {
    width: 100%;
    max-width: none; /* override previous nav width */
    margin: 1rem 0 2rem;
}


/* Global box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base styles */
body {
    margin: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: start;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background-color: #003366;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
    border-radius: 12px;
    flex-wrap: nowrap;
}

    header img.logo {
        height: 180px;
        max-width: 35vw;
        width: auto;
        transition: transform 0.3s ease, filter 0.3s ease;
        filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    }

        header img.logo:hover {
            transform: scale(1.45);
            filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.5));
        }

.branding {
    color: #fff;
    white-space: nowrap;
    user-select: none;
    font-family: 'Times New Roman', Times, serif;
}

    .branding .main-title {
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
        margin: 0;
    }

    .branding .subtitle {
        font-size: 2.0rem;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 0.25em;
        margin: 0.25rem 0 0 0;
    }

#nav-placeholder {
    width: 100%;
    
}

/* Navigation menu styles */
.main-nav {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto 2.5rem auto;
    background-color: #003366;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
    padding: 0 1rem 2rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 1rem;
        white-space: nowrap;
    }

    .main-nav a {
        text-decoration: none;
        color: white;
        font-weight: 600;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        padding: 0.8rem 1rem;
        display: block;
        font-size: 1rem;
        transition: color 0.3s ease;
        box-sizing: border-box;
        cursor: pointer;
    }

        .main-nav a:hover,
        .main-nav a:focus {
            color: #ffcc00;
            text-shadow: 1px 1px 2px rgb(0 0 0 / 0.5);
        }

/* Arrow below menu area */
#scroll-arrow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.75rem;
    color: #ffcc00;
    user-select: none;
    pointer-events: none;
    animation: arrow-bounce 1.5s infinite;
    z-index: 10;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@media screen and (min-width: 601px) {
    #scroll-arrow {
        display: none;
    }
}

main {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-top: 2rem;
}

    main h1 {
        font-weight: 600;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    main p {
        font-size: 1.125rem;
        max-width: 640px;
        margin: 0 auto 2rem auto;
        line-height: 1.5;
        color: #666;
    }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

    .gallery img {
        width: 100%;
        height: 600px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
        transition: transform 0.3s ease;
    }

        .gallery img:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
        }

/* Overlay styles for third image */
.image-wrapper {
    position: relative;
    display: inline-block;
}

.links-overlay {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.overlay-link {
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

    .overlay-link:hover {
        opacity: 1;
    }

/* Footer styles (put in your main stylesheet so all pages share it) */
.site-footer {
   
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 0; /* vertical padding */
    margin-top: 2rem;
    box-shadow: 0 -4px 8px rgb(0 0 0 / 0.15);
    border-radius: 12px 12px 0 0;
    display: flex; /* keep inner container centered horizontally */
    justify-content: center;
    align-items: center;
}

/* inner container controls max-width and centering of the content */
.site-footer__inner {
    max-width: 1100px; /* match your page content width */
    width: 100%;
    padding: 0 1rem; /* side padding on small screens */
    text-align: center; /* critical: ensure lines are centered */
    margin: 0 auto;
}

    /* reset paragraph default margins so single-line alignment is precise */
    .site-footer__inner p {
        margin: 0;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        font-size: 1rem;
        line-height: 1.3;
    }



/* Responsive adjustments */
@media screen and (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
        overflow-x: hidden;
    }

    header {
        padding: 1rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

        header img.logo {
            max-width: 30vw;
            height: auto;
        }

    .branding {
        font-size: 0.9rem;
        white-space: normal;
    }

        .branding .main-title {
            font-size: 1.2rem;
            letter-spacing: 0.1em;
        }

        .branding .subtitle {
            font-size: 1.3rem;
            letter-spacing: 0.15em;
        }

    .main-nav {
        max-width: 100vw;
        padding: 0 0.75rem 2rem 0.75rem;
        margin: 1rem 0 3rem 0;
    }

        .main-nav ul {
            gap: 0.3rem;
            justify-content: flex-start;
            padding: 0.25rem 0;
            white-space: nowrap;
        }

        .main-nav a {
            padding: 0.5rem 0.75rem;
            font-size: 0.85rem;
        }

    main h1 {
        font-size: 1.5rem;
    }

    main p {
        font-size: 0.9rem;
        max-width: 95vw;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Ensure nav is always same width as header/content */
.main-nav {
    max-width: 1100px; /* or whatever your header width is */
    width: 100%;
    margin: 1rem auto 2rem; /* center it */
    background: linear-gradient(90deg, #003366, #336699);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

    .main-nav a {
        text-decoration: none;
        color: white;
        font-weight: 600;
        padding: 1.5rem 1.5rem;
        display: block;
        font-size: 1.25rem;
        transition: color 0.3s ease;
    }

        .main-nav a:hover,
        .main-nav a:focus {
            color: #ffcc00;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

@media (max-width: 600px) {
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0.75rem 0;
    }

    .main-nav a {
        padding: 1.25rem 0;
        font-size: 1.2rem;
    }
}

.site-nav {
    background: #003366;
}

    .site-nav .container {
        max-width: 1160px; /* same as header/footer */
        margin: 10px auto 0 auto; /* top margin to push nav down */
        padding: 0 15px;
    }


    .site-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* or space-between */
    }

        .site-nav ul li a {
            color: #fff;
            padding: 14px 20px;
            display: block;
            text-decoration: none;
        }


/* Plain footer — no blue box */
.site-footer {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #333 !important;
}


/* inner wrapper keeps it aligned with page content */
.site-footer__inner {
    max-width: 1100px;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
    margin: 0 auto;
}

    /* text spacing and links */
    .site-footer__inner p {
        margin: 0.25rem 0;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        font-size: 0.95rem;
        color: inherit;
    }

    .site-footer__inner a {
        color: #003366; /* brand colour for links */
        text-decoration: none;
        font-weight: 600;
    }

        .site-footer__inner a:hover {
            text-decoration: underline;
        }


/* Standardized page titles across all pages */
.page-title {
    font-size: 2rem; /* same size as Honorary, Events, etc */
    font-weight: bold;
    text-align: left;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000; /* consistent with other headings */
}

    .page-title i {
        font-size: 2.2rem;
        color: #000;
    }