* {
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

b{
    font-weight: 600;
}

/* Navbar */
/* ===== NAVBAR – desktop (md+) ===== */
nav {
    background-color: #27348b;
    box-shadow: 0 2px 8px rgba(109, 109, 109, 0.3);
    padding: 10px 0;
}

nav .nav-link {
    color: white;
}

nav .nav-link:hover {
    color: white;
    opacity: 0.8;
}

nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: 0.4s;
}

nav .navbar-toggler:focus {
    box-shadow: none;
}

nav .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== OFFCANVAS – mobil (S, XS) ===== */







/* Main content */
.page-content {
    padding: 60px 0 80px;
    flex: 1;
}

.top-section{
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
}

.card-section{
    padding-top: 50px;
    background: linear-gradient(
            to bottom,
            rgba(39, 52, 139, 0.5) 0%,
            rgba(180, 180, 180, 0) 100%
        ) 0 70% / 100% 50% no-repeat;;
}

.divider{
    width: 100%;
    height: 1px;
    background-color: #27348b;
}

.title {
    color: #27348b;
    text-align: center;
    margin: 0px 0 20px 0 ;
    font-weight: 700;

}

.title-h5{
    color: #27348b;
    margin: 1.8rem 0 0.8rem;
    font-weight: 700;
}

.main-text {
    text-align: center;
    color: #000000;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Area cards */
.area-card {
    transition: transform 0.3s ease;
    margin-bottom: 40px;
}

.area-card:hover {
    transform: translateY(-5px);
}

.area-name {
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.area-name.blue-motol { 
    color: #27348b; 
}
.area-name.blue-homolka { 
    color: rgb(0, 95, 168); 
}
.area-name.blue-o-centrum { 
    color: rgb(6, 181, 193); 
}

/* Image container with overlay */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0px 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-building {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.img-container:hover .img-building {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.overlay-content {
    color: white;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
}

.overlay-content h4 {
    font-weight: 700;
    margin: 15px 0;
    font-size: 1rem;
}

.overlay-content p {
    margin: 5px 0;
    font-size: 0.8rem;
}

.overlay-content img {
    height: 3.8rem;
}

.overlay-content .divider {
    width: 100%;
    height: 2px;
    background-color: white;
    margin-top: 5px;
}

/* Overlay colors */
.overlay.motol { 
    background-color: rgba(39, 52, 139, 0.7); 
}
.overlay.homolka { 
    background-color: rgba(0, 95, 168, 0.7); 
}
.overlay.onko { 
    background-color: rgba(6, 181, 193, 0.7); 
}

.img-container:hover .overlay {
    opacity: 1;
}

/* Button */
.area-button {
    display: block;
    text-align: center;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0px 0px 6px 6px;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.area-button.motol {
    background-color: #27348b;
}
.area-button.homolka {
    background-color: rgb(0, 95, 168);
}

.area-button.onko {
    background-color: rgb(6, 181, 193);
}

.area-button:hover{
    opacity: 0.8;
    color: white; 
}


/* Footer */
footer {
    background-color: #27348b;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

footer .container {
    display: flex;
    justify-content: center;
}

footer h5 {
    margin-bottom: 10px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}





/* page právo na informace */
a{
    text-decoration: none;
}


.anchor-links{
    display: inline-block;
    ol{
        list-style: none;
        border-radius: 10px;
        border: 1.5px solid #27348b;
        margin: 2.5rem auto;
        padding: 3rem 4rem;
    }
    a{
        color: #27348b;
    }
    a:hover{
        opacity: 0.7;
    }
}


/* m */
@media (max-width: 992px) {
    .card-section{
        padding-top: 50px;
        background: linear-gradient(
                to bottom,
                rgba(39, 52, 139, 0.5) 0%,
                rgba(180, 180, 180, 0) 100%
            ) 0 30% / 100% 30% no-repeat;
    }
}


/* S */
@media (max-width: 768px) {  
    h1 { font-size: 1rem; }
    footer .container { grid-template-columns: 1fr; }
    .card-section{
        padding-top: 50px;
        background: linear-gradient(
                to bottom,
                rgba(39, 52, 139, 0.5) 0%,
                rgba(180, 180, 180, 0) 100%
            ) 0 20% / 100% 25% no-repeat;
    }
    /* S navbar */
    .anchor-links{
        width: 100%;
    }
    .offcanvas .nav-link {
        color: #000;
        opacity: 0.75;
    }

    .offcanvas .nav-link:hover {
        color: #000;
        opacity: 1;
    }

    /* otevřený dropdown toggle v offcanvas */
    .offcanvas .dropdown-toggle.show {
        color: #000 !important;
    }
}

/* větší než S */
@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav .dropdown-menu {
        position: absolute;
        top: 4rem;
    }
}