/* Import global styles */
@import "./globals.css";

/* header styles */
.header {
    width: 100%;
    background-color: var(--color-tertiary);
    padding-bottom: 60px;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.header .swiper {
    overflow: visible;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    position: relative;
}

@media screen and (max-width: 950px) {
    .header-content {
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 750px) {
    .header {
        padding-top: 30px;
    }
}

.header-content h1 {
    max-width: 500px;
    color: var(--text-primary);
    font-size: 50px;
    font-weight: 700;
    line-height: 52px;
}

.header-content p {
    color: var(--text-secondary);
    max-width: 520px;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.header-content .header-buttons {
    display: flex;
    gap: 20px;
}

@media screen and (max-width: 750px) {
    .header-content .header-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .header-content .header-buttons .main-button.red {
        width: 100%;
        max-width: 100%
    }
    
}

@media screen and (max-width: 390px) {
    .header-content h1 {
        font-size: 46px;
        line-height: 46px;
    }
}

.header-details {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media screen and (max-width: 850px) {
    .header-details {
        display: flex !important;
        gap: 0;
    }

}

.header-details .header-detail {
    width: 100%;
    height: auto;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    background-color: var(--neutral);
}

.header-details .header-detail .header-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-details .header-detail:nth-child(1) .header-detail-icon {
    background-color: var(--yellow-opacity);
}

.header-details .header-detail:nth-child(2) .header-detail-icon {
    background-color: var(--black-opacity);
}

.header-details .header-detail:nth-child(3) .header-detail-icon {
    background-color: var(--red-opacity);
}

.header-details .header-detail h2 {
    color: var(--text-primary);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
}

.header-details .header-detail p {
    color: var(--text-secondary);
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.background-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 750px;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay .flag-image {
    width: 100%;
    pointer-events: none;
}

.background-overlay .robot-image {
    width: 100%;
    max-width: 710px;
    position: absolute;
    bottom: 0;
    left: -170px;
    pointer-events: none;
}

@media screen and (max-width: 1300px) {
    .background-overlay {
        right: -250px;
    }
}

@media screen and (max-width: 1050px) {
    .background-overlay {
        right: -350px;
    }
}

@media screen and (max-width: 950px) {
    .background-overlay {
        max-width: 400px;
        right: 0;
    }

    .background-overlay .robot-image {
        bottom: 250px;
        left: unset;
        right: -140px;
    }
}

@media screen and (max-width: 750px) {

    .background-overlay {
        width: 100%;
        max-width: 100%;
        right: unset;
        left: 0;
        bottom: 0;
    }

    .background-overlay .robot-image {
        max-width: 340px;
        right: unset;
        left: unset;
    }

    .background-overlay .flag-image {
        max-width: 500px;
        width: 100%;
        position: absolute;
        bottom: 0;
        right: 0;
    }



    .header-details {
        margin-top: 270px;
    }
}

@media screen and (max-with: 400px) {
    .background-overlay .robot-image {
        bottom: 230px;
    }
}

.courses {
    position: relative;
    overflow: hidden;
}

.courses .swiper {
    overflow: visible;
}

.courses .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.courses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 4rem 0;
    justify-content: center;
}

.flag-background {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.flag-background img {
    max-width: 450px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}

.flag-background img:last-child {
    left: unset;
    right: 0;
    transform: scaleX(-1);
}

@media screen and (max-width: 850px) {
    .flag-background {
        bottom: 185px;
    }

    .flag-background img {
        max-width: 300px;
        left: 15px;
    }

    .flag-background img:last-child {
        right: 15px;
    }

}

.courses-list .item-box {
    max-width: 390px;
    width: 100%;
    height: auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    background-color: var(--gray-opacity);
}

.courses-list .item-box .item-box-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--black-opacity);
}

.courses-list .item-box h2 {
    color: var(--text-primary);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
}

.courses-list .item-box p {
    color: var(--text-secondary);
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

@media screen and (max-width: 850px) {
    .courses-list {
        flex-wrap: nowrap;
        justify-content: start;
        gap: 0;
    }

    .courses-list .item-box {
        flex: 0 0 auto;
    }

}

@media screen and (max-width: 800px) {
    .flag-background img:last-child {
        display: none;
    }
}

.contact .container {
    display: flex;
    justify-content: space-between;
}

.contact .section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact .section-content .section-title {
    align-items: start;
}

.contact .section-content .section-title * {
    text-align: left;
}

.contact .section-content .section-title .section-title-text {
    max-width: 250px;
}

.contact .section-content .section-title .section-title-description {
    max-width: 360px;
}

.contact .section-content .section-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact .section-content .section-description p {
    max-width: 360px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.contact .section-content .main-button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
}

.contact .section-content .divisor {
    width: 150px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--red-opacity);
}

.contact .section-form {
    width: 100%;
    max-width: 480px;
}

.contact .section-form .form-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.contact .section-form .form-contact .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact .section-form .form-contact .form-group .form-label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.contact .section-form .form-contact .form-group .form-input {
    width: 100%;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--text-primary);
    background-color: var(--neutral);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
}

.contact .section-form .form-contact .form-group .form-input::placeholder {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
}

.contact .section-form .form-contact .form-group .form-textarea {
    height: 150px;
    padding: 16px 24px;
    border-radius: 15px;
    border: 1px solid var(--text-primary);
    background-color: var(--neutral);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    resize: none;
}

.contact .section-form .form-contact .form-group .form-textarea::placeholder {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
}

.contact .section-form .form-contact .main-button {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact .section-form .form-contact .main-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media screen and (max-width: 950px) {
    .contact .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .contact .section-content {
        align-items: center;
    }

    .contact .section-content .section-title {
        align-items: center;
    }

    .contact .section-content .section-title .section-title-text {
        text-align: center;
    }

    .contact .section-content .section-title .section-title-description {
        text-align: center;
    }

    .contact .section-content .section-description {
        text-align: center;
    }
}