/* ============================================
   Mizpah Lodge #302 - Bold Dark Theme
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2a8fd4;
    --primary-dark: #1a6fa8;
    --primary-extradark: #10496e;
    --primary-light: #4aa8e0;
    --accent: #c8972e;
    --accent-dark: #a87824;
    --accent-light: #ddb84a;
    --text: #dce8f2;
    --text-light: #7a9ab5;
    --bg: #0d1b26;
    --bg-alt: #091420;
    --bg-card: #152d42;
    --bg-dark: #070f17;
    --bg-footer: #040a10;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Alegreya", "Georgia", serif;
    color: var(--text);
    line-height: 1.3;
}

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

a:hover {
    color: var(--accent-light);
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold {
    color: var(--accent);
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--bg-dark);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--accent);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition:
        background 0.2s,
        color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    min-width: 200px;
    border-top: 2px solid var(--accent);
    z-index: 100;
}

.dropdown a {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
}

/* Donate button */
.btn-donate {
    background: var(--accent);
    color: var(--accent);
    border-radius: 3px;
    padding: 10px 18px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-donate:hover {
    background: var(--accent-light);
    color: var(--accent-light);
}

/* --- Hero Section --- */
.hero {
    background:
        linear-gradient(rgba(5, 10, 16, 0.05), rgba(7, 15, 23, 0.05)),
        url("../images/lighthouse_with_background.png") center/100% auto no-repeat;
    color: #fff;
    text-align: center;
    min-height: 50vw;
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/Mizpah-Seal_Brown-1-350x350.png") center/contain
        no-repeat;
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    font-family: "Alegreya", serif;
    font-style: italic;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-badge {
    text-align: center;
}

.hero-badge .badge-word {
    display: block;
    font-family: "Alegreya", serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-badge .badge-desc {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #0d1b26;
}

.btn-accent:hover {
    background: var(--accent-light);
    color: #0d1b26;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #0d1b26;
}

/* --- Sections --- */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text);
}

.section-dark h2,
.section-dark h3 {
    color: var(--text);
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.section-header h4 {
    text-align: left;
    font-weight: normal;
    font-family: "Roboto", "Segoe UI", sans-serif;
    margin-bottom: 10px;
    margin-left: 10px;
    color: var(--text-light);
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 10px 10px;
}

.section-header p {
    color: var(--text-light);
    max-width: 975px;
    margin: 0px 25px;
}

/* --- Pillars (Three Columns) --- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar {
    text-align: center;
    padding: 35px 30px;
    background: var(--bg-card);
    border-radius: 4px;
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.pillar:hover {
    transform: translateY(-4px);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.pillar-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.pillar h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.pillar p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Welcome / WM Section --- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.welcome-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.meeting-info {
    background: var(--primary-extradark);
    border: 1px solid var(--primary-dark);
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
}

.meeting-info h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.meeting-info p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* --- Next Meeting Banner (js/next-meeting.js) --- */
.next-meeting {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 18px 20px;
    margin-top: 15px;
}

.next-meeting .nm-line {
    color: var(--text);
    margin: 0 0 4px;
}

.next-meeting .nm-line strong {
    color: var(--accent);
}

.next-meeting .nm-countdown {
    color: var(--text-light);
    font-style: italic;
}

.next-meeting .nm-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.next-meeting .nm-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.next-meeting .nm-rsvp {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.next-meeting .nm-cal-link {
    font-size: 0.85rem;
    color: var(--primary-light);
    white-space: nowrap;
}

.next-meeting .nm-cal-link:hover {
    color: var(--accent-light);
}

.wm-card {
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    border-top: 4px solid var(--accent);
}

.wm-card h2 {
    font-size: 1.7rem;
    margin-bottom: 5px;
    color: var(--accent-dark);
}

.wm-card .wm-title {
    color: var(--accent);
    font-style: italic;
    margin-bottom: 15px;
}

.wm-card p {
    color: var(--text-light);
    font-size: 0.98rem;
}

/* --- Info Cards --- */
.info-card {
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--accent);
}

/* --- What is Freemasonry --- */
.freemasonry-section {
    text-align: center;
}

.freemasonry-section p {
    max-width: 1000px;
    margin: 0 auto 20px;
    color: var(--text-light);
}

/* --- Image Placeholders --- */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 260px;
    background: var(--bg-dark);
    border: 2px dashed var(--accent);
    border-radius: 4px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.img-placeholder--portrait {
    height: 320px;
    max-width: 280px;
}

.img-placeholder--wide {
    height: 400px;
}

/* --- Blockquote --- */
blockquote {
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--bg-dark);
    border-radius: 0 4px 4px 0;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--accent);
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.95rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 151, 46, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Contact Info --- */
.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info-item .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

/* --- Dues Table --- */
.dues-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.dues-table th,
.dues-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.dues-table th {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.dues-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.dues-table .total-row td {
    font-weight: 700;
    background: rgba(200, 151, 46, 0.1);
    color: var(--accent);
    font-size: 1.05rem;
}

/* --- Payment Methods --- */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.payment-card {
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    border-top: 3px solid var(--accent);
}

.payment-card .step-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #0d1b26;
    font-weight: 700;
    margin-bottom: 12px;
}

.payment-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.payment-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Newsletter Signup --- */
.newsletter {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
}

.newsletter h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.newsletter p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.newsletter-form input::placeholder {
    color: var(--text-light);
}

.newsletter-form .btn {
    flex-shrink: 0;
}

/* --- Appendent Bodies --- */
.bodies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.body-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.body-link:hover {
    background: rgba(200, 151, 46, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.benediction {
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
    background: rgba(200, 151, 46, 0.05);
    border-radius: 0 3px 3px 0;
}

.benediction cite {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d2d42 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.page-header h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.page-header p {
    color: var(--accent);
    font-size: 1.05rem;
    font-style: italic;
    font-family: "Alegreya", serif;
}

/* --- Content Page --- */
.content-page {
    padding: 40px 0;
}

.content-page .container {
    max-width: 900px;
}

/* --- Club 1919 --- */
.club-highlight {
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-dark) 100%
    );
    color: #0d1b26;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    margin: 30px 0;
}

.club-highlight h3 {
    color: #0d1b26;
    font-size: 1.6rem;
}

.club-amount {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: "Alegreya", serif;
}

.club-period {
    font-size: 1rem;
    opacity: 0.85;
}

/* --- Scholarship --- */
.scholarship-card {
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 30px;
    border-left: 4px solid var(--accent);
    margin-bottom: 25px;
}

.scholarship-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.scholarship-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    font-family: "Alegreya", serif;
}

.eligibility-list {
    list-style: none;
    padding: 0;
}

.eligibility-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-light);
}

.eligibility-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* --- Calendar --- */
.calendar-embed {
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.calendar-embed p {
    color: var(--text-light);
}

/* --- Trestle Board Archive --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.archive-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 3px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition:
        border-color 0.2s,
        transform 0.2s;
}

.archive-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.archive-item .file-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- Map --- */
.map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* --- Clickable inline images (.lb-image) --- */
img.lb-image {
    cursor: zoom-in;
    transition:
        opacity 0.2s,
        box-shadow 0.2s;
}

img.lb-image:hover {
    opacity: 0.9;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* --- Home Slideshow --- */
.home-slideshow {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-dark);
    cursor: pointer;
}

.ss-track {
    position: relative;
    width: 100%;
}

.ss-slide {
    display: none;
    position: relative;
}

.ss-slide.ss-active {
    display: block;
}

.ss-slide img {
    width: 100%;
    display: block;
    border-radius: 4px 4px 0 0;
}

.ss-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    padding: 30px 16px 12px;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    pointer-events: none;
}

.ss-prev,
.ss-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 3px;
    z-index: 2;
    transition: background 0.2s;
    line-height: 1;
}

.ss-prev {
    left: 10px;
}
.ss-next {
    right: 10px;
}

.ss-prev:hover,
.ss-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.ss-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 8px;
    background: var(--bg-dark);
}

.ss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.ss-dot.ss-dot-active {
    background: var(--accent);
}

/* --- Lightbox Overlay --- */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}

.lb-overlay.lb-open {
    display: flex;
}

.lb-content {
    text-align: center;
    max-width: 90vw;
}

.lb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
    display: block;
    margin: 0 auto;
}

.lb-caption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 12px;
}

.lb-close {
    position: fixed;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    z-index: 10000;
    transition: color 0.2s;
}

.lb-close:hover {
    color: var(--accent);
}

.lb-prev,
.lb-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    padding: 16px 18px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.lb-prev:hover,
.lb-next:hover {
    background: rgba(200, 151, 46, 0.35);
}

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

.gal-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    padding: 0;
}

.gal-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.gal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    color: #fff;
    font-size: 0.85rem;
    font-style: italic;
    padding: 24px 12px 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

/* --- Two-column content grid --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border);
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(255, 255, 255, 0.04);
    }

    .has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .hero {
        background:
            linear-gradient(rgba(5, 10, 16, 0.6), rgba(7, 15, 23, 0.7)),
            url("../images/lighthouse_with_background.png") left bottom/225% auto no-repeat;
        min-height: 0;
        padding: 60px 20px 50px;
        justify-content: center;
    }

    .hero::before {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

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

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

    .payment-methods {
        grid-template-columns: 1fr;
    }

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

    .hero-badges {
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

/* ============================================
   Light theme — applied when the visitor's
   system prefers light colors. The site's
   default dark palette lives in :root above.
   The header, footer, page-header banners, and
   the Appendent Bodies section intentionally
   stay dark in both themes.
   ============================================ */
@media (prefers-color-scheme: light) {
    :root {
        --primary: #1f7ab8;
        --primary-dark: #16608f;
        --primary-extradark: #10496e;
        --primary-light: #16608f; /* link color, darkened for contrast */
        --accent: #a87824;
        --accent-dark: #8a6420;
        --accent-light: #c8972e;
        --text: #22313f;
        --text-light: #5a6f80;
        --bg: #f7f9fb;
        --bg-alt: #edf1f5;
        --bg-card: #ffffff;
        /* --bg-dark and --bg-footer keep their dark values */
        --border: rgba(13, 27, 38, 0.14);
        --shadow: 0 4px 20px rgba(13, 27, 38, 0.12);
    }

    /* Header stays dark — keep nav text light */
    .main-nav a {
        color: #dce8f2;
    }

    .dropdown {
        background: var(--bg-dark);
    }

    /* Appendent Bodies section stays dark */
    .section-dark,
    .section-dark h2,
    .section-dark h3 {
        color: #dce8f2;
    }

    .section-dark .section-header p {
        color: rgba(255, 255, 255, 0.65);
    }

    /* Panels that used the dark background */
    blockquote,
    .img-placeholder {
        background: var(--bg-alt);
    }

    /* Pillar icons: white → dark so they show on white cards */
    .pillar-icon img {
        filter: brightness(0) opacity(0.8);
    }

    /* Form fields on light cards */
    .form-group input,
    .form-group textarea,
    .form-group select,
    .newsletter-form input {
        background: #ffffff;
    }

    .dues-table tr:hover td {
        background: rgba(13, 27, 38, 0.04);
    }

    /* Gold gradient card: white text reads better on darker gold */
    .club-highlight,
    .club-highlight h3 {
        color: #ffffff;
    }
}
