/* --- RESET I PODSTAWY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111;
    color: white;
}

/* --- STICKY HEADER (Desktop & Mobile) --- */
.sticky-header {
    position: fixed;
    top: -100px; /* Ukryty na starcie, wyzwalany przez JS */
    left: 0;
    width: 100%;
    height: 80px;
    background: #1a1a1a; /* Kolor paska dni */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: top 0.4s ease;
    border-bottom: 2px solid #333;
}

.sticky-header.visible {
    top: 0;
}

.header-left-part, .header-right-part {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-text {
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 2.2vw, 30px);
    letter-spacing: -0.5px;
}

.header-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 55px;
    z-index: 2001;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.header-logo-center:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-left { 
    background-color: black; 
    background-image: url('tlocz.png'); /* Twoje zdjęcie PNG */
    background-size: cover;      /* Zdjęcie wypełni całą połowę */
    background-position: center; /* Wycentrowanie grafiki */
    background-repeat: no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
}

.hero-right { 
    background-color: white; 
    background-image: url('tlob.png'); /* Twoje zdjęcie PNG */
    background-size: cover;      /* Zdjęcie wypełni całą połowę */
    background-position: center; /* Wycentrowanie grafiki */
    background-repeat: no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
}

.main-logo {
    position: absolute;
    top: 17%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(580px, 30vw, 730px);
    z-index: 10;
    pointer-events: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* --- SPECYFICZNA ANIMACJA REVEAL DLA GŁÓWNEGO LOGO --- */
.main-logo.reveal {
    opacity: 0;
    /* Stan startowy: wycentrowane w poziomie i przesunięte o 30px w dół od swojej pozycji */
    transform: translate(-50%, calc(-50% + 30px));
    transition: transform 0.8s ease-out, opacity 0.8s ease-out, filter 0.3s ease;
}

.main-logo.reveal.active {
    opacity: 1;
    /* Stan końcowy: idealnie wycentrowane */
    transform: translate(-50%, -50%);
}

/* POPRAWKA DLA MOBILE (żeby animacja działała z !important) */
@media (max-width: 768px) {
    .main-logo.reveal {
        transform: translate(-50%, calc(-50% + 20px)) !important;
    }
    .main-logo.reveal.active {
        transform: translate(-50%, -50%) !important;
    }
}

/* Hover na logo główne tylko na desktopie */
@media (min-width: 769px) {
    .main-logo:hover {
        filter: brightness(1.2);
        transform: translate(-50%, -50%) scale(1.05) !important;
    }
}

.org-logo {
    width: clamp(200px, 15vw, 350px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.org-logo:hover {
    transform: scale(1.1);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* --- PRZYCISKI --- */
.btn {
    padding: 16px 42px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: .3s;
    text-transform: uppercase;
}
.btn.psk { background: #c3df02; color: black; }
.btn.ujk { background: #ff751f; color: white; }
.btn:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.btn-margin { margin-top: 40px; }

/* --- NAGŁÓWKI DNI (Sticky) --- */
.day-header {
    width: 100%;
    background: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 80px; 
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.day-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(35px, 5vw, 80px);
    color: white;
    letter-spacing: 2px;
}

/* --- BLOKI WYDARZEŃ (Events) --- */
.events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #000;
}

.event {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
}

.psk-event { background: #000; color: white; }
.ujk-event { background: #fff; color: black; }

/* Hover efekt dla kafelków */
.psk-event:hover { 
    transform: scale(1.02);
    z-index: 5;
}
.ujk-event:hover { 
    background: #f8f8f8;
    transform: scale(1.02);
    z-index: 5;
}

.event-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.4s ease;
}

.event:hover .event-content {
    transform: translateY(-10px);
}

.event-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    color: inherit;
}

/* Kolory tytułów na hover (Koncerty) */
.psk-event:hover .event-title:not(.title-static) { color: #c3df02; }
.ujk-event:hover .event-title:not(.title-static) { color: #ff751f; }

/* Statyczne tytuły (Korowód, Odpoczynek) zostają bez zmian koloru */
.psk-event:hover .title-static { color: #fff; }
.ujk-event:hover .title-static { color: #000; }

.event-info {
    font-size: 19px;
    opacity: 0.7;
    margin-top: 5px;
    transition: opacity 0.3s ease;
}
.event:hover .event-info { opacity: 1; }

/* --- ETYKIETY (Labels) --- */
.uni-labels {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.uni-label {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
}

.event:hover .uni-label { transform: scale(1.1); }

.psk-label { background: #333 !important; color: white !important; }
.ujk-label { background: #eee !important; color: black !important; }

.psk-event .uni-label:not(.ujk-label) { background: #222; color: white; }
.ujk-event .uni-label { background: #eee; color: black; }

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- POPRAWKI MOBILNE (Max 768px) --- */
@media (max-width: 768px) {
    .sticky-header {
        height: 65px;
    }

    .header-left-part, .header-right-part {
        flex: 1; /* Każda część zajmuje dokładnie połowę wolnego miejsca */
        display: flex;
        justify-content: center; /* Centruje napis w jego połówce */
        align-items: center;
    }

    .header-text {
        font-size: 16px; /* Zwiększono rozmiar (było 11px) */
        font-weight: 800;
        letter-spacing: 1px; /* Dodano oddech między literami */
        white-space: nowrap;
        text-transform: none; /* Zachowuje PŚK / UJK z HTML */
        color: white;
    }

    .header-logo-center {
        height: 28px; /* Nieco większe logo dla balansu */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .day-header { 
        top: 65px; 
    }

    /* Hero: Góra (PŚK Black), Dół (UJK White) */
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 100vh;
    }

    /* Logo mobilne: Przesunięte w dół (51.5%) na łączenie kolorów */
    .main-logo {
        content: url('logopion.png'); 
        top: 51% !important; 
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 480px;
        filter: none !important;
    }

    .events { grid-template-columns: 1fr; }
    
    .event { 
        min-height: 380px; 
        padding: 40px 20px;
    }

    .org-logo {
        width: 150px;
    }

    .hero-content {
        gap: 8px !important;
    }
    .btn {
        padding: 10px 25px;  /* Zmniejszono z 16px 42px */
        font-size: 12px;     /* Zmniejszono z 16px */
        font-weight: 800;    /* Zachowujemy grubość napisu */
    }
}

/* --- STYLE PODSTRON --- */
.page-psk { background-color: black; color: white; }
.page-ujk { background-color: white; color: black; }

.subpage-header {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.page-psk .subpage-header { background: rgba(0,0,0,0.9); }
.page-ujk .subpage-header { background: rgba(255,255,255,0.9); border-bottom: 1px solid #eee; }

.header-logo-sub {
    height: 60px;
    transition: transform 0.3s;
}
.header-logo-sub:hover { transform: scale(1.1); }

/* Marginesy podstron */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 50px; /* Większy margines boczny i górny */
}

/* Logo uczelni do lewej + Hoover */
.org-logo-wrapper { 
    text-align: center; 
    margin-top: 50px;
    margin-bottom: 80px; 
    padding-left: 10px;
}

.sub-org-logo { 
    width: 380px; /* Powiększone logo na podstronach */
    max-width: 90%; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.sub-org-logo:hover {
    transform: scale(1.1); /* Efekt hover jak na głównej */
}

/* --- GRID GALERII --- */
.gallery-grid {
    display: grid;
    /* Minimum 2 plakaty obok siebie */
    grid-template-columns: repeat(2, 1fr); 
    gap: 50px;
    padding: 20px 0;
    /* Wyśrodkowanie krótszych plakatów w pionie */
    align-items: center; 
}

/* Na bardzo szerokich ekranach 3 plakaty */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active { display: flex; }
.lightbox.active img { transform: scale(1); }

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 60px;
    cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content-container { padding: 40px 20px; }
    .sub-org-logo { width: 220px; }
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); /* Nadal 2 plakaty na mobile */
        gap: 20px; 
    }
    .close-lightbox { right: 20px; top: 10px; }
}

/* --- STOPKI (FOOTERS) --- */

/* GŁÓWNA STRONA: Podział 50/50 Czarno-Biały */
.main-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    overflow: hidden; /* Zabezpieczenie dla animacji */
    padding-bottom: 0px;
}

.footer-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.footer-psk-side { background-color: black; }
.footer-ujk-side { background-color: white; }

/* Obrazki na stronie głównej + HOVER */
.footer-img {
    width: 90%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

.footer-img:hover {
    transform: scale(1.05); /* Delikatne powiększenie */
    filter: brightness(1.1); /* Lekkie rozjaśnienie */
}

/* PODSTRONY: Jedna mniejsza stopka */
.sub-footer {
    padding: 30px 20px;
    text-align: center;
    /* Kolor tła dopasuje się do body podstrony (czarny/biały) */
    padding-bottom: 0px;
}

/* Obrazki na podstronach + HOVER */
.footer-img-sub {
    width: 80%;
    max-width: 700px;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

.footer-img-sub:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Responsywność */
@media (max-width: 1024px) {
    .main-footer {
        grid-template-columns: 1fr; /* Na mobile jedna pod drugą */
    }
    .footer-img {
        max-width: 400px;
    }
    .sub-footer {
        padding-top: 45px;   /* minimalny odstęp od góry */
        padding-bottom: 20px;
    }
}

/* --- DUŻE PRZYCISKI BILETÓW NA PODSTRONACH --- */
.cta-wrapper {
    margin-top: 80px; /* Duży odstęp od galerii */
    margin-bottom: 60px;
    text-align: center;
}

.btn-large {
    display: inline-block;
    padding: 40px 110px;
    font-size: clamp(18px, 2.5vw, 26px); /* Skaluje się z ekranem */
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px; /* Zaokrąglony kształt pigułki */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    letter-spacing: 1px;
}

/* Kolor PŚK (Limonkowy) */
.psk-cta {
    background-color: #c3df02;
    color: black;
}

/* Kolor UJK (Pomarańczowy) */
.ujk-cta {
    background-color: #ff751f;
    color: white;
}

/* Efekt najechania */
.btn-large:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Mobile: Nieco mniejszy padding na telefonach */
@media (max-width: 768px) {
    .btn-large {
        padding: 25px 40px;
        width: 90%; /* Prawie cała szerokość na mobile */
    }
    .cta-wrapper {
        margin-top: 50px;
        margin-bottom: 10px;
    }
}

/* --- POPRAWKA DLA LINKÓW W HEADERZE --- */
.header-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-link:hover {
    opacity: 0.7; /* Delikatny efekt po najechaniu na tekst w headerze */
}

/* Upewnij się, że header-text nie zmienia koloru na niebieski (standardowy dla linków) */
.header-text {
    color: white;
}

/* --- BANER COOKIE --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Ukryty na starcie */
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-top: 2px solid #333;
    padding: 20px 0;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.active {
    bottom: 0; /* Wyjeżdża z dołu */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    gap: 20px;
}

.cookie-content p {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.cookie-btns {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}

.cookie-btn.accept {
    background-color: #c3df02; /* Limonkowy PŚK */
    color: black;
}

.cookie-btn.decline {
    background-color: transparent;
    color: white;
    border: 1px solid #555;
}

.cookie-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-btns {
        width: 100%;
        justify-content: center;
    }
}
/* --- LINK DO USTAWIEŃ COOKIE W STOPCE --- */
.cookie-footer-area {
    grid-column: 1 / -1; /* Rozciąga się na całą szerokość na stronie głównej */
    width: 100%;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

#change-cookie-settings {
    color: #888; /* Dyskretny szary */
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

/* Efekt na czarnym tle (PŚK i Główna lewa) */
#change-cookie-settings:hover {
    color: #fff;
}

/* Poprawka dla białej podstrony UJK */
.page-ujk #change-cookie-settings {
    color: #666;
}
.page-ujk #change-cookie-settings:hover {
    color: #000;
}

.cookie-link {
    color: #888; /* Dyskretny szary */
    text-decoration: underline; /* Zostawiamy podkreślenie, by było wiadomo, że to link */
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #fff; /* Rozjaśnia się po najechaniu */
}

/* --- STYLIZACJA STRONY POLITYKI --- */
.page-policy {
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.policy-container {
    max-width: 900px;
    margin: 120px auto 60px; /* Margines górny uwzględnia header */
    padding: 0 30px;
}

.policy-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 70px);
    margin-bottom: 10px;
    color: #fff;
}

.policy-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #c3df02; /* Limonkowy kolor dla nagłówków sekcji */
}

.policy-content p, .policy-content li {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.last-update {
    font-style: italic;
    color: #888 !important;
    margin-bottom: 40px;
}

.policy-link {
    color: #ff751f; /* Pomarańczowy dla linków w tekście */
    text-decoration: underline;
}

.policy-link:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .policy-container {
        margin-top: 100px;
        padding: 0 20px;
    }
}

/* --- SPECYFICZNY BANER DLA PODSTRONY UJK (BIAŁY) --- */

/* Tło banera na białe */
.page-ujk .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #ddd;
}

/* Tekst na czarny */
.page-ujk .cookie-content p {
    color: #000;
}

/* Przycisk Akceptuj na pomarańczowy (UJK) */
.page-ujk .cookie-btn.accept {
    background-color: #ff751f; /* Pomarańczowy UJK */
    color: white;
}

/* Przycisk Odrzuć na czarny/szary */
.page-ujk .cookie-btn.decline {
    color: #444;
    border: 1px solid #ccc;
}

/* Link do polityki na pomarańczowy */
.page-ujk .cookie-link {
    color: #ff751f;
}

/* Hover dla przycisków na białym tle */
.page-ujk .cookie-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 117, 31, 0.3);
}

/* --- STYLIZACJA STRONY 404 --- */
.page-404 {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.error-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(120px, 20vw, 250px);
    line-height: 0.8;
    color: #fff;
    margin-bottom: 20px;
}

.error-line {
    width: 80px;
    height: 6px;
    background-color: #c3df02; /* Kolor PŚK */
    margin: 0 auto 30px;
}

.error-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    color: #888;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Dodatkowa poprawka dla przycisku na 404 */
.page-404 .btn {
    padding: 18px 45px;
}

@media (max-width: 768px) {
    .error-content h1 {
        font-size: 150px;
    }
    .error-line {
        width: 60px;
    }
}
/* --- LOGIKA ANIMACJI STOPKI (Desktop vs Mobile) --- */

/* TYLKO NA DESKTOPACH ) */
@media (min-width: 769px) {
    .footer-column.reveal,
    .sub-footer.reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* NA MOBILKACH (ekrany poniżej 768px) */
@media (max-width: 768px) {
    .footer-img.reveal,
    .footer-img-sub.reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- LOGO CK (Zredukowana wielkość na desktop) --- */
.ck-logo {
    position: absolute;
    bottom: 9%; /* Pozycja pionowa na desktopie */
    left: 50%;
    transform: translateX(-50%) translateY(30px); 
    opacity: 0;
    
    /* Zmniejszone logo (było 200-320px) */
    width: clamp(90px, 10vw, 110px); 
    z-index: 20;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out, filter 0.3s ease;
    cursor: pointer;

    text-decoration: none;
}

.ck-logo.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ck-logo:hover {
    transform: translateX(-50%) scale(1.1);
    filter: brightness(1.1);
}

/* POPRAWKA MOBILNA */
/* --- POPRAWKA CK LOGO NA MOBILKI --- */
@media (max-width: 768px) {
    .ck-logo {
        bottom: 70px; /* Pozycja pod przyciskiem UJK */
        width: 70px;  /* Wielkość herbu na telefonie */
        
        transform: translateX(-50%) translateY(20px);
        filter: none !important;
    }

    .ck-logo.active {
        transform: translateX(-50%) translateY(0);
    }
    
    /* iPhone SE fix */
    @media (max-height: 670px) {
        .ck-logo {
            width: 65px;
            bottom: 30px;
        }
    }
}


/* --- OFICJALNE LOGOTYPY UCZELNI W HERO (POWIĘKSZONE) --- */
.official-uni-logo {
    width: clamp(220px, 18vw, 350px); 
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
    display: block;
}

.official-uni-logo:hover {
    transform: scale(1.08); /* Wyraźniejszy hover */
    filter: brightness(1.1);
}

/* Dostosowanie odstępów w Hero Content (teraz tylko 2 elementy: Logo i Button) */
.hero-content {
    gap: 10px; /* Zwiększony odstęp, żeby wypełnić przestrzeń */
}

@media (max-width: 768px) {
    .official-uni-logo {
        width: 160px; /* Solidna wielkość na mobile */
    }

    .hero-content {
        gap: 20px; /* Mniejszy gap na mobile, żeby nie nachodziło na logo środkowe */
    }

    .hero-left .hero-content {
        padding-top: 60px;
    }

    .hero-right .hero-content {
        padding-bottom: 70px;
    }
    
    .sub-org-logo {
        width: 250px;
    }
    .hero-left .hero-content, 
    .hero-right .hero-content {
        justify-content: center !important; /* Centrowanie góra-dół wewnątrz połowy */
        padding-top: 0 !important;
        padding-bottom: 30px !important;
        gap: 15px; /* Odstęp między logo a przyciskiem */
    }
}

/* iPhone SE fix (nadpisuje wartości wyżej) */
@media (max-height: 670px) and (max-width: 480px) {
    .official-uni-logo {
        width: 120px !important;
    }
    .hero-content {
        gap: 10px !important;
    }
}

/* --- SPECJALNY BLOK DLA PONIEDZIAŁKU --- */

.event.full-day {
    grid-column: span 2; 
    background-color: #a4a4a4; /* Średni szary (idealny mid-grey) */
    color: white;
    min-height: 650px;
}

/* Hover dla szarego bloku - brak zmiany koloru tła */
.event.full-day:hover {
    background-color: #a4a4a4; /* Zostaje taki sam */
    transform: scale(1.01);
}

/* PLAKIETKA PŚK - Czarna zgodnie z prośbą */
.psk-label {
    background-color: #000 !important;
    color: white !important;
}

/* Centrowanie plakietek w szerokim bloku */
.event.full-day .uni-labels {
    justify-content: center;
    gap: 15px;
}

/* Responsywność */
@media (max-width: 768px) {
    .event.full-day {
        grid-column: span 1;
        min-height: 550px;
        padding: 60px 20px;
    }
}

/* --- BLOKI ZE ZDJĘCIAMI W GRAFIKU --- */

.psk-concert-img {
    background-image: url('pskkoncert.jpg');
    background-size: cover;
    background-position: center;
    border: none;
}

.ujk-concert-img {
    background-image: url('ujkkoncert.jpg');
    background-size: cover;
    background-position: center;
    border: none;
}

/* Hover dla bloków ze zdjęciami - żeby zachowywały się jak reszta */
.psk-concert-img:hover, .ujk-concert-img:hover {
    transform: scale(1.02);
    z-index: 5;
}

/* Responsywność dla mobile (zdjęcia pod lub nad koncertami) */
@media (max-width: 768px) {
    .psk-concert-img, .ujk-concert-img {
        min-height: 250px; /* Nieco niższe na mobile, żeby nie zajmowały całego ekranu */
    }
    #sobota .events {
        display: flex;
        flex-direction: column;
    }

    #sobota .ujk-event {
        order: 1; /* Blok z tekstem i przyciskiem idzie na górę */
    }

    #sobota .ujk-concert-img {
        order: 2; /* Zdjęcie idzie na dół */
    }
    .org-logo-wrapper { 
        text-align: center; 
        margin-top: 20px;
        margin-bottom: 40px; 
        padding-left: 10px;
    }
}

/* --- DATA W SEKCI HERO --- */
.hero-date {
    position: absolute;
    /* DESKTOP: Pod logo */
    top: 27%; 
    left: 50%;
    /* Stan startowy: wycentrowane w poziomie i przesunięte w dół */
    transform: translate(-50%, 20px);
    opacity: 0;
    
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(20px, 2.5vw, 40px);
    letter-spacing: 4px;
    white-space: nowrap;
    z-index: 15;
    
    background: linear-gradient(to right, #fff 50%, #000 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Stan po aktywacji animacji (Reveal) */
.hero-date.active {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- DOPASOWANIE MOBILNE --- */
@media (max-width: 768px) {
    .hero-date {
        top: 41% !important; 
        left: 50%;
        transform: translate(-50%, 15px) !important;
        
        /* MOBILE: Biały kolor na czarnym tle */
        background: none !important;
        -webkit-text-fill-color: #fff !important;
        color: #fff !important;
        
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-date.active {
        opacity: 1 !important;
        transform: translate(-50%, 0) !important;
    }
}

@media (max-width: 768px) {
    .page-policy .sticky-header {
        top: 0 !important;
    }
    
    .page-policy .policy-container {
        margin-top: 80px;
    }
}