/* --- Global Reset & Typography --- */padding: 40px 20px 60px;
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Poppins', sans-serif;
    color: #283B2A;
    line-height: 1.6;
    background: linear-gradient(135deg, #fdfdfb 0%, #f5f6f0 50%, #eaece2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- Accessibility: Skip Link --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #283B2A;
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}
.skip-link:focus { 
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 18px;
    background: #283B2A;
    color: white;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(40, 59, 42, 0.3);
}


.site-search-form {
    display: flex;
	gap: 16px;
	align-items: center;
}

.site-search-results-list {
	padding-left: 50px;
}

.site-search-item {
	padding-left: 50px;
}
.site-search-item h3 a {
	color: inherit; text-decoration: none;border-bottom: 1px dashed #999;
}


.site-search-snippets {
	padding-left: 50px;
}

.site-search-snippets a {
color: inherit; text-decoration: none; border-bottom: 1px dashed #999;
}

/* --- Breadcrumbs --- */
.breadcrumb-nav {
    background-color: rgba(245, 246, 240, 0.85);
    padding: 0px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(40, 59, 42, 0.06);
}
.breadcrumb {
    list-style: none;
    display: flex;
	margin: 0; 
    padding: 0; 
}
.breadcrumb li { margin-right: 10px; }
.breadcrumb li a {
    text-decoration: none;
    color: #495944;
    font-weight: 600;
}
.breadcrumb li a:hover {
    color: #8e1f25;
}
.breadcrumb li::after { content: ">"; margin-left: 10px; color: #ACAE9C; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: #5D6A53; font-weight: normal; }
.breadcrumb li:last-child span {
    color: #8e1f25;
    font-weight: 600;
}


/* --- Header & Navigation --- */
header {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 10px rgba(40, 59, 42, 0.08);
    z-index: 10;
    position: relative;
}


#top-bar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between; /* Changed from 'bottom' to spread logo and nav apart */
    position: relative;
}

.logo-container {
 /*   width: 100%; */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f5f6f0;
}


.site-logo {
    width: 185px;
/*    aspect-ratio: 3 / 2; */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

#nav-bar {
    width: 100%;
	display:flex;
}

#navToggle {
    display: none;
}


nav { 
	width: calc(100% - 20px);
    background-color: #283B2A;
	border-radius: 12px;
	overflow: hidden;
}

nav ul {
    display: flex;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 50px;
}

.nav-item a {
    text-decoration: none;
    color: #f5f6f0;
    font-weight: 600;
    font-size: 1.05rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.nav-item:hover {
    filter: brightness(1.15);
    cursor: pointer;
}

/* Heritage Green Navigation Steps */

.nav-item.home      { background-color: #283B2A; }
.nav-item.people    { background-color: #2D422F; }
.nav-item.places    { background-color: #324834; }
.nav-item.pictures  { background-color: #374F39; }
.nav-item.timeline  { background-color: #3C563E; }
.nav-item.resources { background-color: #415C43; }
.nav-item.contact   { background-color: #466348; }



/* --- HERO SECTION --- */
.hero-section {
    height: 400px;
    background-color: #283B2A;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(40, 59, 42, 0.33), rgba(73, 89, 68, 0.33));

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.cta-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: #8e1f25;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

/* --- MAIN LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px; /* was 40px 20px */
}

.intro-block {
    text-align: center;
    margin-bottom: 50px; /* was 50px */
    background: rgba(172,174,154,0.25);

    padding: 20px 30px;/* was 30px */
    border-radius: 15px;
    border: 1px solid rgba(172, 174, 156, 0.3);
}
.intro-block h2 { color: #283B2A; margin-bottom: 15px; font-size: 2rem; }

.intro-block a:link { color: #283B2A; }
.intro-block a:visited { color: #283B2A; }
.intro-block a:hover { color: #466348; }
.intro-block a:active { color: #283B2A; }

.whats-new-block {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(172,174,154,0.25);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(172, 174, 154, 0.3);

}
.whats-new-block h2 { color: #8e1f25; margin-bottom: 15px; font-size: 2rem; }

/* --- HOME CARDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    text-decoration: none;
    color: #283B2A;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(172, 174, 156, 0.4);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(73, 89, 68, 0.15);
    background: #fff;
}

.card-icon { font-size: 2rem; margin-bottom: 15px; }
.card h3 { font-size: 1.5rem; color: #283B2A; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: #5D6A53; margin-bottom: 20px; }
.card-link { margin-top: auto; font-weight: bold; color: #8e1f25; font-size: 0.9rem; }




/* --- MOBILE STYLES (Triggers under 768px width) --- */
@media (max-width: 768px) {
    /* Stack the logo on top and the navigation bar beneath it */
    #top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        box-sizing: border-box;
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: space-between; /* Pushes logo left, hamburger right if moved inside */
        border-bottom: none;
        padding: 1rem 0;
    }

    #nav-bar {
        position: relative;
        width: 100%;
    }

    nav {
        width: 100%; /* Removes the desktop calc width restriction */
        border-radius: 8px;
    }

    /* Convert the horizontal menu bar into a hidden vertical stack */
    nav ul {
        display: none; 
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    /* Display the menu stack when JavaScript applies the .open class */
    nav.open ul {
        display: flex;
    }

    .nav-item {
        width: 100%;
        min-height: 50px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item a {
        padding: 15px 20px;
        justify-content: flex-start; /* Left-align links for typical mobile readability */
    }

    /* --- Hamburger Icon Construction --- */
    #navToggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: absolute;
        right: 15px;
        top: -55px; /* Adjusts position to sit inline with your logo container */
        z-index: 100;
    }

    /* Turn the 3 spans into visible hamburger bar lines */
    #navToggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #283B2A; /* Matches your brand green color */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Optional: Animate the hamburger into an 'X' close button when active */
    nav.open #navToggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    nav.open #navToggle span:nth-child(2) {
        opacity: 0;
    }
    nav.open #navToggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* =====================================================
   PEOPLE PAGE — Search & Grid Style
   ===================================================== */
.people-search-bar {
    display: flex;
    justify-content: flex-start;
	align-items: flex-start;
    margin-bottom: 10px;
}

.people-search-bar input {
    width: 100%;
    max-width: 200px;
	min-width: 90px;
	flex-shrink: 0;
    padding: 10px 10px;
    border: 2px solid #ACAE9C;
    border-radius: 30px 0 0 30px;
 /*   font-family: 'Poppins', sans-serif; */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.people-search-bar input:focus {
    border-color: #283B2A;
    box-shadow: 0 0 0 3px rgba(40, 59, 42, 0.12);
}

.people-search-bar button {
    padding: 10px 10px;
    background: linear-gradient(135deg, #495944, #283B2A);
    border: 2px solid #495944;	
    border-radius: 0 30px 30px 0;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.people-search-bar button:hover { filter: brightness(1.1); }

.people-sort-bar {
	display: flex; 
	justify-content: flex-start; 
	align-items: flex-start; 
	gap: 10px; 
	margin-bottom: 0px; 
	font-size: 0.8rem; 
/*	color: #7B7F6A; */
}

.sort-btn {
/*	font-family: 'Poppins', sans-serif; */
	font-size: 0.8rem; 
	font-weight: 600; 
	padding: 5px 14px; 
	border-radius: 16px; 
	border: 1.5px solid #ACAE9C; 
	background: white; 
	color: #495944; 
	cursor: pointer; 
	transition: background 0.2s, border-color 0.2s; 
}

.sort-btn.active, .sort-btn:hover { 
	background: #f5f6f0; 
	border-color: #283B2A; 
	color: #283B2A; 
}

.people-result-count { 
	text-align: center; 
	font-size: 0.82rem; 
	color: #495944; 
	margin-bottom: 20px; 
	min-height: 1.2em; 
	transition: color 0.2s; }
	
.people-result-count strong { color: #495944; }



.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.person-card {
    background: white;
    border-radius: 15px;

    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;

    border: 1px solid rgba(0,0,0,0.05);
    border-color: #a0a0a0;

    text-decoration: none;
    color: inherit;
    display: flex;
}

.person-card-pdf {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(73, 89, 68, 0.15);
    border-color: #283B2A;
}

.person-card-image {
    display: none !important;
}

.person-card-body {
    padding: 20px;
	min-height: 200px;
    flex-grow: 1; /* This pushes the footer to the very bottom */
}

.person-card-body h3 {
    font-size: 1.15rem;
    color: #283B2A;
    margin-bottom: 6px;
}

.person-card-body .person-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495944;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.person-card-body p {
    font-size: 0.88rem;
    color: #5D6A53;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.person-card-footer {
    padding: 12px 20px;
    background: #7B7F6A;
    color: white;
    border-top: 1px solid #eef0e8;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.people-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7B7F6A;
    display: none;
    grid-column: 1/-1;
}

.people-no-results p { font-size: 1.1rem; }

/* =====================================================
   PLACES PAGE — Timeline Style
   ===================================================== */

.places-era-nav-wrap { 
	position: sticky; 
	top: 0; 
	z-index: 200; 
	background: #f5f6f0;
	padding: 10px 0; 
	margin-bottom: 20px; 
	margin-top: 50px;
}
   
.places-era-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.era-btn {
    padding: 10px 22px;
	
    background: rgba(172,174,154,0.9);;  
    color: #28352a;
	
    border: 2px solid #ACAE9C;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;
}

.era-btn:hover {
    border-color: #283B2A;
    color: #283B2A;
    background: #d5d6d0;
}

.era-btn.active {

    background: #466348;
    color: white;

    border-color: transparent;
    box-shadow: 0 4px 12px rgba(40, 59, 42, 0.25);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.area-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.06);
    text-align: center;
    color: #283B2A;
    text-decoration: none;
    display: block;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(73, 89, 68, 0.15);
}

.area-image {
    height: 180px;
    background-color: #ACAE9C;
    background-size: cover;
    transition: filter 0.3s;
}

.area-card:hover .area-image { filter: brightness(0.85); }
.area-card h3 { padding: 14px; font-size: 1.1rem; color: #283B2A; }

.places-timeline {
    position: relative;
    padding: 20px 0 60px 0;
}

.places-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #283B2A, #495944, #3A4C37);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
/*    margin-bottom: 40px; */
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
	scroll-margin-top: 90px; /* Match your fixed header height */
}

.timeline-item.left {
	margin-top: -40px;
}

.timeline-item.right {
	margin-top: -40px;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
    transform: translateX(30px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 14px;
    height: 14px;
    background: #8e1f25;
    border: 3px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(142,31,37,0.25);
    z-index: 1;
}

.timeline-card {
    background: white;
    padding: 22px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 420px;
    border-left: 4px solid #8e1f25;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s;
}

.timeline-item.right .timeline-card {
    border-left: none;
    border-right: 4px solid #3A4C37;
}

.timeline-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
    transform: scale(1.02);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8e1f25;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.timeline-item.right .timeline-year { color: #3A4C37; }

.timeline-card h3 {
    font-size: 1.1rem;
    color: #283B2A;
    margin-bottom: 8px;
}

.timeline-card p {
    font-size: 0.88rem;
    color: #5D6A53;
    line-height: 1.5;
    margin-bottom: 12px;
}

.timeline-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8e1f25;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}

.timeline-read-more:hover { text-decoration: underline; }

.area-close-btn {
    background: none;
    border: 2px solid #ACAE9C;
    color: #7B7F6A;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.area-close-btn:hover {
    border-color: #8e1f25;
    color: #8e1f25;
    background: #fdf2f2;
}

.timeline-item.right::after {
    background: #3A4C37;
    box-shadow: 0 0 0 3px rgba(58, 76, 55, 0.25);
}

.area-detail {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    display: none;
}

.area-detail.active { display: block; }
/* .split-layout { display: flex; gap: 30px; flex-wrap: wrap; } */
.split-layout { 
  display: flex; 
  gap: 30px; 
  flex-wrap: wrap; 
  width: 100%;          /* Forces the layout container to take up all available horizontal screen space */
}



/* .split-text { flex: 1; min-width: 0; }*/
.split-text { 
  flex: 1 1 calc(50% - 15px); /* Grows to exactly 50% width minus half the gap */
  min-width: 300px; 
}


/* .split-map { flex: 1; min-width: 300px; height: 300px; background: #f5f6f0; border-radius: 10px; display: flex; align-items: center; justify-content: center; } */

.split-map { 
  flex: 1 1 calc(50% - 15px); /* Locks to exactly 50% width minus half the gap */
  min-width: 300px; 
  height: 300px; 
  background: #f5f6f0; 
  border-radius: 10px; 
  overflow: hidden;           /* Keeps the image contained inside the rounded corners */
}



.article-list { list-style: none; padding: 0; }
.article-list li { padding: 8px 0; border-bottom: 1px solid #eef0e8; }
.article-list li a { color: #3A4C37; text-decoration: none; font-size: 0.92rem; }
.article-list li a:hover { color: #8e1f25; }

.place-img {
  width: 100%;          /* Forces it to stretch to the container width */
  height: 100%;         /* Forces it to stretch to the container height */
  min-width: 100%;      /* Overrides any default image file limits */
  min-height: 100%;     /* Overrides any default image file limits */
  object-fit: cover;    /* Prevents distortion when stretching */
  border-radius: 10px;  /* Matches your box corners */
  display: block;       /* Removes unwanted inline text spacing at the bottom */
}


.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
}

.photo-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.photo-card img { display: block; }
.photo-caption {
    background: #283B2A;
    color: white;
    padding: 8px 12px;
    font-size: 0.82rem;
}

/* =====================================================
   INFO MODAL (Cookie-style popup for long text)
   ===================================================== */
   
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 59, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    display: flex;

    justify-content: center;
/*  align-items: flex-end; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.info-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.info-modal, 
.info-modal-header, 
.info-modal-body {
    box-sizing: border-box !important;
}

.info-modal {
    background: white;
    width: 100%;
    max-width: 760px;
    max-height: 90vh; /* was 85vh */
    border-radius: 24px 24px 0 0;
    padding: 0;
    overflow: hidden;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.info-modal-overlay.open .info-modal {
    transform: translateY(0);
}

.info-modal-header {
    background: linear-gradient(135deg, #283B2A, #3A4C37);
    padding: 22px 28px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.info-modal-header h2 {
    color: white;
    font-size: 1.35rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}



.info-modal-header .modal-role {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 3px;
}

.modal-close-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.modal-close-btn:hover { background: rgba(255,255,255,0.4); }
.info-modal-body {
    overflow-y: auto;
    padding: 24px 28px;
    flex: 1;
}

.modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-summary {
    background: linear-gradient(135deg, #f5f6f0, #eaece2);
    border-left: 4px solid #8e1f25;
    border-radius: 0 8px 8px 0;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #283B2A;
    font-weight: 500;
    line-height: 1.6;
}

.modal-full-text {
    font-size: 0.92rem;
    color: #5D6A53;
    line-height: 1.75;
}
.modal-full-text p {
  margin-top: 1em; /* Standard line is 1em, this adds 1 more */
}
.modal-full-text ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
.modal-full-text a:link { color: #5D6A53;}
.modal-full-text a:visited { color: #5D6A53;}
.modal-full-text a:hover {color: #283B2A; }
.modal-full-text a:active { color: #5D6A53;}


.modal-full-text.expanded { display: block; }

.modal-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #8e1f25;
    color: #8e1f25;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 14px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-read-more-btn:hover {
    background: #8e1f25;
    color: white;
}

.modal-read-more-btn .btn-arrow {
    transition: transform 0.2s;
}

.modal-read-more-btn.expanded .btn-arrow {
    transform: rotate(180deg);
}

.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: #ACAE9C;
    border-radius: 2px;
    margin: 10px auto 0;
}

/* =====================================================
   RESOURCES PAGE
   ===================================================== */
.resource-section { margin-bottom: 60px; }

.section-title {
    color: #283B2A;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(73, 89, 68, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 100px;
}

.resource-card {
    background: white;
    border-radius: 12px;

    overflow: hidden;
    cursor: pointer;
    display: block;

    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #283B2A;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(73, 89, 68, 0.15);
    border-color: #8e1f25;
}

.res-icon {
    background-color: #f5f6f0;
    color: #283B2A;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-card:hover .res-icon {
    background-color: #8e1f25;
    color: white;
    transition: background 0.3s;
}

.res-content h4 { font-size: 1.2rem; color: #283B2A; margin-bottom: 8px; font-weight: 600; }
.res-content p { font-size: 0.9rem; color: #5D6A53; margin-bottom: 15px; line-height: 1.5; }

.link-text { font-size: 0.85rem; font-weight: bold; color: #8e1f25; text-transform: uppercase; letter-spacing: 0.5px; }

/* =========================================
 *
 * Comments styles
 *
 * ========================================== */

/*
 * Additional styling at the footer of the home page 
 * They are class="suggest-resource-btn"
 */
#see-comments, 
#home-donate {margin: 10px 20px 22px 32px; padding:10px;}

/*
 * Main block of the comments section
 */
#comments-section {background: #c5c4c0; display: none; width: 100%;padding: 10px;}

#name { width: 30%;}

#comment { width: 100%;}

#name, #comment {
      font-family: inherit;
      font-size: 14px;
      box-sizing: border-box; 
}

.comment-box {width: 100%; border: 1px solid #eee; padding:10px; margin: 10px 0; }
	
#comment-button {background: #5D6A53;  padding:10px; margin: 10px; }

.comment-error { color: red; }

	
#comments-vertical-box {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
	  width: 100%;
}
.home-endpage-thoughts {
		display: flex;
		justify-content: space-around;
		width: 100%;
		flex-wrap: wrap;
		gap:30px;
		align-items: flex-start;
}
.home-thought {	
		max-width: 50%; 
		min-width: 280px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
}

/* =========================================
 *
 * Donations page styles
 *
 * ========================================== */
 
 
.donation-text {
    text-align: center;
	padding-top: 6px;
}
.donation-grid {
	display:flex;
	justify-content: space-around;
	row-gap: 20px;
	flex-wrap: wrap;
}
.donation-amount {
	margin-bottom: 12px;	
	width: 200px;
	text-align: center;
	align-items: center; 
	
    padding: 20px;
	border: 2px solid #555;	
	border-radius: 8px;
	
	display:flex;
	flex-direction: column;
	box-sizing: border-box;
}
.donation-amount p {
	font-weight: 800;
	font-size: 2.5rem;
	padding: 10px; 
	margin: 20px 0;
}
.donation-amount a {
	color: white;
	background: #283B2A;
	font-weight: 700;
	font-size: 2.0rem;
    padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
}
@media (max-width: 600px) {
	.donation-amount {
		width: 45%; 
		max-width: 280px; 
	}
	.donation-amount p {
		font-size: 1.5rem; 
	}
	.donation-amount a {
		font-size: 1.0rem;
	}
}

/*=================================================================
 * Styles to support ARTICLES 
 * 
 * Automatically converted from Word .docx files to html
 *================================================================= */
 
.article-container {
	max-width: 800px;
	color: #000000;  /* #283B2A is the text color elsewhere  */
    margin: 0 auto;
    padding: 20px 20px; /* was 40px 20px */
}
.article-container .Title,
.article-container .title
 {
	font-weight: 800;
	font-size: 2.3rem;
	
	border-bottom: 2px solid #555; 
	padding-bottom: 8px;           
	margin-bottom: 24px;          
}


.article-container h1 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.article-container h2 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

/* Specific rule for paragraphs right below an H1 */
.article-container h1 + p {
    margin-top: 0.2rem;
    margin-bottom: 0;
}

/* Default rule for all other paragraphs */
.article-container p {
    margin-top: 1.2rem;
    margin-bottom: 0;
    font-size: 1.0rem;
}

.article-container h1,
.article-container h2,
.article-container h3,
.article-container h4 {
    clear: both !important;
    /* Removed padding-top and moved the spacing directly into the header margins above */
}
.word-textbox {
	display: block;
	clear: both;
	width: 90%;
	margin: 10px auto;
	background: #ACAE9C;	
	border: 2px solid black;
	border-radius: 12px;
	padding: 10px;
	padding-bottom: 20px;   
}
.word-textbox p {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.word-textbox-left {
	display: block;
	float: left;
	width: 46%;  
//	margin: 16px 28px 24px 0;
    margin: 0.5rem 1.5rem 1rem 0;	
	background: #ACAE9C;	
	border: 2px solid black;
	border-radius: 12px;
	padding: 10px;
	padding-bottom: 20px;   
}
.word-textbox-left p {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.word-textbox-right {
	display: block;
	float: right;
	width: 46%;  
//	margin: 16px 0 24px 28px;
	margin: 0.5rem 0 1rem 1.5rem;
	background: #ACAE9C;	
	border: 2px solid black;
	border-radius: 12px;
	padding: 10px;
	padding-bottom: 20px;   
}
.word-textbox-right p {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}


/* To fix the caption problem */
/* ==========================================================================
   1. BASE LOOSE IMAGE & WRAPPER STYLES
   ========================================================================== */
.article-container img {
  width: 90%;
  height: auto;
  display: block;
}

.article-container .captioned-image-block {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.article-container .image-caption-text {
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
  width: 100%;
}

/* ==========================================================================
   2. LARGE CENTRED IMAGES (FIXED CLASS NAME)
   ========================================================================== */
/* Targets the loose image OR the parent block wrapper */
.article-container img.large-center-img,
.article-container .captioned-image-block:has(img.large-center-img) {
  display: block;
  float: none;
  width: 90%;        
  max-width: 1000px;  
  margin: 20px auto; 
}

/* Ensures a captioned large image fills 100% of its specific wrapper block width */
.article-container .captioned-image-block img.large-center-img {
  width: 100%; 
}

/* ==========================================================================
   3. SMALL FLOATED UTILITIES (MAXIMIZED IMAGE, ADJUSTED VERTICAL SPACING)
   ========================================================================== */

/* --- LEFT ALIGNMENT MECHANICS --- */
/* Floats either a loose image OR the outer container block wrapper left */
.article-container img.small-img-left,
.article-container .captioned-image-block:has(img.small-img-left) {
  display: block;
  float: left;
  width: 46%;                  /* CHANGED: Wider block leaves less room for ugly text gaps */
  max-width: 400px;  
  min-width: 300px;  
  margin: 16px 28px 24px 0;   /* ADJUSTED: More margin on top (16px), bottom (24px), and right (28px) */
}

/* Inside the left wrapper block */
.article-container .captioned-image-block img.small-img-left {
  float: none;       
  width: 100%;                 /* CHANGED: 100% width removes the excessive left/right empty space */
  margin: 0;    
}


/* --- RIGHT ALIGNMENT MECHANICS --- */
/* Floats either a loose image OR the outer container block wrapper right */
.article-container img.small-img-right,
.article-container .captioned-image-block:has(img.small-img-right) {
  display: block;
  float: right;
  width: 46%;                  /* CHANGED: Wider block leaves less room for ugly text gaps */
  max-width: 400px;  
  min-width: 300px;  
  margin: 16px 0 24px 28px;   /* ADJUSTED: More margin on top (16px), bottom (24px), and left (28px) */
}

/* Inside the right wrapper block */
.article-container .captioned-image-block img.small-img-right {
  float: none;       
  width: 100%;                 /* CHANGED: 100% width removes the excessive left/right empty space */
  margin: 0;    
}

/* ==========================================================================
   5. MOBILE & TABLET OPTIMIZATION ENGINE
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Prevent small fonts or oversized headers */
    .article-container .Title,
    .article-container .title {
        font-size: 1.8rem; /* Drops size down so titles fit smoothly without breaking */
        margin-bottom: 16px;
    }

    /* 2. Break down all floating grids cleanly into standalone blocks */
    .article-container img.small-img-left,
    .article-container .captioned-image-block:has(img.small-img-left),
    .article-container img.small-img-right,
    .article-container .captioned-image-block:has(img.small-img-right) {
        float: none !important;
        width: 100% !important; /* Spans full content area to remove sidebar compression */
        max-width: 100% !important;
        min-width: 0 !important; /* Overrides the 300px freeze killing narrow screens */
        margin: 20px 0 !important; /* Rebalances margins perfectly in the central vertical text layout */
    }

    /* 3. Make sure lone images fill up text space beautifully */
    .article-container img {
        width: 100% !important;
        margin: 0 auto;
    }

    /* 4. Let textboxes adapt nicely to tight borders */
    .word-textbox {
        width: 100%;
        box-sizing: border-box; /* Guarantees padding won't force text out of the bounding limits */
    }
	.word-textbox-left {
        width: 100%;
        box-sizing: border-box; /* Guarantees padding won't force text out of the bounding limits */
    }
	.word-textbox-right {
        width: 100%;
        box-sizing: border-box; /* Guarantees padding won't force text out of the bounding limits */
    }
}


/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-panel,
.contact-form-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-panel h3,
.contact-form-panel h3 {
    color: #283B2A;
    margin-bottom: 25px;
    border-bottom: 2px solid #f5f6f0;
    padding-bottom: 10px;
}

.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }

.info-icon {
    font-size: 1.5rem;
    background: #f5f6f0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A4C37;
}

.info-text h4 { font-size: 1rem; color: #283B2A; margin-bottom: 5px; }
.info-text p, .info-text a { color: #5D6A53; text-decoration: none; font-size: 0.95rem; }
.info-text a:hover { color: #8e1f25; text-decoration: underline; }

.map-container {
    width: 100%;
    height: 200px;
    background-color: #f5f6f0;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ACAE9C;
    overflow: hidden;
}

.map-placeholder-content { text-align: center; color: #7B7F6A; }

.social-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef0e8;
    font-size: 0.9rem;
}

.social-links h4 { display: inline-block; margin-right: 10px;  }
.social-links a { color: #3A4C37; font-weight: 600; text-decoration: none; margin: 0 5px; }
.social-links a:hover { color: #8E1F25; text-decoration: underline; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #283B2A; }
.required { color: #8e1f25; }

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eef0e8;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    border-color: #283B2A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 59, 42, 0.2);
}

.submit-btn { width: 100%; font-size: 1.1rem; background-color: #283B2A; color: white; }
.submit-btn:hover { background-color: #3A4C37; }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* =====================================================
   PRIVACY POLICY
   ===================================================== */
.policy-document {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.last-updated { font-style: italic; color: #7B7F6A; margin-top: -10px; }
.policy-section { margin-bottom: 30px; }
.policy-section h3 { color: #283B2A; border-bottom: 1px solid #eef0e8; padding-bottom: 10px; margin-bottom: 15px; }
.policy-section p { margin-bottom: 15px; color: #283B2A; }
.policy-section ul { margin-left: 20px; margin-bottom: 15px; }
.policy-section ul li { margin-bottom: 8px; color: #5D6A53; }
.policy-section a { color: #8e1f25; text-decoration: underline; }
.policy-section a:hover { text-decoration: none; }

.dpo-box {
    background-color: #f5f6f0;
    border-left: 5px solid #283B2A;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}
.dpo-box h4 { margin-bottom: 10px; color: #283B2A; }
.dpo-box p { margin-bottom: 5px; font-size: 0.95rem; }

/* ==========================================
   1. GLOBAL STYLES (PC Look Preserved Exactly)
   ========================================== */
   
footer {
    background: linear-gradient(to bottom, #3A4C37, #1b261b 90%);
    color: #ACAE9C;
    padding: 20px 20px 30px;
    text-align: center;
    margin-top: auto;
}
.footer-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 6px; 
}

.footer-quick-nav { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 6px; 
    margin-bottom: 6px; 
}

.footer-quick-nav a { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    font-size: 0.82rem; 
    transition: color 0.2s; 
}

.footer-quick-nav a:hover { 
    color: white; 
}

.copyright {
    margin: 0;

    font-size: 0.82rem;
}
/*
 * additional two elements in the FOOTER
 */
.split-footer {
    display: flex;
    flex-direction: column; /* Stack strings vertically on top of each other */
    align-items: center;    /* Center them nicely on a phone screen */
    text-align: center;
    gap: 15px;             /* A neat, small vertical space between the lines */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Reset individual alignments for mobile so they don't look weirdly stepped */
.split-footer p:first-child,
.split-footer p:last-child {
    text-align: center;
    margin: 0;
}


/* 2. DESKTOP DEFINITION (Triggers only when screen is wider than 768px) */
@media (min-width: 768px) {
    .split-footer {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Snap back to your side-by-side columns */
        column-gap: 200px;              /* Safely use your huge desktop gap here! */
        padding: 0 40px;
    }

    .split-footer p:first-child {
        text-align: right; /* Flush right against the big 200px gap */
    }

    .split-footer p:last-child {
        text-align: left;  /* Flush left against the big 200px gap */
    }
}



@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
	
    .policy-document { padding: 20px; }
    .places-timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item.right {
		margin-top: 10px;
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
	.timeline-item.left {
		margin-top: 10px;
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-item::after { left: 20px; }
    .timeline-card { max-width: 100%; }
	.info-modal-overlay {
		align-items: flex-end;
	}
	.info-modal { 
        max-height: 100% !important
        width: 100%; /* Ensure full utility width */
        margin: 0 !important;   /* Remove side margin conflicts */
    }
    .info-modal-header { padding: 16px 18px 12px; }
    .info-modal-header h2 { font-size: 1.1rem; }
    .info-modal-body { padding: 16px 18px; }


   //* ==========================================
   2. RESPONSIVE MOBILE OVERRIDES
   ========================================== */
      .footer-content {
        display: grid ;
        grid-template-columns: 1fr ;
        grid-template-rows: auto auto ; /* Row 1: Links, Row 2: Copyright */
        row-gap: 20px ;                 /* Enforces a physical 20px gap */
        height: auto ;
        max-height: none ;
        padding: 10px 0 ;
    }

    /* 2. Enforce explicit layout boundaries for the link section */
    .footer-quick-nav {
        display: flex ;
 /*     flex-direction: column ; */
        align-items: center ;
        justify-content: center ;
        height: auto ;
        max-height: none ;
        gap: 12px ;
        margin: 0 ;
        padding: 0 ;
    }

    /* 3. Strip any height or positioning quirks from links */
    .footer-quick-nav a {
        display: inline-block ;
        height: auto ;
        line-height: 1.4 ; /* Prevents text boxes collapsing into each other */
        margin: 0 ;
    }

    /* 4. Force copyright text to sit clearly in its own grid cell below the links */
    p.copyright {
        margin: 0 ;
        padding: 0 ;
        height: auto ;
        line-height: 1.5 ;
        text-align: center ;
    }
}


/* =====================================================
   HAMBURGER NAV — shared across all pages
   ===================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    flex-direction: column;
    gap: 5px;
    align-self: center;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #283B2A;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    header { flex-wrap: wrap; position: relative; align-items: stretch; }
    .nav-toggle { display: flex; margin-top: -3.5rem; margin-bottom: 1rem; margin-right: 1rem; }
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    nav.open { max-height: 400px; }
    nav ul { flex-direction: column; }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        min-height: 48px;
    }
    .nav-item a { justify-content: flex-start; padding-left: 24px; }
}

/* =====================================================
   BACK TO TOP BUTTON — shared
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 22px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #495944, #283B2A);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(40, 59, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 800;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.back-to-top:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* =====================================================
   ACTIVE NAV ITEM HIGHLIGHT
   ===================================================== */
.nav-item a[aria-current="page"] {
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 -3px 0 rgba(255,255,255,0.5);
}

/* =====================================================
   FOOTER ENHANCEMENTS
   ===================================================== */
.footer-tagline {
    font-size: 0.82rem;
    opacity: 0.55;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

/* =====================================================
   GENERAL MOBILE POLISH
   ===================================================== */
@media (max-width: 480px) {
    .hero-content h2 { font-size: 1.6rem; }
    .hero-content p  { font-size: 0.9rem; }
    .intro-block h2  { font-size: 1.5rem; }
    .container       { padding: 24px 14px; }
    .breadcrumb      { padding-left: 14px; }
    .card-grid { grid-template-columns: 1fr; gap: 18px; }
    .people-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .policy-document { padding: 18px 14px; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .people-search-bar input { border-radius: 30px 0 0 30px; }
    .info-modal {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
		width: 100vw; /* ✨ Force exact screen-fitting width */
		box-sizing: border-box;
    }
	
    .info-modal-header { padding: 16px 18px 12px; }
    .info-modal-header h2 { font-size: 1.1rem; }
    .info-modal-body { padding: 16px 18px; }
	
    .info-modal-header > div {
        min-width: 0; 
        flex: 1;
    }
    
    .info-modal-header h2 {
        white-space: normal; 
        word-break: break-word;
    }	
/*
    .footer-links { gap: 16px; flex-direction: column; align-items: center; }
*/	
}


/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #283B2A, #3A4C37);
    color: #eef0e8;
    padding: 18px 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner p {
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.cookie-banner a {
    color: #ACAE9C;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

.cookie-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cookie-btn-accept {
    background: #8e1f25;
    color: white;
}

.cookie-btn-decline {
    background: rgba(255,255,255,0.12);
    color: #eef0e8;
    border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}

/* =====================================================
   READING PROGRESS BAR
   ===================================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #8e1f25, #495944, #283B2A);
    z-index: 1200;
    transition: width 0.1s linear;
}

/* =====================================================
   TAG FILTER CHIPS — People page
   ===================================================== */
.people-tag-filter {
    display: flex;
    justify-content: flex-end;
	width: 100%;
	align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.tag-chip {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 20px;
    border: 2px solid #ACAE9C;
    background: white;
    color: #5D6A53;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.tag-chip:hover {
    border-color: #283B2A;
    color: #283B2A;
    background: #f5f6f0;
}

.tag-chip.active {
    background: linear-gradient(135deg, #8e1f25, #283B2A);
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(40, 59, 42, 0.3);
}

.tag-chip[data-tag="all"].active {
    background: linear-gradient(135deg, #283B2A, #495944);
}

/* =====================================================
   OPENING HOURS — Contact page
   ===================================================== */
.opening-hours {
    background: white;
    border-radius: 15px;
    padding: 28px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.opening-hours h3 {
    color: #283B2A;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5f6f0;
    padding-bottom: 10px;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.hours-row {
    display: contents;
}

.hours-row .day,
.hours-row .time {
    padding: 9px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f6f0;
}

.hours-row .day { font-weight: 600; color: #283B2A; }
.hours-row .time { color: #5D6A53; text-align: right; }

.hours-row.today .day,
.hours-row.today .time {
    color: white;
    font-weight: 700;
    background: #8e1f25;
}

.hours-row.closed .time { color: #ACAE9C; font-style: italic; }

.hours-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #5D6A53;
    padding: 10px 14px;
    background: #f5f6f0;
    border-radius: 8px;
    border-left: 3px solid #495944;
}

/* =====================================================
   "ON THIS PAGE" SIDEBAR — Privacy Policy
   ===================================================== */
.policy-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.policy-toc {
    position: sticky;
    top: 24px;
    background: white;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    font-size: 0.83rem;
}

.policy-toc h4 {
    color: #283B2A;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f6f0;
}

.policy-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.policy-toc li {
    counter-increment: toc;
    margin-bottom: 6px;
}

.policy-toc a {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: #5D6A53;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 7px;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.policy-toc a::before {
    content: counter(toc) ".";
    color: #8e1f25;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.policy-toc a:hover,
.policy-toc a.active {
    background: #f5f6f0;
    color: #283B2A;
}

@media (max-width: 820px) {
    .policy-layout { grid-template-columns: 1fr; }
    .policy-toc { position: static; margin-bottom: 20px; }
}

/* =====================================================
   DID YOU KNOW — Homepage ticker
   ===================================================== */
.did-you-know {
    background: linear-gradient(135deg, #283B2A, #495944);
    color: white;
    padding: 18px 28px;
    border-radius: 14px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 80px;
}



.dyk-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.75;
    white-space: nowrap;
    flex-shrink: 0;
}

.dyk-divider {
    width: 2px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 1px;
    flex-shrink: 0;
}

.dyk-text {
    font-size: 0.93rem;
    line-height: 1.55;
    flex: 1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.dyk-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.dyk-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dyk-btn {
    background: rgba(255,255,255,0.18);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dyk-btn:hover { background: rgba(255,255,255,0.32); }

@media (max-width: 500px) {
    .did-you-know { flex-wrap: wrap; }
    .dyk-divider { display: none; }
    .dyk-label { width: 100%; }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    header, nav, footer, .skip-link, .breadcrumb-nav,
    .cookie-banner, .back-to-top, .reading-progress,
    .modal-read-more-btn, .info-modal-overlay { display: none !important; }

    body {
        background: white;
        color: black;
        font-size: 11pt;
    }

    .container { max-width: 100%; padding: 0; }
    .policy-layout { grid-template-columns: 1fr; }
    .policy-toc { display: none; }
    .policy-document { box-shadow: none; padding: 0; }
    .policy-section { page-break-inside: avoid; }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #666;
    }
    a[href^="#"]::after,
    a[href^="mailto"]::after { content: ""; }
}

/* =====================================================
   EVENTS PAGE
   ===================================================== */
.events-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    align-items: center;
}

.events-filter-bar label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5D6A53;
    margin-right: 4px;
}

.events-filter-bar select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    padding: 8px 14px;
    border: 2px solid #ACAE9C;
    border-radius: 22px;
    background: white;
    color: #283B2A;
    cursor: pointer;
    transition: border-color 0.2s;
}

.events-filter-bar select:focus {
    outline: none;
    border-color: #283B2A;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 60px;
}

.event-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 90px 1fr auto;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(40, 59, 42, 0.15);
}

.event-date-block {
    background: linear-gradient(160deg, #283B2A, #495944);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    min-width: 90px;
}

.event-date-block .event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-block .event-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    margin-top: 3px;
}

.event-date-block .event-year {
    font-size: 0.72rem;
    opacity: 0.65;
    margin-top: 2px;
}

.event-body { padding: 20px 24px; }
.event-body h3 { font-size: 1.05rem; color: #283B2A; margin-bottom: 6px; }

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: #7B7F6A;
    margin-bottom: 10px;
}

.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-body p { font-size: 0.88rem; color: #5D6A53; line-height: 1.6; margin: 0; }
.event-tag {
    align-self: start;
    margin: 20px 20px 0 0;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.event-tag.talk     { background: #f5f6f0; color: #283B2A; }
.event-tag.tour     { background: #eaece2; color: #3A4C37; }
.event-tag.workshop { background: #fdf2f2; color: #8e1f25; }
.event-tag.open-day { background: #eaece2; color: #495944; }
.event-tag.online   { background: #f5f6f0; color: #5D6A53; }

.event-card.past { opacity: 0.55; }
.event-card.past .event-date-block { background: linear-gradient(160deg, #7B7F6A, #ACAE9C); }
.events-empty { text-align: center; padding: 50px 20px; color: #ACAE9C; font-size: 0.95rem; display: none; }

.events-section-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #495944;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5f6f0;
}

.past-events-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #495944;
    margin-top: 20px;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}
.past-events-toggle:hover { text-decoration: underline; }


@media (max-width: 600px) {
    .event-card { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
    .event-tag { grid-column: 2; margin: 0 0 12px 24px; align-self: auto; }
    .event-date-block { padding: 16px 8px; }
    .event-date-block .event-day { font-size: 1.6rem; }
    .event-body { padding: 16px 16px 8px; }
}

/* =====================================================
   CONTRIBUTE PAGE
   ===================================================== */
.contribute-intro { max-width: 720px; }
.contribute-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 32px 0 44px;
}

.contribute-type-card {
    background: white;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-top: 4px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.contribute-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 59, 42, 0.12);
}

.contribute-type-card.photo  { border-color: #8e1f25; }
.contribute-type-card.doc    { border-color: #283B2A; }
.contribute-type-card.memory { border-color: #3A4C37; }
.contribute-type-card.correct{ border-color: #495944; }

.contribute-type-icon { font-size: 2rem; margin-bottom: 10px; }
.contribute-type-card h3 { font-size: 0.95rem; color: #283B2A; margin-bottom: 6px; }
.contribute-type-card p  { font-size: 0.82rem; color: #7B7F6A; line-height: 1.5; margin: 0; }
.contribute-form-wrap { background: white; border-radius: 16px; padding: 36px 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); max-width: 780px; }

@media (max-width: 600px) { .contribute-form-wrap { padding: 24px 18px; } }
.contribute-form-wrap h3 { color: #283B2A; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid #f5f6f0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 0.78rem; color: #ACAE9C; margin-top: 4px; }

.file-upload-zone {
    border: 2px dashed #ACAE9C;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: #f5f6f0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: #283B2A;
    background: #eaece2;
}

.file-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-zone p { font-size: 0.85rem; color: #7B7F6A; margin: 0; }
.file-upload-zone strong { color: #495944; }
.file-list { margin-top: 12px; font-size: 0.82rem; color: #5D6A53; }
.file-list li { list-style: none; padding: 3px 0; }
.file-list li::before { content: "📎 "; }

/* =====================================================
   NEWSLETTER SIGNUP — footer widget
   ===================================================== */
.footer-newsletter { margin-bottom: 28px; text-align: center; }
.footer-newsletter p { font-size: 0.85rem; opacity: 0.75; margin-bottom: 12px; }
.newsletter-form { display: flex; justify-content: center; gap: 0; max-width: 380px; margin: 0 auto; }

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    outline: none;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-right: none;
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input[type="email"]:focus { background: rgba(255,255,255,0.22); }

.newsletter-form button {
    padding: 10px 20px;
    background: #8e1f25;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s;
}
.newsletter-form button:hover { filter: brightness(1.1); }
.newsletter-success { display: none; font-size: 0.85rem; color: #ACAE9C; margin-top: 8px; }

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; max-width: 280px; }
    .newsletter-form input[type="email"] { border-radius: 25px; border-right: 1px solid rgba(255,255,255,0.25); margin-bottom: 8px; }
    .newsletter-form button { border-radius: 25px; }
}

/* =====================================================
   404 PAGE
   ===================================================== */
.not-found-section { text-align: center; padding: 40px 20px 40px; max-width: 560px; margin: 0 auto; }
.not-found-section .error-code {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8e1f25, #283B2A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}
.not-found-section h2 { color: #283B2A; font-size: 1.5rem; margin-bottom: 14px; }
.not-found-section p { line-height: 1.65; margin-bottom: 16px; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }


/* =====================================================
   ENHANCEMENTS & SMOOTH ANIMATIONS
   ===================================================== */
.area-detail {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.area-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.article-sources { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #ACAE9C; }
.article-sources-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: #495944; margin-bottom: 6px; }
.article-sources ul { list-style: none; padding: 0; margin: 0; }
.article-sources li { font-size: 0.78rem; color: #7B7F6A; line-height: 1.6; padding-left: 14px; position: relative; }
.article-sources li::before { content: "–"; position: absolute; left: 0; color: #ACAE9C; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #ACAE9C;
    color: #495944;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.share-btn:hover { background: #f5f6f0; border-color: #283B2A; color: #283B2A; }
.share-btn.copied { background: #e8f5e9; border-color: #283B2A; color: #283B2A; }
.share-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #f5f6f0; flex-wrap: wrap; }
.share-bar-label { font-size: 0.8rem; color: #ACAE9C; font-weight: 500; }

.person-era {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    background: #f5f6f0;
    color: #495944;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.res-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.3px; }
.res-badge.external  { background: #e3f2fd; color: #283B2A; }
.res-badge.free      { background: #e8f5e9; color: #3A4C37; }
.res-badge.paid      { background: #fdf2f2; color: #8e1f25; }
.res-badge.coming    { background: #f5f6f0; color: #7B7F6A; }

.info-modal-overlay.open { animation: fadeInOverlay 0.2s ease; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.info-modal { animation: slideUpModal 0.3s cubic-bezier(0.34, 1.2, 0.64, 1); }
@keyframes slideUpModal { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.char-counter { font-size: 0.75rem; color: #ACAE9C; text-align: right; margin-top: 4px; transition: color 0.2s; }
.char-counter.near  { color: #8e1f25; }
.char-counter.over  { color: #8e1f25; font-weight: 600; }


@media print {
    .past-events-toggle { display: none; }
    #past-events-list   { display: flex !important; flex-direction: column; gap: 16px; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 50px;
    overflow: hidden;
}

.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid #f5f6f0; position: relative; }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.4rem; font-weight: 700; background: linear-gradient(135deg, #8e1f25, #283B2A); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 6px; display: block; }
.stat-label { font-size: 0.78rem; color: #7B7F6A; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

@media (max-width: 600px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid #f5f6f0; }
    .stat-number { font-size: 1.9rem; }
}
@media (max-width: 360px) { .stats-strip { grid-template-columns: 1fr; } .stat-item { border-right: none; border-bottom: 1px solid #f5f6f0; } }

.hero-scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    animation: bounceCue 2s infinite;
    user-select: none;
}
.hero-scroll-cue .cue-arrow { font-size: 1.3rem; line-height: 1; }
@keyframes bounceCue { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@media (max-width: 480px) { .hero-scroll-cue { display: none; } }

.area-card-badge { position: absolute; top: 10px; right: 10px; background: rgba(40,59,42,0.75); color: white; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; letter-spacing: 0.3px; backdrop-filter: blur(4px); }
.area-card { position: relative; }


.res-last-checked { font-size: 0.72rem; color: #ACAE9C; margin-top: 8px; display: block; }
.suggest-resource { background: linear-gradient(135deg, #f5f6f0, #eaece2); border-radius: 14px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.suggest-resource-text h3 { font-size: 1rem; color: #283B2A; margin-bottom: 6px; }
.suggest-resource-text p { font-size: 0.85rem; color: #5D6A53; margin: 0; }
.suggest-resource-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #8e1f25, #283B2A); color: white; text-decoration: none; padding: 10px 22px; border-radius: 22px; font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 10px rgba(142,31,37,0.3); transition: transform 0.2s, box-shadow 0.2s; }
.suggest-resource-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(142,31,37,0.4); }

.open-now-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 12px; margin-left: 12px; vertical-align: middle; }
.open-now-badge.open { background: #e8f5e9; color: #3A4C37; }
.open-now-badge.closed { background: #fdf2f2; color: #8e1f25; }
.open-now-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-now-badge.open::before { animation: pulse-green 1.6s infinite; }
@keyframes pulse-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.form-group input.invalid, .form-group textarea.invalid, .form-group select.invalid { border-color: #8e1f25 !important; box-shadow: 0 0 0 3px rgba(142,31,37,0.12); }
.form-group input.valid, .form-group textarea.valid, .form-group select.valid { border-color: #3A4C37 !important; }
.field-error { font-size: 0.76rem; color: #8e1f25; margin-top: 4px; display: none; }
.field-error.visible { display: block; }

.add-to-cal-wrap { position: relative; display: inline-block; }
.add-to-cal-btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif; font-size: 0.75rem; font-weight: 600; padding: 5px 13px; border-radius: 14px; border: 1.5px solid #ACAE9C; background: white; color: #495944; cursor: pointer; transition: background 0.2s, border-color 0.2s; margin-top: 10px; }
.add-to-cal-btn:hover { background: #f5f6f0; border-color: #283B2A; }
.cal-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: white; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); z-index: 300; min-width: 180px; overflow: hidden; }
.cal-dropdown.open { display: block; }
.cal-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 0.83rem; color: #283B2A; text-decoration: none; transition: background 0.15s; }
.cal-dropdown a:hover { background: #f5f6f0; color: #283B2A; }

.print-btn { display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: 20px; border: 1.5px solid #ACAE9C; background: white; color: #495944; cursor: pointer; transition: background 0.2s, border-color 0.2s; margin-top: 8px; }
.print-btn:hover { background: #f5f6f0; border-color: #283B2A; color: #283B2A; }

.not-found-suggestions { margin-top: 32px; font-size: 0.85rem; color: #7B7F6A; }
.not-found-suggestions strong { color: #495944; }
.suggestion-pill { display: inline-flex; align-items: center; gap: 6px; background: #f5f6f0; color: #495944; border-radius: 16px; padding: 5px 14px; font-size: 0.82rem; font-weight: 600; text-decoration: none; margin: 4px; transition: background 0.2s, transform 0.2s; }
.suggestion-pill:hover { background: #ACAE9C; transform: translateY(-2px); }



/* =====================================================
   CSS BLOWOUT FIXES
   ===================================================== */
.split-text { min-width: 0; }
.video-player-wrapper { max-width: 100%; }
.resource-card { min-width: 0 !important; }
.res-content { min-width: 0 !important; width: 100%; }
video { max-width: 100%; height: auto; }

.audio-player-wrapper { margin-top: 15px; width: 100%; }
.audio-player-wrapper audio { width: 100%; border-radius: 30px; outline: none; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.video-player-wrapper { margin-top: 15px; width: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.video-player-wrapper video { width: 100%; display: block; }

.place-content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 20px; }
.place-sidebar { background: #f5f6f0; padding: 25px; border-radius: 12px; border: 1px solid #ACAE9C; height: fit-content; }
.place-sidebar h4 { color: #283B2A; margin-bottom: 15px; border-bottom: 2px solid #ACAE9C; padding-bottom: 8px; }
@media (max-width: 850px) { .place-content-layout { grid-template-columns: 1fr; } }


/* For the listof links to other organisations */
ul.list-of-links {
  list-style-type: none;
  padding-left: 20px; 
  margin-left: 30px; 
}
ul.list-of-links li {
  align-items: center;
  margin-bottom: 10px; 
}
ul.list-of-links a {
  text-decoration: none;
  color: #283b2a;
}

ul.list-of-links a:hover {
  text-decoration: none;
  color: #8E1F25;
}
