/*
Theme Name: Champion Pro League Theme
Theme URI: http://example.com/cpl-theme/
Author: Antigravity
Author URI: http://example.com/
Description: Theme inspired by Champion Pro League.
Version: 1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpl-theme
*/

:root {
    --bg-color: #0b1320;
    --text-color: #ffffff;
    --accent-color: #d4af37;
    --accent-hover: #f1cf5b;
    --header-bg: #060b14;
    --font-main: 'Montserrat', sans-serif;
}

body, html {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: url('./assets/images/global-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}
body.no-scroll::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0f1e;
    z-index: 90;
}

/* Header & Navigation */
.site-header {
    background-color: var(--header-bg);
    padding: 25px 0;
    position: relative;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-hover);
}

/* Sub-menu (Desktop) */
.main-navigation li {
    position: relative;
}
.main-navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    min-width: 220px;
    z-index: 999;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-top: 2px solid var(--accent-color);
}
.main-navigation li:hover > ul.sub-menu {
    display: flex;
}
.main-navigation ul.sub-menu li {
    width: 100%;
    margin: 0;
}
.main-navigation ul.sub-menu a {
    padding: 10px 20px;
    font-size: 13px;
    display: block;
}
.main-navigation ul.sub-menu a:hover {
    background: rgba(255,255,255,0.05);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-content {
    padding: 40px 20px;
    min-height: 60vh;
}

/* Hero Section (Front Page) */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    background-color: var(--bg-color);
    overflow: visible;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Center Logo */
.center-logo-wrapper {
    position: absolute;
    bottom: -220px; /* Overlap the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    height: 440px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ============= HOME TITLE BLOCK ============= */
.home-title-block {
    text-align: center;
    padding: 260px 20px 40px;
    background: transparent;
}
.home-main-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    max-width: 700px;
    margin: 0 auto 20px;
}
.home-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ============= ORGANIZATORZY LAYOUT ============= */
.org-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}
.org-flex-top {
    align-items: flex-start;
}
.org-logo-col {
    flex: 1 1 300px;
    max-width: 550px;
    text-align: center;
    margin-bottom: 90px;
}
.org-logo-img {
    width: 100%;
    max-width: 525px;
    height: auto;
}
.wpf-logo {
    max-width: 446px; /* 15% smaller as requested previously */
}
.org-photo-col {
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
}
.org-photo-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.org-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.org-btn:hover {
    background: var(--accent-color);
    color: #000;
}

@media (max-width: 767px) {
    .org-flex-container {
        flex-direction: row; /* Allow horizontal stacking on mobile */
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .org-logo-col {
        flex: 1 1 50%;
        max-width: 50%;
        margin-bottom: 0; 
    }
    .org-photo-col {
        flex: 1 1 50%;
        max-width: 50%;
    }
    .org-logo-img {
        max-width: 100%; 
    }
    .wpf-logo {
        max-width: 90%; 
    }
    .org-photo-img {
        max-width: 100%; 
    }
    .org-photo-col h3 {
        font-size: 1.1rem;
    }
    .org-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ============= NEWS CAROUSEL ============= */
.news-section {
    padding: 20px 20px 60px;
    text-align: center;
}
.section-heading {
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}
.news-carousel-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}
.news-slide {
    display: none;
}
.news-slide.active {
    display: block;
}
.news-slide-img {
    width: 100%;
    height: 380px;
    border-radius: 10px;
}
.carousel-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
    line-height: 1;
}
.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
}
.carousel-dots {
    margin: 15px auto;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212,175,55,0.3);
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: var(--accent-color);
}
.news-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}
.thumb-img {
    width: 140px;
    height: 80px;
    border-radius: 6px;
    font-size: 0.6rem;
}

/* ============= UPCOMING SECTION ============= */
.upcoming-section {
    text-align: center;
    padding: 40px 20px 60px;
}
.upcoming-cards-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.upcoming-card {
    display: inline-block;
    padding: 40px;
    background: #0d1928;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    max-width: 360px;
    width: 100%;
    transition: border-color 0.3s;
}
.upcoming-card:hover {
    border-color: var(--accent-color);
}
.upcoming-logo-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 12px;
}
.upcoming-event-title {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-color);
    margin: 0 0 8px;
}
.upcoming-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}
.upcoming-btn:hover {
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
}

/* ============= COUNTDOWN ============= */
.countdown-section {
    text-align: center;
    padding: 60px 20px 240px;
    background: transparent;
}
.countdown-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 30px;
}
.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}
.countdown-unit {
    text-align: center;
}
.countdown-num {
    display: block;
    font-size: clamp(6rem, 16vw, 10rem);
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-text {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* Footer */
.site-footer {
    background-color: var(--header-bg);
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--accent-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 800;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner-placeholder {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f1828;
    color: #ddd;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 999;
    border-top: 1px solid var(--accent-color);
    font-size: 14px;
}
.cookie-banner-placeholder .btn {
    background: var(--accent-color);
    color: #000;
    padding: 8px 25px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Zarzad (Board Members) — old grid kept for fallback */
.zarzad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* ============= ZARZAD CAROUSEL ============= */
.zarzad-carousel-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    margin: 0 auto;
    max-width: 1100px;
}

/* Overflow window — shows exactly 3 cards */
.zc-track-outer {
    flex: 1;
    overflow: hidden;
}

.zc-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual card — exactly 1/3 of the outer width */
.zc-card {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
    box-sizing: border-box;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
}

.zc-card > div:first-child,
.zc-photo {
    background: #111827;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,0.2);
    border-bottom: none;
}
.zc-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: transparent;
    display: block;
}

.zc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #131f35;
    border: 1px solid rgba(212,175,55,0.2);
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 10px 10px;
    padding: 24px 18px 28px;
    text-align: center;
    transition: border-color 0.3s;
}
.zc-card:hover .zc-info {
    border-color: var(--accent-color);
}

.zc-role {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin: 0 0 8px;
    line-height: 1.5;
}
.zc-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    margin: 0 0 20px;
    letter-spacing: 1px;
}
.zc-btn-link {
    margin-top: auto;
    display: inline-block;
    padding: 8px 22px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}
.zc-btn-link:hover {
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
}

/* Arrow buttons */
.zc-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 2.5rem;
    line-height: 1;
    width: 52px;
    min-width: 52px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    align-self: center;
    padding: 8px 0;
}
.zc-btn:hover:not(:disabled) {
    background: var(--accent-color);
    color: #000;
}
.zc-btn:disabled {
    opacity: 0.2;
    cursor: default;
}
.zc-prev { margin-right: 14px; }
.zc-next { margin-left: 14px; }

/* Dots strip */
.zc-counter {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.zc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212,175,55,0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.zc-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Responsive: 1 card on small screens */
@media (max-width: 700px) {
    .zc-card { flex: 0 0 100%; width: 100%; }
    .zc-btn  { width: 38px; min-width: 38px; font-size: 1.8rem; }
}

/* 2 cards on medium */
@media (min-width: 701px) and (max-width: 1024px) {
    .zc-card { flex: 0 0 50%; width: 50%; }
}

.poznaj-mnie-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}
.poznaj-mnie-btn:hover {
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
}

.gold-divider {
    border: 0;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.3;
    margin: 60px 0;
}

.zarzad-single-header {
    text-align: center;
    margin-bottom: 40px;
}
.zarzad-photo-placeholder-large {
    width: 100%;
    max-width: 500px;
    height: 600px;
    background: #111;
    border: 2px solid var(--accent-color);
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 1.5rem;
    border-radius: 10px;
}

/* ===================== MR. POLAND PAGE ===================== */
.mr-poland-subnav {
    background: #060b14;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 14px 0;
    position: sticky;
    top: 70px;
    z-index: 90;
    text-align: center;
}
.mr-poland-subnav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.mr-poland-subnav a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.mr-poland-title {
    font-size: 2rem;
    margin: 50px 0 10px 0;
    letter-spacing: 2px;
}

.mr-poland-section {
    margin: 60px 0;
    padding-top: 20px;
}
.mr-poland-section h2 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.mr-poland-section p {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.mr-poland-date {
    font-size: 1.2rem;
    font-weight: normal;
}
#termin h2 {
    color: var(--accent-color);
}

.mr-poland-partner {
    margin: 40px 0;
    text-align: center;
}
.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.partner-x {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
}
.partner-text h3 {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 2px;
}

.mr-poland-cta {
    display: inline-block;
    padding: 16px 50px;
    background: var(--accent-color);
    color: #000;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.3s;
}
.mr-poland-cta:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* Image placeholder reusable */
.image-placeholder {
    background: #1a2536;
    border: 2px dashed rgba(212,175,55,0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212,175,55,0.35);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 10px;
}

/* ============= SINGLE BOARD MEMBER ============= */
.single-zarzad-wrap {
    max-width: 1100px;
}
.single-zarzad-layout {
    display: block;
    margin-bottom: 60px;
}
.single-zarzad-layout::after {
    content: "";
    display: table;
    clear: both;
}
.single-zarzad-photo {
    float: left;
    width: 38%;
    margin-right: 60px;
    margin-bottom: 20px;
}
@media (max-width: 767px) {
    .single-zarzad-photo {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
}
.single-zarzad-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(212,175,55,0.3);
    object-fit: contain;
}
.single-zarzad-role {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 0 0 12px 0;
}
.single-zarzad-name {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text-color);
    text-transform: none;
    margin: 0 0 20px 0;
    line-height: 1.2;
}
.single-zarzad-desc-short {
    font-size: 1rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
}
.single-zarzad-content {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
}
/* Jeśli zdjęcie pływające (float) jest wyższe niż tekst obok niego, ten blok musi "objąć" jego pełną
   wysokość — inaczej to, co jest pod spodem (np. stopka strony), wjeżdża na jeszcze widoczne zdjęcie. */
.single-zarzad-content::after {
    content: "";
    display: table;
    clear: both;
}
.single-zarzad-content p {
    margin-bottom: 18px;
}
/* Treść wklejona z telefonu/komunikatora (np. WhatsApp, Messenger) często przychodzi jako
   kolejne <div dir="auto">, nie <p> — pusty taki div (celowy odstęp między akapitami) ma
   zerową wysokość, więc odstęp wizualnie znikał mimo że w treści realnie jest. */
.single-zarzad-content div[dir="auto"] {
    margin-bottom: 18px;
}
.single-zarzad-content div[dir="auto"]:empty {
    min-height: 1em;
}
.single-zarzad-back {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212,175,55,0.2);
}
.single-zarzad-back .btn {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.single-zarzad-back .btn:hover {
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
}

/* Justify board member text */
.single-zarzad-content p, .single-zarzad-content ul, .single-zarzad-content ol { text-align: justify; }


/* Justify board member text but keep headers left */
.single-zarzad-content h1, .single-zarzad-content h2, .single-zarzad-content h3, .single-zarzad-content h4, .single-zarzad-content h5, .single-zarzad-content h6 { text-align: left; }

/* Back button wrapper — desktop: left-aligned, above the two-column layout */
.back-btn-wrap {
    margin: 0 0 30px 0;
    text-align: left;
}
.back-btn-wrap .btn-back:hover {
    background: var(--accent-color);
    color: #000;
}


/* ====================================================
   RESPONSIVE DESIGN — MOBILE
   ==================================================== */

/* Hamburger button — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

/* ---- Tablets + small laptops (≤ 992px) ---- */
@media (max-width: 992px) {

    /* Header */
    .header-container {
        justify-content: flex-end !important;
        flex-wrap: wrap;
        position: relative;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 5%;
        width: 90%;
        background-color: #000;
        padding: 20px 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        margin-top: 10px;
        border-radius: 4px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        z-index: 1000;
    }
    .main-navigation.toggled {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-navigation li {
        width: 100%;
        text-align: left;
        position: relative;
    }
    .main-navigation a {
        display: block;
        padding: 12px 10px;
        font-size: 1rem;
        color: var(--accent-color);
        font-weight: bold;
    }
    .main-navigation .menu-item-has-children > a::after {
        content: "\25BC"; /* Down arrow */
        position: absolute;
        right: 15px;
        top: 14px;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    .main-navigation .menu-item-has-children.open-sub > a::after {
        transform: rotate(180deg);
    }
    .main-navigation ul.sub-menu {
        display: none; /* Hidden by default on mobile, toggled via JS */
        position: static;
        width: 100%;
        background: #000;
        box-shadow: none;
        border-top: none;
        padding: 0;
    }
    .main-navigation ul.sub-menu li {
        /* no border */
    }
    .main-navigation ul.sub-menu a {
        padding: 10px 10px 10px 25px;
        font-size: 0.9rem;
        color: var(--accent-color);
        font-weight: normal;
    }

    /* Partnerzy i współpraca - Enlarge logos x2 on mobile */
    .partner-logo {
        width: 90vw !important;
        height: auto !important;
        max-width: 600px !important;
        object-fit: contain !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 7px !important;
    }

    /* IPL, WPF, GPA, GPC - 15% smaller than the rest */
    .partner-logo[alt="IPL"],
    .partner-logo[alt="WPF Polska"],
    .partner-logo[alt="GPA Polska"],
    .partner-logo[alt="GPC Polska"] {
        width: 76vw !important;
        max-width: 510px !important;
    }

    /* Hero — auto height so image isn't cropped */
    .hero-section {
        height: auto;
        min-height: unset;
        background-color: transparent;
    }
    .hero-bg-img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    /* Logo overlapping hero */
    .center-logo-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 160px;
        height: 160px;
        margin: -80px auto 0;
        display: flex;
        z-index: 10;
    }

    /* Title block — reduce gap left by logo */
    .home-title-block {
        padding-top: 20px;
    }
    .home-main-title {
        font-size: 1.4rem;
    }

    /* Zarząd member layout */
    .single-zarzad-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .single-zarzad-image {
        float: none;
        margin: 0 auto 20px auto;
    }

    /* Countdown — Tablets (bigger numbers, 2x2 grid) */
    .countdown-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
        max-width: 500px;
        margin: 0 auto;
    }
    .countdown-num {
        font-size: clamp(4rem, 10vw, 6.5rem);
    }
    .countdown-text {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    /* Mr. Poland section padding */
    .mr-poland-section {
        padding: 40px 20px;
    }
}

/* ---- Phones (≤ 767px) ---- */
@media (max-width: 767px) {

    /* Prevent ANY horizontal overflow */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    .container {
        padding: 12px 15px;
    }

    /* All images: cap at 92% width, never overflow, auto-center */
    img {
        max-width: 92% !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Wyjątek — karuzela prezentacji PL/EN (inc/g2-carousel.php): widoczny tylko aktywny slajd,
       wypełniający ramkę. Bez tego reguła powyżej pokazywała wszystkie slajdy naraz (jeden na drugim),
       więc strzałki na telefonie „nie działały" — na wierzchu był zawsze ostatni slajd. */
    .g2-slides .g2-slide {
        display: none !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .g2-slides .g2-slide.active {
        display: block !important;
    }

    /* Exception — hero background image should be full-width */
    .hero-bg-img {
        max-width: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    /* Thumbnails in news carousel */
    .news-thumbnails img {
        width: 70px !important;
        max-width: 70px !important;
    }

    /* Countdown — phones: 2×2 grid, smaller numbers */
    .countdown-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 30px;
        max-width: 320px;
        margin: 0 auto;
    }
    .countdown-num {
        font-size: clamp(2.8rem, 15vw, 3.5rem);
    }
    .countdown-text {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }


    /* Zarząd carousel — show 1 card at full width, no clipping */
    .zc-card {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 4px;
    }
    .zarzad-carousel-wrap {
        max-width: 100%;
    }
    .zc-role {
        font-size: 0.65rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .zc-btn {
        width: 38px;
        min-width: 38px;
        font-size: 1.8rem;
    }

    /* Partner logos — center everything including text */
    .site-main div[style*="display: flex"],
    .site-main div[style*="display:flex"] {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .site-main div[style*="display: flex"] > div,
    .site-main div[style*="display:flex"] > div {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .site-main div[style*="display: flex"] img:not(.partner-logo),
    .site-main div[style*="display:flex"] img:not(.partner-logo) {
        max-width: 110px !important;
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto 10px auto !important;
    }

    /* Partner logos - MUST come AFTER the 110px rule to win */
    img.partner-logo {
        width: 90vw !important;
        height: auto !important;
        max-width: 600px !important;
        object-fit: contain !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 7px !important;
    }

    /* IPL, WPF, GPA, GPC - 15% smaller */
    img.partner-logo[alt="IPL"],
    img.partner-logo[alt="WPF Polska"],
    img.partner-logo[alt="GPA Polska"],
    img.partner-logo[alt="GPC Polska"] {
        width: 76vw !important;
        max-width: 510px !important;
    }

    /* Back button — center on mobile */
    .back-btn-wrap {
        text-align: center;
        margin: 0 0 24px;
    }


    /* Each partner card: column, centered */
    .site-main [style*="text-align: center; max-width"],
    .site-main [style*="text-align:center; max-width"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    /* General text readability */
    p, li {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
}

/* Footer bottom — stack vertically on mobile */
@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

/* TOC Bar — fix clipping on mobile */
@media (max-width: 767px) {
    #toc-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
        margin: 15px 0 40px;
    }
    #toc-bar a {
        white-space: normal;
        text-align: center;
        width: 100%;
        font-size: 0.8rem;
        padding: 6px 10px;
        border-bottom: 1px solid rgba(212,175,55,0.2);
    }
    #toc-bar a:last-child {
        border-bottom: none;
    }
}


/* Slide In Left Animation */
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }


/* Wyjustowanie tekstu na stronie O wydarzeniu (MR. POLAND) */
.page-template-page-mr-poland .site-main p,
.page-template-page-sponsor-miejsce-wydarzenia .site-main p {
    text-align: justify !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    word-break: break-word !important;
    letter-spacing: -0.01em !important;
}

/* Zmniejszenie zdjęcia Piotra Beczka o 20% w stosunku do obecnego na komputerach */
@media (min-width: 768px) {
    .pb-photo-1 {
        max-width: 544px;
    }
    .pb-photo-2 {
        max-width: 640px;
    }
}

/* Zdjęcia Piotra Wojnarowskiego — pojedyncze, wyśrodkowane, pod tekstem sekcji (zarząd i sędzia) */
.single-zarzad-content .piotr-photo-wrap {
    text-align: center;
    margin: 30px 0 40px;
}
.single-zarzad-content .piotr-photo-wrap img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.single-zarzad-content .piotr-photo-wide img { max-width: 700px; }
.single-zarzad-content .piotr-photo-right {
    float: right;
    width: 380px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 20px 30px;
}
@media (max-width: 768px) {
    .single-zarzad-content .piotr-photo-right {
        float: none;
        display: block;
        width: 100%;
        max-width: 420px;
        margin: 20px auto;
    }
}
/* Zdjęcie Rafała Truskawy ma własną złotą ramkę w pliku — bez dodatkowego obramowania CSS */
.org-photo-img.org-photo-framed {
    border: none;
    border-radius: 0;
}


/* Miękkie przenoszenie wyrazów (U+00AD wstawiane w PHP): tylko na telefonach i tabletach — równe justowanie bez „dziur" */
main p, main li {
    -webkit-hyphens: none;
    hyphens: none;
}
.home-about-section p {
    -webkit-hyphens: auto;
    hyphens: auto;
}
@media (max-width: 768px) {
    main p, main li {
        -webkit-hyphens: manual;
        hyphens: manual;
        overflow-wrap: break-word;
    }
    .home-about-section p {
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}

/* ===== Telefon: jednakowy odstęp tekstu od następnego nagłówka sekcji (h2 / h3) =====
   Odstęp = margines nagłówka; marginesy i wypełnienia poprzedzających elementów są wyzerowane. */
@media (max-width: 767px) {
    main {
        --cpl-heading-gap: 88px;
    }
    main h2:not(:is(h1, h2, h3, h4) + h2):not(.entry-content > h2:first-child):not([id="kulturystyka"] h2),
    main h3:not(.no-toc):not(.zc-name):not(.sedzia-name):not(.upcoming-event-title):not(:is(h1, h2, h3, h4) + h3) {
        margin-top: var(--cpl-heading-gap) !important;
    }
    main :is(p, ul, ol, div, section, a, li):has(+ h2:not(:is(h1, h2, h3, h4) + h2)),
    main :is(p, ul, ol, div, section, a, li):has(+ h3:not(.no-toc):not(.zc-name):not(.sedzia-name):not(.upcoming-event-title)) {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .mr-poland-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .sedziowie-section {
        margin-bottom: 0 !important;
    }
}
/* Telefon: dopracowanie odstępów przed nagłówkami (strona główna, O Federacji, Partnerzy) */
@media (max-width: 767px) {
    /* końcowe marginesy/wypełnienia elementów zagnieżdżonych tuż przed nagłówkiem sekcji */
    main :is(div, section):has(+ h2:not(:is(h1, h2, h3, h4) + h2)) :is(div, p, ul, ol, li):not(:has(~ :not(:empty))),
    main :is(div, section):has(+ h3:not(.no-toc):not(.zc-name):not(.sedzia-name):not(.upcoming-event-title)) :is(div, p, ul, ol, li):not(:has(~ :not(:empty))) {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    /* strona główna */
    .container:has(> .home-about-section) { padding-bottom: 0 !important; }
    .home-about-section { margin-bottom: 0 !important; }
    .news-section { padding-top: 0 !important; padding-bottom: 0 !important; }
    .news-carousel-wrapper { margin-bottom: 0 !important; }
    .upcoming-section { padding-top: 0 !important; }
    /* O Federacji: nagłówek „Skład Zarządu” po linii podziału — cały odstęp dzielony po równo wokół linii */
    .entry-content:has(+ .gold-divider) { margin-bottom: 0 !important; padding-bottom: 0 !important; }
    .gold-divider { margin: calc(var(--cpl-heading-gap, 88px) / 2) 0 !important; }
    .zarzad-section > h2.section-heading { margin-top: 0 !important; }
}
/* Telefon: puste akapity (powstają z automatycznego <p> WordPressa wokół bloków) nie mogą dokładać odstępów */
@media (max-width: 767px) {
    main p:empty { display: none !important; }
}

/* Telefon: poprawki specyficzności (końcowe marginesy przed nagłówkiem, Skład Zarządu) */
@media (max-width: 767px) {
    main :is(div, section):has(+ h2) :is(div, p, ul, ol, li):not(:has(~ :not(:empty))),
    main :is(div, section):has(+ h3:not(.no-toc):not(.zc-name):not(.sedzia-name):not(.upcoming-event-title)) :is(div, p, ul, ol, li):not(:has(~ :not(:empty))) {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    main#primary .zarzad-section > h2.section-heading {
        margin-top: 0 !important;
    }
}
/* Telefon: zdjęcia w treści profili (float w stylach wpisów) nie mogą zwężać tekstu do wąskiej kolumny — układ jedno pod drugim */
@media (max-width: 767px) {
    .single-zarzad-content img {
        float: none !important;
        display: block !important;
        width: auto !important;
        max-width: 92% !important;
        height: auto !important;
        margin: 20px auto !important;
    }
}
/* Duży tytuł strony (np. „O Federacji”) */
.entry-title--main {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(212,175,55,0.4);
}
/* Telefon: nagłówki sekcji na stronie „Nasi sędziowie” — wyśrodkowane, z zapasem od lewej i prawej krawędzi */
@media (max-width: 767px) {
    main .sedziowie-section h2 {
        display: inline-block;
        max-width: 100%;
        box-sizing: border-box;
        font-size: clamp(1.25rem, 7vw, 1.75rem);
        padding: 0 10px 10px;
        margin-bottom: 30px;
        text-align: center;
        overflow-wrap: break-word;
    }
    /* Duże tytuły stron na telefonie: wyśrodkowane, długie przechodzą do kolejnej linii (zamiast
       uciekać poza ekran — było white-space: nowrap). Rozmiar zależny od szerokości ekranu, więc krótkie
       tytuły, np. „O Federacji”, nadal mieszczą się w jednej linii. Linie wyrównane długością (balance). */
    .entry-title--main {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        overflow-wrap: break-word;
        text-wrap: balance;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Tabela osiągnięć w profilach (np. Agnieszka Zembroń-Chudzicka) */
.single-zarzad-content .cpl-table-wrap {
    overflow-x: auto;
    margin: 20px 0 30px;
}
.single-zarzad-content .cpl-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.single-zarzad-content .cpl-table th {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding: 10px 12px;
}
.single-zarzad-content .cpl-table td {
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding: 10px 12px;
}
@media (max-width: 767px) {
    .single-zarzad-content .cpl-table th,
    .single-zarzad-content .cpl-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
}

/* Zdjęcia w profilu Agnieszki Zembroń-Chudzickiej: po prawej / po lewej stronie tekstu */
.single-zarzad-content .cpl-photo-right {
    float: right;
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 20px 30px;
}
.single-zarzad-content .cpl-photo-left {
    float: left;
    width: 280px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 30px 20px 0;
}
/* Sekcja ze zdjęciem obok — tabela mieści się w wolnym miejscu obok zdjęcia, a nie pod nim */
.single-zarzad-content .cpl-photo-section .cpl-table-wrap {
    display: flow-root;
}

/* Cytat w profilu — złota kreska z lewej; blok nie wchodzi pod zdjęcia opływane tekstem */
.single-zarzad-content .cpl-quote {
    display: flow-root;
    font-style: italic;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}
/* Lista osiągnięć zaczyna się pod zdjęciem, żeby jej pierwsza pozycja nie była zawężona */
.single-zarzad-content .cpl-photo-section ul {
    clear: both;
}

/* Telefon: tabela osiągnięć zawsze mieści się w szerokości ekranu — bez poziomego przewijania */
@media (max-width: 767px) {
    .single-zarzad-content .cpl-table-wrap {
        overflow-x: visible;
    }
    .single-zarzad-content .cpl-table {
        table-layout: fixed;
        width: 100%;
    }
    .single-zarzad-content .cpl-table th,
    .single-zarzad-content .cpl-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}
@media (max-width: 767px) {
    .single-zarzad-content .cpl-table th:nth-child(1) { width: 32%; }
    .single-zarzad-content .cpl-table th:nth-child(2) { width: 36%; }
    .single-zarzad-content .cpl-table th:nth-child(3) { width: 32%; }
}
@media (max-width: 380px) {
    .single-zarzad-content .cpl-table th,
    .single-zarzad-content .cpl-table td {
        font-size: 0.72rem;
        padding: 8px 3px;
    }
}

/* Duże, wyśrodkowane zdjęcie w treści profilu (np. Marcin Przyszlak) — mieści się w całości w oknie przeglądarki, ale pozostaje duże */
.single-zarzad-content .cpl-photo-center-large {
    display: block;
    margin: 30px auto;
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 72vh;
    border-radius: 12px;
}

/* Marcin Przyszlak — powiększenie zdjęcia z medalem o 50% względem domyślnego .cpl-photo-left (280px * 1.5 = 420px) */
.single-zarzad-content .cpl-photo-left.cpl-photo-left-lg {
    width: 420px;
}

/* Zdjęcie umieszczone w kodzie PRZED nagłówkiem/tekstem (na desktopie pływa obok nich) — na telefonie ma
   wyświetlać się POD nagłówkiem i tekstem, a nie nad nimi. Działa dzięki temu, że globalna reguła mobilna
   wyłącza float (.single-zarzad-content img -> display:block), więc na telefonie flex + order ustawiają kolejność. */
@media (max-width: 767px) {
    .single-zarzad-content .cpl-photo-reflow {
        display: flex;
        flex-direction: column;
    }
    .single-zarzad-content .cpl-photo-reflow > img {
        order: 2;
    }
    .single-zarzad-content .cpl-photo-reflow > h3,
    .single-zarzad-content .cpl-photo-reflow > p {
        order: 1;
    }
}

/* Marcin Przyszlak — dwa zdjęcia obok siebie, o jednakowej wysokości, niewyśrodkowane pojedynczo */
.single-zarzad-content .cpl-photo-duo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}
.single-zarzad-content .cpl-photo-duo img {
    height: 420px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    margin: 0;
}
@media (max-width: 767px) {
    .single-zarzad-content .cpl-photo-duo {
        flex-direction: column;
        align-items: center;
    }
}
.single-zarzad-content .cpl-photo-duo br { display: none; }


/* Pojedyncze, wyśrodkowane zdjęcie pod nagłówkiem i tekstem sekcji (np. Dawid Grygiel-Olek) */
.single-zarzad-content .cpl-photo-block {
    text-align: center;
    margin: 30px 0 40px;
}
.single-zarzad-content .cpl-photo-block img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
}

/* Mateusz Szlęk — zdjęcie z wiosłomatu zmniejszone o 20% względem domyślnego .cpl-photo-block (700px * 0.8 = 560px) */
.single-zarzad-content .cpl-photo-block.cpl-photo-block-mateusz1 img {
    max-width: 560px;
    height: auto;
    border-radius: 12px;
}

/* Natywne wyrównanie zdjęć z edytora WordPressa (blok "Obraz": lewo/prawo/środek) — ten sam efekt
   wizualny co ręcznie stylowane zdjęcia powyżej, żeby zdjęcia dodawane z panelu bez pisania kodu
   wyglądały tak samo. Tekst opływa zdjęcie wyrównane do lewej/prawej; wyśrodkowane stoi pod/nad tekstem. */
.single-zarzad-content .wp-block-image.alignright,
.single-zarzad-content img.alignright {
    float: right;
    margin: 0 0 20px 30px;
}
.single-zarzad-content .wp-block-image.alignleft,
.single-zarzad-content img.alignleft {
    float: left;
    margin: 0 30px 20px 0;
}
.single-zarzad-content .wp-block-image.alignright img,
.single-zarzad-content .wp-block-image.alignleft img,
.single-zarzad-content img.alignright,
.single-zarzad-content img.alignleft {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}
.single-zarzad-content .wp-block-image.aligncenter,
.single-zarzad-content img.aligncenter {
    display: block;
    clear: both;
    margin: 30px auto;
    text-align: center;
}
.single-zarzad-content .wp-block-image.aligncenter img,
.single-zarzad-content img.aligncenter {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Przycisk „Nagłówek" w edytorze — zaznaczony fragment tekstu pogrubiony i złoty */
.cpl-gold-highlight {
    color: var(--accent-color);
    font-weight: 800;
}

/* Przycisk „Kolor złoty" w edytorze — sam kolor, identyczny odcień co nagłówki, bez pogrubienia */
.cpl-gold-color {
    color: var(--accent-color);
}

/* ============= STRONA KLUBU PARTNERSKIEGO (treść, swobodny układ tekstu/zdjęć) ============= */
.single-klub-content {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
}
.single-klub-content::after {
    content: "";
    display: table;
    clear: both;
}
.single-klub-content p {
    margin-bottom: 18px;
}
.single-klub-content p, .single-klub-content ul, .single-klub-content ol { text-align: justify; }
.single-klub-content h1, .single-klub-content h2, .single-klub-content h3, .single-klub-content h4, .single-klub-content h5, .single-klub-content h6 { text-align: left; }

.single-klub-content .wp-block-image.alignright,
.single-klub-content img.alignright {
    float: right;
    margin: 0 0 20px 30px;
}
.single-klub-content .wp-block-image.alignleft,
.single-klub-content img.alignleft {
    float: left;
    margin: 0 30px 20px 0;
}
.single-klub-content .wp-block-image.alignright img,
.single-klub-content .wp-block-image.alignleft img,
.single-klub-content img.alignright,
.single-klub-content img.alignleft {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}
.single-klub-content .wp-block-image.aligncenter,
.single-klub-content img.aligncenter {
    display: block;
    clear: both;
    margin: 30px auto;
    text-align: center;
}
.single-klub-content .wp-block-image.aligncenter img,
.single-klub-content img.aligncenter {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .single-klub-content img {
        float: none !important;
        display: block !important;
        width: auto !important;
        max-width: 92% !important;
        height: auto !important;
        margin: 20px auto !important;
    }
}

/* Tekst po lewej / zdjęcie po prawej — na telefonie zdjęcie schodzi POD nagłówek i tekst (kolejność w kodzie: tekst, potem zdjęcie) */
.single-zarzad-content .cpl-side-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 30px 0;
}
.single-zarzad-content .cpl-side-text {
    flex: 1 1 0;
    min-width: 0;
}
.single-zarzad-content .cpl-side-photo {
    flex: 0 0 384px;
    width: 384px;
    height: auto;
    border-radius: 12px;
}
@media (max-width: 767px) {
    .single-zarzad-content .cpl-side-block {
        flex-direction: column;
    }
}

/* Dawid Grygiel-Olek — zdjęcie z podium zmniejszone o 30% (700px -> 490px, proporcjonalnie ~558px wysokości)
   i ustawione obok nowego zdjęcia, obie fotografie o tej samej wysokości */
.single-zarzad-content .cpl-photo-duo.cpl-photo-duo-dawid1 {
    clear: both;
}
.single-zarzad-content .cpl-photo-duo.cpl-photo-duo-dawid1 img {
    height: 558px;
}

/* Tomasz Strus — dwa zdjęcia obok siebie zaraz po wstępie profilu; clear:both, żeby nie zostały
   ściśnięte przez wciąż aktywny float zdjęcia profilowego (ten sam problem co u Dawida powyżej) */
.single-zarzad-content .cpl-photo-duo.cpl-photo-duo-tomasz1 {
    clear: both;
}

/* Rafał Truskawa — dwa zdjęcia nad nagłówkiem "Trener, sędzia, działacz", powiększone o 20%
   względem domyślnego .cpl-photo-duo (420px * 1.2 = 504px) */
.single-zarzad-content .cpl-photo-duo.cpl-photo-duo-rafal1 img {
    height: 504px;
}

/* Bettina Razzouki-Korkis — dwa zdjęcia pod nagłówkiem "Solidne fundamenty..."; clear:both,
   żeby nie zostały ściśnięte przez wciąż aktywny float zdjęcia bettina-action.jpg */
.single-zarzad-content .cpl-photo-duo.cpl-photo-duo-bettina1 {
    clear: both;
}

/* Piotr Wojnarowski — dwa zdjęcia nad nagłówkiem "Od Zawodnika do Lidera..."; clear:both,
   żeby nie zostały ściśnięte przez wciąż aktywny float zdjęcia profilowego */
.single-zarzad-content .cpl-photo-duo.cpl-photo-duo-piotr1 {
    clear: both;
}

/* Karty ekspertów — te same proporcje co karty sędziów na stronie „Nasi Sędziowie" */
.cpl-expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.cpl-expert-card {
    background: #111;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}
.cpl-expert-card:hover {
    transform: translateY(-5px);
}
.cpl-expert-photo-wrapper {
    width: 100%;
    background: #0a0f1e;
    border-bottom: 2px solid var(--accent-color);
}
.cpl-expert-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.cpl-expert-info {
    padding: 25px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.cpl-expert-name {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 0 0 10px 0;
}
.cpl-expert-role {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 992px) {
    .cpl-expert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cpl-expert-grid { grid-template-columns: 1fr; }
}

/* ============= LISTING „KLUBY PARTNERSKIE" — dwie karty w rzędzie, na telefonie jedna pod drugą ============= */
.kluby-partnerskie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 40px;
    margin-top: 40px;
}
@media (max-width: 700px) {
    .kluby-partnerskie-grid {
        grid-template-columns: 1fr;
    }
}
.kluby-partnerskie-card {
    text-align: center;
}
.kluby-partnerskie-card a {
    display: block;
    text-decoration: none;
}
.kluby-partnerskie-card img {
    width: 312px;
    height: 312px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.kluby-partnerskie-card a:hover img {
    transform: scale(1.05);
}
.kluby-partnerskie-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* ============= KARUZELA PREZENTACJI G2 ARENA (Mr. Poland — sekcja „Miejsce") ============= */
.g2-carousel-wrap {
    max-width: 1080px;
    margin: 40px auto 0;
}
.g2-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.g2-lang-btn,
.g2-btn-fullscreen {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}
.g2-lang-btn.active,
.g2-lang-btn:hover,
.g2-btn-fullscreen:hover {
    background: var(--accent-color);
    color: #000;
}
.g2-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.g2-slides {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}
.g2-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.g2-slide.active {
    display: block;
}
.g2-carousel .g2-nav {
    background: rgba(10,15,30,0.85);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.8rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.3s;
}
.g2-carousel .g2-nav:hover {
    background: var(--accent-color);
    color: #000;
}
.g2-dots {
    text-align: center;
    margin-top: 15px;
}
.g2-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #444;
    border-radius: 50%;
    cursor: pointer;
}
.g2-dot.active {
    background: var(--accent-color);
}
@media (max-width: 600px) {
    .g2-carousel .g2-nav {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }
    .g2-carousel {
        gap: 4px;
    }
}

/* Pełny ekran */
.g2-fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.g2-fullscreen-overlay.open {
    display: flex;
}
.g2-fs-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}
.g2-btn-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}
.g2-fullscreen-overlay .g2-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,15,30,0.85);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.g2-fullscreen-overlay .g2-nav:hover {
    background: var(--accent-color);
    color: #000;
}
.g2-fullscreen-overlay .g2-btn-prev {
    left: 20px;
}
.g2-fullscreen-overlay .g2-btn-next {
    right: 20px;
}
@media (max-width: 600px) {
    .g2-fullscreen-overlay .g2-nav {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
    .g2-btn-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}