﻿/* === Global Colours & Layout === */
:root {
    --brand-green: #68815C;
    --brand-dark: #065535;
    --brand-accent: #b45c2c;
    --text: #065535;
    --muted: #6b7280;
    --line: #e0e4dc;
    --bg: #faf8f5;
    --panel: #ffffff;
    --nav: #c3ccb8;
    --container: 1280px;
    --gutter: 16px;
    --header-h: 112px;
}

* {
    box-sizing: border-box
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding-top: 90px; /* increase to match full header height */
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter)
}

/* === Sticky Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav);
    border-bottom: 1px solid var(--line);
    padding-top: 50px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, form right */
    gap: 1rem;
    padding: 0.5rem 0;
}

/* Row 2: navigation + hamburger */
.header-bottom {
    background: #d7ded0; /* lighter shade than var(--nav) */
    border-top: 1px solid var(--line);
    padding: 0.5rem 0;
}


.desktop-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.mobile-form {
    display: none;
}

/* Mobile override */
@media (max-width: 768px) {
    .desktop-form {
        display: none;
    }

    .mobile-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        flex: 1;
    }
}

.desktop-form input {
    min-width: 120px;
}
/* Mobile form */
.mobile-form {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

    .mobile-form input {
        padding: 6px 8px;
    }

    .mobile-form button {
        background: var(--brand-dark);
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
    }

    /* Expanded fields hidden by default */
    .mobile-form .expanded-fields {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-form.expanded .expanded-fields {
        display: flex;
    }

/* Responsive switch */
@media (max-width: 768px) {
    .desktop-form {
        display: none;
    }

    .mobile-form {
        display: flex;
    }
}

.site-logo a {
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    font-weight: bold;
    color: white;
    text-decoration: none;
}
.logo {
    background-image: url('FF_logo_resized.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    opacity: 0;
    animation: fadeInText 1.2s ease-out forwards;
    animation-delay: 0.1s;
}
.header-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

    .header-form input[type="text"] {
        padding: 6px 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.85rem;
    }

    .header-form button {
        padding: 6px 12px;
        border: none;
        background-color: #506546;
        color: white;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
    }

        .header-form button:hover {
            background-color: #3a4935;
        }

/* Responsive: stack form under nav on mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .header-form {
        flex-direction: column; /* stack vertically */
        align-items: stretch;
        width: 100%; /* take full width */
        margin-top: 0.5rem;
    }

        .header-form input[type="text"],
        .header-form button {
            width: 100%; /* each field full width */
        }
}
/* Desktop nav */
.nav {
    display: none;
    align-items: center;
    gap: 30px;
    flex-shrink: 0; /* prevents collapsing */
    padding-top: 10px;
    color: #065535;
}

    .nav a {
        color: #065535;
        text-decoration: none;
        padding: 8px 10px;
        border-radius: 4px;
        color: #b45c2c;
    }

        .nav a:hover {
            background: rgba(255,255,255,.25)
        }

    /* Dropdowns */
    .nav details {
        position: relative
    }

    .nav summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 8px 0;
        color: #065535;
    }

        .nav summary::-webkit-details-marker {
            display: none
        }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    padding: 8px;
    min-width: 200px;
}

    .dropdown a {
        display: block;
        color: #333;
        text-decoration: none;
        padding: 6px 10px;
        transition: all 0.3s ease;
    }

        .dropdown a:hover {
            color: var(--brand-dark);
            transform: translateX(4px);
            color: #b45c2c;
        }
/* Mobile nav */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff
}

details.menu {
    display: block
}

    details.menu summary {
        list-style: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px
    }

        details.menu summary::-webkit-details-marker {
            display: none
        }

.mobile-panel {
    background: #fff;
    border-top: 1px solid var(--line)
}

    .mobile-panel nav {
        padding: 12px var(--gutter)
    }

    .mobile-panel a {
        display: block;
        padding: 8px 0;
        color: #374151;
        text-decoration: none
    }

        .mobile-panel a:hover {
            color: var(--brand-dark)
        }

    .mobile-panel details {
        margin: 4px 0
    }

    .mobile-panel summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        color: #374151
    }

        .mobile-panel summary::-webkit-details-marker {
            display: none
        }

.subnav {
    padding-left: 12px
}

.chev {
    transition: .2s
}

details[open] > summary .chev {
    transform: rotate(180deg)
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    display: none;
}

#mobileNav {
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px var(--gutter);
}

    #mobileNav a {
        display: block;
        padding: 8px 0;
        color: #374151;
        text-decoration: none;
    }

        #mobileNav a:hover {
            color: var(--brand-dark);
        }

/* Show hamburger only on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: none;
    }
}

@media (min-width:768px) {
    .nav {
        display: flex
    }

    .mobile-controls, .mobile-panel {
        display: none
    }
}

/* === Page Content === */
.page {
    background: var(--panel);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 24px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .page {
        margin-top: 200px; /* adjust depending on header height */
    }
}

h1 {
    color: var(--brand-dark);
    font-size: 1.7rem;
    margin: 0 0 10px
}

.lead {
    color: var(--brand-dark);
    margin: 0 0 20px;
    font-size: 1.2rem
}

h2 {
    color: var(--brand-dark);
    font-size: 1.5rem;
    margin: 0 0 10px
}

.lead {
    color: var(--brand-dark);
    margin: 0 0 20px;
    font-size: 1.2rem
}

h3 {
    color: var(--brand-green);
    font-size: 1.3rem;
    margin: 0 0 10px
}

.lead {
    color: var(--brand-green);
    margin: 0 0 20px;
    font-size: 1.3rem
}



/* === Filters === */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.search {
    flex: 1 1 280px;
    max-width: 420px
}

    .search input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 8px
    }

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem
}

    .btn:hover {
        background: #f0f4ee
    }

    .btn.active {
        background: var(--brand-green);
        color: #fff;
        border-color: var(--brand-dark)
    }

/* Active filter chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px
}

.filter-chip {
    display: flex;
    align-items: center;
    background: var(--brand-green);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

    .filter-chip button {
        background: none;
        border: none;
        color: #fff;
        margin-left: 6px;
        cursor: pointer;
        font-weight: bold;
    }

footer {
    background: #c4cfbe;
    color: #FFFFFF;
    text-align: center;
    padding: 3rem;
    margin: 0 auto; /* Centering the content */
    max-width: 100%;
    padding-top: 10px;
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #065535 ;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #ff6600;
    }
/* Timeline section */
.timeline-section {
    padding: 2rem;
}

.timeline-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.timeline {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.timeline-event {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 250px;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .timeline-event:hover {
        transform: scale(1.05);
    }

    .timeline-event img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .timeline-event h3 {
        margin: 0.5rem 0 0.2rem;
        font-size: 1.1rem;
    }

    .timeline-event p {
        font-size: 0.9rem;
        color: #4b5563;
    }

.timeline-slideshow {
    max-width: 600px;
    margin: 0rem auto;
    font-family: 'Georgia', serif;
    color: #68815C;
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e2cfa1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .timeline-slideshow input[type="radio"] {
        display: none;
    }

.slides {
    display: flex;
    width: 400%;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    padding: 2rem;
    box-sizing: border-box;
    background: #ffffff;
}

    .slide h2 {
        font-size: 1.6rem;
        color: #8b5e3c;
        margin-bottom: 1rem;
        font-size: clamp(1.4rem, 2.5vw, 2rem);
    }

    .slide h3 {
        font-size: 1.2rem;
        color: #5c4326;
        margin-bottom: 0.5rem;
        font-size: clamp(1.1rem, 2vw, 1.4rem);
    }

    .slide ul {
        padding-left: 1.2rem;
    }

    .slide li {
        padding: 0.3rem 0;
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }


    .slide p, .slide li {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }

/* Responsive padding for smaller screens */
@media (max-width: 600px) {
    .slide {
        padding: 1rem;
    }

    .navigation label {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.9rem;
    }
}

/* Slide positioning */
#slide1:checked ~ .slides {
    transform: translateX(0%);
}

#slide2:checked ~ .slides {
    transform: translateX(-100%);
}

#slide3:checked ~ .slides {
    transform: translateX(-200%);
}

#slide4:checked ~ .slides {
    transform: translateX(-300%);
}

* {
    box-sizing: border-box;
}
/* Navigation buttons */
.navigation {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #68815C;
}

    .navigation label {
        display: inline-block;
        margin: 0 0.5rem;
        width: 30px;
        height: 30px;
        background: #c89f67;
        border-radius: 50%;
        text-align: center;
        line-height: 30px;
        color: #fff;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .navigation label:hover {
            background: #a15e2d;
        }


.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 980px;
    margin: auto;
    position: center;
}

.card {
    background: #c4cfbe;
    background: linear-gradient(0deg, rgba(104, 129, 92, 0.07) 0%, rgba(255, 255, 255, 0.97) 100%);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    overflow: hidden;
    padding: 1rem;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    }

.card-link {
    display: block;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #2a4d14;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a4a4a;
}

.custom-list {
    list-style: none;
    padding-left: 2px;
    max-width: 600px;
    margin: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    color: #323232;
}

    .custom-list li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 1.5rem;
        transition: color 0.3s ease;
    }

        .custom-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.3rem;
            width: 12px;
            height: 12px;
            background-color: #ff6600;
            border-radius: 50%;
            transition: background-color 0.3s ease;
        }

        .custom-list li:hover::before {
            background-color: #f1f1f1;
        }

        .custom-list li:hover {
            color: #007acc;
        }

    .custom-list h4 {
        margin: 0 0 0.3rem;
        font-size: 1.1rem;
    }

    .custom-list p {
        margin: 0;
        font-size: 1.1rem;
        color: #706f6f;
        font-family: Verdana, serif;
    }
/* === Table === */
.table-wrap {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,.05)
}

table {
    width: 100%;
    border-collapse: collapse
}

thead th {
    background: var(--brand-green);
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid #e6ebe2
}

tbody tr:nth-child(even) {
    background: #f6f8f4
}

tbody tr:hover {
    background: #e8eee2
}

.page a:link {
    color: #61bf24;
    text-decoration: none;
}

.page a:visited {
    color: #61bf24;
}

.page a:hover {
    color: #b45c2c; /* optional darker hover shade */
}

.page a:active {
    color: #3c7f15; /* optional click shade */
}

.regiment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
}

.regiment-item {
    background-color: #fff;
    padding: 0.75rem 1rem;
    border-left: 4px solid #ff6600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

    .regiment-item:hover {
        transform: translateX(4px);
    }

    .regiment-item a {
        text-decoration: none;
        color: #68815C;
        font-weight: 600;
    }

.regiment-dates {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.5rem;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .regiment-item {
        font-size: 0.95rem;
    }
}
.accordion-group {
    border-top: 1px solid #ddd;
}

.accordion-header {
    cursor: pointer;
    padding: 10px;
    background: #f9f9f9;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

    .accordion-header:hover {
        background: #eee;
    }

.accordion-content {
    display: none;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

    .accordion-content .name {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }

        .accordion-content .name:last-child {
            border-bottom: none;
        }

.show {
    display: block;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    nav .nav-links {
        display: none;
    }

    .mobile-menu.show {
        display: block;
    }
}

div.scrollmenu {
    overflow-x: auto;
    white-space: nowrap;
    background-color: #faf6f2;
    border-radius: 1px;
    padding: 0.3rem;
    font: 'Open Sans', sans-serif;
    text-decoration: none;
    font-weight: thin;
}

    div.scrollmenu a {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin: 0 0.110rem;
        background-color: #c4cfbe;
        border-radius: 1px;
        text-decoration: none;
    }

        div.scrollmenu a:hover {
            background-color: #90a784;
            text-decoration: none;
        }

.responsive {
    width: 40%;
    height: auto;
}
blockquote {
    color: #4A5D23; /* Text color */
    background-color: #f9f9f9; /* Light background */
    border-left: 6px solid #68815C; /* Accent border on the left */
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-family: Verdana, serif;
    position: relative;
}
ul.breadcrumb {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 14px;
}

    ul.breadcrumb li {
        display: inline;
    }

        ul.breadcrumb li a {
            
            padding: 10px 15px;
            text-decoration: none;
            color: #313638;
            font-size: 14px;
            transition: background 0.1s ease, border-radius 0.1s ease;
        }

            ul.breadcrumb li a:hover {
                background: #f7f5f0;
                font-size: 14px;
                border-radius: 10px;
            }

        ul.breadcrumb li::after {
            content: "→";
            margin: 0 5px;
            color: #999;
            font-size: 14px;
        }

        ul.breadcrumb li:last-child::after {
            content: "";
        }
.open-modal-btn {
    padding: 12px 24px;
    background: #c4cfbe;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block; /* Makes the button take full line width */
    margin: 20px auto; /* Vertically adds spacing, and centers horizontally */
}

    .open-modal-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: #c09d95;
}

    .modal-content h2 {
        margin-bottom: 20px;
        color: #333;
    }

    .modal-content a {
        display: block;
        margin: 10px 0;
        color: #c09d95;
        text-decoration: none;
        font-weight: normal;
    }

        .modal-content a:hover {
            text-decoration: underline;
        }

.modal2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal2-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: #c09d95;
}

    .modal2-content h2 {
        margin-bottom: 20px;
        color: #333;
    }

    .modal2-content a {
        display: block;
        margin: 10px 0;
        color: #c09d95;
        text-decoration: none;
        font-weight: normal;
    }

        .modal2-content a:hover {
            text-decoration: underline;
        }

.close-btn {
    margin-top: 20px;
    background: #ddd;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .close-btn:hover {
        background: #bbb;
    }
