* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #1AD7EF;
    font-family: 'Armata', arial, sans-serif;
    font-size: 16px;
    line-height: 1.6em;
    color: #333333;
}

a {
    color: #EC17AA;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1AD7EF;
}

#wrapper_outer {
    width: 100%;
    background-color: #1AD7EF;
    min-height: 100vh;
}

#wrapper {
    width: 1176px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* Header */
#header {
    background-color: #1AD7EF;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

#logo {
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    width: 130px;
    height: 130px;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

#header_info {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

#header_info h1 {
    color: #EC17AA;
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.adres {
    color: #ffffff;
    font-size: 16px;
}

.adres a.mapa {
    color: #EC17AA;
    text-decoration: underline;
    margin-left: 10px;
}

#telefon {
    color: #EC17AA;
    font-size: 29px;
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
}

#telefon span {
    font-size: 17px;
    font-weight: normal;
}

.cleaner {
    clear: both;
    height: 0;
    line-height: 0;
}

/* Content wrapper */
#content_wrapper {
    display: flex;
    background-color: #1AD7EF;
}

/* Sidebar */
#sidebar {
    width: 240px;
    background-color: #1AD7EF;
    min-height: 600px;
    margin-right: 20px;
}


.menu_item {
    background-color: #19C5E0;
    margin-bottom: 2px;
}

.menu_item a {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.menu_item:hover,
.menu_item.active {
    background-color: #EC17AA;
}

.menu_item a:hover {
    padding-left: 30px;
}

/* Godziny box */
.godziny_box {
    background-color: #19C5E0;
    padding: 14px 10px;
    margin: 24px 12px;
    text-align: center;
    color: #ffffff;
    border-radius: 6px;
}

/* Hide mobile-only hours box on desktop */
.godziny_box.mobile-only {
    display: none;
}

.godziny_box h3 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 12px;
}

.godziny_box p {
    font-size: 13px;
    line-height: 1.7em;
}

/* Main content */
#main_content {
    flex: 1;
    background-color: #ffffff;
    padding: 0;
}

/* Slider container */
#slider_container {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

#slider {
    position: relative;
    width: 100%;
    height: 100%;
}

#slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#slider img:first-child {
    display: block;
}

/* Content sections */
#content {
    padding: 36px;
}

/* Content sections visibility handled by PHP inline styles */

.content-section h2 {
    color: #1AD7EF;
    font-size: 29px;
    margin-bottom: 24px;
    border-bottom: 2px solid #EC17AA;
    padding-bottom: 12px;
}

.content-section h3 {
    color: #EC17AA;
    font-size: 22px;
    margin: 24px 0 12px 0;
}

.content-section p {
    margin-bottom: 18px;
    text-align: justify;
    line-height: 1.8em;
}

.content-section ul {
    margin-left: 36px;
    margin-bottom: 18px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
    border: 4px solid #f0f0f0;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    border-color: #EC17AA;
}

/* Modal/Lightbox for enlarged images */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #EC17AA;
    text-decoration: none;
}

/* Navigation arrows for modal */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 36px;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(236, 23, 170, 0.8);
    color: white;
}

/* Contact */
.contact-info {
    background-color: #f5f5f5;
    padding: 24px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.contact-info h3 {
    color: #1AD7EF;
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info strong {
    color: #EC17AA;
}

#lokalizacja iframe {
    border-radius: 6px;
}

/* Footer */
#footer {
    background-color: #1AD7EF;
    padding: 12px 24px;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
}

#footer a {
    color: #EC17AA;
}

/* EU Funding section */
#eu-funding {
    background-color: #1AD7EF;
    padding: 24px;
    text-align: center;
    margin-top: 40px;
}

#eu-funding img {
    max-height: 80px;
    max-width: 90%;
    width: auto;
    margin-bottom: 16px;
}

#eu-funding p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

/* Navigation button hover effect */
.nav-button:hover {
    background-color: #EC17AA !important;
}

#footer a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1176px) {
    #wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #header {
        flex-direction: column;
        text-align: center;
    }
    
    #logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    #header_info {
        margin-bottom: 10px;
    }
    
    #header_info h1 {
        font-size: 29px;
    }
    
    #telefon {
        font-size: 24px;
        text-align: center;
    }
    
    #content_wrapper {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    /* Hide sidebar hours box on mobile */
    #sidebar .godziny_box {
        display: none;
    }
    
    /* Show mobile-only hours box */
    .godziny_box.mobile-only {
        display: block;
        margin: 24px auto;
        max-width: 300px;
    }
    
    .menu_box {
        display: inline-block;
        width: 49%;
        vertical-align: top;
    }
    
    #slider_container {
        height: 240px;
    }
    
    .title_overlay h2 {
        font-size: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #content {
        padding: 24px;
    }
    
    #eu-funding img {
        max-width: 98%;
        max-height: none;
        height: auto;
    }
    
    #eu-funding {
        margin-top: 20px;
    }
}