/* Theme Name: Adventurers Custom Theme
Author: Amanda Catalano
Version: 1.0
Description: A custom HTML/CSS theme built from scratch.
*/

@charset "utf-8";

/* =========================================
   1. GLOBAL VARIABLES & TYPOGRAPHY RESET
   ========================================= */
:root {
    /* Set brand fonts here */
    --font-heading: 'Arial Narrow', 'Impact', sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Brand Colors */
    --color-dark-green: #1c3843;
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* --- Global Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-top: 0;
    font-weight: bold;
    /* Default dark color for headings */
    color: var(--color-text-dark); 
}

/* Distinct, Hierarchical Sizes for Headings */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* --- Global Paragraphs --- */
p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

/* --- Contrast Utilities --- */
/* Add this class to any dark container (like the hero or dark-green sections) 
   to automatically flip the text inside it to white! */
.dark-bg h1, 
.dark-bg h2, 
.dark-bg h3, 
.dark-bg h4, 
.dark-bg p {
    color: var(--color-text-light);
}

/* --- Global Links & Menu Items --- */
a {
    color: var(--color-dark-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* =========================================
   2. PAGE SECTIONS
========================================= */

/* --- Mission Intro Section --- */
.mission-intro {
    background-color: var(--color-dark-green);
    color: var(--color-text-light);
    padding: 5rem calc(max(5%, (100% - 1200px) / 2)); 
    text-align: center;
}

.mission-intro h2 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.mission-intro p {
    max-width: 1200px; 
    margin: 0 auto;    
    color: #e0e0e0; /* Kept for contrast */
}

.mission-cta {
    text-align: center;
    padding: 3rem calc(max(5%, (100% - 1200px) / 2)) 2rem;
    background-color: #ffffff;
	max-width: 1200px
}

/* Logo Specifics */
.logo img {
    display: block;
	margin-top: 15px;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

/* --- Navigation --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    box-sizing: border-box;
    width: 100%;
}

.nav-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end; 
    gap: 25px; 
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding-top: 11px;
    gap: 20px;
}

.nav-links > li {
    margin-left: 30px;
    position: relative; 
    padding-bottom: 10px;
    font-weight: bold;
}

/* --- Submenu Accordion Mechanics --- */
.nav-links .sub-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #1c3843; 
    border: 2px solid #000000; 
    list-style: none;
    margin: 0;
    padding: 5px 0;
    min-width: 160px;
    display: none; 
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.nav-links .sub-menu li {
    margin-left: 0; 
    text-align: left;
}

.nav-links .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .sub-menu a:hover {
    background-color: #13262e; 
    color: #FFFFFF;
}

.nav-links li:hover .sub-menu {
    display: block;
}

givebutter-widget {
    display: inline-flex !important;
    align-items: center;
}

/* Base styling for the toggle button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333; /* Update to match your theme's text color */
}

/* Mobile Media Query */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Allows the menu to drop below the logo/button */
        position: relative;
    }

    .mobile-menu-toggle {
        display: block; /* Show the button on mobile */
    }

    .nav-container {
        display: none; /* Hide the menu by default on mobile */
        width: 100%;
        flex-direction: column;
        background-color: #ffffff; /* Update to match your header background */
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Class added via JavaScript to reveal the menu */
    .nav-container.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    /* Givebutter widget positioning on mobile */
    givebutter-widget {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }
}

/* --- Hero Section --- */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
}

.home .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Arial Narrow', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0;
    color: #ffffff !important;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-content h3 {
    color: #ffffff !important;
	letter-spacing: 1.1px;
	text-transform: none;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-divider {
    border: none;
    height: 4px;
    background-color: #1c3843;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

.hero-content p {
    font-family: 'Arial Narrow', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #ffffff !important;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
}

/* --- What We Do Section --- */
.what-we-do {
    background-color: #ffffff;
    padding: 4rem calc(max(5%, (100% - 1200px) / 2));
    text-align: center;
}

.what-we-do h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: auto;
    display: block;
}

.service-card h3 {
    background-color: #1c3843; 
    color: #fff; /* Kept for contrast */
    padding: 10px;
    margin-top: 0;
}

.service-card p {
    padding: 10px;
}

/* --- Upcoming Events Section --- */
.upcoming-events {
    background-color: #1c3843; 
    color: #fff;
    padding: 4rem calc(max(5%, (100% - 1200px) / 2));
}

.upcoming-events h2,
.upcoming-events h3,
.upcoming-events p,
.upcoming-events .event-date {
    color: #ffffff; /* Kept for contrast */
}

.site-footer p,
.site-footer .copyright,
.site-footer .disclaimer {
    color: #ffffff; /* Kept for contrast */
}

.upcoming-events h2 {
    margin-bottom: 3rem;
    text-align: center;
}

.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.event-row.reverse-layout {
    flex-direction: row-reverse;
}

.event-text {
    flex: 1;
    min-width: 300px;
}

.event-text h3 {
    margin-bottom: 0.2rem;
}

.event-date {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.event-image {
    flex: 1;
	max-width: 300px;
}

.event-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.events-footer {
    text-align: right;
    margin-top: 2rem;
}

.btn-more-events {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #1c3843; 
    text-decoration: none;
    font-weight: bold;
}

/* --- Donate Section --- */
.donate-section {
    background-color: #ffffff;
    padding: 5rem calc(max(5%, (100% - 1200px) / 2));
    text-align: center;
}

.donate-section h2 {
    margin-bottom: 2rem;
}

.donate-text {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.donate-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.donate-card {
    position: relative;
    width: 320px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 4px solid #000;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease;
}

.donate-card:hover {
    transform: scale(1.03);
}

.donate-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.donate-card span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Arial Narrow', sans-serif;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* --- FOOTER LAYOUT (DESKTOP) --- */
.site-footer {
    background-color: var(--color-dark-green, #1c3843);
    color: #ffffff;
    padding: 3rem 1.5rem;
    font-family: var(--font-body);
}

.footer-container {
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: nowrap !important; 
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Left Column Alignment */
.footer-left {
    flex: 1; 
    min-width: 300px; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start !important; 
    text-align: left !important;
}

/* Right Column Alignment */
.footer-right {
    flex: 1; 
    min-width: 300px; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end !important; 
    text-align: right !important;
}

.footer-newsletter {
    width: 100%;
    max-width: 400px; 
    transform: scale(0.85); /* Shrinks the widget to 85% of its normal size */
    transform-origin: top right; /* Ensures it shrinks toward the top right corner where it belongs */
}

.footer-socials {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.footer-socials img {
    transition: transform 0.3s ease;
}

.footer-socials img:hover {
    transform: translateY(-3px); 
}

.footer-copyright {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-disclaimer {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #cccccc; 
}

.footer-disclaimer p {
    margin: 0;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 850px) {
    .footer-container {
        flex-direction: column !important; 
        flex-wrap: wrap !important;
        gap: 3rem;
    }
    
    .footer-left,
    .footer-right {
        align-items: center !important; 
        text-align: center !important;
    }
    
    .footer-socials {
        justify-content: center;
    }
}
/* --- Sub-Page Hero --- */
.sub-hero {
    position: relative;
    min-height: 180px; 
    height: auto; 
    display: flex;
    justify-content: center;
    align-items: center; 
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center center;
    padding: 150px calc(max(10%, (100% - 1200px) / 2)) 2rem; 
}

/* --- Split Row Layout --- */
.split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem calc(max(5%, (100% - 1200px) / 2)); 
    gap: 3rem; 
    background-color: #ffffff;
}

.split-row.alt-bg {
    background-color: #f8f9fa;
}

.split-row.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
    min-width: 300px;
}

.split-text h2 {
    margin-bottom: 0.8rem;
}

.split-text p {
    margin-bottom: 0.8rem;
}

.split-image {
    flex: 1;
    min-width: 300px;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Guild List Styling --- */
.guild-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guild-list li {
    list-style-type: none;
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem; 
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.guild-list li::before {
    content: '■'; 
    color: #1c3843; 
    position: absolute;
    left: 0;
    top: 3px; 
    font-size: 0.8rem;
}

/* --- Unified Final CTA Section --- */
.final-cta-section {
    padding: 3rem calc(max(5%, (100% - 1200px) / 2)) 4rem;
    text-align: center;
    background-color: #f4f7f6;
    border-top: 1px solid #e0e0e0;
    border-bottom: none;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-intro {
    max-width: 1200px;
    margin: 0 auto 1.2rem auto;
}

.final-cta-section h3 {
    margin-bottom: 3.5rem;
}

/* --- Bottom Action Cards --- */
.action-cards-container {
    padding: 0 calc(max(5%, (100% - 1200px) / 2)) 3rem; 
    background-color: #ffffff;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 300px; 
    border: 3px solid #000; 
    background: #fff;
    transition: transform 0.2s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    display: block; 
    border-bottom: 3px solid #000; 
    background-color: #f4f4f4; 
}

.action-card span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0; 
    font-family: 'Arial Narrow', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
}

/* --- Leadership Layouts --- */
.officers-section, .council-section, .board-section {
    padding: 3.5rem calc(max(5%, (100% - 1200px) / 2)); 
    text-align: center;
    background-color: #ffffff;
}

.board-section.alt-bg {
    background-color: #f8f9fa;
}

.officers-section h2, .council-section h2, .board-section h2 {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

/* --- Compact Founders Feature --- */
.founders-feature.compact {
    max-width: 1200px; 
    margin: 0 auto 4rem auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.founders-feature.compact .founders-image img {
    width: 100%;
    height: 600px; 
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.founders-feature.compact .founders-bios {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    text-align: left;
}

.bio-column {
    flex: 1;
}

.bio-column h3 {
    margin-bottom: 0.2rem;
}

.bio-column h4 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* --- Transparency Banner --- */
.transparency-banner {
    background-color: #1c3843; 
    padding: 3rem calc(max(10%, (100% - 1200px) / 2));
    text-align: center;
}

.transparency-banner h2 {
    margin-bottom: 1.5rem;
    color: #ffffff !important; /* Kept for contrast */
}

.transparency-banner p {
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff !important; /* Kept for contrast */
}

/* --- Team Grids --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.team-member {
    width: 200px;
    text-align: center;
}

.team-member img, .empty-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    background-color: #e9ecef;
    border: 3px solid #1c3843; 
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
    text-transform: capitalize; 
}

/* --- Events Page Specifics --- */
.events-page-content {
    background-color: #fff;
}

.featured-event {
    padding: 4rem calc(max(5%, (100% - 1200px) / 2)) 2rem;
}

.event-banner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    border: 3px solid #000;
    background: #fff;
    box-shadow: 10px 10px 0px #1c3843; 
}

.event-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #1c3843; 
    color: #fff;
    padding: 5px 20px;
    font-family: 'Arial Narrow', sans-serif;
    font-weight: bold;
    z-index: 10;
}

.event-banner-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 3px solid #000;
}

.event-banner-details {
    padding: 2.5rem;
}

.event-banner-details h2 {
    margin-bottom: 0.5rem;
}

.event-banner-details .location {
    font-weight: bold;
    color: #1c3843; 
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cta-button-small {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 25px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button-small:hover {
    background: #1c3843; 
}

/* Event List */
.event-grid-section {
    padding: 3rem calc(max(5%, (100% - 1200px) / 2));
    max-width: 1200px; /* Reduced from 1100px */
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.event-item:hover {
    border-color: #1c3843; 
}

.event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    background: #f4f4f4;
    border: 2px solid #000;
    margin-right: 2rem;
}

.event-date-box .month {
    font-size: 0.8rem;
    font-weight: bold;
}

.event-date-box .day {
    font-size: 1.8rem;
    font-family: 'Arial Narrow', sans-serif;
    font-weight: bold;
    line-height: 1;
}

.event-info h3 {
    margin-bottom: 0.3rem;
}

.event-info p {
    margin-bottom: 0.5rem;
}

.text-link {
    color: #1c3843; 
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

.cta-button-alt {
    display: inline-block;
    padding: 12px 30px;
    border: 3px solid #1c3843; 
    color: #1c3843; 
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

/* --- Past Quests Scroller --- */
.past-quests-section {
    padding: 3rem calc(max(5%, (100% - 1200px) / 2));
    background-color: #f8f9fa;
    overflow: hidden;
}

.quest-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.quest-scroller::-webkit-scrollbar {
    height: 8px;
}
.quest-scroller::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}
.quest-scroller::-webkit-scrollbar-thumb {
    background: #1c3843; 
    border-radius: 10px;
}

.quest-card-mini {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 2px solid #000;
    transition: transform 0.2s ease;
}

.quest-card-mini:hover {
    transform: translateY(-5px);
}

.quest-card-mini img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #000;
}

.quest-card-meta {
    padding: 1rem;
    text-align: center;
}

.quest-card-meta h4 {
    margin: 0;
}

/* --- Donate Page Styling --- */
.donate-intro {
    padding: 3.5rem calc(max(5%, (100% - 1200px) / 2));
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.donate-intro p {
    margin-bottom: 1.5rem;
}

.membership-section {
    text-align: center;
	max-width: 1200px;
}

.membership-section h2 {
    margin-bottom: 1.5rem;
    font-family: 'Arial Narrow', sans-serif;
    font-size: 3rem;
    color: #1a1a1a;
}

.membership-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tier-card {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 240px;
    max-width: 290px;
    padding: 1.5rem;
    text-align: center;
    background: #ffffff;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

.tier-icon img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border: 2px solid #000;
    background-color: #f4f4f4;
}

.tier-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.tier-card h3 {
    margin-bottom: 1rem;
}

.membership-footer {
    max-width: 1200px;
    width: 100%;
    margin: 3rem auto 0 auto; /* Restores the 3rem top margin while keeping it centered */
    padding: 0 1.5rem;        /* Prevents text from hugging the screen edges on mobile */
    box-sizing: border-box;
}

.special-note {
    font-style: italic;
    margin-bottom: 2rem;
}

.guild-btn {
    display: inline-block;
    max-width: 100%;          /* Keeps the button from expanding past container boundaries */
    padding: 12px 40px;
    background-color: #1c3843; 
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Arial Narrow', sans-serif;
    letter-spacing: 1px;
    border: none;
    transition: background 0.3s;
    box-sizing: border-box;
    white-space: normal;      /* Allows the button text to wrap cleanly if the screen gets micro-small */
    text-align: center;
}

.guild-btn:hover {
    color: #fff;
	background-color: #13262e; 
}

/* --- One-Time Section --- */
.one-time-section {
    background-color: #ffffff; 
    color: #1a1a1a;
    padding: 5rem calc(max(10%, (100% - 1200px) / 2));
    text-align: center;
}

.one-time-section h2 {
    margin-bottom: 2rem;
}

.one-time-content {
    max-width: 850px;
    margin: 0 auto;
}

.one-time-content p {
    margin-bottom: 2.5rem;
}

/* Membership Section Banding */
.membership-section.alt-bg-grey {
    background-color: #f4f4f4;
    padding: 4rem calc(max(5%, (100% - 1200px) / 2));
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.brand-bg-dark h2 {
    color: #ffffff !important; /* Kept for contrast */
    margin-bottom: 2rem;
}

.brand-bg-dark p {
    color: #ffffff; /* Kept for contrast */
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

/* --- Get Involved Page --- */
.involved-intro {
    padding: 2.5rem calc(max(10%, (100% - 1200px) / 2)) 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-divider-light {
    border: none;
    height: 1px;
    background-color: #ddd; 
    width: 100%;
    margin: 0;
}

.involved-page-content .split-row {
    padding: 3rem calc(max(8%, (100% - 1200px) / 2)) !important; 
    display: flex;
    align-items: center;
    gap: 4rem; 
    background-color: #fff;
}

.involved-page-content .split-row:nth-child(even) {
    background-color: #f8f9fa; 
}

.tight-row {
    padding: 2.5rem calc(max(5%, (100% - 1200px) / 2)) !important;
}

.compact-img {
    flex: 0 0 35% !important; 
    max-width: 350px;
}

.compact-img img {
    width: 100%;
    height: auto;
    border: 2px solid #000;
    display: block;
    background-color: #e9ecef; 
}

/* Open Officers Grid */
.open-officers-callout {
    padding: 3rem calc(max(5%, (100% - 1200px) / 2));
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.callout-header {
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
}

.callout-header h2 {
    margin-bottom: 0.5rem;
}


/* Officer Roles Grid */
.officer-roles {
    margin: 3rem 0;
}

.officer-roles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.officer-role-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1 1 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.officer-role-card:hover {
    transform: translateY(-5px);
}

.officer-role-card h3 a {
    color: var(--color-dark-green);
    text-decoration: none;
}

/* CTA Buttons */
.ledger-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* --- The 3 Boxes: Horizontal --- */
.officer-roles-grid.no-stack {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto; 
}

.officer-role-card {
    flex: 1; 
    min-width: 200px; 
    background: #fff;
    padding: 1.2rem;
    border: 3px solid #1c3843; 
    text-align: center;
}

.officer-role-card h3 {
    font-size: 1.2em;
	border-bottom: 2px solid #1c3843; 
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.ledger-cta {
    padding: 2.5rem calc(max(10%, (100% - 1200px) / 2));
    text-align: center;
    background: #fff;
}

.ledger-cta p {
    margin-bottom: 1.5rem; 
}

/* --- Quest Log Archives --- */
.log-meta {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.log-archives-section {
    padding: 4rem calc(max(5%, (100% - 1200px) / 2));
    background-color: #f4f4f4; 
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.log-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px; /* Reduced from 1200px */
    margin: 0 auto;
}

.log-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: #ffffff;
    border: 2px solid #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.log-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px rgba(28, 56, 67, 0.2); 
}

.log-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-bottom: 2px solid #000;
    display: block;
    background-color: #e9ecef;
}

.log-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.log-card-content h3 {
    margin-bottom: 0.8rem;
}

.log-card-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.guild-btn-outline {
    display: inline-block;
    padding: 12px 40px;
    background-color: transparent;
    color: #1c3843; 
    border: 3px solid #1c3843; 
	border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Arial Narrow', sans-serif;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.guild-btn-outline:hover {
    background-color: #1c3843; 
    color: #ffffff;
}

/* --- Single Post Template --- */
.post-hero-category {
    display: none;
    color: #ffffff; /* Kept for contrast */
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.single-post-page .hero-content {
    max-width: 1200px; /* Reduced from 1100px */
}

.single-post-page {
    background-color: #ffffff;
    padding: 4rem calc(max(5%, (100% - 1200px) / 2)) 6rem;
}

.post-header-meta {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1c3843; 
}

.author-name {
    font-weight: bold;
    color: #1a1a1a;
    text-transform: uppercase;
}

.post-date {
    font-size: 0.95rem;
    color: #666;
}

.post-body {
    max-width: 1200px; 
    margin: 0 auto;
}

.post-body .lead-text {
    margin-bottom: 2rem;
}

.post-body h2 {
    margin: 2.5rem 0 1rem 0;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    width: 100%;
    height: auto;
    border: 3px solid #000;
    margin: 2rem 0;
}

.post-body blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #1c3843; 
    margin: 3rem 0;
    padding: 0 2rem;
    border-left: 5px solid #1c3843; 
}

.post-footer {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
}

.post-navigation {
    margin-top: 2rem;
    text-align: center;
}

/* --- Job Posting Pages --- */
.job-posting-page {
    background-color: #ffffff;
    padding: 4rem calc(max(5%, (100% - 1200px) / 2)) 6rem;
}

.job-meta-box {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border: 3px solid #1c3843; 
    padding: 1.5rem 2rem;
    box-shadow: 5px 5px 0px rgba(28, 56, 67, 0.1); 
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item span {
    font-size: 0.95rem;
    color: #444;
}

.job-description {
    max-width: 1200px;
    margin: 0 auto;
}

.job-description .lead-text {
    margin-bottom: 2.5rem;
}

.job-description h2 {
    margin: 3rem 0 1rem 0;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 8px;
}

.job-description p {
    margin-bottom: 1.5rem;
}

.job-description .guild-list {
    margin-bottom: 2rem;
}

.job-description .guild-list li {
    margin-bottom: 1rem;
}

.job-apply-section {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    text-align: center;
}

.job-apply-section h3 {
    margin: 2rem 0 1rem 0;
}

.job-apply-section p {
    margin-bottom: 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.contact-container h1 {
    text-align: center;
}

/* =========================================
   1. PROGRAMS PAGE STYLES (Static/General)
   ========================================= */
.programs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.programs-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.programs-intro h2 { margin-bottom: 1rem; }

.program-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.program-card:hover { transform: translateY(-5px); }

.featured-quest .program-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark-green);
}

.program-details { padding: 2.5rem; }
.program-details h3 { margin-top: 0.5rem; }

/* Badges */
.quest-badge {
    display: inline-block;
    background-color: var(--color-dark-green);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.locked-badge { background-color: #777777; }

/* Locked Quests */
.locked-quest { background: #f8f9fa; border: 2px dashed #cccccc; box-shadow: none; }
.locked-quest .program-details p { max-width: 700px; margin: 1rem auto; }
.text-center { text-align: center; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-dark-green);
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 1rem;
    transition: background 0.3s;
}
.btn-primary:hover { background-color: #13262e; color: #ffffff; }

/* =========================================
   2. RESPONSIVE MEDIA QUERIES (Mobile < 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Menu Toggle */
    .nav-container { display: none !important; }
    .nav-container.active { 
        display: flex !important; 
        flex-direction: column !important; 
        background-color: var(--color-dark-green, #1c3843) !important; 
    }

    /* General Adjustments */
    .post-header-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .post-body blockquote { padding: 0 1.5rem; }
    .log-card, .officer-role-card, .tier-card { flex: 0 0 100%; max-width: 100%; }
    
    .compact-img { flex: 0 0 100% !important; max-width: 100%; margin-top: 2rem; }
    .event-banner-image img { height: 250px; }
    .event-item { flex-direction: column; align-items: flex-start; }
    .event-date-box { margin-bottom: 1rem; }

    /* Flex/Row Stack */
    .split-row, .split-row.reverse, 
    .event-row.reverse-layout, .event-row,
    .founders-bios, .involved-page-content .split-row {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .split-layout-container { flex-direction: column !important; }
    .left-text-column, .right-widget-column { width: 100% !important; }

    /* Program specific */
    .featured-quest .program-image { height: 200px; }
    .program-details { padding: 1.5rem; }

    /* Logo Fix */
    .logo img { height: 75px !important; width: auto !important; }
}

/* =========================================
   3. DESKTOP MEDIA QUERIES (Min-width: 769px)
   ========================================= */
@media (min-width: 769px) {
    /* Menu Toggle */
    .mobile-menu-toggle { display: none !important; }
    .nav-container { display: flex !important; flex-direction: row !important; }
    
    /* Logo Clearance */
    body:not(.home) { padding-top: 180px !important; }
}