/* nadpisanie main.css */

#wrapper {
    padding-top: 1.5em;
}

.post > header {
    margin-bottom: 1.5em !important;
}

.post > header .title {
    padding: 1.75em 3em 1.3em 3em !important;
}

#footer .copyright {
    font-size: 0.75em;
}

#main p {
    text-align: justify;
}

/* ==========================================================================
   PROSTOKĄTNE LOGO NA PEŁNĄ SZEROKOŚĆ TEKSTU (STYL POSTÓW)
   ========================================================================== */

/* Zmiana układu intro na pionowy, aby elementy były równe */
#sidebar #intro {
    display: block !important;
    text-align: left !important;
}

/* Kontener na logo przyjmuje pełną szerokość bloku tekstu */
#sidebar #intro .logo-image-link {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.5em 0 !important;
    border-bottom: none !important;
}

/* Obrazek stylizowany dokładnie jak duże zdjęcia w artykułach poniżej */
#sidebar #intro .sidebar-vertical-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
    border: solid 1px rgba(160, 160, 160, 0.3) !important;
    padding: 0.75em !important; /* Charakterystyczna szeroka ramka HTML5 UP */
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    transition: opacity 0.2s ease !important;
}

#sidebar #intro .sidebar-vertical-logo:hover {
    opacity: 0.85 !important;
}

/* Przywrócenie oryginalnego formatowania i marginesów dla tekstu */
#sidebar #intro header {
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

#sidebar #intro header h2 {
    text-align: center !important;
    font-size: 2em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.3 !important;
}

#sidebar #intro header p {
    text-align: center;
    font-size: 0.8em !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}




/* ==========================================================================
   GÓRNE MENU DWUPOZIOMOWE (STYL ORYGINALNY)
   ========================================================================== */

#header {
    overflow: visible !important;
    z-index: 10005 !important;
}

#header .links, 
#header .links ul {
    overflow: visible !important;
}

#header .links ul li {
    margin-left: 0.5em;
    padding-left: 0.5em;
}

#header .links ul li.dropdown {
    position: relative;
}

/* Kontener podmenu dopasowany do stylu nagłówka */
#header .links ul li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: solid 1px rgba(160, 160, 160, 0.3);
    min-width: 240px;
    padding: 0;
    margin: 0;
    z-index: 10010 !important;
    list-style: none;
}

/* Usunięcie linii podziału dla elementów wewnątrz podmenu */
#header .links ul li .dropdown-menu li {
    border-left: none !important;
    border-bottom: solid 1px rgba(160, 160, 160, 0.15) !important;
    width: 100%;
    line-height: 1;
    padding: 0;
    margin: 0;
}

#header .links ul li .dropdown-menu li:last-child {
    border-bottom: none !important;
}

/* Identyczny styl linków podmenu (wielkie litery, font, waga, kolor) */
#header .links ul li .dropdown-menu a {
    display: block;
    padding: 1.1em 1.2em !important;
    font-size: 0.7em !important;
    font-weight: 400 !important;
    font-family: "Raleway", Helvetica, sans-serif;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: #3c3b3b !important;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Oryginalny efekt podświetlenia szablonu po najechaniu */
#header .links ul li .dropdown-menu a:hover {
    background-color: rgba(160, 160, 160, 0.07) !important;
    color: #2ece7f !important; /* Domyślny zielony akcent Future Imperfect */
}

/* Wyświetlanie po najechaniu */
#header .links ul li.dropdown:hover .dropdown-menu {
    display: block;
}


/* ==========================================================================
   NAPRAWA CHOWANIA SIĘ DROPDOWNU POD TREŚĆ STRONY
   ========================================================================== */

/* 1. Odblokowanie przestrzeni pod nagłówkiem (wyłączenie ucinania treści) */
#header {
    overflow: visible !important;
    z-index: 10005 !important; /* Wyższy niż reszta strony */
}

/* 2. Zapewnienie, że kontenery nawigacji również nie blokują wystających elementów */
#header .links {
    overflow: visible !important;
}

#header .links ul {
    overflow: visible !important;
}

/* 3. Wymuszenie najwyższego priorytetu dla samego rozwijanego podmenu */
#header .links ul li .dropdown-menu {
    z-index: 10010 !important;
}

/* ==========================================================================
   ZWARTE DWUPOZIOMOWE MENU MOBILNE (NATURAL STYLE)
   ========================================================================== */
.mobile-nested-menu {
    padding: 0 !important;
    margin: 0 !important;
}
.mobile-nested-menu li {
    border-top: none !important;
    padding: 0 !important;
}
.mobile-nested-menu a, 
.mobile-nested-menu .submenu-label {
    display: block;
    padding: 0.6em 0.5em !important;
    font-size: 0.75em !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    color: inherit !important;
    cursor: pointer;
    border: 0 !important;
}
/* Obsługa strzałki i reset domyślnego znacznika details */
.mobile-nested-menu .submenu-label {
    list-style: none;
}
.mobile-nested-menu .submenu-label::-webkit-details-marker {
    display: none;
}
.mobile-nested-menu .submenu-label .arrow {
    float: right;
    transition: transform 0.2s ease;
}
details[open] .submenu-label .arrow {
    transform: rotate(180deg);
}
/* Podmenu pozbawione dodatkowego tła */
.mobile-nested-menu .submenu-links {
    list-style: none;
    padding: 0 0 0 1em !important;
    margin: 0 !important;
    background: transparent !important;
}
.mobile-nested-menu .submenu-links li {
    border-bottom: none !important;
}
.mobile-nested-menu .submenu-links a {
    padding: 0.4em 0.5em !important;
    font-size: 0.7em !important;
    font-weight: 400 !important;
}


/* ==========================================================================
   WZMOCNIONA WIDOCZNOŚĆ GÓRNEGO MENU
   ========================================================================== */

/* 1. Zwiększenie widoczności głównych linków w nagłówku */
#header .links ul li a {
    font-size: 0.8em !important;      /* Większa czcionka (oryginalnie ok. 0.6em-0.7em) */
    font-weight: 900 !important;      /* Maksymalne pogrubienie fontu "Raleway" */
    letter-spacing: 0.2em !important; /* Wyrazisty odstęp między literami */
    color: #222222 !important;        /* Głęboka, czytelna czerń zamiast szarości */
    padding: 0 0.5em !important;      /* Większa przestrzeń do kliknięcia */
    transition: all 0.2s ease-in-out;
}

/* Intensywniejsze podświetlenie głównego menu z delikatnym tłem */
#header .links ul li a:hover {
    color: #2ece7f !important;        /* Charakterystyczny zielony akcent */
    background-color: rgba(160, 160, 160, 0.08) !important;
}

/* 2. Zwiększenie widoczności rozwijanego podmenu (Dropdown) */
#header .links ul li .dropdown-menu {
    border: solid 2px #3c3b3b !important; /* Grubsza, ciemniejsza ramka w stylu Future Imperfect */
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12) !important; /* Mocniejszy cień, odcinający menu od strony */
    min-width: 260px !important;
    background-color: #ffffff !important;
}

/* Elementy wewnątrz podmenu */
#header .links ul li .dropdown-menu li {
    border-bottom: solid 1px rgba(160, 160, 160, 0.3) !important;
}

/* Linki wewnątrz podmenu - maksymalnie czytelne i spójne */
#header .links ul li .dropdown-menu a {
    padding: 1.2em 1.5em !important;
    font-size: 0.75em !important;     /* Proporcjonalnie dopasowany rozmiar */
    font-weight: 800 !important;      /* Mocne pogrubienie */
    color: #222222 !important;
    letter-spacing: 0.2em !important;
}

/* Wyraziste podświetlenie wewnątrz podmenu */
#header .links ul li .dropdown-menu a:hover {
    background-color: #3c3b3b !important; /* Ciemne tło po najechaniu myszką */
    color: #ffffff !important;           /* Biały tekst dla maksymalnego kontrastu */
}


/* Custom Contact Section (Editorial style) */
ul.contact-editorial {
    list-style: none;
    padding-left: 0;
}

ul.contact-editorial li {
    margin-bottom: 0.5em;
    padding-left: 2.25em;
    position: relative;
}

ul.contact-editorial li:before {
    top: 0;
    left: 0;
    width: 2em;
    line-height: 1.5em;
    text-align: center;
    position: absolute;
    color: #2ebaae; /* Kolor akcentu z Future Imperfect */
    font-size: 1.25em;
}

ul.contact-editorial li:last-child {
    margin-bottom: 0;
}

/* video yt */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporcje 16:9 (9 / 16 * 100%) */
    height: 0;
    overflow: hidden;
    margin-bottom: 2em; /* Odstęp pod filmem pasujący do stylu szablonu */
    border-radius: 4px; /* Opcjonalnie: delikatne zaokrąglenie rogów pasujące do grafik w szablonie */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

ul.plain {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

ul.plain li {
    padding-left: 0 !important;
}

@media screen and (max-width: 736px) {
    #header h1 {
        display: none !important;
    }

    .sidebar-vertical-logo {
        width: 80% !important;
    }
}