/* ==========================================
   SEKCJA: STANDARDY OCHRONY MAŁOLETNICH
   ========================================== */
.child-protection-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #ffffff;
    border-left: 5px solid #0d3b66; /* Główny granatowy akcent */
    border-radius: 10px;
    padding: 25px 30px;
    margin: 25px 0 35px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.child-protection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.cp-icon {
    font-size: 2.8rem;
    color: #0d3b66;
    background: #f0f4f8;
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-content {
    flex: 1;
}

.cp-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.35rem;
    color: #001f3f;
    font-weight: 700;
}

.cp-content p {
    margin: 0 0 18px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cp-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cp-btn-primary {
    background-color: #0d3b66;
    color: #ffffff;
    border: 1px solid #0d3b66;
}

.cp-btn-primary:hover {
    background-color: #001f3f;
    border-color: #001f3f;
}

.cp-btn-outline {
    background-color: transparent;
    color: #0d3b66;
    border: 1px solid #0d3b66;
}

.cp-btn-outline:hover {
    background-color: #f0f4f8;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .child-protection-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cp-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .cp-btn {
        justify-content: center;
        width: 100%;
    }
}

/* --- BAZOWE KOLORY KLUBU (Zabezpieczenie) --- */
:root {
    --club-blue: #1a3e7e;   /* Główny niebieski */
    --club-red: #d92323;    /* Główny czerwony */
    --club-dark: #212529;   /* Ciemny antracyt */
    --club-white: #ffffff;  /* Biel */
}

/* --- Podstrona Terminarz --- */
.schedule-container {
    margin-top: 40px;
    margin-bottom: 80px;
    font-family: sans-serif; /* Prosty font na wypadek braku głównego */
}

/* Blok konkretnego dnia */
.schedule-day-block {
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #212529; /* Fallback za --club-dark */
    background-color: var(--club-dark);
    color: #ffffff;
    padding: 14px 20px;
}

.day-header i {
    font-size: 20px;
    color: var(--club-red);
}

.day-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista meczów w danym dniu */
.matches-list {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Karta pojedynczego meczu (wiersz) */
.match-row-card {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #ffffff;
}

.match-row-card:last-child {
    border-bottom: none;
}

/* Lewa kolumna: informacje o lidze i zespole */
.match-meta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.team-type-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-type-badge.seniors { background-color: #e3f2fd; color: #0d47a1; }
.team-type-badge.women { background-color: #fce4ec; color: #880e4f; }
.team-type-badge.academy { background-color: #e8f5e9; color: #1b5e20; }

.match-league {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

/* Środkowa kolumna: Zespoły i godzina */
.match-teams-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.club-team {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--club-dark);
}

.home-team { text-align: right; }
.away-team { text-align: left; }

.match-time-badge {
    background-color: #f1f3f5;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 800;
    color: #212529;
    font-size: 15px;
    border: 1px solid #dee2e6;
    min-width: 70px;
    text-align: center;
}

/* Prawa kolumna: Miejsce rozegrania meczu */
.match-venue-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    justify-content: flex-end;
}

.match-venue-info.home-game {
    background-color: #ebfbee;
    color: #2b8a3e;
}

.match-venue-info.away-game {
    background-color: #fff5f5;
    color: #c92a2a;
}

/* RWD - Dla urządzeń mobilnych */
@media (max-width: 992px) {
    .match-row-card {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .match-meta-info { align-items: center; text-align: center; }
    .match-teams-display { flex-direction: column; gap: 8px; }
    .home-team, .away-team { text-align: center; }
    .match-venue-info { justify-content: center; }
}

/* --- Baner Certyfikacji PZPN --- */
.certification-banner-zone {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #d4af37; /* Elegancki, złoto-srebrny akcent nawiązujący do odznaczeń */
    padding: 20px 0;
    margin-top: -20px; /* Delikatne dosunięcie do nagłówka strony */
    margin-bottom: 40px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.certification-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cert-logo-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-text-zone h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--club-red);
    font-weight: 800;
    margin-bottom: 4px;
}

.cert-text-zone p {
    font-size: 16px;
    color: var(--club-dark);
    font-weight: 600;
    margin: 0;
}

/* Responsywność dla smartfonów */
@media (max-width: 576px) {
    .certification-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* --- Podstrona Akademia --- */

.academy-container {
    margin-bottom: 80px;
}

.academy-header-title {
    margin-bottom: 30px;
}

.academy-header-title h3 {
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--club-dark);
}

.academy-header-title .title-line {
    width: 50px;
    height: 4px;
    background-color: var(--club-red);
    margin-top: 8px;
    border-radius: 2px;
}

/* Siatka drużyn */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.academy-team-card {
    background-color: var(--club-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border-top: 4px solid var(--club-blue);
    transition: transform 0.3s ease;
}

/* Subtelny wyróżnik kolorystyczny dla sekcji dziewcząt / innych grup */
.academy-team-card.female-branch {
    border-top-color: var(--club-red);
}

.academy-team-card:hover {
    transform: translateY(-5px);
}

.team-card-top {
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.team-card-top h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--club-dark);
}

.league-tag {
    font-size: 10px;
    font-weight: 700;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.team-card-body {
    padding: 20px;
}

.coach-info {
    font-size: 15px;
    color: #444;
    margin-bottom: 15px;
}

.coach-info i {
    color: var(--club-blue);
    margin-right: 6px;
}

.team-contact-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-contact-box a {
    font-size: 13px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.team-contact-box a:hover {
    color: var(--club-red);
}

/* --- SIATKA SZTABU SZKOLENIOWEGO --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.staff-member-card {
    background-color: var(--club-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.staff-member-card:hover {
    box-shadow: 0 10px 25px rgba(26, 62, 126, 0.1);
}

.staff-img-wrapper {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-placeholder {
    font-size: 60px;
    color: #ced4da;
}

.staff-info {
    padding: 20px;
}

.staff-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--club-dark);
    margin-bottom: 4px;
}

.staff-role {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}

.license-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    background-color: #fff1f0;
    color: var(--club-red);
    border: 1px solid #ffa39e;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Sekcja Sponsorzy i Partnerzy --- */

.sponsors-zone {
    background-color: #f8f9fa; /* Jasnoszare, neutralne tło odcinające sekcję */
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.sponsors-header {
    text-align: center;
    margin-bottom: 40px;
}

.sponsors-header h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--club-dark);
    letter-spacing: 0.5px;
}

.sponsors-header .header-divider {
    width: 60px;
    height: 4px;
    background-color: var(--club-red);
    margin: 12px auto;
    border-radius: 2px;
}

.sponsors-header p {
    font-size: 14px;
    color: #6c757d;
}

/* Siatka logotypów */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Pojedyncza karta sponsora */
.sponsor-item-card {
    background-color: var(--club-white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Efekt najechania myszką */
.sponsor-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #dee2e6;
}

/* Wyróżnienie Sponsora Głównego */
.sponsor-item-card.premium-sponsor {
    border-top: 3px solid var(--club-blue);
}

.sponsor-badge {
    position: absolute;
    top: -10px;
    background-color: var(--club-blue);
    color: var(--club-white);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Kontener obrazka */
.sponsor-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-logo-img {
    max-width: 100%;
    max-height: 65px; /* Bezpieczna wysokość, by logotypy były równe */
    object-fit: contain;
    filter: grayscale(100%); /* Efekt czarno-białego logo */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Przy najechaniu przywracamy kolory logotypu */
.sponsor-item-card:hover .sponsor-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Wygląd zastępczego tekstu, gdy nie ma pliku graficznego */
.sponsor-text-placeholder {
    font-weight: 700;
    font-size: 14px;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.sponsor-item-card:hover .sponsor-text-placeholder {
    color: var(--club-blue);
}

/* Dolna belka zachęcająca do współpracy */
.sponsors-join-box {
    text-align: center;
    border-top: 1px dashed #dee2e6;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sponsors-join-box p {
    font-size: 15px;
    color: var(--club-dark);
    font-weight: 500;
}

.join-sponsors-btn {
    display: inline-block;
    background-color: var(--club-dark);
    color: var(--club-white);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.join-sponsors-btn:hover {
    background-color: var(--club-red);
    color: var(--club-white);
}

/* Responsywność */
@media (max-width: 576px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr); /* Na telefonie 2 logotypy obok siebie */
    }
}

/* --- Podstrona Terminarz (Schedule Page) --- */

.schedule-section {
    max-width: 900px; /* Zwężenie sekcji, aby oś czasu była czytelniejsza */
    margin-bottom: 80px;
}

.schedule-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #dee2e6; /* Główna linia osi czasu */
}

.schedule-fixtures-group {
    position: relative;
    margin-bottom: 40px;
}

/* Okrągły znacznik kolejki na osi czasu */
.round-badge {
    position: absolute;
    left: -43px;
    top: 5px;
    background-color: var(--club-dark);
    color: var(--club-white);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 20px;
    border: 3px solid var(--club-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Kafelki meczowe */
.fixture-card {
    background-color: var(--club-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    padding: 20px 25px;
    transition: all 0.3s ease;
    border-left: 6px solid #ced4da; /* Domyślny pasek boczny */
}

/* Wyróżnienie meczów Dom / Wyjazd za pomocą grubych lewych krawędzi */
.fixture-card.home-game {
    border-left-color: var(--club-blue); /* Niebieski dla meczów u siebie */
}

.fixture-card.away-game {
    border-left-color: var(--club-red); /* Czerwony dla meczów wyjazdowych */
}

.fixture-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Metadane nad meczem (data, godzina, status) */
.fixture-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.fixture-meta i {
    margin-right: 4px;
}

.fixture-date i {
    color: var(--club-blue);
}

.fixture-time i {
    color: var(--club-red);
}

/* Pigułki statusu meczu */
.venue-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto; /* Przesunięcie na prawą stronę paska */
}

.badge-home {
    background-color: #e6f0ff;
    color: var(--club-blue);
}

.badge-away {
    background-color: #fff0f0;
    color: var(--club-red);
}

/* Główny wiersz z zespołami */
.fixture-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 42%;
}

/* Odpowiednie wyrównanie tekstu dla zachowania symetrii */
.fixture-team:first-child {
    justify-content: flex-start;
}

.fixture-team:last-child {
    justify-content: flex-end;
    text-align: right;
}

.fixture-crest {
    height: 45px;
    width: auto;
}

.fixture-crest-placeholder {
    height: 45px;
    width: 45px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #dee2e6;
    border: 1px dashed #ced4da;
}

.fixture-team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--club-dark);
}

/* Łącznik VS */
.fixture-vs {
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    color: #adb5bd;
    background-color: #f8f9fa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

/* Dolny pasek z lokalizacją */
.fixture-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e9ecef;
    font-size: 13px;
    color: #868e96;
}

.fixture-footer i {
    color: var(--club-red);
    margin-right: 4px;
}

/* --- Responsywność dla urządzeń mobilnych --- */
@media (max-width: 768px) {
    .schedule-timeline {
        padding-left: 0;
        border-left: none; /* Ukrywamy linię osi na małych ekranach */
    }
    
    .round-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .fixture-teams-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .fixture-team {
        width: 100%;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .fixture-team:last-child {
        flex-direction: row-reverse; /* Na mobile herb rywala po prawej stronie */
    }
    
    .fixture-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .venue-badge {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* --- Zakładka Pierwszy Zespół (Klub Page) --- */

/* Główna sekcja z wielkimi kafelkami meczowymi */
.match-center-zone {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.match-card {
    background-color: var(--club-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
    border-top: 4px solid var(--club-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Wyróżnienie następnego meczu czerwienią z herbu */
.match-card.next-match-card {
    border-top: 4px solid var(--club-red);
}

.card-status-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: var(--club-blue);
    color: var(--club-white);
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-status-badge.badge-red {
    background-color: var(--club-red);
}

/* Wnętrze kafli meczowych */
.match-card-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 30px 0;
}

.team-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 40%;
}

.match-team-crest {
    height: 75px;
    width: auto;
    margin-bottom: 10px;
}

.team-crest-placeholder {
    height: 75px;
    width: 75px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ced4da;
    margin-bottom: 10px;
}

.team-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--club-dark);
    text-transform: uppercase;
}

/* Wyniki i VS */
.score-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-box {
    background-color: var(--club-dark);
    color: var(--club-white);
    font-size: 32px;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
}

.score-divider {
    font-size: 28px;
    font-weight: 800;
    color: #ced4da;
}

.vs-row {
    font-size: 22px;
    font-weight: 900;
    color: var(--club-red);
    font-style: italic;
    background-color: #fff1f0;
    padding: 8px 12px;
    border-radius: 50%;
}

/* Dolna część kafli meczowych */
.match-card-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.match-card-footer p i {
    margin-right: 5px;
    color: var(--club-blue);
}

.match-card.next-match-card .match-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.match-card.next-match-card .match-card-footer i {
    color: var(--club-red);
}

.match-report-btn {
    font-weight: 700;
    color: var(--club-blue);
    text-transform: uppercase;
    font-size: 12px;
}

.match-report-btn:hover {
    color: var(--club-red);
}

/* --- SIATKA MNIEJSZYCH KAFELKÓW POD SPODEM --- */
.sub-navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.sub-nav-card {
    background-color: var(--club-white);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    color: var(--club-white);
}

/* Kolorystyka małych kafli */
.sub-nav-card.bg-blue { background: linear-gradient(135deg, var(--club-blue) 0%, #112b59 100%); }
.sub-nav-card.bg-dark { background: linear-gradient(135deg, #222 0%, var(--club-dark) 100%); }
.sub-nav-card.bg-red  { background: linear-gradient(135deg, var(--club-red) 0%, #b31d17 100%); }

.sub-card-icon {
    font-size: 35px;
    margin-right: 20px;
    opacity: 0.9;
}

.sub-card-text h3 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.sub-card-text p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
    padding-right: 20px;
}

.sub-card-arrow {
    position: absolute;
    right: 20px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Efekt najechania myszką na małe kafelki */
.sub-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sub-nav-card:hover .sub-card-arrow {
    transform: translateX(5px);
}

/* --- Responsywność --- */
@media (max-width: 500px) {
    .match-center-zone {
        grid-template-columns: 1fr;
    }
    
    .match-card-body {
        flex-direction: column;
        gap: 20px;
    }
    
    .team-row {
        width: 100%;
    }
    
    .match-card-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- Podstrona Kadra (Squad Page) --- */

/* Nagłówek podstrony z delikatnym niebieskim akcentem */
.page-title-zone {
    background-color: var(--club-dark);
    color: var(--club-white);
    padding: 50px 0;
    text-align: center;
    border-bottom: 4px solid var(--club-blue);
    margin-bottom: 40px;
}

.page-title-zone h2 {
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

.page-title-zone p {
    color: #ccc;
    font-size: 16px;
    margin-top: 10px;
}

/* Grupowanie pozycji (np. Bramkarze, Obrońcy) */
.position-group {
    margin-bottom: 50px;
}

.position-title {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--club-dark);
    margin-bottom: 25px;
    border-left: 5px solid var(--club-red); /* Czerwony pasek przy pozycji */
    padding-left: 15px;
}

/* Siatka kafelków zawodników */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Pojedynczy kafel zawodnika */
.player-card {
    background-color: var(--club-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.player-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(26, 62, 126, 0.15);
}

/* Kontener na zdjęcie */
.player-image-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background-color: #e9ecef;
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zdjęcie wypełni kafel idealnie, bez deformacji */
    object-position: top center;
}

/* Gdy nie ma zdjęcia (placeholder) */
.placeholder-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #ced4da 100%);
}

.player-placeholder-icon {
    font-size: 80px;
    color: #adb5bd;
}

/* Informacje o zawodniku na dole karty */
.player-info {
    position: relative;
    padding: 20px;
    background: var(--club-white);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Wielki, stylowy numer w tle */
.player-number {
    position: absolute;
    right: 15px;
    bottom: 5px;
    font-size: 75px;
    font-weight: 900;
    color: rgba(26, 62, 126, 0.08); /* Delikatny błękitny odcień w tle */
    line-height: 1;
    font-style: italic;
    user-select: none;
}

.player-card:hover .player-number {
    color: rgba(230, 48, 41, 0.12); /* Zmiana na czerwony przy najechaniu */
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Detale tekstu */
.player-details h4 {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.player-details h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--club-dark);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 8px;
}

.player-position-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--club-white);
    background-color: var(--club-blue);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Automatyczne dopasowanie koloru etykiety pozycji dla kontrastu */
.position-group:nth-child(even) .player-position-label {
    background-color: var(--club-red);
}
/* --- Obsługa Rozwijanego Menu (Dropdown) --- */
.main-nav ul li.dropdown {
    position: relative; /* Baza do pozycjonowania podmenu */
}

.nav-arrow {
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

/* Ukryte podmenu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--club-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: block;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    border-top: 3px solid var(--club-blue);
    
    /* Ukrycie i animacja */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

/* Reset marginesu dla elementów wewnątrz podmenu */
.main-nav ul .dropdown-menu li {
    margin-left: 0;
    display: block;
}

.main-nav ul .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none; /* Normalna wielkość liter w podmenu */
    font-weight: 500;
    color: #444;
    border-bottom: none;
}

/* Efekt najechania na pozycję w podmenu */
.main-nav ul .dropdown-menu li a:hover {
    background-color: var(--club-light);
    color: var(--club-blue);
    border-bottom: none;
    padding-left: 25px; /* Delikatne przesunięcie w prawo */
}

/* Efekt najechania myszką na rodzica - Pokazanie podmenu */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .nav-arrow {
    transform: rotate(180deg); /* Obrót strzałki */
}

/* --- Poprawka dla wersji mobilnej (RWD) --- */
@media (max-width: 768px) {
    /* Jeśli w przyszłości włączysz menu mobilne, 
       podmenu ułoży się naturalnie pod elementem głównym */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Domyślnie ukryte w mobilce, aktywowane klasą */
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* --- Zmienne Kolorystyczne Klubu --- */
:root {
    --club-blue: #1A3E7E;       /* Głęboki błękit z herbu */
    --club-red: #E63029;        /* Czerwień z herbu */
    --club-dark: #111111;       /* Czerń/Ciemny grafit */
    --club-light: #f8f9fa;      /* Jasne tło strony */
    --club-white: #ffffff;
}

/* --- Reset i Style Globalne --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--club-light);
    color: #212529;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Górny Pasek (Top Bar) --- */
.top-bar {
    background-color: var(--club-dark);
    color: var(--club-white);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid var(--club-blue);
}

.badge {
    background-color: var(--club-red);
    color: var(--club-white);
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 10px;
}

.social-links a {
    margin-left: 15px;
    color: #ccc;
}

.social-links a:hover {
    color: var(--club-red);
}

/* --- Nagłówek i Menu --- */
.main-header {
    background-color: var(--club-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.logo-zone {
    display: flex;
    align-items: center;
}

.club-crest-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--club-dark);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
}

.logo-text p {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    padding: 5px 0;
}

.main-nav ul li a:hover, 
.main-nav ul li a.active {
    color: var(--club-blue);
    border-bottom: 2px solid var(--club-blue);
}

/* --- Sekcja Hero --- */
.hero-section {
    position: relative;
    background: #111 url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?q=80&w=1200') no-repeat center center/cover;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--club-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 62, 126, 0.45) 0%, rgba(17, 17, 17, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--club-red);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #eee;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 15px;
}

.btn-primary {
    background-color: var(--club-blue);
    color: var(--club-white);
}

.btn-primary:hover {
    background-color: #112b59;
}

.btn-secondary {
    background-color: transparent;
    color: var(--club-white);
    border: 2px solid var(--club-white);
}

.btn-secondary:hover {
    background-color: var(--club-white);
    color: var(--club-dark);
}

/* --- Sekcja Podziału (Klub / Akademia) --- */
.split-zones {
    display: flex;
    flex-wrap: wrap;
}

.zone {
    flex: 1;
    min-width: 300px;
    padding: 60px 40px;
    color: var(--club-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.zone-club {
    background: linear-gradient(rgba(26, 62, 126, 0.75), rgba(17, 17, 17, 0.8)), url('img/seniorzy.jpg') center/cover;
}

.zone-wmn {
    background: linear-gradient(rgba(230, 48, 41, 0.75), rgba(17, 17, 17, 0.8)), url('img/seniorki.jpg') center/cover;
}

.zone-academy {
    background: linear-gradient(rgba(230, 48, 41, 0.75), rgba(17, 17, 17, 0.8)), url('img/akademia.jpg') center/cover;
}

.zone-other {
    background: linear-gradient(rgba(230, 48, 41, 0.75), rgba(17, 17, 17, 0.8)), url('img/x.jpg') center/cover;
}
.zone-other1 {
    background: linear-gradient(rgba(26, 62, 126, 0.75), rgba(17, 17, 17, 0.8)), url('img/x.jpg') center/cover;
}

.zone-content h3 {
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 800;
}

.zone-content p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #f0f0f0;
}

.zone-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 4px;
}

.zone-link:hover {
    background: var(--club-white);
    color: var(--club-dark);
}

/* --- Sekcja Aktualności --- */
.news-section {
    padding: 20px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-left: 5px solid var(--club-blue);
    padding-left: 15px;
}

.section-header h2 {
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 800;
}

.view-all {
    color: var(--club-blue);
    font-weight: 700;
}

.view-all:hover {
    color: var(--club-red);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--club-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 220px;
    position: relative;
}

.news-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--club-blue);
    color: var(--club-white);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.news-card:nth-child(2) .news-category {
    background-color: var(--club-red); /* Dla akademii dajemy czerwony akcent */
}

.news-body {
    padding: 25px;
}

.news-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.news-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-body p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    color: var(--club-dark);
    font-size: 14px;
}

.read-more:hover {
    color: var(--club-blue);
}

/* --- Stopka --- */
.main-footer {
    background-color: var(--club-dark);
    color: #aaa;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h5 {
    color: var(--club-white);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--club-blue);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--club-red);
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 12px;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .top-bar .flex-space {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .club-crest-img {
        height: 45px;
    }
}