/* --- Enhanced Chess-Themed Variables --- */
:root {
    --bg-color: #f4f1ea;          /* Warm cream/parchment board square */
    --card-bg: #ffffff;           /* Clean white card background */
    --text-color: #2b2b2b;        /* Charcoal piece tone */
    --accent-color: #1e293b;      /* Deep dark square / Ebony */
    --highlight-color: #c5a059;   /* Brass / Polish wood accent */
    --border-color: #e2dacd;     /* Soft ivory board border */
    --notation-font: 'Courier New', Courier, monospace;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Global Background Texture --- */
body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    /* Subtle 2x2 board grid pattern overlay */
    background-image: linear-gradient(45deg, rgba(30, 41, 59, 0.02) 25%, transparent 25%), 
                      linear-gradient(-45deg, rgba(30, 41, 59, 0.02) 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, rgba(30, 41, 59, 0.02) 75%), 
                      linear-gradient(-45deg, transparent 75%, rgba(30, 41, 59, 0.02) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header / Navigation Enhancements --- */
.site-header {
    background-color: var(--accent-color);
    border-bottom: 3px solid var(--highlight-color);
    padding: 1.5rem 0;                  /* Increased from 1rem to 1.5rem */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    color: #ffffff !important;
    font-size: 1.6rem;                  /* Slightly larger text to match taller banner */
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Ensure visited/hover states stay readable */
.logo a:visited,
.logo a:hover,
.logo a:active {
    color: #ffffff;
    text-decoration: none;
}

/* Styled Knight Icon */
.logo a::before {
    content: "♚";
    color: #ffffff;
    font-size: 1.75rem;                 
    line-height: 1;
    font-family: 'Segoe UI Symbol', 'DejaVu Sans', 'Arial Unicode MS', sans-serif;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--highlight-color);
    border-bottom: 2px solid var(--highlight-color);
}

/* --- Main Content --- */
.content-area {
    flex: 1;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    width: 100%;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--accent-color);
}
/* --- Chess Board Decorative Divider --- */
.page-header::after {
    content: "♔ ♕ ♖ ♗ ♘ ♙";
    display: block;
    font-size: 1.1rem;
    color: var(--highlight-color);
    letter-spacing: 0.5rem;
    margin-top: 0.75rem;
    opacity: 0.8;
}

.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* --- Chessboard Accent Cards --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    position: relative;
}

.card h2 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #e2ddd5;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 3px solid #c5a059;

    /* Center alignment for all footer contents */
    display: flex;
    flex-direction: column;
    align-items: center;            /* Centers items horizontally */
    justify-content: center;         /* Centers items vertically if height is set */
    text-align: center;              /* Centers text inside child elements */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;            /* Centers logo and copyright text */
    gap: 1rem;                      /* Space between logo and text */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Affiliate Badge Styling */
.affiliate-badge {
    display: inline-flex;            /* Keeps container tightly wrapped and centered */
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* --- Buttons & Homepage Extras --- */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #1a252f;
    color: var(--highlight-color);
}

/* Checkered accent bar on highlighted cards */
.highlight-card {
    border-left: 5px solid var(--accent-color);
    background: linear-gradient(90deg, #fffdf7 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
/* --- Profile Card Styling --- */
.profile-title {
    color: var(--highlight-color);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.profile-card p {
    margin-bottom: 0.5rem;
}
/* --- What to Expect Page Styling --- */
.expectation-list, .check-list {
    list-style: none;
    margin-top: 0.75rem;
}

.expectation-list li, .check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

/* --- Custom Chess Piece Bullet Points --- */
.expectation-list li::before {
    content: "♙";
    color: var(--highlight-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.check-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.schedule-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.step-item {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.step-item h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
}
/* --- When & Where Page Styling --- */
.room-highlight {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.schedule-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.schedule-row.next-meeting {
    border-left: 4px solid var(--highlight-color);
    background-color: #fffdf5;
}

/* --- Notation-Style Badges --- */
/* Date Badge Box */
.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 0.6rem 0.5rem;
    background-color: #c5a059;          /* Gold accent background */
    color: #ffffff;
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.date-badge .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-badge .day {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

/* --- Meeting Card --- */
.meeting-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background-color: #faf9f6;          /* Clean light parchment */
    border: 1px solid #e0dacf;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Highlight for the immediate next meeting */
.meeting-card.next-meeting {
    border-left: 5px solid #c5a059;     /* Gold highlight stripe on left */
    background-color: #ffffff;
}

/* --- Meeting List Container --- */
.meeting-list {
    display: flex;
    flex-direction: column;             /* Stack cards vertically */
    gap: 1.25rem;                       /* Clean space between cards */
    margin-top: 1.5rem;
}

.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    height: 65px;
    background-color: #2b2d42; /* Dark slate/ebony */
    color: #ffffff;            /* White text for high contrast */
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c5a059;            /* Gold month */
    font-weight: 700;
}

.date-badge .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.date-badge.next {
    background-color: #c5a059;
    color: #ffffff;
}

.date-badge.next .month {
    color: #ffffff;
}

/* Content Layout inside Card */
.meeting-info {
    flex: 1;                            /* Takes up full remaining width */
}

.meeting-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.meeting-time {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #4a4a4a;
}

.meeting-desc {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #555555;
}

/* Add to Calendar Links Footer */
.calendar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;                    /* Prevents squishing on mobile */
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2ddd5;
    font-size: 0.85rem;
}

.calendar-label {
    color: #666666;
    font-weight: 500;
    margin-right: 0.25rem;
}

.cal-btn {
    display: inline-block;
    color: #2b2d42;
    background-color: #f0ece1;
    border: 1px solid #d8d2c4;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;               /* Keeps button text on one line */
    transition: all 0.2s ease;
}

.cal-btn:hover {
    background-color: #c5a059;
    color: #ffffff;
    border-color: #c5a059;
}

@media (max-width: 500px) {
    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* --- Our Mission Page Styling --- */
.mission-callout {
    border-left: 4px solid var(--highlight-color);
    background-color: #fffdf5;
}

.mission-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-color);
    line-height: 1.6;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.pillar-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pillar-item h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
/* --- Google Maps Link --- */
.maps-link {
    color: var(--accent-color, #1a1a1a);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.maps-link:hover {
    color: var(--highlight-color, #c5a059);
}

/* --- Add to Calendar Styling --- */
.calendar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2ddd5;
    font-size: 0.85rem;
}

.calendar-label {
    color: #666666;
    font-weight: 500;
}

.cal-btn {
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cal-btn:hover {
    background-color: var(--highlight-color, #c5a059);
    color: #ffffff;
    border-color: var(--highlight-color, #c5a059);
}

/* Affiliate Badge Styling */
.affiliate-badge {
    display: inline-block;
    background-color: #ffffff;         /* White card for crisp contrast */
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.affiliate-badge:hover {
    transform: translateY(-2px);
}

.uschess-logo {
    width: 1in;                       /* Locks width precisely to 1 inch */
    height: auto;                     /* Maintains original proportions */
    display: block;
}