/*
Theme Name:  HelloSites Neighborhood n9
Theme URI:   https://hellosites.org
Description: Community neighborhood site theme for HelloSites platform.
Version:     1.8.1
Author:      HelloNation
Text Domain: n9
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --nb-primary:        #2C4A1E;
    --nb-primary-light:  #3D6B2A;
    --nb-accent:         #B8860B;
    --nb-accent-light:   #D4A017;
    --nb-bg:             #FAFAF7;
    --nb-bg-card:        #FFFFFF;
    --nb-bg-dark:        #1C2B14;
    --nb-text:           #1A1A1A;
    --nb-text-muted:     #666666;
    --nb-border:         #E0DDD5;
    --nb-radius:         6px;
    --nb-shadow:         0 2px 12px rgba(0,0,0,0.08);
    --nb-shadow-hover:   0 6px 24px rgba(0,0,0,0.14);
    --nb-max-width:      1200px;
    --nb-font-heading:   Georgia, 'Times New Roman', serif;
    --nb-font-body:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--nb-bg);
    color: var(--nb-text);
    font-family: var(--nb-font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nb-font-heading);
    font-weight: normal;
    line-height: 1.25;
    color: var(--nb-text);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.nb-container {
    max-width: var(--nb-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nb-section {
    padding: 60px 0;
}

.nb-section-title {
    font-family: var(--nb-font-heading);
    font-size: 1.75rem;
    color: var(--nb-primary);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 14px;
}

.nb-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--nb-accent);
    border-radius: 2px;
}

.nb-section-subtitle {
    color: var(--nb-text-muted);
    font-size: 0.95rem;
    margin-bottom: 36px;
    margin-top: 8px;
}

/* Scroll offset for anchor targets so header/ticker don't cover content */
[id$="-section"] {
    scroll-margin-top: 20px;
}

/* ============================================================
   HEADER — tall video/image background (matches expert theme)
   ============================================================ */
.site-header {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-start;
    padding: 30px 40px 30px;
    overflow: hidden;
}

/* Background layer (image or video) */
.header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.header-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, var(--header-overlay-opacity, 0.55));
    z-index: 2;
}

.header-bg.no-media {
    background: var(--nb-bg-dark);
}

.header-bg.no-media::after {
    display: none;
}

.header-bg video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Inner content layer */
.header-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--nb-max-width);
    margin: 0 auto;
}

/* Nav — flush right, larger links */
.header-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.header-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.header-nav a {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--nb-radius);
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav .current-menu-item > a {
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
}

/* Brand — logo + name on same line, tighter to content */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-hn-logo {
    flex-shrink: 0;
}

.header-hn-logo-bg {
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
    padding: 6px 10px;
    transition: background 0.2s;
    display: inline-block;
}

.header-hn-logo-bg img {
    height: 36px;
    display: block;
}

.header-hn-logo:hover .header-hn-logo-bg {
    background: rgba(0,0,0,0.6);
}

.header-identity {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.header-site-name {
    font-family: var(--nb-font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: #FFFFFF;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-site-tagline {
    font-size: 0.65rem;
    color: var(--nb-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-top: 3px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    position: absolute;
    top: 0;
    right: 0;
}

/* ============================================================
   HERO TEXT SECTION (below the video header)
   ============================================================ */
.hero-text-section {
    background: var(--nb-bg-dark);
    padding: 48px 0 40px;
    color: #FFF;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--nb-accent);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.hero-text-title {
    font-family: var(--nb-font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 18px;
}

/* Wrapper for description + floated image */
.hero-text-body {
    overflow: hidden; /* contain the float */
}

.hero-text-image {
    float: right;
    width: 575px;
    margin: 0 0 20px 32px;
    border-radius: var(--nb-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-text-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* "Visit {City} on HelloNation" link below the photo */
.hero-hn-city-link {
    display: block;
    padding: 10px 16px;
    background: rgba(0,0,0,0.35);
    color: var(--nb-accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}

.hero-hn-city-link:hover {
    background: rgba(0,0,0,0.55);
    color: #FFF;
}

.hero-text-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
}

/* ============================================================
   TRENDING BAR — "From the Neighborhood" article scroller
   ============================================================ */
.trending-bar {
    background: var(--nb-primary);
    border-bottom: 2px solid var(--nb-accent);
    overflow: hidden;
}

.trending-bar-inner {
    max-width: var(--nb-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 44px;
    gap: 16px;
}

.trending-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--nb-accent-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.trending-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.trending-ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}

.trending-ticker-track a {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 0 28px 0 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.trending-ticker-track a::before {
    content: '◆';
    color: var(--nb-accent);
    margin-right: 10px;
    font-size: 0.55rem;
    vertical-align: middle;
}

.trending-ticker-track a:hover { color: #FFF; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT THE NEIGHBORHOOD — text wraps around image
   ============================================================ */
.about-section {
    padding: 56px 0;
    background: var(--nb-bg);
}

.about-content {
    overflow: hidden; /* contain the float */
}

.about-image {
    float: right;
    width: 380px;
    margin: 0 0 20px 32px;
    border-radius: var(--nb-radius);
    overflow: hidden;
    box-shadow: var(--nb-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-placeholder {
    background: var(--nb-border);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nb-text-muted);
    font-size: 0.85rem;
}

.about-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #2A2A2A;
}

.about-text p {
    margin-bottom: 1.2em;
}

/* ============================================================
   THIS MONTH IN [NEIGHBORHOOD]
   ============================================================ */
.this-month-section {
    background: linear-gradient(135deg, var(--nb-primary) 0%, var(--nb-primary-light) 100%);
    padding: 56px 0;
    color: #FFF;
}

.this-month-heading {
    font-family: var(--nb-font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #FFFFFF;
    margin-bottom: 8px;
    line-height: 1.2;
}

.this-month-section .nb-section-title::after {
    background: var(--nb-accent-light);
}

.this-month-card {
    display: flex;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--nb-radius);
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.this-month-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.this-month-card-image {
    width: 420px;
    flex-shrink: 0;
    min-height: 280px;
    overflow: hidden;
    background: rgba(0,0,0,0.1);
}

.this-month-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.this-month-card:hover .this-month-card-image img {
    transform: scale(1.04);
}

.this-month-card-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.this-month-badge {
    display: inline-block;
    background: var(--nb-accent);
    color: #FFF;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.this-month-date {
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.this-month-title {
    font-family: var(--nb-font-heading);
    font-size: 1.6rem;
    line-height: 1.3;
}

.this-month-title a {
    color: #FFF;
    transition: opacity 0.2s;
}

.this-month-title a:hover {
    opacity: 0.85;
    color: #FFF;
}

.this-month-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-top: 12px;
    line-height: 1.55;
}

.this-month-read-more {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nb-accent-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.this-month-read-more:hover {
    color: #FFF;
}

/* This Month — event cards grid (dummy/generated fallback) */
.this-month-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.this-month-event-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--nb-radius);
    padding: 22px 24px;
}

.this-month-event-date {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nb-accent-light);
    margin-bottom: 8px;
}

.this-month-event-card h3 {
    font-family: var(--nb-font-heading);
    font-size: 1.15rem;
    color: #FFF;
    margin-bottom: 8px;
    line-height: 1.3;
}

.this-month-event-meta {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.this-month-event-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin: 0;
}

.this-month-event-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nb-accent-light);
}

.this-month-event-link:hover {
    color: #FFF;
}

/* ============================================================
   HIGHLIGHTS + MAP
   ============================================================ */
.highlights-section {
    padding: 56px 0;
    background: var(--nb-bg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item h4 {
    font-family: var(--nb-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--nb-text);
    margin-bottom: 6px;
}

.highlight-item p {
    font-size: 0.92rem;
    color: var(--nb-text-muted);
    line-height: 1.55;
    margin: 0;
}

.highlights-map {
    border-radius: var(--nb-radius);
    overflow: hidden;
    box-shadow: var(--nb-shadow);
    background: #FFFFFF;
    padding: 12px;
}

.ll-map-widget {
    height: 520px;
    width: 100%;
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.articles-section {
    padding: 56px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: var(--nb-bg-card);
    border-radius: var(--nb-radius);
    overflow: hidden;
    box-shadow: var(--nb-shadow);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nb-border);
}

.post-card:hover {
    box-shadow: var(--nb-shadow-hover);
    transform: translateY(-3px);
}

.post-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--nb-border);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8E5DC;
    color: #AAA;
    font-size: 0.8rem;
}

.post-card-content {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Dates hidden for evergreen neighborhood content */
.post-card-date {
    display: none;
}

.post-card-title {
    font-family: var(--nb-font-heading);
    font-size: 1.1rem;
    line-height: 1.35;
    flex: 1;
}

.post-card-title a {
    color: var(--nb-text);
    transition: color 0.2s;
}

.post-card-title a:hover { color: var(--nb-primary); }

/* ============================================================
   LOCALLOGIC PREVIEW (homepage strip)
   ============================================================ */
.ll-preview-section {
    background: var(--nb-primary);
    padding: 56px 0;
    color: #FFF;
}

.ll-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
}

.ll-preview-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--nb-radius);
    overflow: visible;
}

.ll-preview-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ll-preview-card-header h3 {
    color: #FFF;
    font-size: 1rem;
    font-family: var(--nb-font-heading);
}

.ll-preview-card-header a {
    color: var(--nb-accent-light);
    font-size: 0.8rem;
    font-weight: 600;
}

.ll-preview-card-header a:hover { color: #FFF; }

.ll-widget-container {
    height: 460px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 0 0 var(--nb-radius) var(--nb-radius);
    padding: 12px;
    overflow: auto;
}

.ll-section {
    padding: 60px 0;
}

.ll-widget-full {
    height: 620px;
    width: 100%;
    border-radius: var(--nb-radius);
    overflow: hidden;
    box-shadow: var(--nb-shadow);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--nb-radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--nb-border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination a {
    color: var(--nb-text);
    background: var(--nb-bg-card);
}

.pagination a:hover {
    background: var(--nb-primary);
    color: #FFF;
    border-color: var(--nb-primary);
}

.pagination .current {
    background: var(--nb-primary);
    color: #FFF;
    border-color: var(--nb-primary);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-category {
    background: var(--nb-primary);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
}

.single-category.is-events {
    background: var(--nb-accent);
}

/* Dates hidden for evergreen neighborhood content */
.single-date {
    display: none;
}

.single-title {
    font-family: var(--nb-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 32px;
    color: var(--nb-text);
}

.single-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--nb-radius);
    margin-bottom: 36px;
    box-shadow: var(--nb-shadow);
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2A2A2A;
}

.single-content h2 {
    font-family: var(--nb-font-heading);
    font-size: 1.5rem;
    color: var(--nb-primary);
    margin: 36px 0 14px;
}

.single-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
    color: var(--nb-text);
}

.single-content p { margin-bottom: 1.4em; }

.single-content ul, .single-content ol {
    margin: 0 0 1.4em 24px;
}

.single-content li { margin-bottom: 0.4em; }

.single-content blockquote {
    border-left: 4px solid var(--nb-accent);
    padding: 16px 24px;
    margin: 28px 0;
    background: #F5F0E8;
    border-radius: 0 var(--nb-radius) var(--nb-radius) 0;
    font-style: italic;
    color: #444;
}

.single-nav {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--nb-border);
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.single-nav a {
    color: var(--nb-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.single-nav a:hover { color: var(--nb-accent); }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.page-title {
    font-family: var(--nb-font-heading);
    font-size: 2.25rem;
    color: var(--nb-primary);
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--nb-accent);
}

.page-content {
    margin-top: 32px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2A2A2A;
}

.page-content p { margin-bottom: 1.4em; }

/* ============================================================
   NEIGHBORHOOD GUIDE PAGE
   ============================================================ */
.neighborhood-guide-header {
    background: var(--nb-primary);
    color: #FFF;
    padding: 48px 0 40px;
}

.neighborhood-guide-header h1 {
    font-family: var(--nb-font-heading);
    font-size: 2.25rem;
    color: inherit;
    margin-bottom: 10px;
}

.neighborhood-guide-header p {
    color: inherit;
    opacity: 0.75;
    max-width: 560px;
    font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--nb-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 28px;
}

.footer-inner {
    max-width: var(--nb-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
    align-items: start;
}

.footer-brand-name {
    font-family: var(--nb-font-heading);
    font-size: 1.35rem;
    color: #FFF;
    margin-bottom: 8px;
}

.footer-brand-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    max-width: 360px;
    line-height: 1.55;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--nb-accent-light); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.footer-hn-link {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-hn-link:hover { color: rgba(255,255,255,0.6); }

.footer-hn-link img {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-hn-link:hover img { opacity: 0.8; }

.footer-ll-credit {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .this-month-card {
        flex-direction: column;
    }

    .this-month-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .this-month-card-image {
        width: 100%;
        min-height: 240px;
    }

    .ll-preview-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 300px;
    }

    .hero-text-image {
        width: 300px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .ll-map-widget {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 200px;
        padding: 20px;
    }

    .header-site-name {
        font-size: 1rem;
    }

    .header-hn-logo-bg {
        padding: 5px 8px;
    }

    .header-hn-logo-bg img {
        height: 28px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .this-month-events-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle { display: block; }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--nb-bg-dark);
        padding: 16px 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 10;
    }

    .header-nav.is-open { display: block; }

    .header-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .about-image {
        float: none;
        width: 100%;
        margin: 0 0 24px 0;
    }

    .hero-text-image {
        float: none;
        width: 100%;
        margin: 0 0 24px 0;
    }

    .this-month-card-content {
        padding: 24px 20px;
    }

    .hero-text-section {
        padding: 32px 0 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-nav ul {
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .single-layout, .page-layout {
        padding: 36px 20px 60px;
    }
}

/* ============================================================
   WP CLASSES
   ============================================================ */
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft  { float: left; margin: 0 16px 16px 0; }
.alignright { float: right; margin: 0 0 16px 16px; }
.wp-block-image figure { margin: 0; }
