:root {
    --lurji: #3462bd;
    --gia-lurji: #67baff;
    --stafilosferi: #f7c775;
    --shavi: #000000;
    --tetri: #FCFEFE;
}

/* ჰერო სექცია ზუმ-ინ და ზუმ-აუტ ანიმაციით main page*/
.main-section {
    position: relative;
    top: 140px;
    overflow: hidden;
    width: 100%;
    height: 60vh;
}

.hero {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background-image: url(../images/IMG_7796_edited.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomEffect 12s infinite alternate ease-in-out;
}
.hero::before {
    width: 100%;
    height: 70vh;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.301);
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}


.main-info {
    width: 100%;
    max-width: 1000px;
    height: auto;
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -48%);
    text-align: center;
    padding: 2em 0;
}

.main-info h1 {
    font-size: 4.5em;
    color: var(--stafilosferi);
}

.main-info span {
    color: var(--gia-lurji);
}

.main-info h2 {
    font-size: 1.1em;
    color: var(--stafilosferi);
    padding-bottom: .5em;
}


.main-info p {
    font-size: 1.1em;
    color: var(--tetri);
}

.main-info a {
    text-decoration: none;
    width: 300px;
    height: 60px;
    background-color: var(--stafilosferi);
    border-radius: 5px;
    padding: .9em 2.1em;
    font-size: 1.1em;
    color: var(--tetri);
    transition: .7s ease;

}

.main-info a:hover {
    border-radius: 0px;
    background-color: #f2c16d;
}


/* rating */

.rating {
    height: auto;
    width: 100%;
    z-index: 9999;
    position: relative;
    top: 115px;
}

.rating-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
}

.rating-flex .card {
    width: 450px;
    height: 240px;
    background-color: var(--lurji);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .5em;
    text-align: center;
    padding: 1em;
    border-radius: 20px;
    box-shadow: 0 10px 15px 5px rgba(0, 0, 0, 0.126);
}

.rating-flex .card img {
    width: 100px;
    height: 100px;
}

.rating-flex .card h3 {
    color: white;
    height: 60px;
}

.rating-flex .card p {
    color: white;
    height: 60px;
}


/* teacher */
.container {
    position: relative;
    top: 200px;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1300px;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
}

.teacher-card {
    width: 300px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 0 14px 2px #00000038;
}

.teacher-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.imagecontainer {
    width: 100%;
    background-color:#45515d;
    height: 400px;
    border-radius: 10px;
    position: relative;
    transition: .5s ease;
    overflow: hidden;
}

.imagecontainer:hover {
    background-color: #364e67;
    transform: translateY(-5px);
}

.seeall {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1em;
}

.seeall a {
    padding: .6em 1.3em;
    text-align: center;
    background: transparent;
    border: 1px solid black;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 20px;
    color: black;
    transition: .5s ease;
}

.abso {
    position: absolute;
    top: 90%;
    left: 40%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: .5em 1em;
    color: rgb(36, 34, 34);
    font-weight: bold;
    width: 180px;
}

.title {
    color: var(--shavi);
    font-size: 2em;
    padding: 0 0 1em 0;
}



/* kursebi */

.kursebi {
    position: relative;
    top: 350px;
    width: 100%;
    height: 600px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7em;
    overflow: hidden;
}

.info {
    width: 750px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-left: 4em;
}

.info h2 {
    color: var(--lurji);
    font-size: 2.2em;
}

.info p {
    color: rgb(59, 59, 59);
    font-size: 1em;
    font-weight: bold;
    padding: 2em 0 0 0;
}


form {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.901);
    border-radius: 20px;
    padding: 2em;
    width: 500px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.144);
}

form p {
    text-align: center;
    color: var(--lurji);
    font-weight: bold;
}


input {
    width: 400px;
    height: 40px;
    padding: 0 0 0 1em;
    outline: none;
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.138);
}

#course, input::placeholder {
    color: var(--shavi);
}

#submit {
    background-color: var(--lurji);
    color: white;
    font-size: .9em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.144);
    transition: .8s ease;
}

#submit:hover {
    background-color: #507ace;
}

option {
    color: var(--lurji);
}

.custom-select {
    background-color: white;
    border: none;
    width: 400px;
    height: 40px;
    padding: 0 0 0 1em;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9em;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.188);
}

.options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: white;
    border: none;
    border-top: none;
    border-radius: 0 0 8px 8px;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 5;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.custom-select.open .options {
    max-height: 300px;
}

.options div {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.options div:hover {
    background-color: #e6f0ff;
}


/* responsive */

@media(max-width: 1500px) {
    .rating-flex .card {
        width: 350px;
    }
    .info {
        width: 550px;
    }
}

@media(max-width: 1200px) {
    .kursebi {
        flex-direction: column;
        height: auto;
        padding: 2em .5em;
    }
    .info {
        width: 100%;
        max-width: 800px;
        text-align: center;
        padding-left: 0;
    }
    .rating-flex {
        flex-wrap: wrap;
    }
}

@media(max-width: 800px) {
    .main-info {
        padding: 0 .5em;
    }
    .main-info h1 {
        font-size: 3.5em;
    }
    .main-info h2 {
        font-size: 1em;
    }
    form {
        max-width: 500px;
        width: 100%;
    }
    .custom-select, input {
        width: 100%;
        max-width: 400px;
    }
    .info h2 {
        font-size: 1.9em;
    }
}