body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #4d0101; 
    color: #ffffff; 
}

.logo img {
    height: 50px; 
    max-height: 100%; 
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(53, 1, 1);
    padding: 0.25rem 1rem;
    position: relative;
    z-index: 10;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem; 
    margin-bottom: 1rem;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin: 0 1rem;
    position: relative;
}

.menu li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    transition: background-color 0.3s, color 0.3s, transform 0.15s;
    font-family: 'Lato', sans-serif; 
}

.menu li a:hover {
    color: #ccc;
    background-color: rgba(113, 5, 5, 0.413);
}

.menu li a:active {
    transform: scale(0.95);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(90, 2, 2);
    list-style-type: none;
    padding: 0;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* DESKTOP HOVER + MOBILE FOCUS + JS KLASA */
.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content,
.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}





.dropdown-content.show {
    display: block;
}

.dropdown-content li {
    margin: 4px 0; 
}

.dropdown-content li a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgb(205, 203, 203);
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: #390202;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
}

.banner {
    position: relative;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
}

.banner-text {
    position: absolute;
    bottom: 65%;
    right: 3%; 
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.2rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(to top, white, white); 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); 
}

main {
    flex: 1;
    overflow: hidden;
    flex-grow: 1;
}

#popis-usluga-content,
#kontakt-content,
#index-content {
    height: 100%;
}

#o_nama {
    background-color: #4d0101;
}

#o_nama .about-content {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

#o_nama .about-content .text-section {
    flex: 1;
    padding: 15px;
}

#o_nama .about-content .image-section {
    flex: 0 0 auto;
    max-width: 300px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#o_nama .about-content .image-section .image-wrapper {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

#o_nama .about-content .image-section img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

footer {
    margin-top: auto;
    background-color: #2a2929;
    color: #4e4e4e;
    text-align: center;
    padding: 0.2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
}

.copyright-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    margin-right: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 90%; 
    margin: 0 auto; 
}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.gallery-item {
    width: 100%;
    height: 0;
    padding-bottom: 75%; 
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.slideshow {
    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;
}

.slideshow-set img {
    display: none; 
}

.slideshow-set img.active {
    display: block;
}

.slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%; 
    max-height: 80vh; 
    transition: transform 0.3s ease-in-out; 
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #999;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s ease-in-out; 
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev:active,
.next:active {
    transform: scale(0.9);
}

@media screen and (max-width: 1024px) {
    #o_nama .about-content {
        flex-direction: column;
        align-items: center;
    }

    #o_nama .about-content .text-section, 
    #o_nama .about-content .image-section {
        flex: 1 1 100%;
        max-width: 90%;
        padding: 10px;
    }

    #o_nama .about-content .image-section .image-wrapper img {
        max-width: 80%;
        max-height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .banner img {
        height: auto;
    }

    .banner-text {
        bottom: 30%; 
        font-size: 1.5rem; 
    }

    .logo img {
        height: 40px; 
    }

    .menu li {
        margin: 0.5rem; 
    }

    .menu li a {
        padding: 4px 8px; 
        font-size: 12px; 
    }

    .about-section h2 {
        font-size: 1.5rem; 
    }

    .banner-text {
        font-size: 1rem; 
    }

    .gallery img {
        max-width: 100%; 
    }

    #o_nama .about-content .image-section .image-wrapper img {
        max-width: 90%;
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .banner-text {
        font-size: 0.4rem;
    }

    .contact-info {
        background-color: #3e0202;
        color: white;
        padding: 1rem;
        font-family: 'Lato', sans-serif;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .contact-info h2 {
        margin: 0 0 1rem 0;
        font-size: 2rem;
        font-family: 'Lato', sans-serif;
        font-weight: 700;
        text-align: center;
        max-width: 100%;
    }

    .map-wrapper {
        padding-bottom: 2rem;
        position: relative; 
        height: 450px; 
    }

    .map-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        margin: 1rem auto;
    }

    #o_nama .about-content .image-section .image-wrapper img {
        max-width: 95%;
        max-height: 250px;
    }
}
