/* Tutaj możesz wpisać własny kod CSS, który zostanie dołączony do każdej podstrony */ 
@media (max-width: 992px) {
#baner_desktop{display:none}
#baner_mobile{display:block}
}
@media (min-width: 993px) {
#baner_desktop{display:block}
#baner_mobile{display:none}
}

.subpages-nav .nav-item:nth-child(2) a{
    color: #0092CE; 
}

/* KOD DO SCROLOWANIA TABELKI */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* lepsze przewijanie na iOS */
}

.table-wrapper table {
    min-width: 600px; /* wymusza scroll na małych ekranach */
    border-collapse: collapse;
}

 /* ===============================
    SEKCJA GALERII ZDJĘĆ - Z WIDOCZNYM SUWAKIEM
    =============================== */
.gallery-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.photo-gallery {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 40px 20px 40px;
    overflow-x: auto; /* UMOŻLIWIA PRZEWIJANIE */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: auto; /* Włącz suwak dla Firefox */
    margin: 0 auto;
    justify-content: flex-start;
}

/* Włączamy domyślny pasek przewijania dla WebKit (Chrome/Safari) */
.photo-gallery::-webkit-scrollbar {
    display: block;
    height: 10px;
}
.photo-gallery::-webkit-scrollbar-thumb {
    background: #f52525;
    border-radius: 5px;
}
.photo-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Styl pojedynczego elementu galerii */
.gallery-item {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    overflow: hidden; /* ZMIANA: Zmienione na hidden by zaokrąglić rogi */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    flex-shrink: 0;
    height: 400px;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(90,45,130,0.3);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

/* ===============================
    LIGHTBOX (MODAL) - OSTATECZNA WERSJA Z NAPRAWIONYM POZYCJONOWANIEM
    =============================== */
.lightbox {
    /* Wymuszenie pozycji i widoczności Lightboxa */
    display: none !important;
    position: fixed !important;
    z-index: 2147483647 !important; /* Maksymalna wartość */
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;

    /* Wymuszenie tła i centrowania */
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px) !important;

    /* Centrowanie */
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;

    /* Animacje */
    animation: fadeIn 0.3s forwards !important;
}

.lightbox.show {
    /* KLUCZOWE: Włącza widok i centrowanie */
    display: flex !important;
}

/* Styl dla samego obrazu w Lightboxie (.lightbox-content to tag <img>) */
.lightbox-content {
    display: block !important;

    /* Wymiary obrazu */
    max-width: 85% !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;

    /* Wygląd */
    border-radius: 12px !important;
    background: #fff !important;
    padding: 5px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9) !important;

    /* Z-Index i pozycja */
    position: relative !important;
    z-index: 1 !important;
    margin: auto !important;

    animation: zoomIn 0.4s forwards !important;
}

/* Styl dla przycisku zamknięcia 'X' */
.lightbox-close {
    position: absolute !important;
    top: 25px !important;
    right: 40px !important;
    color: #fff !important;
    font-size: 55px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    z-index: 2147483647 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ffd93e !important;
    text-decoration: none !important;
}


/* Animacje Lightbox */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsywność galerii i lightboxa */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.2rem;
    }
    .photo-gallery {
        padding: 0 15px 15px 15px;
    }
    .gallery-item {
        width: 200px;
        height: 267px;
    }
    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 45px;
    }
    .lightbox-content {
        max-width: 95% !important;
        max-height: 95vh !important;
    }
}

/* Styl paska głównego */
.countdown-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #C01671;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease-in-out, opacity 0.3s ease;
    gap: 15px;
}

/* Stan ukryty paska */
.countdown-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Tekst odliczania */
#countdown-timer {
    color: #FFFFFF; 
    font-weight: bold; /* Dodane pogrubienie */
    font-variant-numeric: tabular-nums; /* Zapobiega "skakaniu" cyfr */
    min-width: 120px;
    font-size: 1.1em; /* Opcjonalnie: lekkie powiększenie, by licznik był czytelniejszy */
}

/* Styl przycisku wewnątrz paska */
.btn-register {
    background-color: #006cc1;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.btn-register:hover {
    background-color: #006cc1;
}

/* Link owijający przycisk */
.btn-link {
    text-decoration: none;
}

/* Przycisk zamknięcia (X) */
.close-bar {
    position: absolute;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    line-height: 1;
}

.close-bar:hover {
    color: #fff;
}

/* RWD - Dostosowanie do telefonów */
@media (max-width: 768px) {
    .countdown-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-bottom: 20px;
    }
    
    #countdown-text {
        font-size: 14px;
    }

    .close-bar {
        top: 5px;
        right: 10px;
    }
}

/* ===============================
    PROGRAM / HARMONOGRAM
    =============================== */
.program {
    font-family: sans-serif;
    background-color: #ffffff;
    padding: 20px;
    color: #03142E;
}

.program-container { max-width: 1000px; margin: 0 auto; }

.program-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #03142E;
}

.program-header h2 {
    font-size: 2.5rem;
    color: #03142E;
    margin-bottom: 10px;
}

.program-info { font-style: italic; font-size: 0.9rem; color: #666; }

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.tab-button {
    background-color: #5c85ad;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active { background-color: #0A4278; color: #ffffff; }
.tab-button:hover:not(.active) { background-color: #0A4278; }

.day-schedule { display: none; background-color: #ffffff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; }
.day-schedule.active { display: block; }

.day-title {
    font-size: 1.8rem;
    color: #37474F;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.schedule-list { list-style: none; padding: 0; margin: 0; }

.schedule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }

.schedule-time {
    background-color: #0A4278;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 20px;
}

.schedule-content { flex-grow: 1; }

.schedule-title { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: bold; color: #37474F; }

.sub-schedule { list-style-type: none; padding-left: 0; margin-top: 10px; font-size: 0.95rem; color: #555; }

.sub-schedule li { margin-bottom: 5px; position: relative; padding-left: 20px; }
.sub-schedule li::before { content: '•'; color: #6a1B9A; font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }

.schedule-item.break { background-color: #e8eaf6; }
.schedule-item.sponsored { background-color: #eceff1; border-left: 5px solid #37474F; }
.schedule-item.sponsored .schedule-time { background-color: #37474F; }

/* MOBILNE URZĄDZENIA */
@media (max-width: 600px) {
    .program-header h2 { font-size: 2rem; }
    .schedule-item { flex-direction: column; align-items: flex-start; }
    .schedule-time { margin-bottom: 10px; margin-right: 0; width: auto; }
    .sub-schedule { margin-left: 0; padding-left: 20px; }
}
