/* =============================================
   ATHENAEUM CHESS CLUB — Shared Stylesheet
   ============================================= */

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

body {
    font-family: 'Avenir', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ── Header & Navigation ── */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c3e50;
    font-weight: 700;
}

/* ── Hamburger (hidden on desktop) ── */
.nav-menu {
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 2px;
}

/* ── Page Hero ── */
.hero,
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('images/hero-bg.jpg') center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Full-height hero (home page) */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('images/hero-bg.jpg') center / cover;
        background-attachment: fixed;
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    /* text-shadow: 1px 1px 3px  */
    color: (255, 0, 0, 0.9);
}


/* Shorter hero (inner pages) */
.page-hero {
    height: 280px;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('images/hero-bg.jpg') center / cover;
}

.page-hero h1 {
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #34495e;
}

/* ── About Page ── */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    padding: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

.history-section {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 4rem;
}

.history-section p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.9;
}

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

.offer-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.offer-card p {
    color: #666;
    margin-top: 0.5rem;
}

/* ── Officers ── */
.officers-section {
    margin-top: 4rem;
}

.officers-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.officer-card {
    text-align: center;
}

.officer-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.officer-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.officer-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Home Page — Venue / Home Games ── */
.home-games {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.home-games h2 {
    grid-column: 1 / -1;
}

.venue-info {
    line-height: 2;
}

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

.venue-info strong {
    color: #2c3e50;
}

.venue-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.venue-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ── Leagues ── */
.leagues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.league-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.league-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.league-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.league-card p {
    margin-bottom: 1rem;
    color: #666;
}

.league-card a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.league-card a:hover {
    text-decoration: underline;
}

/* ── Achievements ── */
.achievements-bg {
    background: #f8f9fa;
    padding: 4rem 0;
}

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

.achievement-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.achievement-card:nth-child(even) {
    grid-template-columns: 1fr auto;
}

.achievement-card:nth-child(even) .achievement-number {
    order: 2;
}

.achievement-card:nth-child(even) .achievement-content {
    order: 1;
}

.achievement-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e0e0e0;
    line-height: 1;
}

.achievement-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.achievement-content p {
    color: #666;
    line-height: 1.8;
}

.achievement-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ── Join Page ── */
.join-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.join-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.join-info h3:first-child {
    margin-top: 0;
}

.join-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.dosh {
  background: #f8f9fa;
  border-left: 4px solid #2c3e50;
  padding: 1.5rem;
  margin: 1rem 0;
  font-style: italic;
  line-height: 1.8;
}

/* ── Contact Page ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-email:hover {
    text-decoration: underline;
}

/* ── Forms ── */
.form-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: 10px;
    color: white;
}

.form-box h2,
.form-box h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.join-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
}

.join-section h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.join-section > p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input,
textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: white;
    color: #667eea;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

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

/* ── Footer ── */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}



/* ── Responsive ── */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    /* Hidden by default */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        min-width: 200px;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease;
    }

    .dosh {
        background: #f8f9fa;
        padding: 3rem;
        border-radius: 10px;
        margin-bottom: 4rem;
    }

    /* Hovering the hamburger OR sliding into the menu keeps it open */
    .nav-menu:hover .nav-links {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    .hero {
    background-attachment: scroll;
    }

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

    .hero h2 {
        font-size: 1.2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .about-section,
    .home-games,
    .join-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .venue-images {
        grid-template-columns: 1fr;
    }

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

    .achievement-card,
    .achievement-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .achievement-number {
        font-size: 2rem;
    }

    .achievement-card:nth-child(even) .achievement-number {
        order: 1;
    }

    .achievement-card:nth-child(even) .achievement-content {
        order: 2;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* dd */

/* ── Venue Map Section (about.html) ── */
.venue-map-section {
    margin-bottom: 4rem;
}

.venue-map-intro {
    color: #555;
    margin-bottom: 2rem;
}

.venue-map-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.venue-map-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    line-height: 1.8;
}

.venue-map-details p {
    color: #555;
    margin-bottom: 1.25rem;
}

.venue-map-details strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.15rem;
}

.venue-map-details .btn {
    margin-top: 0.5rem;
    display: inline-block;
}

.venue-map-embed iframe {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .venue-map-layout {
        grid-template-columns: 1fr;
    }
}
