/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 10; /* Ensures the navbar is above the landing section */
    width: 100%; /* Ensures the navbar spans the full width of the screen */
}

.navbar .container {
    max-width: 100%; /* Makes sure the navbar contents are responsive */
}

.navbar-nav .nav-item .nav-link {
    padding: 10px 15px; /* Adds some padding for touch-friendly buttons */
    text-align: center; /* Centers the text inside nav links */
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center; /* Center the nav items in smaller screens */
    }
    .navbar-nav .nav-item {
        margin-bottom: 10px; /* Adds spacing between nav items on small screens */
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 18px; /* Reduces the brand text size on smaller screens */
    }
    .navbar-nav .nav-link {
        font-size: 14px; /* Reduces nav link font size for better readability */
    }
}


/* Landing Section */
.landing-section {
    height: 100vh;
    background: url('slike/landing1.jpeg'), url('slike/landing2.jpeg'), url('slike/landing3.jpeg'), 
                url('slike/landing4.jpeg'), url('slike/landing5.jpeg');
    background-size: auto 100%; /* Maintain aspect ratio of images */
    background-position: left, center left, center, center right, right;
    background-repeat: no-repeat;
    position: relative; /* Make sure the overlay text sits on top of the background */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Transparent overlay for better text readability */
    padding: 20px;
    border-radius: 10px;
    max-width: 80%; /* Ensures overlay doesn’t span too wide */
}

@media (max-width: 768px) {
    .landing-section {
        background-size: 100% auto;
        background-position: top;
        background-image: url('slike/landing1.jpeg'); /* Use a single image on small screens */
    }

    .overlay h1 {
        font-size: 24px; /* Adjusts font size for smaller screens */
    }

    .overlay p {
        font-size: 16px; /* Adjust text size for readability */
    }
}

@media (min-width: 769px) {
    .landing-section {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* Keep 5-column layout on wider screens */
        background-size: auto 100%;
        background-position: left, center left, center, center right, right;
    }

    .overlay {
        max-width: 60%; /* Slightly reduce the width of the overlay on larger screens */
    }
}

.landing-section h1, .landing-section p {
    z-index: 2; /* Ensure text appears above background and overlay */
}



/* About Section */
/* About Section */
#about img {
    width: 100%;
    max-width: 400px; /* Ensures the images are not too large */
    margin-bottom: 20px;
    border-radius: 10px; /* Adds rounded corners for a softer look */
}

.about-content {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    text-align: justify;
}

/* Carousel Controls */
.custom-carousel-control {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

.custom-carousel-control-left {
    left: -50px; /* Ensure controls don't overlap with content */
}

.custom-carousel-control-right {
    right: -50px;
}

@media (max-width: 768px) {
    /* Stack the columns on smaller screens */
    #about .row {
        flex-direction: column;
    }

    #about img {
        max-width: 100%; /* Allow images to scale down fully */
    }

    .carousel-control-prev, .carousel-control-next {
        width: 30px; /* Adjust size of carousel controls on small screens */
    }

    .custom-carousel-control-left, .custom-carousel-control-right {
        left: 10px;
        right: 10px; /* Keep controls close to the carousel on smaller screens */
    }

    .about-content {
        margin-top: 20px; /* Adds spacing between the biography text and carousel */
    }
}

@media (min-width: 769px) {
    /* Keep the existing layout for medium to large screens */
    .carousel-inner img {
        height: auto;
        max-height: 500px; /* Ensures image doesn't overflow vertically */
    }
}



/* Services and Testimonials Sections */
.carousel-item .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    min-height: 250px;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    padding: 0.5rem;
}

#testimonials .card {
    margin-bottom: 30px;
}
.card-text {
    font-size: 1rem;
    color: #777; /* Adjusted color for better contrast */
}

.btn-primary {
    background-color: #0056b3; /* Customized button color */
    border: none;
}

h2 {
    font-weight: bold;
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.5rem;
    }
    .card-text {
        font-size: 0.9rem; /* Adjust text size for small screens */
    }
}


#download {
    background-color: #f8f9fa;
    padding: 50px 0;
}

#download h2 {
    margin-bottom: 30px;
}

.download-box {
    border: 1px solid #dee2e6;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.download-files {
    flex: 1 1 45%;
    max-width: 45%;
    text-align: center;
    margin: 0 auto;
}

.download-files p {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.download-item {
    margin-bottom: 20px;
}

.download-item p.file-name {
    color: grey;
    font-style: italic;
}

.download-item a {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.download-item a:hover {
    background-color: #0056b3;
    color: #ffffff;
}

/* Responsive styling */
@media (max-width: 768px) {
    .download-files {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .download-item a {
        padding: 12px;
        font-size: 1rem;
    }

    #download h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .download-box {
        padding: 20px;
    }

    .download-item a {
        padding: 14px;
        font-size: 0.9rem;
    }

    #download h2 {
        font-size: 1.5rem;
    }
}


#contact {
    background-color: white;
    padding: 50px 0;
}

#contact h2 {
    margin-bottom: 30px;
}

#contact h5 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

#contact ul {
    padding-left: 0;
}

#contact ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive styling */
@media (max-width: 768px) {
    #contact ul li {
        font-size: 0.95rem;
    }
    
    #contact h5 {
        font-size: 1.15rem;
    }
    
    #contact h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    #contact ul li {
        font-size: 0.9rem;
    }

    #contact h5 {
        font-size: 1rem;
    }
    
    #contact h2 {
        font-size: 1.5rem;
    }
}


/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 10px 0;
}

footer p {
    margin: 0;
    font-size: 1rem; /* Default font size */
    color: #333;
}

/* Responsive styling */
@media (max-width: 768px) {
    footer p {
        font-size: 0.9rem; /* Slightly smaller font for tablets */
    }
}

@media (max-width: 576px) {
    footer p {
        font-size: 0.85rem; /* Even smaller font for mobile devices */
        padding: 5px 0; /* Reduce padding for smaller screens */
    }
}


.carousel-inner img {
    display: block;
    margin: 0 auto;
}
.carousel-control-prev,
.carousel-control-next{
    width: 5%;
}
