body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Odstraní horizontální posuvník */
}

/* NAVIGACE */
.navbar {
    height: 80px;
    z-index: 10;
}

.navbar-light .navbar-nav .nav-link {
    color: #152F48;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #f57c00;
}

/* Pozadí pro rozbalené hamburger menu */
.navbar-collapse {
    background-color: white; /* Barva pozadí */
    text-align: center;
}

.navbar-collapse .nav-link {
    color: rgba(0, 0, 0, .5); /* Barva textu */
}

.navbar-collapse .nav-link:hover {
    color: rgba(0, 0, 0, .75); /* Barva textu při hover */
}

/* OBSAH POD NAVIGACÍ */
.image-container {
    position: relative;
    width: 100%;
    height: 660px;
    overflow: hidden;
}

.view-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

.visible {
    opacity: 1;
}

.hidden {
    opacity: 0;
}

.row {
    justify-content: center; /* Vycentruje sloupce na střed */
}

.overlay-content {
    position: absolute;
    top: 3%; /* Posun od spodní části */
    left: 80%; /* Horizontální centrování */
    transform: translateX(-80%); /* Přesné centrování */
    padding: 15px; /* Okraje kolem textu */
    margin: 0 auto; /* Centrum horizontálně */
}

.custom-form {
    width: 25rem;
    background: #152F48;
}

.col-md-4 {
    padding: 0; /* Odstraní vnitřní odsazení mezi sloupci */
}

.custom-text-color {
    color: #152f48!important;
}

.article-detail {
    text-align: justify;
}

.section-background {
    background: #f4a000; /* Základní oranžová barva */
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.1) 15px, rgba(0, 0, 0, 0) 15px, rgba(0, 0, 0, 0) 30px);
    padding: 3.2rem; /* Prostor okolo obsahu */
    color: #152F48!important; /* Barva textu */
}

#review-box {
    font-style: italic;
    transition: opacity 0.5s ease;
}

.dot {
    height: 15px;
    width: 15px;
    background-color: #ffa500; /* Orange color */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #ff8000;
    transform: scale(1.25); /* Použití transformace místo scale */
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lazy-loaded {
    opacity: 1;
}

.our_team {
    background: #152f48;
}

.card-icon {
    font-size: 2rem;
    color: #28a745; /* Zelená barva pro ikony */
}

.btn-success {
    background-color: #28a745; /* Zelené tlačítko */
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: #218838; /* Tmavší zelená při hover efektu */
}

.card {
    border: 1px solid #e6e6e6;
    transition: transform 0.24s ease-in-out, box-shadow 0.24s ease-in-out; /* Převedení na transformaci */
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

a.text-reset {
    transition: color 0.3s ease-in-out;
}

a.text-reset:hover {
    color: #ff8000!important;
}

.project-image {
    width: auto; /* Nastavení automatické šířky */
    max-width: 100%; /* Nepřesáhne šířku sloupce */
    height: auto; /* Zachová poměr stran */
    max-height: 200px; /* Maximální výška pro zachování jednotného vzhledu */
    border-radius: 5px;
    object-fit: contain; /* Zachová celé obrázky bez ořezu */
    cursor: pointer;
}

#modalImage {
    max-height: 80vh;
    width: auto;
}

.map-container {
    height: 400px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Skryté ve výchozím stavu */
    justify-content: center;
    align-items: center;
    z-index: 100000; /* Ujistěte se, že je nad ostatním obsahem */
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.notification h2 {
    margin-bottom: 10px;
}

.notification button {
    margin-top: 20px;
}

@media (max-width: 576px) {
    .overlay-content {
        top: 5%;
        transform: translateX(-50%); /* Přesné centrování */
        left: 50%;
        padding: 10px;
    }
    
    .custom-form {
        width: 18rem;
    }
}
