/* Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b4513;
    --primary-dark: #5a2d0c;
    --text-color: #253045;
    --muted-text-color: #5f6b80;
    --heading-color: #111c2d;
    --bg-color: #ffffff;
    --surface-color: #ffffff;
    --navbar-bg-color: #e6e9ef;
    --border-color: #d9e0ec;
    --light-gray: #eef2f7;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.site-shell {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--heading-color);
    line-height: 1.28;
}

h1 {
    font-size: clamp(2.15rem, 4vw, 3rem);
    margin-top: 0;
    margin-bottom: 1.3rem;
}

h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    margin-top: 2rem;
}

h2.subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted-text-color);
    margin-top: -0.75rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    margin-bottom: 1.15rem;
}

ul, ol {
    padding-left: 1.35rem;
    margin-bottom: 1.1rem;
}

li {
    margin-bottom: 0.45rem;
}

strong {
    font-weight: 700;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--navbar-bg-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: none;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    min-height: 88px;
}

.branding-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    min-width: 0;
}

.branding-link:hover {
    color: inherit;
}

.site-header .logo {
    max-height: 120px;
    margin: 15px 10px;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 0.02em;
    line-height: 1.18;
}

.site-title-subline {
    display: block;
    font-size: 0.94em;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 8px;
    padding: 9px 10px;
    cursor: pointer;
    line-height: 1;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--heading-color);
}

.menu-toggle span + span {
    margin-top: 4px;
}

.nav-overlay {
    display: none;
}

.sidebar-logo-link {
    display: none;
}

.site-navigation a[aria-disabled='true'] {
    pointer-events: none;
    cursor: default;
}

/* Navigation */
.site-navigation ul {
    list-style: none;
    display: flex;
    position: relative;
    gap: 0.45rem;
    padding-left: 0;
    margin-bottom: 0;
}

.site-navigation ul li {
    margin: 0;
    position: relative;
}

.site-navigation ul li a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    padding: 0.9rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-navigation ul li a:hover,
.site-navigation ul li.current-root > a,
.site-navigation ul ul li.current-page > a {
    color: var(--heading-color);
    background-color: var(--light-gray);
}

/* Submenu */
.site-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 0.35rem;
    left: 0;
    background-color: var(--surface-color);
    padding: 0.4rem;
    min-width: 250px;
    z-index: 10;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 35px rgba(23, 36, 57, 0.12);
    gap: 0;
}

.site-navigation ul li > ul::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.site-navigation ul li:hover > ul,
.site-navigation ul li:focus-within > ul {
    display: flex;
}

.site-navigation ul ul li a {
    padding: 0.7rem 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.93rem;
    width: 100%;
    border-radius: 6px;
}

.site-navigation ul ul li a:hover {
    background-color: var(--light-gray);
    color: var(--heading-color);
}

/* Main Content Area */
.site-main {
    padding: 2.5rem 0 3rem;
}

.site-main > .site-shell {
    padding: 0.75rem 0 0;
}

.site-main > .site-shell > * + * {
    margin-top: 1.75rem;
}

main {
    opacity: 0;
    animation: fadeIn 0.45s ease-out 0.1s forwards;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

article img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.content-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    margin-top: 2rem;
}

/* Aside / Quick Links */
aside.quick-links {
    border-left: none;
    padding-left: 0;
}

aside.quick-links h2 {
    font-size: 1.45rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

aside.quick-links ul {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

aside.quick-links li {
    margin-bottom: 0;
}

aside.quick-links a {
    display: block;
    color: var(--text-color);
    font-weight: 400;
    padding: 0;
}

aside.quick-links a span {
    font-weight: 700;
    display: block;
    line-height: 1.35;
}

aside.quick-links a:hover {
    color: var(--primary-color);
}

aside.quick-links img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: none !important;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.93rem;
    color: var(--muted-text-color);
}

.site-footer p {
    margin-bottom: 0.4rem;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--primary-color);
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Basic Responsive Adjustments */
@media (max-width: 1024px) {
    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1110;
    }

    .site-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: min(330px, 86vw);
        height: 100vh;
        padding: 88px 20px 24px;
        background-color: var(--navbar-bg-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 12px 0 28px rgba(17, 28, 45, 0.18);
        overflow-y: auto;
        transform: translateX(-102%);
        transition: transform 0.25s ease;
        z-index: 1100;
    }

    .sidebar-logo-link {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 0.75rem 0.9rem;
        margin-bottom: 0.55rem;
    }

    .sidebar-logo {
        width: auto;
        max-height: 72px;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(16, 24, 40, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 990;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .site-navigation {
        transform: translateX(0);
    }

    body.nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .site-navigation ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-left: 0;
        gap: 0;
    }

    .site-navigation ul li {
        width: 100%;
        text-align: left;
    }

    .site-navigation ul li a {
        display: block;
        width: 100%;
        border-radius: 0;
        padding: 1rem 0.75rem;
        color: var(--text-color);
    }

    .site-navigation ul li a:hover {
        background-color: #ffffff;
        color: var(--heading-color);
    }

    .site-navigation ul li.current-root > a {
        background-color: transparent;
        color: var(--text-color);
    }

    .site-navigation ul ul {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        margin: 0;
        background-color: transparent;
        min-width: auto;
    }

    .site-navigation ul li > ul::before {
        content: none;
    }

    .site-navigation ul li:hover > ul {
        display: block;
    }

    .site-navigation ul ul li {
        border-bottom: none;
    }

    .site-navigation ul ul li a {
        padding: 0.65rem 0.7rem;
        font-size: 0.92rem;
        color: var(--text-color);
    }

    .site-navigation > ul > li.current-root:not(:has(> ul)) > a,
    .site-navigation ul ul li.current-page > a {
        color: var(--heading-color);
        background-color: #ffffff;
    }
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    aside.quick-links {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2.25rem;
        margin-top: 2.5rem;
    }

    aside.quick-links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .site-shell {
        width: min(1200px, calc(100% - 1.5rem));
    }

    .site-header-inner {
        min-height: 86px;
    }

    .branding-link {
        gap: 0.75rem;
    }

    .site-header .logo {
        max-height: 68px;
        margin: 8px 0;
    }

    .site-title {
        font-size: 22px;
    }

    .site-main {
        padding: 1.25rem 0 2.5rem;
    }

    .site-main > .site-shell {
        padding: 0.35rem 0 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h2.subtitle {
        margin-bottom: 1.25rem;
    }

    .content-two-column {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        margin-top: 1rem;
    }

    aside.quick-links {
        padding-top: 1.5rem;
        margin-top: 1.7rem;
    }

    aside.quick-links ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Shared content wrappers */
.breadcrumb-nav {
    margin-bottom: 1.75rem;
}

.breadcrumb-nav .breadcrumb {
    margin-bottom: 0;
    padding-left: 0;
    font-size: 0.92rem;
}

/* News pages */
.news-feed-list {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.news-feed-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--surface-color);
}

.news-feed-item__media {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.news-feed-item__media a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.news-feed-item__media img,
.news-feed-item__placeholder {
    width: 100%;
    height: 108px;
    object-fit: cover;
}

.news-feed-item__placeholder {
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--muted-text-color);
    background-color: var(--light-gray);
}

.news-feed-item__date {
    font-size: 0.86rem;
    color: var(--muted-text-color);
}

.news-feed-item__content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.55rem;
}

.news-feed-item__content p {
    color: #445067;
    margin-bottom: 1rem;
}

.news-feed-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.news-detail-article {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--surface-color);
    padding: 1.5rem;
}

.news-detail-header {
    margin-bottom: 1rem;
}

.news-detail-header h1 {
    margin-bottom: 0.5rem;
}

.news-detail-date {
    color: var(--muted-text-color);
}

.news-detail-image {
    margin-bottom: 1.5rem;
}

.news-detail-image img {
    border-radius: 10px;
    max-height: 430px;
}

.news-detail-back {
    margin-top: 1.3rem;
}

/* Calendar pages */
.calendar-page h1,
.calendar-page h2 {
    margin-bottom: 1rem;
}

.calendar-upcoming,
.calendar-past {
    margin-top: 1.8rem;
}

.calendar-event-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--surface-color);
}

.calendar-event-item + .calendar-event-item {
    margin-top: 1rem;
}

.calendar-event-item__date {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #f8fafc;
    text-align: center;
    padding: 0.65rem 0.4rem;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--muted-text-color);
}

.calendar-event-item__date strong {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin: 0.2rem 0;
}

.calendar-event-item__content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.calendar-event-item__time,
.calendar-event-item__location {
    color: var(--muted-text-color);
    margin-bottom: 0.4rem;
}

.calendar-event-item__actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.calendar-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.calendar-past-list {
    display: grid;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.calendar-past-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.95rem 1rem;
    background-color: var(--surface-color);
}

.calendar-past-item__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.calendar-past-item__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.calendar-past-item__header time {
    color: var(--muted-text-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.event-detail-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--surface-color);
    overflow: hidden;
}

.event-detail-card__header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.35rem 1.5rem 1rem;
}

.event-detail-card__header h1 {
    margin: 0;
}

.event-detail-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.event-detail-card__meta h2 {
    margin: 0 0 0.25rem;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.8rem;
    color: var(--muted-text-color);
}

.event-detail-card__meta p {
    margin: 0;
}

.event-detail-card__description {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.event-detail-card__actions {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem 1.25rem;
}

.event-detail-back {
    margin-top: 1.3rem;
}

@media (max-width: 768px) {
    .news-feed-item,
    .calendar-event-item {
        grid-template-columns: 1fr;
    }

    .news-feed-item__media img,
    .news-feed-item__placeholder {
        height: 180px;
    }

    .calendar-event-item__date {
        max-width: 120px;
    }

    .calendar-past-item__header {
        flex-direction: column;
        gap: 0.2rem;
    }

    .event-detail-card__meta {
        grid-template-columns: 1fr;
    }
}

/* --- Page Specific Styles Below --- */

/* --- Login / Forms --- */
/* Reusing for Enquiry Form */
.enquiry-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--heading-color);
}
.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="tel"],
.enquiry-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
    outline: none;
}

.enquiry-form textarea {
    min-height: 150px;
    resize: vertical;
}
.enquiry-form .required {
    color: var(--primary-color);
    font-weight: bold;
}
.enquiry-form .form-actions {
    margin-top: 1rem;
}
.enquiry-form .form-note {
    font-size: 0.9em;
    color: #555;
    margin-top: 1rem;
}

/* General Button Style */
.btn:not(.btn-link), .btn-submit {
    background-color: #f6eee8;
    color: var(--primary-color);
    padding: 0.72rem 1.5rem;
    border: 1px solid #d8b79f;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:not(.btn-link):visited {
    color: var(--primary-color);
    border-color: #d8b79f;
    background-color: #f6eee8;
}

.btn:not(.btn-link):hover,
.btn:not(.btn-link):focus,
.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(139, 69, 19, 0.22);
}

.btn:not(.btn-link):active,
.btn-submit:active {
    background-color: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(0);
    box-shadow: none;
}


/* --- Content Layouts --- */
.content-two-column > h1,
.content-two-column > h2.subtitle {
    grid-column: 1 / -1; /* Span across columns */
}

/* Location Page Specific */
.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for details/map */
    gap: 2rem;
    margin-top: 2rem;
}

.location-image img {
    border: 1px solid var(--border-color);
    padding: 8px;
    background-color: var(--surface-color);
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    border-radius: 4px;
}

.location-map iframe {
    width: 100%;
    min-height: 450px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Responsive Location */
@media (max-width: 768px) {
    .content-two-column,
    .location-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .location-image {
        text-align: center; /* Center image when stacked */
    }
}

/* Photo Gallery Grid */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust min size */
    gap: 1rem; /* Adjust gap */
    margin-top: 2rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--border-color);
    padding: 6px;
    background-color: var(--surface-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.gallery-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

/* Donation/Award Table Styling */
.site-main article table:not(.donation-table):not(.award-table) {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

.site-main article table:not(.donation-table):not(.award-table) th,
.site-main article table:not(.donation-table):not(.award-table) td {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border-color);
    vertical-align: top;
}

.site-main article table:not(.donation-table):not(.award-table) th {
    background-color: var(--light-gray);
    color: var(--heading-color);
}

.donation-table, .award-table {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1.75rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.donation-table th,
.award-table th,
.donation-table td,
.award-table td {
    text-align: left;
    padding: 12px 10px; /* Increased padding */
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.donation-table th,
.award-table th {
    background-color: var(--light-gray);
    font-weight: 700;
    color: var(--heading-color);
    border-top: 1px solid var(--border-color);
}
.donation-table tr:hover,
.award-table tr:hover {
    background-color: #fcfcfc;
}
.donation-amount {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
}

/* News Archive List */
.news-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.8rem 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 1.8rem;
    align-items: flex-start;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item-image {
    flex: 0 0 130px; /* Slightly larger image */
    height: 100px;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 4px;
}
.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item-content {
    flex: 1;
    min-width: 200px;
}
.news-item h2 {
    margin: 0 0 0.3rem 0;
    font-size: 1.5em;
    line-height: 1.3;
}
.news-item h2 a {
    text-decoration: none;
    color: var(--heading-color);
    transition: color 0.3s ease;
}
 .news-item h2 a:hover {
    color: var(--primary-color);
}
.news-item .date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0.5rem;
    display: block;
}
.news-list-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:first-child {
    padding-top: 0.5rem;
}

.news-list-item:last-child {
    border-bottom: none;
}
.archive-note {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9em;
}
@media (max-width: 500px) {
     .news-item-image {
         flex-basis: 100%;
         height: 150px;
    }
}

/* Links Page */
.links-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.links-list li {
    margin-bottom: 1rem; /* Increased spacing */
    padding-bottom: 1rem;
    border-bottom: 1px dotted #eee;
}
.links-list li:last-child {
     border-bottom: none;
     margin-bottom: 0;
     padding-bottom: 0;
}
.links-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700; /* Bolder links */
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.links-list a:hover {
    color: var(--primary-dark);
}
.links-list span {
    display: block;
    font-size: 0.95em;
    color: #555;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Ensure block elements like article/aside handle spacing correctly */
.site-main > .site-shell > article,
.site-main > .site-shell > aside,
.site-main > .site-shell > .main-grid,
.site-main > .site-shell > .content-full-width,
.site-main > .site-shell > .content-two-column {
    margin-top: 0;
}

.site-main > .site-shell > h1 + h2.subtitle + article,
.site-main > .site-shell > h1 + h2.subtitle + .main-grid,
.site-main > .site-shell > h1 + h2.subtitle + .content-full-width,
.site-main > .site-shell > h1 + h2.subtitle + .content-two-column {
    margin-top: 0.75rem;
}

.site-main > .site-shell > h1 + article,
.site-main > .site-shell > h1 + .main-grid,
.site-main > .site-shell > h1 + .content-full-width,
.site-main > .site-shell > h1 + .content-two-column {
    margin-top: 0.75rem;
}