@font-face {
    font-family: 'Roboto';
    font-display: swap;
    src: url('../Roboto/Roboto-ExtraLight.woff2') format('woff2'),
        url('../Roboto/Roboto-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    font-display: swap;
    src: url('../Roboto/Roboto-Regular.woff2') format('woff2'),
        url('../Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    font-display: swap;
    src: url('../Roboto/Roboto-Bold.woff2') format('woff2'),
        url('../Roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-color: 195, 45, 45; /*#C32D2D*/
    --primary-color_old: 237, 53, 0;
    --font-color: #494949;
    --primary-blue: 9, 63, 180;
    --main-font-family: 'Roboto';
    --test-color: rgb(195, 45, 45);
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin: 0;
    /* padding: 0 20px 0 20px; */
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body,
main {
    line-height: 1;
    min-width: 370px;
    font-family: var(--main-font-family);
    color: var(--font-color);
}

body.no-scroll {
    overflow: hidden;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: var(--font-color);
}

hr {
    border: none;
}

img,
picture {
    display: block;
    width: 100%;
}

input, button,
textarea, select {
    font: inherit;
}

textarea:not([rows]) {
    min-height: 10rem;
}

:target {
    scroll-margin-block: 5ex;
}


a:link {
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    text-decoration-skip-ink: auto;
    color: var(--font-color);
}

a:visited {
    color: inherit;
}

a:link:hover,
a:link:active,
a:visited:hover {
    color: rgb(var(--primary-color));
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

h2 {
    font-size: 3.25rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}




.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(36, 36, 36, 0.375);
    z-index: 150;
    pointer-events: none;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out;
}

.apply-form {
    position: relative;
    margin: 60px auto 80px auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    column-gap: 10px;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    overflow: hidden;
    transform: translateX(-250%);
    visibility: hidden;
    transition: 0.4s ease-out;
    transition-property: transform, visibility;
}

.apply-form .inputControl {
    position: relative;
}

.apply-form .inputControl .error {
    position: absolute;
    bottom: -10px;
    margin-left: 10px;
    padding: 1px 10px;
    background-color: #fff;
    border: solid 1px #ff0000;
    border-radius: 3px;
    color: #ff0000;
    font-size: .8rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease;
}

.apply-form .inputControl.error .error {
    visibility: visible;
    opacity: 1;
}

.popup.show .apply-form {
    transform: translateX(0);
    visibility: visible;
}

.popup.show .popup-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


.apply-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../Images/form_bg.webp");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
}

#formCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    aspect-ratio: 1;
    background-image: url("../icons/close-x-grey.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    z-index: 20;
}

.apply-form h3,
.apply-form p,
.apply-form form {
    grid-column: 3 / -1;
    z-index: 1;
}

.apply-form h3 {
    margin-bottom: 20px;
}

.apply-form p {
    font-size: 1.15rem;
    line-height: 1.7rem;
}

#myForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    margin-top: 30px;
}

.firstName,
.email,
#courseType {
    grid-column: 1;
}

.lastName,
.phone,
#contactMethod {
    grid-column: 2;
}

#comment {
    grid-column: 1 / -1;
    grid-row: 4;
}

.firstName,
.lastName {
    grid-row: 1;
}

.email,
.phone {
    grid-row: 2;
}

#courseType,
#contactMethod {
    grid-row: 3;
}

.consent {
    grid-column: 1 / -1;
    grid-row: 5;
}

#captcha-container {
    grid-column: 1 / -1;
    grid-row: 6;
    justify-self: left;
}

#myForm .button {
    grid-column: 1 / 2;
    grid-row: 7;
    justify-self: start;
    /* margin-top: 30px; */
    z-index: 1;
}

.consent #consent {
    width: 25px;
    aspect-ratio: 1;
    height: auto;
    vertical-align: middle;
    margin-right: 12px;
}

.consent label {
    font-size: 1rem;
    background: white;
    padding: 3px;
}

.dropdown {
    position: relative;
    width: 100%;
}

.selected,
#myForm input,
#myForm textarea {
    position: relative;
    height: 45px;
    width: 100%;
    border-radius: 10px;
    padding: 5px 10px;
    border: solid 1px #888;
    background-color: #fff;
}

.selected {
    display: flex;
    align-items: center;
    line-height: normal;
    cursor: pointer;
    color: #7F8186;
}

.selected.entered {
    color: #000;
}

.dropdown .dropdown-options {
    position: absolute;
    overflow: hidden;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    background-color: #fff;
    border: solid 1px #888;
    border-radius: 10px ;
    z-index: 5;
    max-height: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.dropdown.open .dropdown-options {
    max-height: 500px;
    visibility: visible;
    padding: 5px 0 5px 0;
}

.dropdown .dropdown-options li {
    padding: 10px 0 10px 20px;
}

.dropdown .dropdown-options li:hover {
    background-color: rgba(var(--primary-blue), 0.1);
}

textarea#comment {
    resize: none;
    min-height: 7rem;
    padding: 10px;
}

.apply-form .successMessage.popup-overlay {
    background-color: rgba(255, 254, 254, 0.6);
    position: absolute;
    height: 100%;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.apply-form .successMessage.popup-overlay.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.successMesssage {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 10;
}

.successMesssage img {
    width: 70px;
}

.successMesssage span {
    font-size: 1.15rem;
    line-height: 1.4rem;
}





section {
    width: 100%;
}

.section-padding {
    padding: 60px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 
        1fr 
        repeat(12, minmax(0, calc((90rem - 20px * 11) / 12))) 
        1fr;
    column-gap: 20px;
}

.header {
    position: relative;
}

.mobile {
    display: none;
}

.topbar {
    grid-template-rows: 90px auto 80px;
}

.logo {
    display: inline;
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    align-self: center;
    width: 200px;
    aspect-ratio: 200 / 43;
    z-index: 20;
}

.mobile-btn {
    display: none;
}

.pics-wrapper {
    display: none;
}

.header-apply {
    grid-column: -5 / -2;
    grid-row: 1 / 2;
    justify-self: end;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 15px;
    font-weight: 400;
    font-size: 20px;
}

#mobile-toggler {
    display: none;
    cursor: pointer;
}

.header .line {
    grid-column: 2 / -2;
    grid-row: 2 / 3;
    width: 100%;
    height: 1px;
    background-color: var(--font-color);
    margin: 0;
}

.top-nav {
    grid-column: 2 / 10;
    grid-row: 3 / 4;
    align-self: center;
}

.top-nav ul {
    display: flex;
    flex-direction: row;
    column-gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: 200;
}

.top-nav ul a {
    position: relative;
}

.top-nav ul a:hover {
    color: var(--font-color);
}

.top-nav ul a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: rgb(var(--primary-color));
    bottom: -7px;
    left: 0;
    transition: width 0.4s ease-out;
}

.top-nav ul a.active::after {
    width: 40%;
}

.top-nav ul a:hover::after {
    width: 100%;
}

.header .social {
    grid-column: -5 / -2;
}

/* ************************************************** */
/* Hearo Section */

.hero {
    margin: 30px 0 60px 0;
    position: relative;
    grid-template-rows: 1fr auto 1fr;
}

.hero .text span {
    font-size: 3rem;
    font-weight: 700;
}

.highlight {
    color: rgb(var(--primary-color));
}

.hero .text {
    grid-column: 2 / 12;
    grid-row: 1 / 2;
    align-self: self-end;
    z-index: 5;
}

.hero ul {
    grid-column: 2 / 8;
    grid-row: 2 / 3;
    list-style: none;
    padding: 0;
    margin: 50px 0 0 0;
    z-index: 5;
    font-size: 1.6rem;
    font-weight: 400;
}

.hero ul li {
    position: relative;
    padding-left: 40px;
    line-height: 2rem;
}

.hero ul li:not(:last-of-type) {
    margin-bottom: 10px;
}

.hero ul li::before {
    content: "";
    position: absolute;
    height: 25px;
    width: 25px;
    left: 7px;
    top: 5px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23093fb4" viewBox="0 0 640 640"><path d="M468 64C487.2 64 505.6 71.6 519.1 85.2L554.8 120.9C568.4 134.4 576 152.8 576 172C576 191.2 568.4 209.6 554.8 223.1L509.9 268L372 130.1L416.9 85.2C430.4 71.6 448.8 64 468 64zM338.1 164L338.1 164L476 301.9L260.9 517C250.2 527.7 236.8 535.5 222.2 539.6L94.4 575.1C86.1 577.4 77.1 575.1 71 568.9C64.9 562.7 62.5 553.8 64.8 545.5L100.4 417.8C104.5 403.2 112.2 389.9 123 379.1L304.1 197.9L287 180.9C277.6 171.5 262.4 171.5 253.1 180.9L153 281C143.6 290.4 128.4 290.4 119.1 281C109.8 271.6 109.7 256.4 119.1 247.1L219.1 146.9C247.2 118.8 292.8 118.8 320.9 146.9L338.1 164z"/></svg>') no-repeat center;
}

#heroButton {
    grid-column: 2 / 5;
    grid-row: 3 / 4;
    justify-self: left;
    align-self: self-start;
    font-size: 1.3rem;
    color: rgb(var(--primary-color));
    border: solid 2px rgb(var(--primary-color));
    border-radius: 35px;
    padding: 15px 50px;
    margin-top: 60px;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

#heroButton:hover {
    color: #fff;
    background-color: rgba(var(--primary-color), 1);
}

.hero .image {
    grid-column: -10 / -2;
    grid-row: 1 / 4;
    justify-self: stretch;
    position: relative;
}

.hero .image::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #fefefe 7%, rgba(255, 255, 255, 0.8) 17%, rgba(255, 255, 255, 0.1) 60%);
    z-index: 3;
}

.hero img {
    width: 100%;
    height: clamp(560px, 50vw, 730px);
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 0 25px 25px 0;
}

.our-work {
    padding: 60px 0;
}

.section-text {
    grid-column: 4 / 12;
    justify-self: center;
    text-align: center;
    margin-bottom: 60px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 96%;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 0 10px 0 rgba(32, 108, 163, 0.17);
}

.section-text p {
    font-size: 1.5rem;
    line-height: 2rem;
}

.inner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.our-work .benefit-card:nth-of-type(2) {
    grid-column: 2 / 6;
    grid-row: 2 / 3;
    justify-self: left;
}

.our-work .benefit-card:nth-of-type(3) {
    grid-column: 6 / 10;
    grid-row: 2 / 3;
    justify-self: center;
}

.our-work .benefit-card:nth-of-type(4) {
    grid-column: 10 / 14;
    grid-row: 2 / 3;
    justify-self: right;
}

.icon {
    width: 80px;
    aspect-ratio: 1 / 1;
    margin-bottom: 30px;   
}

.benefit-card ul {
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 0;
}

.benefit-card ul li {
    font-size: 1.15rem;
    line-height: 1.7rem;
    
}

.benefit-card ul li:not(:last-of-type) {
    margin-bottom: 10px;
}

.our-work > p {
    grid-column: 4 / 12;
    grid-row: 3 / 4;
    font-size: 1.3rem;
    line-height: 2rem;
    text-align: center;
    margin-top: 50px;
}

.section-bg {
    background-color: rgba(32, 108, 163, 0.05);
}

.gain-card.study,
.gain-card.relocate {
    grid-row: 2/3;
    margin-bottom: 40px;
}

.gain-card.work,
.gain-card.communicate {
    grid-row: 3/4;
}

.gain-card.study,
.gain-card.work {
    grid-column: 2 / 8;
    flex-direction: row-reverse;
    padding-right: 30px;
}

.gain-card.relocate,
.gain-card.communicate {
    grid-column: 8 / 14;
    padding-left: 30px;
}

.gain-card {
    display: flex;
    flex-direction: row;

}

.gain-card .icon {
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    background-color: rgb(var(--primary-blue));
    width: 60px;
    height: 60px;
}

.gain-card h3 {
    margin-bottom: 15px;
}

.gain-card p {
    font-size: 1.25rem;
    line-height: 2rem;
}

.gain-card.study .inner-text,
.gain-card.work .inner-text {
    align-items: flex-end;
    margin-right: 40px;
}

.gain-card.study p,
.gain-card.work p {
    text-align: right;
}

.gain-card.relocate .inner-text,
.gain-card.communicate .inner-text {
    align-items: flex-start;
    margin-left: 40px;
}

.study .icon {
    mask-image: url("../icons/education.svg");
    -webkit-mask-image: url("../icons/education.svg");
}

.work .icon {
    mask-image: url("../icons/work.svg");
    -webkit-mask-image: url("../icons/work.svg");
}

.relocate .icon {
    mask-image: url("../icons/travel.svg");
    -webkit-mask-image: url("../icons/travel.svg");
}

.communicate .icon {
    mask-image: url("../icons/social.svg");
    -webkit-mask-image: url("../icons/social.svg");
}

.image-card {
    display: flex;
    flex-direction: column;
    grid-row: 2;
    align-self: stretch;
    max-width: 95%;
    border-radius: 25px;
    transition: box-shadow 0.2s ease-in-out;
}

.image-card:nth-of-type(2) {
    grid-column: 2 / 6;
}

.image-card:nth-of-type(3) {
    grid-column: 6 / 10;
    justify-self: center;
}

.image-card:nth-of-type(4) {
    grid-column: 10 / 14;
    justify-self: self-end;
}


.img-wrapper {
    border-bottom: solid 6px rgb(var(--primary-blue));
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    transition: border-color 0.3s ease-in-out;
}

.image-card:hover .img-wrapper {
    border-bottom-color: rgb(var(--primary-color));
}

.image-card:hover {
    box-shadow: 0 7px 15px 0 rgba(var(--primary-blue), 0.1);;
}

.image-card .text {
    margin-bottom: 15px;
}

.image-card .price {
    margin-top: auto;
    color: #888;
    font-weight: 200;
}

.image-card .price span {
    vertical-align: super;
    font-size: 1rem;
}

.image-card .button {
    align-self: start;
}

.img-wrapper img {
    height: 240px;
    object-fit: cover;
}

.txt-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 30px;
}

.txt-wrapper h3 {
    margin-bottom: 20px;
}

.txt-wrapper p {
    font-size: 1.25rem;
    line-height: 2rem;
}

.txt-wrapper p:first-of-type {
    font-style: italic;
    font-weight: 200;
}

.txt-wrapper p:last-of-type {
    margin-bottom: 20px;
}

.txt-wrapper hr {
    margin: 15px 0;
    height: 1px;
    background-color: rgba(var(--primary-blue), 0.7);
}

.txt-wrapper a.button {
    display: inline-block;
    margin-top: auto;
}

#about.main-grid {
    grid-template-rows: auto minmax(0, 1fr);
}

#about img {
    grid-column: 2 / 8;
    grid-row: 1 / 3;
    border-radius: 25px;
    object-fit: cover;
    height: 100%;
}

#about .section-text {
    grid-column: 8 / -2;
    grid-row: 1;
    margin: 0 0 0 50px;
    text-align: start;
}

#about .section-text p {
    font-size: 1.25rem;
}

#about .txt-section {
    grid-column: 8 / -2;
    grid-row: 2;
    margin: 30px 0 0 50px;
}

#about ul {
    list-style: none;
    padding: 0;
}

#about ul li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 60px;
    font-size: 1.25rem;
    line-height: 2rem;
}

#about ul li::before {
    content: "";
    position: absolute;
    height: 25px;
    width: 25px;
    left: 20px;
    top: 7px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23093fb4" viewBox="0 0 640 640"><path d="M468 64C487.2 64 505.6 71.6 519.1 85.2L554.8 120.9C568.4 134.4 576 152.8 576 172C576 191.2 568.4 209.6 554.8 223.1L509.9 268L372 130.1L416.9 85.2C430.4 71.6 448.8 64 468 64zM338.1 164L338.1 164L476 301.9L260.9 517C250.2 527.7 236.8 535.5 222.2 539.6L94.4 575.1C86.1 577.4 77.1 575.1 71 568.9C64.9 562.7 62.5 553.8 64.8 545.5L100.4 417.8C104.5 403.2 112.2 389.9 123 379.1L304.1 197.9L287 180.9C277.6 171.5 262.4 171.5 253.1 180.9L153 281C143.6 290.4 128.4 290.4 119.1 281C109.8 271.6 109.7 256.4 119.1 247.1L219.1 146.9C247.2 118.8 292.8 118.8 320.9 146.9L338.1 164z"/></svg>') no-repeat center;
}

#career {
    grid-template-rows: auto repeat(4, 1fr);
}

#career .txt1 {
    grid-column: 2 / 8;
    grid-row: 2;
}

#career .img1 {
    grid-column: 8 / -2;
    grid-row: 2;
}

#career .txt2 {
    grid-column: 8 / -2;
    grid-row: 3;
}

#career .img2 {
    grid-column: 2 / 8;
    grid-row: 3;
}

#career .txt3 {
    grid-column: 2 / 8;
    grid-row: 4;
}

#career .img3 {
    grid-column: 8 / -2;
    grid-row: 4;
}

#career .txt4 {
    grid-column: 8 / -2;
    grid-row: 5;
}

#career .img4 {
    grid-column: 2 / 8;
    grid-row: 5;
}

#career img {
    border-radius: 25px;
    max-width: 665px;
    aspect-ratio: 1.7;
    justify-self: center;
    object-fit: cover;
    margin: 40px 0;
}

#career .txt-align {
    justify-self: center;
    align-self: center;
    width: 93%;
}

#career h3 {
    font-size: 2.2rem;
    line-height: 2.7rem;
    margin-bottom: 30px;
}

#career p {
    font-size: 1.375rem;
    line-height: 2rem;
}

#faq {
    grid-auto-rows: auto;
    z-index: 10;
}

.faq-question {
    grid-column: 3 / -3;
}

#faq .question-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px 30px;
    border-bottom: solid 1px #494949;
    cursor: pointer;
}

#faq h3 {
    line-height: 2rem;
}

#faq .icon-open,
#faq .icon-close {
    font-size: 1.75rem;
    font-weight: 200;
}

#faq .icon-close {
    display: none;
}

#faq p {
    padding: 0 30px;
    font-size: 1.25rem;
    line-height: 2rem;
    max-height: 0;
    opacity: 0;
    transition: padding 0.4s ease, max-height 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

#faq .faq-question.show p {
    max-height: 500px;
    padding: 20px 30px;
    opacity: 1;
}

#faq .faq-question.show .icon-close {
    display: block;
}

#faq .faq-question.show .icon-open {
    display: none;
}

.cta-wrapper {
    grid-column: 3 / -3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-radius: 25px;
    background: linear-gradient(
        45deg,
        rgba(var(--primary-blue), 1), 
        #005bffd4 70%
    );
    padding: 60px 80px;
    box-shadow: 
        0 4px 20px rgba(32, 108, 163, 0.25),
        0 2px 6px rgba(32, 108, 163, 0.15);
}

.cta-description {
    max-width: 70%;
}

.cta-wrapper h3,
.cta-wrapper p {
    color: white
}

.cta-wrapper h3 {
    margin-bottom: 25px;
    font-size: 2.5rem;
}

.cta-wrapper p {
    font-size: 1.25rem;
    line-height: 2rem;
}

.cta-wrapper .button {
    border-style: none;
    border-radius: 25px;
    padding: 18px 60px;
    background-color: rgb(var(--primary-color));
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-wrapper button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.contacts-wrapper {
    grid-column: 2 / 6;
    grid-row: 1;
    align-self: center;
}

#contacts img {
    grid-column: 6 / -2;
    grid-row: 1;
    align-self: center;
}

.contacts-wrapper h3 {
    margin: 60px 0 40px 0;
}

.contacts-wrapper a {
    display: block;
    position: relative;
    font-size: 1.25rem;
    padding-left: 40px;
}

.contacts-wrapper .email {
    margin-bottom: 20px;
}

.contacts-wrapper a::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.contacts-wrapper .email::before {
    background-image: url("../icons/email.svg");
}

.contacts-wrapper .telegram::before {
    background-image: url("../icons/telegram.svg");
}


.footer-container {
    grid-column: 2 / -2;
}

.copyright-line,
.footer hr {
    height: 2px;
    width: 100%;
    background-color: rgb(var(--primary-blue));
    margin-bottom: 40px;
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
}

.contacts-block img {
    max-width: 170px;
    margin-bottom: 40px;
}

.footer-container a {
    display: block;
    font-size: 1.25rem;
    padding-left: 45px;
    position: relative;
}

.footer-container .email {
    margin-bottom: 20px;
}

.footer-container a::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.footer-container .email::before {
    background-image: url("../icons/email.svg");
}

.footer-container .telegram::before {
    background-image: url("../icons/telegram.svg");
}

.footer-container nav a {
    padding: 0;
}

.footer-container nav a::before {
    display: none;
}

.footer-nav {
    margin: 70px 0 0 200px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: #333;
    line-height: 1.6;
}

.footer-nav li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.3rem;
    font-weight: 300;
    margin-right: 12px;
}

.footer-nav li:hover::before {
    color: #000;
    font-weight: 500;
}

.footer-nav li:hover {
    color: #000;
    font-weight: 700;
    cursor: pointer;
}

hr.copyright-line {
    grid-column: 1 / -1;
    height: 1px;
    margin-top: 40px;
    margin-bottom: 0;
    background-color: #b9b9b9;
}

.year {
    grid-column: 2 / 3;
}

.copyright {
    grid-column: 4 / -4;
    justify-self: center;
}

.year,
.copyright {
    font-weight: 200;
    align-self: center;
}

.footer-grid {
    padding: 60px 0 0 0;
    grid-template-rows: auto auto 50px;
}

button.button {
    border: solid 2px rgb(var(--primary-color));
    border-radius: 25px;
    padding: 15px 40px;
    background-color: unset;
    color: rgb(var(--primary-color));
    font-size: 1.15rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: 0.3s ease;
    transition-property: color, background-color;
}

button.button:hover {
    color: #fff;
    background-color: rgb(var(--primary-color));
}







@media screen and (max-width: 1440px) {
    h1 {
       font-size: 3.375rem;
       margin-bottom: 10px;
    }

    .hero .text span {
        font-size: 2rem;
    }

    .hero ul {
        font-size: 1.5rem;
    }
}



@media screen and (max-width: 1200px) {
    #courses .image-card {
        grid-column: 3 / -3;
        justify-self: center;
    }
    
    .image-card:nth-of-type(2) {
        grid-row: 2;
    }

    .image-card:nth-of-type(3) {
        grid-row: 3;
    }

    .image-card:nth-of-type(4) {
        grid-row: 4;
    }

    .image-card {
        display: flex;
        flex-direction: row;
        max-width: 100%;
        border-radius: 25px;
        border: solid 1px rgba(var(--primary-blue), 0.3);
        transition: box-shadow 0.2s ease-in-out;
    }

    .image-card:not(:last-of-type) {
        margin-bottom: 40px;
    }

    .img-wrapper {
        border-right: solid 6px rgb(var(--primary-blue));
        border-bottom: none;
        border-radius: 25px 0 0 25px;
        width: 30%;
    }

    .img-wrapper img {
        height: 100%;
    }

    .image-card:last-of-type .img-wrapper img {
        object-position: 70% center;
    }

    .txt-wrapper {
        max-width: 70%;
    }

    .txt-wrapper hr {
        margin: 15px 0;
    }

    .txt-wrapper h3 {
        margin-bottom: 10px;
    }

    .txt-wrapper p {
        font-size: 1.2rem;
        line-height: 2rem;
    }

    .txt-wrapper p:last-of-type {
        margin-bottom: 20px;
    }

}



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

    .main-grid {
        grid-template-columns: 
            1fr 
            repeat(8, minmax(0, calc((75.25rem - 20px * 7) / 8))) 
            1fr;
    }

    .apply-form {
        width: 80%;
    }

    .apply-form::before {
        display: none;
    }

    .apply-form::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background-image: url("../Images/form_bg_cropped.webp");
        background-position: right top;
        background-repeat: no-repeat;
        background-size: contain;
        z-index: -1;
    }

    

    .apply-form h3,
    #myForm {
        grid-column: 1 / -1;
    }

    .apply-form p {
        grid-column: 1 / 7;
    }

    .apply-form .button {
        grid-column: 1 / -1;
        justify-self: left;
    }

    .header-apply {
        display: none;
    }


    .mobile-wrapper {
        width: 100%;
        height: 100vh;
        position: fixed;
        background: rgb(255 255 255 / 70%);
        opacity: 0;
        z-index: 10;
        visibility: hidden;
        transition: 0.4s ease;
        transition-property: visibility, opacity;
    }

    .mobile-wrapper.show {
        opacity: 1;
        visibility: visible;
    }

    .mobile {
        display: flex;
        flex-direction: column;
        align-items: start;
        position: absolute;
        width: 530px;
        height: 560px;
        max-height: 100vh;
        top: 80px;
        padding: 80px 50px 20px 50px;
        background: #fff;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-200%);
        transition: 0.4s ease-in-out;
        transition-property: transform, opacity, visibility;
    }

    .mobile.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobileMenuBottom {
        width: 100%;
    }

    .mobile ul {
        list-style: none;
        margin: 0 0 30px 0;
        padding: 0;
    }

    .mobile li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 12px;
        font-size: 1.25rem;
        color: #333;
        line-height: 1.6;
    }

    .mobile li::before {
        content: "—";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 1.3rem;
        font-weight: 300;
        margin-right: 12px;
    }

    .social-wrapper {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 30px;
    }

    .social-wrapper hr {
        width: 100%;
        height: 1px;
        background-color: #494949;
    }

    button.button {
        margin-top: auto;
        box-shadow: none;
    }

    .icon-social {
        border-radius: 50%;
        width: 40px;
        aspect-ratio: 1;
        display: inline-block;
        background-color: currentColor;
        -webkit-mask: center/contain no-repeat;
        mask: center/contain no-repeat;
        color: #494949;
    }

    .icon-social.telegram {
        -webkit-mask-image: url("../icons/telegram.svg");
        mask-image: url("../icons/telegram.svg");
    }

    .icon-social.vk {
        -webkit-mask-image: url("../icons/vk.svg");
        mask-image: url("../icons/vk.svg");
    }



    .topbar {
        grid-template-rows: 90px auto;
    }

    .logo {
        grid-column: 2 / 4;
    }

    .header-contacts {
        display: none;
    }

    #mobile-toggler {
        grid-column: -3 / -2;
        grid-row: 1 / 2;
        width: 40px;
        align-self: center;
        justify-self: end;
        margin-right: 20px;
        display: block;
        z-index: 100;
    }

    .top-nav {
        display: none;
    }

    .social {
        display: none;
    }

    .hero .text {
        grid-column: 2 / 8;
    }

    .hero ul {
        grid-column: 2 / 6;
        font-size: 1.3rem;
        margin: 30px 0 0 0;
    }

    a.button {
        margin-top: 40px;
    }

    .hero .image {
        grid-column: -7 / -2;
    }

    .hero img {
        width: 100%;
        height: 500px;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-text p {
        font-size: 1.3rem;
    }

    .section-text {
        grid-column: 3 / -3;
    }

    .benefit-card {
        flex-direction: row;
        align-items: start;
        margin-bottom: 30px;
    }

    .inner-text {
        align-items: start;
        padding-left: 40px;
    }

    .our-work .benefit-card:nth-of-type(2) {
        grid-column: 3 / -3;
        grid-row: 2 / 3;
        justify-self: center;
    }

    .our-work .benefit-card:nth-of-type(3) {
        grid-column: 3 / -3;
        grid-row: 3 / 4;
        justify-self: center;
    }

    .our-work .benefit-card:nth-of-type(4) {
        grid-column: 3 / -3;
        grid-row: 4 / 5;
        justify-self: center;
    }

    .our-work > p {
        grid-column: 3 / -3;
        grid-row: 5 / 6;
        margin-top: 30px;
    }


    .gain-card.study,
    .gain-card.work {
        grid-column: 2 / 6;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    .gain-card.relocate,
    .gain-card.communicate {
        grid-column: 6 / 10;
        padding-left: 0;
    }

    .gain-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gain-card h3 {
        text-align: center;
    }

    .gain-card p {
        font-size: 1.125rem;
        text-align: center
    }

    .gain-card.study p,
    .gain-card.work p {
        text-align: center;
    }

    .gain-card.study .inner-text,
    .gain-card.work .inner-text,
    .gain-card.relocate .inner-text,
    .gain-card.communicate .inner-text {
        align-items: center;
        margin: 0;
        padding: 0;
    }

    #courses .image-card {
        max-width: 95%;
        grid-column: 2 / -2;
        justify-self: center;
    }

    .section-text {
        margin-bottom: 30px;
    }


    #about img {
        grid-column: 6 / -2;
    }

    #about .section-text {
        grid-column: 2 / 6;
        margin: 0;
    }

    #about .section-text p {
        font-size: 1.125rem;
    }

    #about .txt-section {
        grid-column: 2 / 6;
        margin: 30px 0 0 0;
    }

    #about ul li {
        font-size: 1.125rem;
    }

    #about ul li::before {
        height: 20px;
        width: 20px;
        left: 15px;
    }


    #career h3 {
        font-size: 2rem;
        line-height: 2.4rem;
        margin-bottom: 15px;
    }

    #career p {
        font-size: 1.25rem;
    }

    #career .txt1,
    #career .img2,
    #career .txt3,
    #career .img4 {
        grid-column: 2 / 6;
    }

    #career .img1,
    #career .txt2,
    #career .img3,
    #career .txt4 {
        grid-column: 6 / -2;
    }

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

    .cta-description {
        max-width: 100%;
        text-align: center;
    }
    
    .contacts-wrapper {
        grid-column: 2 / 5;
        grid-row: 1;
        align-self: center;
    }

    #contacts img {
        grid-column: 5 / -2;
        grid-row: 1;
        align-self: center;
    }

}



@media screen and (max-width: 768px) {
    .main-grid {
        grid-template-columns: 
            1fr 
            repeat(6, minmax(0, calc((100% - 20px * 5) / 6))) 
            1fr;
        row-gap: 0;
        grid-template-rows: repeat(4, auto);
    }

    .apply-form {
        width: 95%;
    }

    .apply-form::after {
        width: 240px;
    }

    .apply-form p {
        grid-column: 1 / 8;
    }

    .hero {
        margin: 30px 0 40px 0;
    }

    .our-work {
        padding: 40px 0;
    }

    .topbar {
        grid-template-rows: 80px auto;
    }

    .logo {
        width: 160px;
    }

    .hero {
        position: relative;
    }

    button.mobile-btn {
        display: block;
        grid-column: -5 / -3;
        justify-self: end;
        align-self: center;
        margin: 0 -30px 0 0;
        padding: 12px 40px;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        z-index: 100;
        transition: 0.4s ease;
        transition-property: opacity, visibility;
    }

    .mobile-btn.show {
        opacity: 1;
        visibility: visible;
    }

    .pics-wrapper {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: auto auto;
        gap: 12px;
        margin-top: auto;
    }

    .pics-wrapper img:first-of-type {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .mobile-wrapper .button {
        display: none;
    }

    .mobile {
        width: 100%;
        height: calc(100vh - 80px);
        padding: 40px 40px 20px 40px;
    }




    .hero .text {
        grid-column: 2 / -2;
        grid-row: 1 / 2;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
       font-size: 3rem;
       margin-bottom: 10px;
    }

    .hero span {
        font-size: 2rem;
    }

    .hero ul {
        grid-column: 2 / -2;
        grid-row: 3 / 4;
        justify-self: center;
        font-size: 1.175rem;
        margin: 35px 0 0 0;
    }

    .hero ul li {
        margin-bottom: 10px;
        line-height: 1.7rem;
    }

    .hero ul li::before {
        width: 20px;
        height: 20px;
        left: 7px;
        top: 5px;
    }    

    #heroButton {
        grid-column: 2 / -2;
        grid-row: 4 / 5;
        justify-self: center;
        margin-top: 35px;
    }

    .hero .image {
        grid-column: 2 / -2;
        grid-row: 2 / 3;
        margin-top: 30px;
    }

    .hero .image::before {
        display: none;
    }

    .hero img {
        border-radius: 25px;
        height: 396px;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-text p {
        font-size: 1.175rem;
    }

    .section-text {
        grid-column: 2 / -2;
    }

    .icon {
        width: 70px;   
    }

    .inner-text {
        align-items: start;
        padding-left: 40px;
    }

    .our-work .benefit-card:nth-of-type(2) {
        grid-column: 2 / -2;
    }

    .our-work .benefit-card:nth-of-type(3) {
        grid-column: 2 / -2;
    }

    .our-work .benefit-card:nth-of-type(4) {
        grid-column: 2 / -2;
    }

    .our-work > p {
        grid-column: 2 / -2;
        margin-top: 30px;
        font-size: 1.175rem;
    }


    .gain-card.study,
    .gain-card.work {
        grid-column: 2 / 5;
    }

    .gain-card.relocate,
    .gain-card.communicate {
        grid-column: 5 / 8;
    }

    .gain-card .icon {
        width: 50px;
        height: 50px;
    }

    .image-card {
        flex-direction: column;
        width: 90%;
    }

    .img-wrapper {
        width: 100%;
        max-height: 240px;
        border-bottom: solid 6px rgb(var(--primary-blue));
        border-right: none;
        border-radius: 25px 25px 0 0;
    }

    .txt-wrapper {
        max-width: 100%;
    }


    #about img {
        grid-column: 3 / -3;
        grid-row: 2;
    }

    #about .section-text {
        grid-column: 2 / -2;
        grid-row: 1;
        text-align: center;
        margin-bottom: 30px;
    }

    #about .txt-section {
        grid-column: 2 / -2;
        grid-row: 3;
        justify-self: center;
        width: 90%;
    }

    #courses .image-card {
        max-width: 95%;
        grid-column: 2 / -2;
        justify-self: center;
    }


    #about img {
        grid-column: 2 / -2;
        margin-top: 30px;
        height: auto;
    }

    #about .section-text {
        grid-column: 2 / -2;
        margin: 0;
    }

    #about ul li {
        line-height: 1.75rem;
    }


    #career h3 {
        font-size: 1.5rem;
        line-height: 2rem;
        margin-bottom: 12px;
    }

    #career p {
        font-size: 1.15rem;
        line-height: 1.75rem;
    }

    #career .txt1,
    #career .img2,
    #career .txt3,
    #career .img4 {
        grid-column: 2 / 5;
    }

    #career .img1,
    #career .txt2,
    #career .img3,
    #career .txt4 {
        grid-column: 5 / -2;
    }


    .faq-question {
        grid-column: 2 / -2;
    }

    .cta-wrapper {
        grid-column: 2 / -2;
        justify-self: center;
        max-width: 85%;
        padding: 60px 40px;
    }

    .cta-wrapper h3 {
        margin-bottom: 25px;
        font-size: 2.1rem;
    }

    .cta-wrapper p {
        font-size: 1.15rem;
        line-height: 1.75rem;
    }

    .contacts-wrapper {
        grid-column: 2 / -2;
        grid-row: 1;
        align-self: start;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #contacts img {
        grid-column: 2 / -2;
        grid-row: 2;
        align-self: start;
    }

    .contacts-wrapper h3 {
        margin: 40px 0 40px 0;
    }

    .footer-nav {
        margin: 0 0 0 100px;
    }

    .copyright {
        grid-column: 3 / -3;
        justify-self: center;
    }

    .footer-grid {
        grid-template-rows: auto auto 50px;
    }
}




@media screen and (max-width: 560px) {
    .main-grid {
        grid-template-columns: 
            1fr 
            repeat(4, minmax(0, calc((100% - 20px * 3) / 4))) 
            1fr;
    }

    .apply-form {
        width: 98%;
        padding: 30px 20px;
    }

    .apply-form::after {
        display: none;
    }

    .apply-form p {
        grid-column: 1 / 9;
        font-size: 1.05rem;
    }


    #myForm .button {
        grid-row: 8;
    }

    #myForm .firstName,
    #myForm .lastName,
    #myForm .email,
    #myForm .phone,
    #courseType,
    #contactMethod {
        grid-column: 1 / -1;
    }

    .firstName {
        grid-row: 1;
    }
    
    
    .lastName {
        grid-row: 2;
    }

    .email {
        grid-row: 3;
    }

    .phone {
        grid-row: 4;
    }

    #courseType {
        grid-row: 5;
    }

    #contactMethod {
        grid-row: 6;
    }

    #comment {
        grid-column: 1 / -1;
        grid-row: 7;
    }

    .consent {
        grid-column: 1 / -1;
        grid-row: 8;
        display: flex;
        flex-direction: row;
        align-items: start;
    }

    .consent label {
        line-height: 1.3rem;
    }

    #captcha-container {
        grid-row: 9;
    }

    #myForm .button {
        grid-column: 1 / 2;
        grid-row: 10;
        justify-self: start;
        z-index: 1;
    }

    button.mobile-btn {
        grid-column: 3 / -3;
        grid-row: 1;
        margin: 0 -30px 0 0;
        padding: 10px 30px;
        font-size: 1rem;
    }

    #mobile-toggler {
        margin-right: 5px;
    }

    .mobile {
        padding: 30px 30px 20px 30px;
        top: 65px;
        height: calc(100vh - 65px);
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero .text span {
        font-size: 1.5rem;
    }

    .hero img {
        border-radius: 25px;
        height: 360px;
    }

    .benefit-card ul li {
        font-size: 1.1rem;
    }

    .gain-card.study,
    .gain-card.work,
    .gain-card.relocate {
        margin-bottom: 40px;
    }

    .gain-card.study,
    .gain-card.work,
    .gain-card.relocate,
    .gain-card.communicate {
        grid-column: 2 / -2;
    }

    .gain-card.study {
        grid-row: 2;
    }

    .gain-card.work {
        grid-row: 3;
    }

    .gain-card.relocate {
        grid-row: 4;
    }

    .gain-card.communicate {
        grid-row: 5;
    }

    .image-card {
        width: 95%;
    }

    .txt-wrapper p {
        font-size: 1.12rem;
        line-height: 1.6rem;
    }


    #about img {
        grid-column: 2 / -2;
        grid-row: 2;
    }

    #about .txt-section {
        width: 100%;
    }


    #career h3 {
        font-size: 1.5rem;
        line-height: 2rem;
        margin-bottom: 12px;
    }

    #career p {
        font-size: 1.15rem;
        line-height: 1.75rem;
    }

    #career .txt1,
    #career .img2,
    #career .txt3,
    #career .img4,
    #career .img1,
    #career .txt2,
    #career .img3,
    #career .txt4 {
        grid-column: 2 / -2;
    }

    #career {
        grid-template-rows: repeat(9, auto);
    }
    
    #career .img1 {
        grid-row: 2;
    }

    #career .txt1 {
        grid-row: 3;
    }
    
    #career .img2 {
        grid-row: 4;
    }

    #career .txt2 {
        grid-row: 5;
    }
    
    #career .img3 {
        grid-row: 6;
    }

    #career .txt3 {
        grid-row: 7;
    }
    
    #career .img4 {
        grid-row: 8;
    }

    #career .txt4 {
        grid-row: 9;
    }

    #career img {
        margin: 0 0 20px 0;
        width: 95%;
    }

    #career .txt-align:not(:last-of-type) {
        margin-bottom: 50px;
    }

    #faq .question-wrapper {
        padding: 15px 0px;
    }

    #faq h3 {
        line-height: 1.75rem;
    }

    #faq p {
        padding: 0 0px;
        font-size: 1.15rem;
        line-height: 1.75rem;
    }

    #faq .faq-question.show p {
        padding: 15px 0px;
    }

    .cta-wrapper h3 {
        margin-bottom: 25px;
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .cta-wrapper {
        max-width: 95%;
        padding: 45px 25px;
    }

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

    .contacts-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        margin: 60px 0 0 0;
    }

    .year {
        grid-column: 2 / -2;
        grid-row: 4;
        justify-self: center;
    }

    .copyright {
        grid-column: 2 / -2;
        grid-row: 3;
    }

    .footer-grid {
        grid-template-rows: auto auto 30px 30px;
    }
}



/* *********************************************** */
/* Breakpoint 460px */
/* *********************************************** */
@media screen and (max-width: 460px) {
    .topbar {
        grid-template-rows: 70px auto;
    }

    .logo {
        width: 120px;
    }

    button.mobile-btn {
        grid-column: 3 / -3;
        grid-row: 1;
    }

    .hero img {
        border-radius: 25px;
        height: 300px;
    }

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

    .inner-text {
        align-items: center;
        padding-left: 0;
    }

    #faq p {
        padding: 0 0px;
        font-size: 1.15rem;
        line-height: 1.75rem;
    }

    #faq .faq-question.show p {
        padding: 15px 0;
    }

    .cta-wrapper {
        max-width: 100%;
        padding: 45px 25px;
    }
}
