/* =============================================================
   CSS z: uci.css
   ============================================================= */
/* Global reset for body */
body {
    margin: 0;
    padding: 0;
}

/* HERO SECTION */
.hero-uci {
    width: 100%;
    height: 80vh;
    background-image: url("images/uci.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: -20vh;
}


/* .home aligned left */
.home {
    display: flex;
    align-items: center;
    gap: 1vw;
    margin: 0;
    padding: 0;
}

/* ICON STYLE */
.home i {
    font-size: 2rem;
    color: #C166C0;
}

/* UCENI SECTION */
.uceni {
    display: flex;
    justify-content: center;
    gap: 2vw;
    align-items: center;
    background-color: #c4edd1;
    padding-left: 7vw;
    padding-right: 7vw;
    padding-top: 5vh;
    padding-bottom: 5vh;
    margin-bottom: 5vh;
}

.uceni-nadpis {
    color: #B38FEE;
}

.uceni-fotka {
    width: 20vw;
    border-color: white;
    border-style: solid;
}

/* TABLE STYLING */
.tabulka {
    width: 80%;
    margin: 5vh auto;
    background-color: #c4edd1;
    border-radius: 2vw;
    padding: 2vh 2vw;
    box-shadow: 0 0.8vw 2.5vw rgba(0, 0, 0, 0.2);
}

.tabulka h2 {
    color: #C166C0;
    text-align: center;
    margin-bottom: 3vh;
    font-size: 1.6vw;
}

.tabulka table {
    width: 100%;
    border-collapse: collapse;
    margin: 2vh 0;
    border: 0.2vw solid #D43ED2;
}

.tabulka th {
    background-color: #C166C0;
    color: #c4edd1;
    padding: 1.5vh 1.5vw;
    text-align: left;
    font-size: 1.1vw;
    border: 0.2vw solid #D43ED2;
}

.tabulka td {
    padding: 1.2vh 1.2vw;
    font-size: 1.1vw;
    border: 0.2vw solid #D43ED2;
}

.tabulka tr:hover {
    background-color: rgba(196, 237, 209, 0.5);
}

/* FONT SIZES */
h1 {
    font-size: 1.8vw;
}

h2 {
    font-size: 1.6vw;
}

p,
q,
.uceni ul li {
    font-size: 1.1vw;
}

/* RESPONSIVE STYLES */
@media (max-width: 820px) and (min-width: 431px) {
    .uceni-fotka {
        width: 38vw;
    }

    .uceni h2 {
        font-size: 3vw;
    }

    .uceni p,
    .uceni ul li {
        font-size: 2vw;
    }

    .tabulka {
        width: 90vw;
        padding: 2vh 2vw;
    }

    .tabulka h2 {
        font-size: 3vw;
        margin-bottom: 2vh;
    }

    .tabulka th {
        font-size: 2vw;
        padding: 1vh 1vw;
    }

    .tabulka td {
        font-size: 2vw;
        padding: 1vh 1vw;
    }
}

@media (max-width: 430px) {
    .uceni {
        flex-direction: column;
    }

    .home {
        width: fit-content;
    }

    .uceni-fotka {
        width: 70vw;
        margin: 0 auto;
    }

    .uceni h2 {
        font-size: 5.5vw;
    }

    .uceni p,
    .uceni ul li {
        font-size: 4.5vw;
    }

    .tabulka {
        width: 95vw;
        padding: 1vh 2vw;
        border-radius: 4vw;
        margin: 2vh auto;
    }

    .table-container {
        overflow-x: auto;
        width: 100%;
    }

    .table-container table {
        min-width: 500px;
        width: auto;
    }

    .table-container th,
    .table-container td {
        font-size: 2.8vw;
        padding: 1vh 1vw;
        white-space: normal;
    }

    .table-container td:nth-child(3),
    .table-container th:nth-child(3) {
        min-width: 90px;
        width: 25%;
        font-size: 2.8vw;
        text-align: center;
    }

    .tabulka h2 {
        font-size: 4.5vw;
        margin-bottom: 1.5vh;
    }

    .table-container tr:hover {
        background-color: rgba(196, 237, 209, 0.4);
    }
}