/* Shared course-led template for Bowen Chess and Badminton Clubs. */

.club-page {
    --club-ink: #16283d;
    --club-paper: #f5f1e9;
    --club-red: #b94338;
    --club-green: #3e675b;
    --club-line: #ddd8cf;
    --club-text: #25282d;
    --club-muted: #66707a;
    --club-theme: #8a6a34;
    --club-theme-soft: #eee6d6;
    color: var(--club-text);
    background: #fff;
}

.club-page--badminton {
    --club-theme: #3e675b;
    --club-theme-soft: #dfe9e4;
}

.club-page .container {
    max-width: 1200px;
}

.club-page h1,
.club-page h2,
.club-page h3,
.club-page p {
    margin-top: 0;
}

html[lang="en"] .club-page h1,
html[lang="en"] .club-page h2 {
    font-family: "Newsreader", Georgia, serif;
}

.club-eyebrow {
    margin-bottom: 0.7rem;
    color: var(--club-theme);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.club-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    color: #fff;
    background: var(--club-ink);
}

.club-hero__media,
.club-hero__overlay {
    position: absolute;
    inset: 0;
}

.club-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.club-page--chess .club-hero__media img {
    object-position: 55% center;
}

.club-page--badminton .club-hero__media img {
    object-position: center 46%;
}

.club-hero__overlay {
    background:
        linear-gradient(90deg, rgba(16, 32, 50, 0.96) 0%, rgba(16, 32, 50, 0.82) 37%, rgba(16, 32, 50, 0.24) 70%, rgba(16, 32, 50, 0.08) 100%),
        linear-gradient(0deg, rgba(16, 32, 50, 0.2), transparent 55%);
}

.club-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.club-hero__copy {
    max-width: 640px;
    padding: 1rem 0;
    animation: club-enter 440ms ease-out both;
}

.club-hero .club-eyebrow {
    color: #e8c9a0;
}

.club-page--badminton .club-hero .club-eyebrow {
    color: #afd7c9;
}

.club-hero h1 {
    max-width: 640px;
    margin-bottom: 0.9rem;
    color: #fff;
    font-size: clamp(2.7rem, 4.2vw, 3.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.038em;
}

html[lang="zh"] .club-hero h1 {
    font-size: clamp(2.25rem, 3.6vw, 3.05rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: 0.01em;
}

.club-hero__copy > p:not(.club-eyebrow) {
    max-width: 57ch;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.65;
}

.club-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.club-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.78rem 1.3rem;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.club-button:hover {
    transform: translateY(-2px);
}

.club-button--primary {
    color: #fff;
    background: var(--club-red);
    border-color: var(--club-red);
}

.club-button--primary:hover {
    color: #fff;
    background: #9d352e;
    border-color: #9d352e;
}

.club-button--outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.58);
}

.club-button--outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.club-facts {
    background: #fff;
    border-bottom: 1px solid #e5e9ee;
}

.club-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.club-facts__grid > div {
    min-width: 0;
    padding: 1.3rem 1.5rem;
    border-right: 1px solid #e5e9ee;
}

.club-facts__grid > div:first-child {
    padding-left: 0;
}

.club-facts__grid > div:last-child {
    border-right: 0;
}

.club-facts span,
.club-facts strong {
    display: block;
}

.club-facts span {
    margin-bottom: 0.22rem;
    color: var(--club-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.club-facts strong {
    overflow: hidden;
    color: var(--club-ink);
    font-size: 0.93rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-section {
    padding: 4.65rem 0;
}

.club-heading {
    max-width: 760px;
    margin-bottom: 2.2rem;
}

.club-heading h2,
.club-practice h2,
.club-cta h2 {
    margin-bottom: 0.8rem;
    color: var(--club-ink);
    font-size: clamp(2.05rem, 3vw, 2.75rem);
    font-weight: 600;
    line-height: 1.09;
    letter-spacing: -0.03em;
}

html[lang="zh"] .club-heading h2,
html[lang="zh"] .club-practice h2,
html[lang="zh"] .club-cta h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.club-heading > p:not(.club-eyebrow) {
    max-width: 68ch;
    margin-bottom: 0;
    color: var(--club-muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

.club-pathway {
    background: var(--club-paper);
}

.club-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    margin-bottom: 1.8rem;
}

.club-stage {
    position: relative;
    min-width: 0;
    padding: 1.6rem 1.55rem 1.7rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--club-line);
    border-top: 3px solid var(--club-theme);
    border-radius: 8px;
}

.club-stage__number {
    display: block;
    margin-bottom: 2.5rem;
    color: var(--club-theme);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.club-stage > p:first-of-type {
    margin-bottom: 0.3rem;
    color: var(--club-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.club-stage h3 {
    margin-bottom: 0.85rem;
    color: var(--club-ink);
    font-size: 1.2rem;
}

.club-stage__rule {
    width: 34px;
    height: 1px;
    margin-bottom: 0.9rem;
    background: var(--club-red);
}

.club-stage__text {
    margin-bottom: 0;
    color: var(--club-muted);
    font-size: 0.89rem;
    line-height: 1.65;
}

.club-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--club-theme);
    font-size: 0.9rem;
    font-weight: 700;
}

.club-text-link:hover {
    color: var(--club-red);
}

.club-practice {
    background: #fff;
}

.club-practice__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6.5rem);
}

.club-practice__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
    overflow: hidden;
    background: var(--club-ink);
    border-radius: 10px;
}

.club-practice__visual::before {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    content: "";
}

.club-practice__visual--chess {
    background:
        radial-gradient(circle at 22% 18%, rgba(185, 67, 56, 0.22), transparent 34%),
        var(--club-ink);
}

.club-board {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: min(72%, 310px);
    aspect-ratio: 1;
    padding: 8px;
    background: #c7a574;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transform: rotate(-4deg);
}

.club-board span.light { background: #e8d8b7; }
.club-board span.dark { background: #74543e; }

.club-notation {
    position: absolute;
    right: 24px;
    bottom: 24px;
    color: rgba(255, 255, 255, 0.52);
    font-family: Georgia, serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.club-practice__visual--badminton {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        #315b52;
}

.club-court {
    position: relative;
    z-index: 1;
    width: 76%;
    aspect-ratio: 0.72;
    border: 3px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    transform: perspective(600px) rotateX(16deg) rotateZ(5deg);
}

.club-court::before,
.club-court::after,
.club-court span {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.82);
    content: "";
}

.club-court::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
}

.club-court::after {
    top: 50%;
    right: 0;
    left: 0;
    height: 3px;
}

.club-court .centre {
    top: 25%;
    right: 0;
    left: 0;
    height: 2px;
    box-shadow: 0 calc(50% / 0.25) 0 rgba(255, 255, 255, 0.82);
}

.club-court .left-service {
    top: 0;
    bottom: 0;
    left: 10%;
    width: 2px;
}

.club-court .right-service {
    top: 0;
    right: 10%;
    bottom: 0;
    width: 2px;
}

.club-court .net {
    top: calc(50% - 1px);
    right: -8%;
    left: -8%;
    z-index: 2;
    height: 4px;
    background: #d6b66f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.club-shuttle {
    position: absolute;
    top: 19%;
    right: 22%;
    color: #fff;
    font-size: 1.1rem;
    filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.35));
}

.club-practice__lead {
    margin-bottom: 1.3rem;
    color: var(--club-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.club-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--club-line);
}

.club-checklist li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(165px, 0.45fr) 1fr;
    gap: 1rem;
    padding: 1rem 0 1rem 1.25rem;
    border-bottom: 1px solid var(--club-line);
}

.club-checklist li::before {
    position: absolute;
    top: 1.42rem;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--club-red);
    border-radius: 2px;
    content: "";
}

.club-checklist strong {
    color: var(--club-ink);
    font-size: 0.9rem;
}

.club-checklist span {
    color: var(--club-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.club-visit {
    background: #f4f6f8;
}

.club-visit__grid,
.club-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(3rem, 7vw, 6rem);
}

.club-info-list {
    margin: 0;
    border-top: 1px solid #d6dce2;
}

.club-info-list > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid #d6dce2;
}

.club-info-list dt {
    color: var(--club-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.club-info-list dd {
    margin: 0;
    color: var(--club-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.club-index {
    color: #fff;
    background: var(--club-ink);
}

.club-index__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.club-index a {
    display: flex;
    flex-direction: column;
    min-height: 174px;
    padding: 1.5rem 1.35rem;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
    transition: background 180ms ease;
}

.club-index a:last-child {
    border-right: 0;
}

.club-index a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
}

.club-index a > span {
    margin-bottom: auto;
    color: #d4ab75;
    font-size: 0.72rem;
    font-weight: 700;
}

.club-page--badminton .club-index a > span {
    color: #9ec9ba;
}

.club-index strong {
    margin-bottom: 0.28rem;
    font-size: 1rem;
}

.club-index small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.45;
}

.club-faq {
    background: #fff;
}

.club-questions {
    border-top: 1px solid var(--club-line);
}

.club-questions details {
    border-bottom: 1px solid var(--club-line);
}

.club-questions summary {
    position: relative;
    min-height: 60px;
    padding: 1.15rem 2.2rem 1.15rem 0;
    color: var(--club-ink);
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.club-questions summary::-webkit-details-marker {
    display: none;
}

.club-questions summary::after {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    color: var(--club-theme);
    font-size: 1.3rem;
    font-weight: 400;
    content: "+";
    transform: translateY(-50%);
}

.club-questions details[open] summary::after {
    content: "−";
}

.club-questions details p {
    max-width: 65ch;
    margin: -0.3rem 0 1.15rem;
    color: var(--club-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.club-cta {
    padding: 3.7rem 0;
    color: #fff;
    background: var(--club-theme);
}

.club-page--chess .club-cta {
    background: #6b5430;
}

.club-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4rem;
}

.club-cta .club-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.club-cta h2 {
    color: #fff;
}

.club-cta p:last-child {
    max-width: 62ch;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
}

.club-cta__grid > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 190px;
}

.club-button--light {
    color: var(--club-ink);
    background: #fff;
}

.club-button--light:hover {
    color: var(--club-ink);
    background: var(--club-paper);
}

.club-cta__phone {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.club-mobile-cta {
    display: none;
}

@keyframes club-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .club-facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .club-facts__grid > div:nth-child(2) {
        border-right: 0;
    }

    .club-facts__grid > div:nth-child(-n+2) {
        border-bottom: 1px solid #e5e9ee;
    }

    .club-facts__grid > div:first-child,
    .club-facts__grid > div:nth-child(3) {
        padding-left: 0;
    }

    .club-practice__grid {
        grid-template-columns: 1fr;
    }

    .club-practice__visual {
        max-width: 720px;
        min-height: 370px;
    }

    .club-visit__grid,
    .club-faq__grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .club-index a:nth-child(2) {
        border-right: 0;
    }

    .club-index a:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }
}

@media (max-width: 767px) {
    .club-page {
        padding-bottom: 68px;
    }

    .club-hero {
        height: 350px;
    }

    .club-hero__overlay {
        background: linear-gradient(90deg, rgba(16, 32, 50, 0.94) 0%, rgba(16, 32, 50, 0.75) 70%, rgba(16, 32, 50, 0.45) 100%);
    }

    .club-page--chess .club-hero__media img {
        object-position: 62% center;
    }

    .club-page--badminton .club-hero__media img {
        object-position: 64% center;
    }

    .club-hero__copy {
        max-width: 94%;
    }

    .club-hero h1 {
        font-size: clamp(2.25rem, 10vw, 2.85rem);
    }

    html[lang="zh"] .club-hero h1 {
        font-size: clamp(1.95rem, 8.5vw, 2.5rem);
    }

    .club-hero__copy > p:not(.club-eyebrow) {
        font-size: 0.92rem;
    }

    .club-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .club-button {
        min-height: 48px;
        padding-right: 0.8rem;
        padding-left: 0.8rem;
        font-size: 0.84rem;
    }

    .club-facts__grid > div {
        padding: 0.9rem 0.75rem;
    }

    .club-facts strong {
        font-size: 0.83rem;
    }

    .club-section {
        padding: 3.35rem 0;
    }

    .club-heading h2,
    .club-practice h2,
    .club-cta h2 {
        font-size: 1.95rem;
    }

    html[lang="zh"] .club-heading h2,
    html[lang="zh"] .club-practice h2,
    html[lang="zh"] .club-cta h2 {
        font-size: 1.72rem;
    }

    .club-stages {
        grid-template-columns: 1fr;
    }

    .club-stage {
        padding: 1.3rem;
    }

    .club-stage__number {
        margin-bottom: 1.4rem;
    }

    .club-practice__visual {
        min-height: 310px;
    }

    .club-board {
        width: min(68%, 240px);
    }

    .club-court {
        width: 64%;
    }

    .club-checklist li {
        grid-template-columns: 1fr;
        gap: 0.18rem;
    }

    .club-info-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .club-index a {
        min-height: 138px;
        padding: 1.15rem 1rem;
    }

    .club-cta {
        padding: 3.25rem 0;
    }

    .club-cta__grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .club-cta__grid > div:last-child {
        width: min(100%, 320px);
    }

    .club-mobile-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.8rem;
        min-height: 64px;
        padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
        color: #fff;
        background: rgba(22, 40, 61, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }

    .club-mobile-cta span {
        font-size: 0.82rem;
        font-weight: 700;
    }

    .club-mobile-cta a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.6rem 1rem;
        color: #fff;
        background: var(--club-red);
        border-radius: 7px;
        font-size: 0.82rem;
        font-weight: 700;
    }

    body.club-page .whatsapp-float {
        right: 12px;
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    body.club-page .whatsapp-float__bubble {
        display: none;
    }

    body.club-page .whatsapp-float__icon {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-hero__copy {
        animation: none;
    }

    .club-button,
    .club-index a {
        transition: none;
    }
}
