/* =========================================
   GENERAL SETTINGS
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    width: 100%;
    scroll-behavior: smooth;

    /* Stops iPhone from automatically enlarging text */
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;

    background: linear-gradient(
        to right,
        #1e0758,
        #0ea978
    );

    color: #ffffff;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/*
Do not use width: 50% and margin-left: 25%
on every image.

That was affecting course images and other
images throughout the website.
*/

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================
   WEBSITE HEADER AND TOP LOGO
========================================= */

header {
    width: 100%;
}

.uk {
    width: 100%;

    padding: 18px 15px;

    background-color: white;

    text-align: center;
}

.uk img {
    width: 300px;
    max-width: 75%;

    height: auto;

    margin: 0 auto;
}


/* =========================================
   NAVIGATION
========================================= */

nav {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    width: 100%;

    padding: 20px 50px;
}

.logo {
    flex-shrink: 0;

    font-family: "Playfair Display", serif;
    font-size: 28px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    display: block;

    padding: 8px 5px;

    color: #ffffff;

    font-size: 17px;

    transition: 0.3s;
}

nav ul li a:hover {
    color: orange;
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 100%;

    /*
    Changed from height: 80vh.

    A fixed height made the heading overlap
    the navigation when the content became
    taller than the mobile screen.
    */

    min-height: 80vh;
    height: auto;

    padding: 60px 20px;

    text-align: center;
}

.badge {
    padding: 10px 20px;
}


/*
The original h1 selector affected every h1.
Now only the hero heading receives 70px.
*/

.hero h1 {
    width: 100%;
    max-width: 1000px;

    margin-bottom: 25px;

    font-size: 70px;
    line-height: 1.12;

    overflow-wrap: break-word;
}

.hero h1 span {
    color: orange;
    font-style: italic;
}

.hero p {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    font-size: 19px;
    line-height: 1.6;

    overflow-wrap: break-word;
}


/* =========================================
   SEARCH SECTION
========================================= */

.search {
    display: flex;

    justify-content: center;
    align-items: stretch;

    width: 100%;
    max-width: 600px;

    margin: 30px auto;
}

.search input {
    flex: 1;

    min-width: 0;

    height: 52px;

    padding: 15px;

    border: none;
    border-radius: 30px 0 0 30px;

    outline: none;

    font-size: 16px;
}

.search button {
    flex-shrink: 0;

    min-width: 120px;
    height: 52px;

    padding: 15px 30px;

    border: none;
    border-radius: 0 30px 30px 0;

    background: orange;
    color: #ffffff;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

.search button:hover {
    background-color: rgb(176, 166, 166);
}


/* =========================================
   HERO BUTTONS
========================================= */

.buttons {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
    max-width: 900px;
}

.buttons a {
    display: inline-block;
}

.buttons button {
    min-width: 145px;
    min-height: 48px;

    margin: 0;

    padding: 15px 30px;

    border: none;
    border-radius: 30px;

    color: rgb(15, 71, 130);

    font-size: 16px;

    cursor: pointer;

    white-space: normal;

    transition: 0.3s;
}

.buttons button:hover {
    background: rgb(176, 166, 166);
}


/* =========================================
   COURSE PAGE ELEMENTS
========================================= */

.all {
    width: 280px;
    max-width: 100%;

    min-height: 350px;
    height: auto;

    overflow: hidden;

    background-color: rgb(249, 249, 249);

    border-radius: 20px;

    box-shadow: 1px 1px 9px black;
}

.sawirka {
    width: 100%;
    height: 180px;

    object-fit: cover;

    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.course {
    width: 90%;

    margin: 15px auto 0;

    padding: 5px;

    background-color: rgb(18, 10, 64);
    color: rgb(255, 255, 255);

    border-radius: 10px;

    font-weight: bold;
    font-size: 20px;
    text-align: center;

    transition: 0.9s;
}

.course:hover {
    color: rgb(5, 5, 83);
    background-color: rgb(141, 181, 241);
}

.price {
    margin: 15px 10px;

    color: rgb(1, 145, 184);

    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.wyn {
    display: flex;
    flex-wrap: wrap;

    justify-content: space-around;
    align-items: stretch;

    gap: 25px;

    width: 100%;

    padding: 20px;
}


/* =========================================
   ADDITIONAL NAVIGATION
========================================= */

.jirka {
    background: hwb(15 95% 3%);
}

.naaav a {
    color: black;
}

.navigation {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 15px;

    width: 100%;

    padding: 20px;

    background-color: rgb(16, 127, 142);

    border-radius: 15px;
}

.least {
    margin-right: 15px;

    font-weight: bold;
    font-size: 20px;
}


/* =========================================
   TABLE
========================================= */

.table-container {
    width: 90%;
    max-width: 1000px;

    margin: 30px auto;

    overflow-x: auto;

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}

.table-container h2 {
    margin-bottom: 20px;

    color: black;

    text-align: center;
}

.course-table {
    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    background-color: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 4px 10px
        rgba(0, 0, 0, 0.1);
}

.course-table th,
.course-table td {
    padding: 12px 16px;

    border: 1px solid #cccccc;

    color: black;

    text-align: left;

    overflow-wrap: break-word;
}

.course-table th {
    background-color: #174b8b;
    color: #ffffff;

    border-left: 1px solid white;

    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.course-table tr:last-child {
    border-bottom: none;
}

.course-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.course-table tr:hover {
    background-color: #f1f5f9;

    transition:
        background-color 0.2s ease;
}


/* =========================================
   OTHER PREVIOUS CLASSES
========================================= */

.madax1 {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    padding: 20px;

    background-color: rgb(251, 249, 249);
}

.backround {
    display: block;

    width: 100%;
    max-width: 1248px;

    height: auto;
    max-height: 600px;

    margin: 0 auto;

    object-fit: cover;
}

.qoral {
    width: fit-content;
    max-width: 90%;

    margin: 25px auto;

    padding: 15px;

    background-color: rgb(12, 10, 67);
    color: rgb(252, 254, 254);

    border-radius: 15px;

    text-align: center;

    transition: 0.5s;
}

.qoral:hover {
    color: rgb(5, 5, 83);
    background-color: rgb(141, 181, 241);
}

.qoral2 {
    width: 50%;
    max-width: 700px;

    height: auto;

    margin: 25px auto;

    padding: 20px;

    background-color: rgb(250, 246, 246);
    color: rgb(14, 79, 164);

    border: 3px solid rgb(2, 99, 168);
    border-radius: 15px;

    font-size: 25px;
    line-height: 1.4;
    text-align: center;

    transition: 0.5s;
}

.qoral2:hover {
    color: rgb(5, 5, 83);
    background-color: rgb(141, 181, 241);
}

.last {
    width: fit-content;
    max-width: 90%;

    margin: 25px auto;

    padding: 20px;

    background-color: rgb(5, 5, 71);
    color: rgb(246, 246, 249);

    border-radius: 15px;

    text-align: center;

    transition: 0.5s;
}

.last:hover {
    color: rgb(5, 5, 83);
    background-color: rgb(141, 181, 241);
}


/* =========================================
   CONTACT AND FOOTER
========================================= */

.rec {
    width: 100%;

    min-height: 250px;
    height: auto;

    padding: 40px 20px 80px;

    background-color: rgb(13, 13, 129);

    color: white;
}

.footer2 {
    padding-top: 40px;

    text-align: center;
}

.contact {
    width: fit-content;
    max-width: 90%;

    margin: 40px auto 0;

    padding: 20px;

    background-color: rgb(244, 244, 246);
    color: rgb(9, 9, 68);

    border-radius: 15px;

    font-size: 20px;
    font-weight: bold;
    text-align: center;

    transition: 0.8s;
}

.contact:hover {
    color: rgb(5, 5, 83);
    background-color: rgb(141, 181, 241);
}

.get {
    font-size: 50px;
}

.prag {
    font-size: 20px;
    line-height: 1.6;
}

.numbers {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;
}

.num1 {
    width: fit-content;

    padding: 10px;

    background-color:
        rgba(140, 140, 236, 0.475);

    color: white;

    border-radius: 15px;

    font-weight: bold;
    text-align: center;

    transition: 0.8s;
}

.num1:hover {
    color: rgb(5, 5, 83);
    background-color: rgb(141, 181, 241);
}


/* =========================================
   FORM AND LOGIN
========================================= */

.form {
    width: 80%;
    max-width: 900px;

    min-height: 300px;
    height: auto;

    margin: 20px auto;

    padding: 20px;

    background-color: blue;
}

.continer {
    width: 30%;
    max-width: 450px;
    min-width: 300px;

    min-height: 500px;
    height: auto;

    margin: 20px auto;

    padding: 25px 20px;

    background-color:
        rgb(245, 245, 245);

    border-radius: 15px;

    box-shadow: 1px 1px 7px black;

    text-align: center;
}

.h {
    display: block;

    width: 80%;
    height: 45px;

    margin: 30px auto 0;

    padding: 8px 12px;

    background-color:
        rgb(255, 255, 255);

    border: 1px solid #cccccc;
    border-radius: 9px;
}

.login {
    display: block;

    width: 80%;
    min-height: 45px;

    margin: 20px auto;

    background-color:
        rgb(19, 19, 91);

    color: white;

    border: none;
    border-radius: 9px;

    font-size: 20px;
    text-align: center;
}

.check {
    font-weight: bold;
}

.T {
    color: rgb(16, 16, 91);

    font-weight: bold;
    font-size: 40px;
}

.user {
    position: relative;
    right: 20px;
}


/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 900px) {

    nav {
        padding: 18px 25px;
    }

    nav ul li {
        margin: 0 7px;
    }

    .hero {
        min-height: auto;

        padding: 55px 20px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .continer {
        width: 60%;
    }
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 600px) {

    .uk {
        padding: 15px 10px;
    }

    .uk img {
        width: 230px;
        max-width: 75%;
    }

    nav {
        flex-direction: column;

        gap: 14px;

        padding: 16px 12px;
    }

    .logo {
        width: 100%;

        font-size: 24px;
        text-align: center;
    }

    nav ul {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        width: 100%;
    }

    nav ul li {
        width: 100%;

        margin: 0;
    }

    nav ul li a {
        width: 100%;

        padding: 11px 6px;

        font-size: 15px;
        text-align: center;
    }

    .hero {
        min-height: auto;

        padding: 45px 15px;
    }

    .hero h1 {
        margin-bottom: 22px;

        font-size: clamp(
            36px,
            11vw,
            48px
        );

        line-height: 1.14;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .search {
        flex-direction: column;

        width: 100%;
        max-width: 360px;

        margin: 25px auto;
    }

    .search input {
        width: 100%;

        border-radius: 30px;
    }

    .search button {
        width: 100%;

        margin-top: 10px;

        border-radius: 30px;
    }

    .buttons {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

        width: 100%;
        max-width: 380px;
    }

    .buttons a {
        width: 100%;
    }

    .buttons button {
        width: 100%;
        min-width: 0;

        padding: 13px 8px;

        font-size: 14px;
    }

    .wyn {
        flex-direction: column;
        align-items: center;

        padding: 15px;
    }

    .all {
        width: 100%;
        max-width: 330px;
    }

    .navigation {
        flex-direction: column;
    }

    .least {
        width: 100%;

        margin-right: 0;

        text-align: center;
    }

    .qoral,
    .qoral2,
    .last,
    .contact {
        width: 90%;
        max-width: 90%;
    }

    .qoral2 {
        font-size: 18px;
    }

    .numbers {
        flex-direction: column;
        align-items: center;
    }

    .num1 {
        width: 90%;
    }

    .form {
        width: 92%;
    }

    .continer {
        width: 92%;
        min-width: 0;
    }

    .h,
    .login {
        width: 90%;
    }

    .user {
        position: static;
    }

    .get {
        font-size: 36px;
    }

    .prag {
        font-size: 17px;
    }

    .T {
        font-size: 32px;
    }

    /*
    Tables remain readable by scrolling
    horizontally instead of crushing words.
    */

    .course-table {
        min-width: 650px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media screen and (max-width: 380px) {

    nav ul {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 38px 12px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .buttons {
        grid-template-columns: 1fr;
    }
}