@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --container-width: 1200px;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header Styles */
.top-header {
    background-color: #ffc107;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.contact-info p {
    margin: 0;
    font-size: 14px;
}

.cta-button {
    background-color: #d32f2f;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #b71c1c;
}

/* Header Styles */
.header {
    background-color: var(--white);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: auto;
}

.header-contact-info {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.header-contact-info p {
    margin: 2px 0;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.header-contact-info .contact-icon {
    font-size: 1rem;
    line-height: 1;
    margin-right: 6px;
}

/* ─── Mobile Nav Toggle (Hamburger) ───────────────────── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(255,255,255,0.25);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-wrapper {
    display: contents;
}

/* ─── Navigation ──────────────────────────────────────── */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Navigation Menu */
.main-nav {
    background-color: var(--primary-color);
    padding: 0 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background-color: var(--primary-dark);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Training Hero - with subtle image overlay */
.hero-section.training {
    background: linear-gradient(135deg, rgba(211,47,47,0.95), rgba(255,193,7,0.95));
}

/* Material Icons baseline styles */
.material-symbols-outlined {
    font-variation-settings:
      'FILL' 0,
      'wght' 300,
      'GRAD' 0,
      'opsz' 24;
    color: var(--white);
}

.course-type h4 .material-symbols-outlined {
    color: var(--primary-color);
    vertical-align: middle;
    margin-right: 6px;
}

.timetable-title .material-symbols-outlined {
    color: var(--primary-color);
}

/* CTA Bar */
.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--light-gray);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 20px;
}

.cta-bar .cta-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    font-weight: 500;
}

.cta-bar .material-symbols-outlined {
    color: var(--primary-color);
}

.cta-bar .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-bar .cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Main Content Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: block;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.club-intro {
    background-color: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
}

.club-intro h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.club-intro p {
    text-align: justify;
    line-height: 1.8;
}

/* ─── Homepage Gallery ───────────────────────────────── */
.home-gallery {
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.home-gallery-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 28px 0;
    flex-wrap: wrap;
}

.home-gallery-header h2 {
    margin: 8px 0 10px;
    font-size: 1.55rem;
    color: var(--primary-color);
}

.home-gallery-header p {
    color: #555;
    line-height: 1.7;
    margin: 0 0 14px;
    max-width: 520px;
}

.home-gallery-tag {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.gallery-page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin-top: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, transform 0.15s;
    align-self: flex-start;
}

.gallery-page-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Featured + side grid */
.home-gallery-showcase {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 14px;
    padding: 20px 28px 28px;
    align-items: stretch;
}

.home-gallery-featured {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    min-height: 380px;
    cursor: pointer;
}

.home-gallery-featured img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s;
}

.home-gallery-featured:hover img {
    transform: scale(1.03);
    opacity: 0.88;
}

.home-gallery-featured figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
}

.home-gallery-featured figcaption p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.gallery-cta:hover {
    background: rgba(255,255,255,0.28);
}

.home-gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.home-gallery-thumb {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.home-gallery-thumb img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-gallery-thumb:hover img {
    transform: scale(1.05);
}

/* ─── Video Embed ─────────────────────────────────────── */
.video-section {
    margin-bottom: 48px;
}

.video-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 14px;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #111;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Album Viewer ───────────────────────────────────── */
.album-section {
    margin-bottom: 56px;
}

.album-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.album-header > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.album-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.album-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.album-header > p {
    margin: 0 0 4px;
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Stage: large photo with side arrows */
.album-viewer {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.album-stage {
    display: flex;
    align-items: center;
    gap: 0;
    background: #111;
    min-height: 480px;
    max-height: 580px;
    position: relative;
}

.album-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    transition: background 0.2s, transform 0.15s;
    z-index: 2;
}

.album-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.06);
}

.album-photo-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
}

.album-photo {
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.album-photo-wrap:hover .album-photo {
    transform: scale(1.015);
}

.album-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.55);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.album-expand:hover {
    background: rgba(0,0,0,0.75);
}

/* Meta: counter + caption */
.album-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.album-counter {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    white-space: nowrap;
}

.album-caption {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Dot navigation */
.album-dot-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.album-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.album-dot.is-active,
.album-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Empty state */
.album-empty {
    padding: 48px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    color: #888;
}

.album-empty p {
    margin: 0;
    font-size: 1rem;
}

/* ─── Lightbox ───────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: pointer;
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 0;
    width: min(94vw, 1100px);
    max-height: 94vh;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.28);
}

.lightbox-nav {
    height: 100%;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    max-height: 88vh;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

#lightbox-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-align: center;
    padding: 10px 16px;
    margin: 0;
    flex-shrink: 0;
}

/* News Section */
.news-section {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
}

.news-section h2 {
    color: #d32f2f;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    color: #1976d2;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Contact Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.submit-button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #b71c1c;
}

.social-link {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ─── Responsive: Tablet (768px) ───────────────────────── */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }

    /* Hamburger — shown on mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Header: wrap contact info, keep logo */
    .header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-contact-info {
        display: none;
    }

    /* Mobile nav: full-width overlay triggered by checkbox */
    .nav-wrapper {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.55);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }

    /* Nav slides in from left when checked */
    .nav-toggle:checked ~ .nav-wrapper {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle:checked ~ .nav-wrapper .main-nav {
        transform: translateX(0);
    }

    .nav-wrapper .main-nav {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 80vw);
        background: var(--primary-dark);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 60px 0 20px;
        display: block;
    }

    .nav-wrapper .main-nav ul {
        flex-direction: column;
    }

    .nav-wrapper .main-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.05rem;
        border-radius: 0;
        text-align: left;
    }

    .nav-wrapper .main-nav a:hover {
        background: rgba(255,255,255,0.08);
        padding-left: 28px;
    }

    /* Hero */
    .hero-section {
        padding: 36px 20px;
    }
    .hero-section h1 {
        font-size: 1.7rem;
    }
    .hero-section p {
        font-size: 1rem;
    }

    /* Content */
    .content {
        padding: 20px;
    }
    .club-intro {
        padding: 20px;
        margin-bottom: 24px;
    }
    .club-intro h2 {
        font-size: 1.45rem;
    }

    /* Homepage gallery */
    .home-gallery-showcase {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 20px 20px;
    }
    .home-gallery-header {
        flex-direction: column;
        padding: 20px 20px 0;
        gap: 12px;
    }
    .home-gallery-header h2 {
        font-size: 1.35rem;
    }
    .home-gallery-featured {
        min-height: 240px;
    }
    .home-gallery-featured img {
        min-height: 240px;
    }
    .home-gallery-side {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }
    .home-gallery-thumb {
        min-height: 90px;
    }
    .home-gallery-thumb img {
        min-height: 90px;
    }

    /* Album viewer */
    .album-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .album-header h2 {
        font-size: 1.35rem;
    }
    .album-stage {
        flex-direction: column;
        min-height: 320px;
        max-height: none;
    }
    .album-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 44px;
        height: 44px;
        margin: 0 10px;
    }
    .album-btn:hover {
        transform: translateY(-50%) scale(1.06);
    }
    .album-btn-prev {
        left: 0;
    }
    .album-btn-next {
        right: 0;
    }
    .album-photo-wrap {
        width: 100%;
        min-height: 280px;
    }
    .album-photo {
        max-height: 360px;
    }
    .album-expand {
        top: 10px;
        right: 10px;
    }
    .album-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 16px;
    }
    .album-dot-nav {
        padding: 12px;
        gap: 10px;
    }
    .album-dot {
        width: 12px;
        height: 12px;
    }

    /* Lightbox */
    .lightbox-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }
    .lightbox-close {
        top: 14px;
        right: 14px;
    }
    .lightbox-figure img {
        max-height: calc(100vh - 120px);
    }
    .lightbox-nav {
        padding: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer {
        padding: 28px 16px;
    }
}

/* ─── Responsive: Mobile (560px) ──────────────────────── */
@media (max-width: 560px) {
    .hero-section h1 {
        font-size: 1.45rem;
    }
    .hero-section {
        padding: 28px 16px;
    }

    /* Gallery — single column, side thumbs in 2×2 */
    .home-gallery-showcase {
        padding: 12px 16px 16px;
    }
    .home-gallery-featured {
        min-height: 200px;
    }
    .home-gallery-featured img {
        min-height: 200px;
    }
    .home-gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .home-gallery-thumb {
        min-height: 110px;
    }
    .home-gallery-thumb img {
        min-height: 110px;
    }

    /* Album stage */
    .album-stage {
        min-height: 260px;
    }
    .album-photo-wrap {
        min-height: 220px;
    }
    .album-photo {
        max-height: 300px;
    }
    .album-dot-nav {
        gap: 8px;
        padding: 10px;
    }
    .album-dot {
        width: 10px;
        height: 10px;
    }

    /* Lightbox — full-screen, nav at bottom */
    .lightbox-dialog {
        width: 100vw;
        height: 100vh;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        border-radius: 0;
        padding: 14px;
        gap: 10px;
    }
    .lightbox-nav {
        height: auto;
        width: auto;
        padding: 10px 16px;
        border-radius: 8px;
        background: rgba(255,255,255,0.12);
        font-size: 1.2rem;
    }
    .lightbox-nav:hover {
        background: rgba(255,255,255,0.22);
    }
    .lightbox-prev {
        justify-self: start;
    }
    .lightbox-next {
        justify-self: end;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    .lightbox-figure {
        max-height: none;
    }
    .lightbox-figure img {
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
    }
    #lightbox-caption {
        font-size: 0.8rem;
    }

    /* Form rows */
    .form-row-grid {
        flex-direction: column;
        gap: 12px;
    }
    .form-group-inline,
    .form-group-half {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    /* Footer */
    .footer {
        padding: 24px 12px;
    }
    .footer p {
        font-size: 0.85rem;
    }
}

/* Course Types as Cards */
.course-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-type {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.course-type:hover {
    transform: translateY(-5px);
}

.course-type h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.course-type ul {
    padding-left: 20px;
    color: #555;
}

.course-type li {
    margin-bottom: 5px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color) !important; /* Override inline styles if needed */
    color: var(--white);
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

tr:hover {
    background-color: var(--light-gray);
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    opacity: 0.7;
}

/* Responsive adjustments */
/* Club Services: Cards and Sections */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.service-card {
    background: #ffffff;
    border: 1px solid #eaeef3;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.service-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.service-card p {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.6;
}

.service-card .service-link {
    display: inline-block;
    margin-top: 4px;
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.service-card .service-link:hover {
    text-decoration: underline;
}

.services-highlights,
.services-process {
    margin: 32px 0;
}

.services-highlights h3,
.services-process h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 18px;
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 12px 0 24px;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.feature-card h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.feature-card p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.process-step {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.process-step-num {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 14px;
}

.process-step h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.process-step p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

.services-cta {
    background: linear-gradient(135deg, rgba(211,47,47,0.06) 0%, rgba(255,193,7,0.06) 100%);
    border: 1px solid #f1d7d7;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin: 32px 0;
}

.services-cta p {
    font-size: 1.05rem;
    color: #444;
    margin: 0 0 16px;
}

.services-cta strong {
    color: var(--primary-color);
}

.services-cta .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.services-cta .cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Contact Page Styles */
.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

#form-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-success,
.confirm-box,
.timestamp-text,
.honeypot-field,
.form-notice,
.form-notice-yellow,
.reg-section-title,
.form-row-grid,
.form-group-inline,
.form-group-full,
.form-group-half,
.radio-group,
.declaration-wrapper,
.declaration-label,
.declaration-text,
.submit-btn,
.submit-btn-center {
    display: block;
}

.confirm-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
}

.timestamp-text {
    color: #666;
    font-size: 0.9em;
}

.honeypot-field {
    display: none !important;
    visibility: hidden !important;
}

.form-notice {
    margin-top: 20px;
    font-size: 0.9em;
    color: #444;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2c3e50;
}

.form-notice-yellow {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
}

.reg-section-title {
    margin: 25px 0 15px 0;
    color: #333;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}

.form-row-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group-inline {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.form-group-full {
    margin-bottom: 15px;
}

.form-group-half {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.radio-group {
    padding: 10px 0;
}

.radio-group label {
    margin-right: 20px;
}

.declaration-wrapper {
    margin-top: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.declaration-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.declaration-label input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
}

.declaration-text {
    font-weight: bold;
}

.submit-btn {
    background-color: #d32f2f;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    display: inline-block;
}

.submit-btn:hover {
    background-color: #b71c1c;
}

.required {
    color: red;
}

.reg-form-section {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timetable-title {
    margin-top: 30px;
}

.security-input {
    width: 120px !important;
}

.submit-btn-center {
    margin-top: 25px;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
}

