/* Sponsor logos grayscale with color on hover */
.wp-block-image.sponsor-logo img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
    height: 80px;
    width: auto;
}
.wp-block-image.sponsor-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Card columns — equal height, button at bottom */
.wp-block-column > .wp-block-group.has-border-color,
.wp-block-column > .wp-block-group.has-background {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.wp-block-column > .wp-block-group.has-border-color > .wp-block-buttons,
.wp-block-column > .wp-block-group.has-background > .wp-block-buttons {
    margin-top: auto;
}

/* Pricing card "Most Popular" badge */
.pricing-popular {
    border-top: 4px solid var(--wp--preset--color--accent);
    position: relative;
}
.pricing-popular::before {
    content: "Most Popular";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wp--preset--color--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Quick-action tiles — green outline, green icons/text */
.quick-action-tile {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F5FBF0 !important;
    border: 2px solid var(--wp--preset--color--accent) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}
.quick-action-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background-color: #EDF7E4 !important;
}
.quick-action-tile svg {
    stroke: var(--wp--preset--color--accent) !important;
}
.quick-action-tile p,
.quick-action-tile a {
    color: var(--wp--preset--color--accent) !important;
    text-decoration: none;
}
.quick-action-tile p {
    margin: 0 !important;
}
.quick-action-tile a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* FAQ details styling */
details.wp-block-details {
    border-bottom: 1px solid var(--wp--preset--color--light-blue);
    padding: 1rem 0;
}
details.wp-block-details summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--wp--preset--color--primary);
}

/* Page hero overlay text shadow for readability */
.page-hero h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.page-hero .wp-block-cover__inner-container {
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
}
.page-hero .wp-block-group {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
}
@media (max-width: 1200px) {
    .page-hero .wp-block-cover__inner-container {
        justify-content: center;
        padding-right: 0;
    }
}

/* Header: keep logo + nav on one row */
.site-header-logo img {
    max-height: 55px;
    width: auto;
}

/* Collapse nav to hamburger before items wrap */
@media (max-width: 900px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) { display: block !important; }
    .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
    .nav-join-btn { display: none !important; }

    /* Homepage only: show just the tennis ball in header */
    .home .site-header-logo {
        width: 45px !important;
        height: 45px !important;
        overflow: hidden !important;
    }
    .home .site-header-logo img {
        max-height: 45px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Hide Join Us nav link on desktop, show in mobile overlay */
.nav-join-mobile { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .nav-join-mobile { display: block !important; }

/* Hero: large white logo */
.hero-logo-white {
    margin-bottom: 40px !important;
    max-width: 420px !important;
    width: 100% !important;
}
.hero-logo-white img {
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.8)) drop-shadow(0 2px 6px rgba(0,0,0,0.6));
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Footer logo */
.wp-block-group.has-primary-background-color .wp-block-image img {
    max-width: 200px;
}

/* ── Video Hero ── */
.video-hero {
    position: relative;
    min-height: 65vh;
    overflow: hidden;
    gap: 0 !important;
    margin-top: -1px !important;
    padding-top: 0 !important;
}

/* Color overlay — on the parent so it covers edge-to-edge */
.video-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--wp--preset--color--primary);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.video-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-hero__poster,
.video-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hero__poster {
    z-index: 1;
    transition: opacity 0.8s ease;
}

.video-hero__video {
    z-index: 0;
}

.video-hero--playing .video-hero__poster {
    opacity: 0;
    pointer-events: none;
}

/* Overlay text container — vertically + horizontally centered */
.video-hero__overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 2rem 1rem;
    text-align: center;
}

/* Drop shadow on all hero overlay content for readability */
.video-hero__overlay * {
    text-shadow: 0 3px 12px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.45);
}
.video-hero__overlay img {
    text-shadow: none;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.75));
}
.video-hero__overlay .hero-logo-white img {
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.9)) drop-shadow(0 2px 8px rgba(0,0,0,0.7));
}
.video-hero__overlay .wp-block-button__link {
    text-shadow: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    min-width: 220px;
    text-align: center;
}
.video-hero__overlay .is-style-outline .wp-block-button__link {
    background-color: rgba(200,200,200,0.3) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .video-hero__video {
        display: none;
    }
}

/* ── Ball Level Indicators (Junior Programs) ── */
.ball-indicator {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    position: relative;
    top: -2px;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
}
.ball-red    { background-color: #E53935; }
.ball-orange { background-color: #FB8C00; }
.ball-green  { background-color: #43A047; }
.ball-yellow { background-color: #FDD835; }

/* ── Pricing Cards — spacing fix ── */
.wp-block-group.has-border-color > .wp-block-buttons,
.wp-block-group.pricing-popular > .wp-block-buttons {
    margin-top: 1.25rem;
}
.wp-block-group.has-border-color > .has-text-align-center.has-small-font-size,
.wp-block-group.pricing-popular > .has-text-align-center.has-small-font-size {
    margin-bottom: 0;
}

/* ── Lightbox ── */
.sct-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.sct-lightbox-overlay.active { display: flex; }
.sct-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.sct-lightbox-overlay.sct-lightbox-scroll {
    overflow-y: auto;
    align-items: flex-start;
    padding: 2rem 0;
}
.sct-lightbox-overlay.sct-lightbox-scroll img {
    max-height: none;
    max-width: min(90vw, 700px);
    margin: 0 auto;
}
.sct-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    z-index: 100000;
}
.sct-lightbox-prev,
.sct-lightbox-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 100000;
    background: rgba(0,0,0,0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    line-height: 48px;
    text-align: center;
    transition: background 0.2s ease;
    user-select: none;
}
.sct-lightbox-prev:hover,
.sct-lightbox-next:hover {
    background: rgba(0,0,0,0.7);
}
.sct-lightbox-prev { left: 1.5rem; }
.sct-lightbox-next { right: 1.5rem; }
.sct-lightbox-overlay.has-gallery .sct-lightbox-prev,
.sct-lightbox-overlay.has-gallery .sct-lightbox-next {
    display: block;
}

/* Gallery lightbox */
.wp-block-gallery img {
    cursor: zoom-in;
}

/* News article thumbnails */
.sct-news-card {
    text-align: center;
    cursor: pointer;
}
.sct-news-card img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
}
@media (max-width: 767px) {
    .sct-news-card img {
        height: 250px;
    }
}
.sct-news-card:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Certification cards */
.sct-cert-card {
    text-align: center;
    cursor: zoom-in;
}
.sct-cert-card img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-height: 180px;
    width: auto;
    object-fit: contain;
}
.sct-cert-card:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
