/* --- 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 */
    --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);
    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 --- */
.site-header {
    background-color: var(--accent-color);
    border-bottom: 3px solid var(--highlight-color);
    padding: 1.5rem 0;
}

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

.header-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

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

.logo a:visited,
.logo a:hover,
.logo a:active {
    color: #ffffff;
    text-decoration: none;
}

.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 {
    color: var(--highlight-color);
    border-bottom: 2px solid var(--highlight-color);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.social-icon-img {
    height: 30px;
    width: auto;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon-img:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* --- 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);
}

.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;
}

/* --- Cards & Content Blocks --- */
.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;
}

.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;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
}

/* --- Buttons & Links --- */
.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);
}

.maps-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* --- Lists & Steps (What to Expect) --- */
.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;
}

.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;
}

/* --- Profile Card (Who We Are) --- */
.profile-title {
    color: var(--highlight-color);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.profile-card p {
    margin-bottom: 0.5rem;
}

/* --- Schedule / Meetings (When & Where) --- */
.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;
}

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

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

.meeting-card.next-meeting {
    border-left: 5px solid #c5a059;
    background-color: #ffffff;
}

.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    height: 65px;
    background-color: #2b2d42;
    color: #ffffff;
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

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

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

.meeting-info {
    flex: 1;
}

.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;
}

/* --- Mission Page --- */
.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;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #e2ddd5;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 3px solid #c5a059;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.affiliate-badge {
    display: inline-block;
    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;
}

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

.uschess-logo {
    width: 1in;
    height: auto;
    display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links {
        margin-top: 0.5rem;
    }
}

@media (max-width: 600px) {
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Shop Page Grid & Card Formatting
   ========================================================================== */

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

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0; /* Clears inner padding so image box touches edges if desired */
    overflow: hidden;
}

/* Image Placeholder styling */
.image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    font-weight: 600;
    padding: 1rem;
}

.image-placeholder small {
    font-weight: normal;
    color: #9ca3af;
}

/* Product Info Block */
.product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.product-details .price {
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.product-details .description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Placeholder Button & Badge States */
.btn-disabled {
    display: inline-block;
    text-align: center;
    padding: 0.6rem 1rem;
    background-color: #e5e7eb;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: not-allowed;
    pointer-events: none;
}

.badge-notice {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================================================
   Shop Page Grid & Card Formatting
   ========================================================================== */

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

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0; /* Clears inner padding so image box touches edges if desired */
    overflow: hidden;
}

/* Image Placeholder styling */
.image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    font-weight: 600;
    padding: 1rem;
}

.image-placeholder small {
    font-weight: normal;
    color: #9ca3af;
}

/* Product Info Block */
.product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.product-details .price {
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.product-details .description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Placeholder Button & Badge States */
.btn-disabled {
    display: inline-block;
    text-align: center;
    padding: 0.6rem 1rem;
    background-color: #e5e7eb;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: not-allowed;
    pointer-events: none;
}

.badge-notice {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Product Image Styling */
.product-card .product-img {
    width: 100%;
    aspect-ratio: 1 / 1;    /* Keeps every image square (1000x1000 ratio) */
    object-fit: contain;    /* Prevents logos or shirt mockups from clipping or stretching */
    background-color: #f8fafc; /* Soft off-white background behind mockups */
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;          /* Gives space around shirt mockups so they don't touch edges */
}

/* ==========================================================================
   Contact Form Formatting
   ========================================================================== */

.contact-wrapper {
    max-width: 650px;
    margin: 1.5rem auto 0 auto;
}

.contact-card h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #ffffff;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  background-color: #00000067;
  font-weight: bold;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000000;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  font-weight: bold;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.button-link {
  display: inline-block;     /* Allows spacing/padding to work correctly */
  background-color: #007bff; /* Button color */
  color: white;              /* Text color */
  padding: 10px 20px;        /* Vertical and horizontal spacing inside */
  text-decoration: none;     /* Removes the default link underline */
  border-radius: 5px;        /* Rounds the corners */
  font-weight: bold;
  text-align: center;
}

/* Optional: Add a hover effect */
.button-link:hover {
  background-color: #0056b3;
}