/*
Theme Name: OOTFA Theme
Theme URI: https://ootfa.org
Author: OOTFA
Author URI: https://ootfa.org
Description: A custom WordPress theme for the Old-Time Fiddlers Association built on the Modern Heritage design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ootfa-theme
Tags: custom-logo, custom-menu, featured-images, full-site-editing, block-patterns, block-styles
*/

/* Screen reader text - visually hidden but accessible */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}


/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    --color-primary: #1A3D2F;
    --color-accent: #D49535;
    --color-amber: #A7722F;
    --color-brown: #8D6A29;
    --color-walnut: #5B3F2C;
    --color-sage: #7E8937;
    --color-cream: #FDF1E7;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #5A5A5A;
    --color-border: #E0D5C7;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(26, 61, 47, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 61, 47, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 61, 47, 0.16);
    --shadow-hover: 0 8px 24px rgba(26, 61, 47, 0.18);
    --transition: all 0.3s ease;
    --max-width: 1280px;
    --wide-width: 1400px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
}

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

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.375rem; }

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

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

p { margin-bottom: 1.25rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-amber);
    border-color: var(--color-amber);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   SITE HEADER & NAVIGATION
   ======================================== */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding .custom-logo {
    height: 100px;
    width: auto;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

.site-branding .site-title a {
    color: var(--color-primary);
}
.site-branding .site-title a:hover {
    color: var(--color-accent);
}

/* Primary Navigation */
.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.primary-navigation > ul > li {
    position: relative;
}

.primary-navigation > ul > li > a {
    display: block;
    padding: 1.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.primary-navigation > ul > li > a:hover,
.primary-navigation > ul > li.current-menu-item > a {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Mega Menu / Dropdowns */
.primary-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem 0;
    z-index: 999;
}

.primary-navigation ul li:hover > ul {
    display: block;
    animation: fadeDown 0.25s ease;
}

.primary-navigation ul ul li a {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    display: block;
    border-left: 3px solid transparent;
}

.primary-navigation ul ul li a:hover {
    background: var(--color-cream);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 61, 47, 0.85) 0%, rgba(26, 61, 47, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem;
    background: rgba(26, 61, 47, 0.88);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1875rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}
.hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   WELCOME / ABOUT SECTION
   ======================================== */
.welcome-section {
    background: var(--color-white);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.welcome-text h2 {
    margin-bottom: 1.25rem;
}
.welcome-text p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* ========================================
   EVENTS SECTION
   ======================================== */
.events-section {
    background: var(--color-cream);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-card-image {
    height: 360px;
    overflow: hidden;
}
.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 1.5rem;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.event-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.event-card-body h3 a {
    color: var(--color-primary);
}
.event-card-body h3 a:hover {
    color: var(--color-accent);
}

.event-location {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.event-card-body .btn {
    margin-top: 1rem;
}

/* ========================================
   DISTRICTS SECTION
   ======================================== */
.districts-section {
    background: var(--color-white);
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.district-card {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.district-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.district-card .district-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.district-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.district-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* District Archive Grid */
.district-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.district-archive-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.district-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.district-archive-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.district-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.district-archive-card:hover .district-archive-image img {
    transform: scale(1.05);
}

.district-archive-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.district-archive-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.district-archive-body h3 a {
    color: var(--color-primary);
    text-decoration: none;
}

.district-archive-body h3 a:hover {
    color: var(--color-accent);
}

.district-archive-body p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.district-archive-body .btn-outline {
    align-self: flex-start;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

@media (max-width: 900px) {
    .district-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .district-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HOEDOWNER SECTION
   ======================================== */
.hoedowner-section {
    background: var(--color-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hoedowner-section h2 {
    color: var(--color-white);
}

.hoedowner-section h2::after {
    background: var(--color-accent);
}

.hoedowner-section .section-heading p {
    color: rgba(255, 255, 255, 0.8);
}

.hoedowner-section .hoedowner-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hoedowner-section .hoedowner-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 420px;
    line-height: 0;
    font-size: 0;
}

.hoedowner-image canvas,
.hoedowner-image img {
    border: 3px solid #000;
    border-radius: var(--radius-lg);
    display: block;
}

.hoedowner-image img,
.hoedowner-image canvas,
.hoedowner-image .hoedowner-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}



.hoedowner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hoedowner-text h3 {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hoedowner-text p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* ========================================
   TUNE OF THE MONTH
   ======================================== */
.tune-section {
    background: var(--color-cream);
}

.tune-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.tune-card .tune-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tune-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.tune-card .tune-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.tune-card .audio-placeholder {
    background: var(--color-cream);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */
.gallery-section {
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 61, 47, 0);
    transition: var(--transition);
}
.gallery-item:hover::after {
    background: rgba(26, 61, 47, 0.2);
}

/* ========================================
   DONATE CTA SECTION
   ======================================== */
.donate-section {
    background: linear-gradient(135deg, var(--color-accent), var(--color-amber));
    text-align: center;
    color: var(--color-white);
}

.donate-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.donate-section h2::after {
    background: var(--color-white);
}

.donate-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.donate-section .btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.donate-section .btn-primary:hover {
    background: var(--color-walnut);
    border-color: var(--color-walnut);
}

/* ========================================
   BOOK US SECTION
   ======================================== */
.book-section {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.book-section h2 {
    color: var(--color-white);
}

.book-section h2::after {
    background: var(--color-accent);
}

.book-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SITE FOOTER
   ======================================== */
.site-footer {
    background: var(--color-walnut);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-col p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.125rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   SIDEBAR & WIDGETS
   ======================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-area.no-sidebar {
    display: block;
    max-width: var(--max-width);
}
.content-area.no-sidebar .entry-content{width:100%;max-width:1100px;margin-left:auto;margin-right:auto;}

.widget {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-cream);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-cream);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* ========================================
   SINGLE POST / PAGE
   ======================================== */
.entry-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
}

.entry-meta span {
    margin: 0 0.5rem;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ========================================
   ARCHIVE / SEARCH RESULTS
   ======================================== */
.archive-header,
.search-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.archive-header h1,
.search-header h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.archive-description,
.search-description {
    color: rgba(255, 255, 255, 0.8);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404-content {
    text-align: center;
    padding: 5rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-content h1 {
    font-size: 6rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.error-404-content p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
    transition: var(--transition);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-form .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   WORDPRESS BLOCK OVERRIDES
   ======================================== */
.wp-block-button__link {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.875rem 2rem;
    transition: var(--transition);
}

.wp-block-quote {
    border-left-color: var(--color-accent);
    padding: 1rem 1.5rem;
    background: var(--color-cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wp-block-separator {
    border-color: var(--color-border);
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

/* ========================================
   RESPONSIVE â TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hoedowner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .content-area {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE â MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .primary-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
    }

    .primary-navigation.toggled {
        display: block;
    }

    .primary-navigation ul {
        flex-direction: column;
    }

    .primary-navigation > ul > li > a {
        padding: 0.875rem 1.5rem;
        border-bottom: none;
    }

    .primary-navigation ul ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        display: none;
    }

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

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .section-padding {
        padding: 3rem 0;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        text-align: center;
    }

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

/* ========================================
   RESPONSIVE â SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .districts-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .menu-toggle,
    .hero-ctas,
    .donate-section,
    .book-section {
        display: none;
    }

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


/* ========================================
   HOEDOWNER ARCHIVE
   ======================================== */
.hoedowner-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0 1rem;
}

.decade-filter {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.decade-filter:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.decade-filter.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.hoedowner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 3rem;
}

.hoedowner-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hoedowner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(91, 63, 44, 0.4);
}

/* Black border on archive card covers */
.hoedowner-archive .hoedowner-card-cover {
    border: 3px solid #000;
    border-radius: var(--radius-lg);
}

.hoedowner-card-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.hoedowner-card-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hoedowner-card-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.75rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(26, 61, 47, 0.92);
}

.hoedowner-card-month {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    color: #D49535 !important;
}

.hoedowner-card-year {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #FDF1E7;
    line-height: 1;
    margin: 0.15rem 0 0.25rem;
}

.hoedowner-card-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(253, 241, 231, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.hoedowner-card-pdf-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(212, 149, 53, 0.4);
    border-radius: 4px;
    color: rgba(212, 149, 53, 0.7);
}

.hoedowner-card-body {
    padding: 1rem 1.1rem;
}

.hoedowner-card-body h3 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.hoedowner-card-body h3 a {
    color: var(--color-primary);
}
.hoedowner-card-body h3 a:hover {
    color: var(--color-accent);
}

.hoedowner-card-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-read-issue {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 0.375rem 1rem;
    transition: var(--transition);
}
.btn-read-issue:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-download-pdf {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: var(--transition);
}
.btn-download-pdf:hover {
    color: var(--color-amber);
}


/* ========================================
   HOEDOWNER SINGLE ISSUE
   ======================================== */
.hoedowner-single-breadcrumb {
    margin-bottom: 1rem;
}

.hoedowner-single-breadcrumb a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.hoedowner-single-breadcrumb a:hover {
    color: var(--color-white);
}

.hoedowner-viewer-wrap {
    padding: 2.5rem 0 4rem;
}

.hoedowner-pdf-viewer {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.hoedowner-download-bar {
    text-align: center;
    margin-bottom: 3rem;
}

.hoedowner-no-pdf {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

.hoedowner-no-pdf p {
    color: var(--color-text-light);
    font-size: 1.0625rem;
}

.hoedowner-issue-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 0;
    border-top: 2px solid var(--color-border);
}

.hoedowner-issue-nav .nav-previous {
    text-align: left;
}

.hoedowner-issue-nav .nav-next {
    text-align: right;
}

.hoedowner-issue-nav .nav-center {
    text-align: center;
}

.hoedowner-issue-nav .nav-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.hoedowner-issue-nav .nav-title {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-primary);
    font-weight: 500;
}

.hoedowner-issue-nav a {
    color: var(--color-primary);
}
.hoedowner-issue-nav a:hover {
    color: var(--color-accent);
}

/* Responsive adjustments for Hoedowner */
@media (max-width: 768px) {
    .hoedowner-grid,
    .hoedowner-section .hoedowner-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hoedowner-section .hoedowner-image {
        width: 100%;
        max-width: 340px;
    }

    .hoedowner-issue-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hoedowner-issue-nav .nav-previous,
    .hoedowner-issue-nav .nav-next {
        text-align: center;
    }

    .hoedowner-pdf-viewer iframe {
        height: 500px;
    }
}

/* PDF Thumbnail Canvas */
canvas.pdf-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hoedowner-card-cover {
    position: relative;
    overflow: hidden;
}

.hoedowner-card-overlay {
    position: relative;
    z-index: 2;
}

/* ========================================
   IMAGE PLACEHOLDERS (Development)
   ======================================== */
.ootfa-image-placeholder {
    background: var(--color-cream);
    border: 3px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-light);
    font-family: var(--font-body);
    min-height: 200px;
    position: relative;
}

.ootfa-image-placeholder span:first-child {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-walnut);
}

.ootfa-image-placeholder .placeholder-size {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    opacity: 0.7;
    font-weight: 400;
}

.ootfa-image-placeholder::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 0.25rem;
    background: var(--color-border);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* ========================================
   INTERIOR PAGE HERO (shared)
   ======================================== */
.ootfa-page-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ootfa-page-hero .ootfa-image-placeholder {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border: none;
    border-radius: 0;
}

.ootfa-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(to top, rgba(26, 61, 47, 0.92) 0%, rgba(26, 61, 47, 0.6) 60%, transparent 100%);
}

.ootfa-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ootfa-page-title {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.ootfa-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1875rem;
    max-width: 640px;
}

/* Breadcrumbs */
.ootfa-breadcrumb {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.ootfa-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.ootfa-breadcrumb a:hover {
    color: var(--color-accent);
}

.ootfa-breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ========================================
   DISTRICT PAGE TEMPLATE
   ======================================== */
.district-info-section {
    background: var(--color-white);
}

.district-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
}

.district-number-badge {
    width: 120px;
    height: 120px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.district-number-badge span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.district-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.district-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.district-meta-item strong {
    color: var(--color-primary);
}

/* What Happens Here */
.district-schedule-section {
    background: var(--color-cream);
}

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

.schedule-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-accent);
}

.schedule-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* District Contact */
.district-contact-section {
    background: var(--color-primary);
    color: var(--color-white);
}

.district-contact-section h2 {
    color: var(--color-white);
}

.district-contact-section h2::after {
    background: var(--color-accent);
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-card a {
    color: var(--color-accent);
}

.contact-card a:hover {
    color: var(--color-white);
}

/* Map Section */
.district-map-section {
    background: var(--color-white);
}

.map-embed-placeholder {
    background: var(--color-cream);
    border: 3px dashed var(--color-border);
    border-radius: var(--radius-md);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========================================
   ABOUT PAGE TEMPLATE
   ======================================== */
.about-content-section {
    background: var(--color-white);
}

.about-content-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Pull Quotes */
.ootfa-pull-quote,
.about-content-wrap blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--color-cream);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.5;
    position: relative;
}

.ootfa-pull-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-family: var(--font-heading);
    line-height: 1;
}

/* Inline Image Sections (alternating left/right) */
.about-inline-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.about-inline-section:last-child {
    border-bottom: none;
}

.about-inline-section.reverse {
    direction: rtl;
}

.about-inline-section.reverse > * {
    direction: ltr;
}

.about-inline-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-inline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-inline-text h3 {
    margin-bottom: 1rem;
}

.about-inline-text p {
    color: var(--color-text-light);
}

/* About CTA */
.about-cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5a44 100%);
    text-align: center;
    color: var(--color-white);
}

.about-cta-section h2 {
    color: var(--color-white);
}

.about-cta-section h2::after {
    background: var(--color-accent);
}

.about-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.about-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   MEMBERSHIP PAGE TEMPLATE
   ======================================== */

/* Benefits Grid */
.membership-benefits {
    background: var(--color-white);
}

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

.benefit-card {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-card .ootfa-image-placeholder {
    min-height: 150px;
    margin-bottom: 1.25rem;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Pricing Cards */
.membership-pricing {
    background: var(--color-cream);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border-color: var(--color-accent);
    position: relative;
}

.pricing-header {
    background: var(--color-primary);
    padding: 1.75rem 2rem;
    text-align: center;
    position: relative;
}

.pricing-card--featured .pricing-header {
    background: linear-gradient(135deg, var(--color-primary), #2a5a44);
}

.pricing-title {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.pricing-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.pricing-options {
    padding: 2rem;
    text-align: center;
}

.pricing-option {
    margin-bottom: 1rem;
}

.pricing-option:last-child {
    margin-bottom: 0;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.pricing-period {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.pricing-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0 2rem 1.5rem;
    margin: 0;
}

.pricing-features li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-cream);
    font-size: 0.9375rem;
    color: var(--color-text);
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: 700;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    display: block;
    margin: 0 2rem 2rem;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Testimonials */
.membership-testimonials {
    background: var(--color-white);
}

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

.testimonial-card {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.testimonial-photo {
    margin-bottom: 1.25rem;
}

.testimonial-photo .ootfa-image-placeholder {
    width: 120px;
    height: 120px;
    min-height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    padding: 0.75rem;
}

.testimonial-photo .ootfa-image-placeholder::before {
    width: 32px;
    height: 32px;
}

.testimonial-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0 0 1rem;
    background: none;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.125rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Membership Form Section */
.membership-form-section {
    background: var(--color-cream);
}

.membership-form-section .gform_wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-fallback {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Accordion */
.membership-faq {
    background: var(--color-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list details {
    border-bottom: 1px solid var(--color-border);
}

.faq-list details:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-list summary {
    padding: 1.25rem 2.5rem 1.25rem 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: var(--transition);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: var(--transition);
}

.faq-list details[open] summary::after {
    content: '\2212';
}

.faq-list summary:hover {
    color: var(--color-accent);
}

.faq-list details .faq-answer {
    padding: 0 0 1.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   EVENTS PAGE TEMPLATE
   ======================================== */

/* Events Filters */
.events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.events-filter-btn {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.events-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.events-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Featured Event Hero */
.featured-event-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.featured-event-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 61, 47, 0.92) 0%, rgba(26, 61, 47, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.featured-event-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    width: 100%;
}

.featured-event-label {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.featured-event-content h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.featured-event-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.featured-event-meta span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
}

/* Get Involved CTA */
.get-involved-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-walnut) 100%);
    color: var(--color-white);
    text-align: center;
}

.get-involved-section h2 {
    color: var(--color-white);
}

.get-involved-section h2::after {
    background: var(--color-accent);
}

.get-involved-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.get-involved-highlights {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.get-involved-item {
    text-align: center;
    max-width: 200px;
}

.get-involved-item h3 {
    color: var(--color-accent);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.get-involved-item p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.get-involved-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   GALLERY PAGE TEMPLATE
   ======================================== */

/* Gallery Page Header */
.gallery-page-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.gallery-page-header h1 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.gallery-page-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.gallery-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.gallery-filter-group::before {
    content: attr(data-label);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.375rem;
}

.gallery-filter-btn {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.375rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.gallery-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Gallery Grid with Captions */
.gallery-grid-filterable {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(26, 61, 47, 0.85), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

.gallery-item-title {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
}

/* No Results */
.gallery-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
    display: none;
}

/* ========================================
   CONTENT PAGE WITH SIDEBAR TEMPLATE
   ======================================== */
.ootfa-content-wrapper {
    background: var(--color-cream);
}

.ootfa-main-content .entry-content {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.ootfa-sidebar .widget {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Sidebar Related Pages */
.sidebar-related-pages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-related-pages li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-cream);
}

.sidebar-related-pages li:last-child {
    border-bottom: none;
}

.sidebar-related-pages a {
    font-weight: 500;
    font-size: 0.9375rem;
}

.sidebar-related-pages .current_page_item a {
    color: var(--color-accent);
    font-weight: 700;
}

/* Gallery Section */
.ootfa-gallery-section {
    background: var(--color-white);
}

.ootfa-gallery-title,
.ootfa-related-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Related Pages Grid */
.ootfa-related-pages {
    background: var(--color-cream);
}

.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-page-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.related-page-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.related-page-card .ootfa-image-placeholder {
    min-height: 150px;
    border-radius: 0;
}

.related-page-card-body {
    padding: 1.25rem 1.5rem;
}

.related-page-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.related-page-card-body h3 a {
    color: var(--color-primary);
}

.related-page-card-body h3 a:hover {
    color: var(--color-accent);
}

.related-page-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* CTA Section */
.ootfa-cta-section {
    text-align: center;
    color: var(--color-white);
}

.ootfa-cta-section.cta-gold {
    background: linear-gradient(135deg, var(--color-accent), var(--color-amber));
}

.ootfa-cta-section.cta-green {
    background: linear-gradient(135deg, var(--color-primary), #2a5a44);
}

.ootfa-cta-section.cta-walnut {
    background: linear-gradient(135deg, var(--color-walnut), #7a5a3e);
}

.ootfa-cta-section h2 {
    color: var(--color-white);
}

.ootfa-cta-section h2::after {
    background: var(--color-white);
}

.ootfa-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.ootfa-cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.ootfa-cta-section .btn-primary:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ========================================
   INTERIOR PAGES — RESPONSIVE (Tablet)
   ======================================== */
@media (max-width: 1024px) {
    .district-info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .district-number-badge {
        margin: 0 auto;
    }

    .district-meta {
        justify-content: center;
    }

    .about-inline-section {
        grid-template-columns: 1fr;
    }

    .about-inline-section.reverse {
        direction: ltr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

/* ========================================
   INTERIOR PAGES — RESPONSIVE (Mobile)
   ======================================== */
@media (max-width: 768px) {
    .ootfa-page-hero {
        min-height: 250px;
    }

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

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

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

    .get-involved-highlights {
        flex-direction: column;
        align-items: center;
    }

    .gallery-grid-filterable {
        grid-template-columns: 1fr 1fr;
    }

    .featured-event-hero {
        min-height: 350px;
    }

    .featured-event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery-filter-group {
        width: 100%;
        justify-content: center;
    }

    .about-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .get-involved-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid-filterable {
        grid-template-columns: 1fr;
    }

    .related-pages-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== OOTFA: tidy photo galleries (uniform grid tiles, no upscaling) ===== */
.wp-block-gallery.has-nested-images{display:grid !important;grid-template-columns:repeat(3,1fr);gap:12px;}
.wp-block-gallery.has-nested-images > figure.wp-block-image{margin:0 !important;width:auto !important;max-width:none !important;}
.wp-block-gallery.has-nested-images > figure.wp-block-image img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block;}
@media (max-width:782px){.wp-block-gallery.has-nested-images{grid-template-columns:repeat(2,1fr);}}
@media (max-width:480px){.wp-block-gallery.has-nested-images{grid-template-columns:1fr;}}

/* ===== OOTFA: compact "Explore Other Districts" pills ===== */
.district-nav-grid{display:flex;flex-wrap:wrap;gap:8px;}
.district-nav-grid a,.district-nav-grid a.btn{padding:6px 14px !important;font-size:0.8rem !important;font-weight:600;border-radius:999px !important;margin:0 !important;min-width:0 !important;line-height:1.3 !important;white-space:nowrap;}

/* ===== OOTFA: events calendar filters ===== */
.events-listing-section{padding:2.5rem 0 1rem;}
.events-listing-section .events-filters{display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:flex-end;justify-content:center;margin:0 auto 2.5rem;}
.events-listing-section .filter-field{display:flex;flex-direction:column;gap:6px;}
.events-listing-section .filter-label{font-weight:700;font-size:0.8rem;letter-spacing:0.02em;text-transform:uppercase;color:var(--color-primary);}
.events-listing-section .events-filter{padding:10px 14px;min-width:220px;border-radius:8px;border:1px solid var(--color-tertiary,#A7722F);background:#fff;color:var(--color-text,#3D2B1F);font-size:0.95rem;cursor:pointer;}
.events-listing-section .events-filter:focus{outline:2px solid var(--color-secondary,#D49535);outline-offset:1px;}
.events-listing-section{max-width:1280px;margin-left:auto;margin-right:auto;}
.events-listing-section .events-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;margin-top:0.5rem;}
@media (max-width:900px){.events-listing-section .events-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.events-listing-section .events-grid{grid-template-columns:1fr;}}
.events-listing-section .event-card-image img,.events-listing-section .event-card-image-fallback{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px 8px 0 0;display:block;}
.events-listing-section .event-tags{font-size:0.8rem;color:var(--color-accent,#7E8937);font-weight:600;margin:0.35rem 0;}
.events-listing-section .event-date,.events-listing-section .event-location{font-size:0.9rem;margin:0.2rem 0;}

/* ===== OOTFA: add-an-event form ===== */
.ootfa-event-form{width:100%;max-width:100%;}
.ootfa-event-form .ootfa-field{display:flex;flex-direction:column;gap:5px;margin:0 0 1rem;}
.ootfa-event-form label{font-weight:700;font-size:0.85rem;color:var(--color-primary);}
.ootfa-event-form label span{color:#b3261e;}
.ootfa-event-form input,.ootfa-event-form select,.ootfa-event-form textarea{padding:10px 12px;border:1px solid var(--color-tertiary,#A7722F);border-radius:8px;font-size:0.95rem;background:#fff;width:100%;}
.ootfa-event-form .ootfa-field-row{display:flex;gap:1rem;flex-wrap:wrap;}
.ootfa-event-form .ootfa-field-row .ootfa-field{flex:1 1 45%;}
.ootfa-form-notice{padding:0.85rem 1.1rem;border-radius:8px;margin-bottom:1.25rem;font-weight:600;}
.ootfa-form-success{background:#e6f4ea;color:#1e6b35;border:1px solid #1e6b35;}
.ootfa-form-error{background:#fdecea;color:#b3261e;border:1px solid #b3261e;}

/* ===== OOTFA: member gate + tune page ===== */
.ootfa-member-gate{max-width:420px;margin:0 auto;}
.ootfa-gate-form .ootfa-field{display:flex;flex-direction:column;gap:6px;margin-bottom:1rem;}
.ootfa-gate-form input{padding:10px 12px;border:1px solid var(--color-tertiary,#A7722F);border-radius:8px;font-size:1rem;width:100%;}
.tune-single{max-width:1000px;margin:0 auto;}
.tune-actions{display:flex;gap:0.75rem;flex-wrap:wrap;margin-bottom:1.25rem;}
.tune-pdf{width:100%;height:80vh;min-height:560px;border:1px solid var(--color-tertiary,#A7722F);border-radius:8px;overflow:hidden;background:#f5f0e8;}
.tune-pdf object,.tune-pdf embed{width:100%;height:100%;}
.tune-pdf-fallback{padding:2rem;text-align:center;}
.tune-single-footer{margin-top:1.5rem;}

/* ===== OOTFA: tune library archive (search/sort) ===== */
.tune-controls{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;margin-bottom:1rem;}
.tune-controls #tune-search{flex:0 1 380px;min-width:260px;}
.tune-controls input,.tune-controls select{padding:10px 14px;border:1px solid var(--color-tertiary,#A7722F);border-radius:8px;font-size:0.95rem;background:#fff;color:var(--color-text,#3D2B1F);}
.tune-count{text-align:center;color:var(--color-text-light,#5B3F2C);font-size:0.9rem;margin-bottom:1.75rem;}
.tune-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;}
.tune-archive-card{background:#fff;border-radius:10px;padding:1.25rem 1.5rem;box-shadow:0 2px 8px rgba(0,0,0,0.06);display:flex;flex-direction:column;gap:0.85rem;align-items:flex-start;}
.tune-archive-card h3{margin:0;font-size:1.1rem;line-height:1.3;}
.tune-archive-card h3 a{color:var(--color-primary,#1A3D2F);text-decoration:none;}
.tune-archive-card h3 a:hover{color:var(--color-secondary,#D49535);}
.tune-no-results{text-align:center;padding:2rem;font-size:1.05rem;}
@media (max-width:900px){.tune-archive-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.tune-archive-grid{grid-template-columns:1fr;}}

/* ===== OOTFA: member login nav + members hub ===== */
.primary-navigation .menu-member-login a{background:var(--color-secondary,#D49535);color:#1A3D2F !important;border-radius:999px;padding:6px 16px;font-weight:700;}
.primary-navigation .menu-member-login a:hover{background:var(--color-tertiary,#A7722F);color:#fff !important;}
.ootfa-member-hub{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem;margin:1.5rem 0;}
.ootfa-member-hub .member-card{display:block;background:#fff;border-radius:10px;padding:1.5rem;box-shadow:0 2px 8px rgba(0,0,0,0.06);text-decoration:none;color:var(--color-text,#3D2B1F);border:1px solid transparent;}
.ootfa-member-hub .member-card:hover{border-color:var(--color-secondary,#D49535);}
.ootfa-member-hub .member-card h3{margin:0 0 0.35rem;color:var(--color-primary,#1A3D2F);}
.ootfa-member-hub .member-card p{margin:0;font-size:0.9rem;color:var(--color-text-light,#5B3F2C);}

/* ===== OOTFA: membership page polish ===== */
.benefit-icon-emoji{font-size:3rem;line-height:1;margin-bottom:0.75rem;text-align:center;}
.membership-hero{min-height:400px;display:flex;align-items:center;}
.membership-pricing .pricing-grid{justify-content:center;display:flex;flex-wrap:wrap;}
.membership-pricing .pricing-card{max-width:460px;}
.membership-pdf-link .btn{margin:0;}

/* ===== OOTFA: merged Become-a-Member section ===== */
.membership-join-grid{display:flex;gap:2.5rem;align-items:flex-start;flex-wrap:wrap;}
.membership-join-pricing{flex:0 0 340px;max-width:340px;}
.membership-join-form{flex:1 1 420px;min-width:300px;}
.membership-join-form .membership-form-title{margin-top:0;color:var(--color-primary,#1A3D2F);}
.membership-join .membership-pdf-link{margin-top:1.25rem;}
.membership-join .membership-support{margin-top:2.5rem;text-align:center;}
@media (max-width:820px){.membership-join-grid{flex-direction:column;}.membership-join-pricing{flex-basis:auto;max-width:460px;margin:0 auto;}}

/* ===== OOTFA: officers tables ===== */
.ootfa-officers-table{width:100%;border-collapse:collapse;margin:0 0 1.75rem;font-size:0.95rem;}
.ootfa-officers-table th{text-align:left;background:var(--color-primary,#1A3D2F);color:#fff;padding:8px 12px;}
.ootfa-officers-table td{padding:8px 12px;border-bottom:1px solid rgba(0,0,0,0.08);vertical-align:top;}
.ootfa-officers-table tr:nth-child(even) td{background:rgba(0,0,0,0.025);}
.ootfa-officers-table td:first-child{font-weight:600;white-space:nowrap;}
@media (max-width:600px){.ootfa-officers-table{font-size:0.85rem;}.ootfa-officers-table th,.ootfa-officers-table td{padding:6px 8px;}}


/* ===== OOTFA: inline PDF embed (roster, etc.) ===== */
.ootfa-pdf-actions{display:flex;gap:0.75rem;flex-wrap:wrap;margin-bottom:1.25rem;}
.ootfa-pdf-embed{width:100%;height:80vh;min-height:560px;border:1px solid var(--color-tertiary,#A7722F);border-radius:8px;overflow:hidden;background:#f5f0e8;}
.ootfa-pdf-embed object,.ootfa-pdf-embed embed{width:100%;height:100%;}
.ootfa-pdf-fallback{padding:2rem;text-align:center;}

/* ===== OOTFA: footer link contrast ===== */
.site-footer a{color:var(--color-secondary,#D49535);}

/* ===== Accessibility: WCAG AA contrast fixes ===== */
.btn-primary{color:#1f1f1f;}
.btn-primary:hover{background:var(--color-accent);border-color:var(--color-accent);color:#1f1f1f;}
.donate-section .btn-primary,.donate-section .btn-primary:hover{color:#fff;}
.event-date,.events-listing-section .event-date,.tune-card .tune-label{color:#7a5114;}
.site-footer .footer-heading{font-size:1.125rem;font-weight:700;color:#fff;margin:0 0 1rem;line-height:1.3;}
.footer-social a{color:#fff;}
.site-footer a{color:#F2CE84;}
/* Internal-linking related blocks */
.ootfa-related{margin:2.5rem 0 0;padding:1.5rem 1.75rem;background:var(--color-cream,#FDF1E7);border-radius:10px;border:1px solid var(--color-border,#E0D5C7);}
.ootfa-related h2{font-size:1.15rem;margin:0 0 .75rem;color:var(--color-primary,#1A3D2F);}
.ootfa-related-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.25rem;}
.ootfa-related-list li{margin:0;}
.ootfa-related-list a{font-weight:600;color:#7a5114;}
.ootfa-related-list a:hover{color:var(--color-primary,#1A3D2F);}
.primary-navigation > ul > li > a:hover,
.primary-navigation > ul > li.current-menu-item > a{color:#7a5114;}
/* Logo: display at a crisp header size (served file is 2x) */
.site-branding .custom-logo{width:auto;height:52px;max-width:100%;}
.site-footer a:hover{color:#FDF1E7;}
.site-footer .btn-outline{color:#FDF1E7 !important;border-color:rgba(253,241,231,0.55);}
.site-footer .btn-outline:hover{background:var(--color-secondary,#D49535);color:#1A3D2F !important;border-color:var(--color-secondary,#D49535);}

/* ===== OOTFA: events calendar (FullCalendar) ===== */
.ootfa-calendar-wrap{max-width:1040px;margin:0 auto;}
#ootfa-calendar{margin-top:1rem;background:#fff;border-radius:10px;padding:1rem;box-shadow:0 2px 8px rgba(0,0,0,0.06);}
.fc a{text-decoration:none;}
.fc .fc-button-primary{background:var(--color-primary,#1A3D2F);border-color:var(--color-primary,#1A3D2F);text-transform:capitalize;}
.fc .fc-button-primary:hover{background:var(--color-tertiary,#A7722F);border-color:var(--color-tertiary,#A7722F);}
.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background:var(--color-secondary,#D49535);border-color:var(--color-secondary,#D49535);color:#1A3D2F;}
.fc .fc-toolbar-title{font-family:var(--font-heading,'Playfair Display',serif);color:var(--color-primary,#1A3D2F);}
.fc-event,.fc-event:hover{background:var(--color-secondary,#D49535);border-color:var(--color-tertiary,#A7722F);color:#1A3D2F;cursor:pointer;}
.fc-daygrid-event-dot{border-color:var(--color-primary,#1A3D2F);}
.ootfa-cal-note{text-align:center;margin-top:1.25rem;font-size:0.9rem;}

/* ===== OOTFA: calendar event display (clip, list rows, tooltip) ===== */
.fc-daygrid-event{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:4px;}
.fc-daygrid-event .fc-event-title{overflow:hidden;text-overflow:ellipsis;}
.fc-list-event-time,.fc-list-event-graphic{display:none;}
.fc-list-event-title{padding:10px 14px;}
.ootfa-ev-listrow{display:flex;gap:0.9rem;align-items:flex-start;}
.ootfa-ev-thumb{width:88px;height:64px;object-fit:cover;border-radius:6px;flex:0 0 auto;}
.ootfa-ev-title{font-weight:700;color:var(--color-primary,#1A3D2F);font-size:1.02rem;}
.ootfa-ev-meta{font-size:0.85rem;color:var(--color-accent,#7E8937);margin:2px 0;font-weight:600;}
.ootfa-ev-excerpt{font-size:0.9rem;color:var(--color-text,#3D2B1F);}
.fc .fc-list-event:hover td{background:var(--color-cream,#FDF1E7);}
.ootfa-ev-tooltip{position:absolute;z-index:99999;max-width:280px;background:#fff;border:1px solid var(--color-tertiary,#A7722F);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,0.2);padding:10px 12px;font-size:0.85rem;pointer-events:none;line-height:1.4;}
.ootfa-ev-tooltip img{width:100%;height:96px;object-fit:cover;border-radius:5px;margin-bottom:6px;display:block;}
.ootfa-ev-tooltip strong{color:var(--color-primary,#1A3D2F);font-size:0.95rem;}
.ootfa-ev-tooltip .t-meta{color:var(--color-accent,#7E8937);margin:5px 0;font-weight:600;}
.ootfa-ev-tooltip .t-ex{color:var(--color-text,#3D2B1F);margin-top:4px;}

/* ===== OOTFA: events month/upcoming toggle ===== */
.ootfa-view-toggle{display:flex;justify-content:center;margin:0 auto 1.5rem;border:1px solid var(--color-tertiary,#A7722F);border-radius:999px;overflow:hidden;width:fit-content;}
.ootfa-view-toggle button{padding:8px 24px;background:#fff;border:none;cursor:pointer;font-weight:700;color:var(--color-primary,#1A3D2F);font-size:0.9rem;}
.ootfa-view-toggle button.active{background:var(--color-primary,#1A3D2F);color:#fff;}
#ootfa-upcoming.events-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;}
@media (max-width:900px){#ootfa-upcoming.events-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){#ootfa-upcoming.events-grid{grid-template-columns:1fr;}}

/* ============================================================
   August 2026 polish (client feedback, Cindy 8/3 + 8/8)
   ============================================================ */
/* Event cards: thumbnails auto-size to a uniform 16:10 space in every grid. */
.events-listing-section .event-card-image,
.district-upcoming-events .event-card-image{height:auto;aspect-ratio:16/10;}
.events-listing-section .event-card-image img,
.district-upcoming-events .event-card-image img{width:100%;height:100%;object-fit:cover;display:block;}
/* Event cards: comfortable text spacing under the thumbnail. */
.event-card-body .event-date{margin-bottom:0.35rem;}
.event-card-body .event-location{margin:0.25rem 0 0.35rem;line-height:1.45;}
.event-card-body .event-excerpt{margin:0.6rem 0 1rem;line-height:1.55;}
/* Calendar hover tooltip: keep the description airy and readable. */
.ootfa-ev-tooltip .t-ex{line-height:1.5;margin-top:6px;white-space:normal;}
/* Photo galleries (Statewide Photos etc.): uniform square tiles that fill
   their space; the OOTFA logo tile shows the whole logo on cream instead
   of being stretched/cropped. */
.wp-block-gallery.is-cropped .wp-block-image img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:4px;}
.wp-block-gallery.is-cropped .wp-block-image img[src*="OOTFA-LOGO"]{object-fit:contain;background:var(--color-cream,#FDF1E7);padding:0.6rem;box-sizing:border-box;}

/* ============================================================
   Event Dashboard (District Admins)
   ============================================================ */
.ootfa-dash-managing{font-size:1.05rem;margin:0.5rem 0 1.5rem;}
.ootfa-dash-table{width:100%;border-collapse:collapse;margin:0.75rem 0 2rem;}
.ootfa-dash-table th{text-align:left;padding:0.6rem 0.75rem;border-bottom:2px solid var(--color-primary,#1A3D2F);font-size:0.85rem;text-transform:uppercase;letter-spacing:0.04em;}
.ootfa-dash-table td{padding:0.65rem 0.75rem;border-bottom:1px solid var(--color-border,#e5ddd3);vertical-align:middle;}
.ootfa-dash-actions{white-space:nowrap;}
.ootfa-dash-actions .btn{padding:0.35rem 0.9rem;font-size:0.85rem;margin:0 0.25rem 0 0;}
.ootfa-dash-delete{color:#a33;border-color:#a33;}
.ootfa-badge-members{display:inline-block;background:var(--color-primary,#1A3D2F);color:#fff;font-size:0.75rem;padding:0.15rem 0.6rem;border-radius:999px;}
.ootfa-dash-formwrap{margin-top:1rem;padding-top:1.5rem;border-top:2px solid var(--color-border,#e5ddd3);}
@media (max-width:700px){
  .ootfa-dash-table thead{display:none;}
  .ootfa-dash-table tr{display:block;border-bottom:2px solid var(--color-border,#e5ddd3);padding:0.5rem 0;}
  .ootfa-dash-table td{display:block;border:0;padding:0.2rem 0;}
}
.ootfa-dash-help{font-size:0.85rem;margin-left:0.75rem;}
/* District page calendar */
.ootfa-cal-key{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin-right:0.35rem;}
#ootfa-district-calendar{background:#fff;border:1px solid var(--color-border,#e5ddd3);border-radius:8px;padding:0.75rem;}
#ootfa-district-calendar .fc-event{cursor:pointer;font-size:0.78rem;}

/* ============================================================
   Site Dashboard (tabs, Hoedowner + Tunes forms)
   ============================================================ */
.ootfa-dash-tabs{display:flex;gap:0;border-bottom:2px solid var(--color-primary,#1A3D2F);margin:0 0 1.5rem;flex-wrap:wrap;}
.ootfa-dash-tabs a{padding:0.7rem 1.4rem;text-decoration:none;font-weight:700;color:var(--color-primary,#1A3D2F);border:2px solid transparent;border-bottom:0;margin-bottom:-2px;border-radius:6px 6px 0 0;}
.ootfa-dash-tabs a.current{background:var(--color-primary,#1A3D2F);color:#fff;}
.ootfa-dash-tabs a:hover:not(.current){background:#fff;}
.ootfa-dash-formwrap.ootfa-dash-first{margin-top:0;padding-top:0;border-top:0;}
.ootfa-dash-intro{max-width:70ch;}
.ootfa-event-form .ootfa-field-hint{font-size:0.85rem;color:#666;font-weight:400;}
.ootfa-event-form .ootfa-optional{font-weight:400;color:#777;}
.ootfa-event-form .ootfa-field-check{flex-direction:row;align-items:center;gap:0.5rem;}
.ootfa-event-form .ootfa-field-check input{width:auto;margin:0;}
.ootfa-event-form .ootfa-field-check label{margin:0;}
.ootfa-dash-formwrap + .ootfa-dash-list{margin-top:2rem;padding-top:1.5rem;border-top:2px solid var(--color-border,#e5ddd3);}
.ootfa-dash-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin:1rem 0 2rem;}
.ootfa-dash-photos figure{margin:0;background:#fff;border:1px solid var(--color-border,#e5ddd3);border-radius:6px;overflow:hidden;}
.ootfa-dash-photos img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;}
.ootfa-dash-photos figcaption{display:flex;justify-content:space-between;align-items:center;padding:0.4rem 0.6rem;font-size:0.8rem;color:#666;}
.ootfa-dash-photos figcaption a{font-weight:600;}

/* ---- Dashboard v1.0.54: event types as checkboxes, event files, minutes, officers ---- */
.ootfa-event-form .ootfa-field-label{display:block;font-weight:700;margin-bottom:0.4rem;}
.ootfa-check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:0.35rem 1rem;padding:0.6rem 0.75rem;background:#fff;border:1px solid var(--color-border,#e5ddd3);border-radius:6px;}
.ootfa-check{display:flex;align-items:center;gap:0.45rem;font-weight:500;margin:0;cursor:pointer;}
.ootfa-check input{width:auto;margin:0;}
.ootfa-check-remove{display:inline-flex;font-size:0.85rem;color:#8a1c1c;margin-left:0.75rem;}
.ootfa-file-list{list-style:none;margin:0.6rem 0 0;padding:0;}
.ootfa-file-list li{padding:0.35rem 0;border-bottom:1px solid rgba(0,0,0,0.06);display:flex;align-items:center;flex-wrap:wrap;}
.ootfa-event-files{margin:2rem 0 0;padding:1.25rem 1.5rem;background:rgba(0,0,0,0.03);border-radius:8px;}
.ootfa-event-files h2{font-family:var(--font-heading);color:var(--color-primary,#1A3D2F);font-size:1.3rem;margin:0 0 0.6rem;}
.ootfa-event-files ul{margin:0;padding-left:1.25rem;}
.ootfa-event-files li{margin:0.3rem 0;}
.ootfa-file-size{color:#777;font-size:0.85rem;}
.ootfa-minutes-list{margin:0 0 1.5rem;padding-left:1.25rem;}
.ootfa-minutes-list li{margin:0.4rem 0;}
.ootfa-dash-group{font-family:var(--font-heading);color:var(--color-primary,#1A3D2F);margin:2rem 0 0.6rem;display:flex;align-items:baseline;gap:1rem;flex-wrap:wrap;}
.ootfa-dash-addlink{font-family:var(--font-body,inherit);font-size:0.85rem;font-weight:600;}
.ootfa-jam-form{display:flex;align-items:center;gap:0.6rem;flex-wrap:wrap;margin:0 0 0.75rem;font-size:0.9rem;}
.ootfa-jam-form label{margin:0;font-weight:600;}
.ootfa-jam-form input{flex:1 1 220px;max-width:340px;padding:0.4rem 0.6rem;border:1px solid var(--color-border,#e5ddd3);border-radius:4px;}
.ootfa-jam-form .btn{padding:0.4rem 0.9rem;font-size:0.85rem;}
.ootfa-officers-table.has-photos td.ootfa-off-photo{width:56px;padding:6px 8px;font-weight:normal;}
.ootfa-officers-table.has-photos td.ootfa-off-photo img{width:48px;height:48px;object-fit:cover;border-radius:50%;display:block;}
.ootfa-officers-table.has-photos td:first-child{white-space:normal;}
.ootfa-officers-table.has-photos td:nth-child(2){font-weight:600;white-space:nowrap;}
.ootfa-awards-table table{width:100%;border-collapse:collapse;margin:0 0 1.75rem;}
.ootfa-awards-table th{text-align:left;background:var(--color-primary,#1A3D2F);color:#fff;padding:8px 12px;border:0;}
.ootfa-awards-table td{padding:8px 12px;border:0;border-bottom:1px solid rgba(0,0,0,0.08);}
.ootfa-awards-table tbody tr:nth-child(even) td{background:rgba(0,0,0,0.025);}
.ootfa-awards-table td:first-child{font-weight:600;white-space:nowrap;}
.gform_wrapper .ootfa-consent-field .gfield_consent_label{font-weight:600;}

/* ---- Event pictures fit their box (posters are portrait; cropping showed a slice) ---- */
.event-card-image{background:var(--color-cream,#FDF1E7);}
.event-card-image img,
.events-listing-section .event-card-image img,
.district-upcoming-events .event-card-image img{object-fit:contain;object-position:center;padding:0.5rem;box-sizing:border-box;}
.event-card:hover .event-card-image img{transform:none;}
.ootfa-ev-thumb,.ootfa-ev-tooltip img{object-fit:contain;background:var(--color-cream,#FDF1E7);}
.events-listing-section .event-card-image,.district-upcoming-events .event-card-image{aspect-ratio:1/1;}
.events-listing-section .event-card-image img{aspect-ratio:auto;height:100%;}
.ootfa-edit-pointer{background:#fff7e6;border:1px solid #D49535;color:#5a3d0e;font-weight:500;}

/* Calendar details dialog and series fields. */
#ootfa-calendar-dialog{border:1px solid #d5d9d2;border-radius:12px;padding:1.5rem;width:calc(100% - 2rem);max-width:34rem;max-height:calc(100vh - 2rem);overflow:auto;margin:auto;box-sizing:border-box;color:#1A3D2F;background:#fffdf8;}
#ootfa-calendar-dialog::backdrop{background:rgba(0,0,0,.45);}
#ootfa-calendar-dialog h2{margin-top:0;}
#ootfa-calendar-dialog .btn{margin:.3rem .5rem .3rem 0;}
.ootfa-repeat-fields{margin:1rem 0;padding:1rem;border:1px solid #d5d9d2;border-radius:8px;}
.ootfa-event-map{white-space:normal;text-decoration:underline;}
