* {
    box-sizing: border-box;
}

:root {
    --header-bg: #10375c;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Sora", sans-serif;
}

/* Common */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

a {
    text-decoration: none;
}

.container {
    width: 1170px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

.btn {
    --height: 60px;
    display: inline-block;
    min-width: 205px;
    height: var(--height);
    padding: 0 20px;
    border-radius: 99px;
    border: 1px solid #2e80ce;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
    line-height: var(--height);
    color: #fff;
    background: #2e80ce;
}

.btn:hover {
    opacity: 0.9;
    cursor: pointer;
}

.section-heading {
    color: #10375c;
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-desc {
    margin-top: 18px;
    color: #575f66;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.67;
}

.control {
    display: flex;
    column-gap: 18px;
}

.control__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #575f66;
    outline: none;
    background: #fff;
    transition: 0.25s;
}
.control__btn:hover {
    border: #2e80ce;
    background-color: #2e80ce;
    cursor: pointer;
}

/* Header */
.header {
    min-height: 100vh;
    padding-top: 30px;
    background: var(--header-bg);
}

.logo {
    position: relative;
    display: inline-flex;
    font-size: 1rem;
}

.logo__circle::before,
.logo__circle::after {
    content: "";
    display: inline-block;
    border-radius: 50%;
}

.logo__circle::before {
    width: 3em;
    height: 3em;
    background: #2e80ce;
}

.logo__circle::after {
    position: absolute;
    top: 1.1em;
    left: 1.1em;
    width: 1.6em;
    height: 1.6em;
    background: #fff;
}

.logo__text {
    margin-left: 0.6em;
    text-align: right;
    line-height: 1.6em;
}

.logo__brand {
    font-family: "Sora", sans-serif;
    display: block;
    font-size: 1.8em;
    font-weight: 400;
    color: #fff;
}

.logo__brand--small {
    font-size: 1.2em;
    font-weight: 300;
}

/* Header top */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__list {
    display: flex;
}

.header-action__login,
.navbar__link {
    padding: 4px 21px;
    font-size: 1.6rem;
    font-weight: 300;
    color: #c9d2da;
}

.navbar__link:hover,
.navbar__link--active {
    color: #fff;
    text-shadow: 1px 0 0 currentColor;
}
.navbar__link--active::before {
    position: relative;
    left: -8px;
    top: -2px;
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
}

.header-action {
    display: flex;
    align-items: center;
}

.header-action__login {
    margin-right: 7px;
}

.header-action__signup {
    --height: 44px;
    min-width: 104px;
}

/* Hero */
.hero {
    display: flex;
    margin-top: 76px;
    align-items: center;
}

.hero__content {
    width: 44%;
    /* Để không bị co nhỏ lại */
    flex-shrink: 0;
}

.hero__media {
    /* Cho hero__media chiếm hết phần còn lại */
    /* Ở trên hero__content chiếm 44%  */
    /* Thì flex-grow tương ứng lấy 56% */
    flex-grow: 1;
}

.hero__heading {
    color: #fff;
    font-size: 7rem;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -1.4px;
}

.hero__desc {
    margin-top: 22px;
    color: #c9d2da;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.67;
}

.hero__row {
    margin-top: 38px;
    /* Những cái thẻ inline luôn dư ra 1 đoạn nhỏ px */
    /* Để không cái đoạn nhỏ này, thì phải dùng display flex */
    /* Rồi sau đó margin hoặc padding */
    display: flex;
    align-items: center;
}

.hero__phone {
    margin-left: 38px;
    color: #fff;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.67;
}

.hero__images {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero__img {
    width: 330px;
    height: 540px;
    border-radius: 6px;
    object-fit: cover;
}

.hero__img:first-child {
    /* Để tấm ảnh nằm phía trên */
    /* Thay vì dùng z-index */
    /* Thì dùng position relative */
    /* Khi này phần tử sẽ được xem là được định vị rồi */
    /* Phần tử nào được định vị thì sẽ nằm phía trên */
    position: relative;
    margin-right: -6px;
}

.hero__img:last-child {
    width: 210px;
    height: 410px;
}

/* Service */
.service {
    padding: 170px 0;
}

.service__heading,
.service__desc {
    text-align: center;
}

.service__desc {
    width: 468px;
    /* Không để margin vì có thể bị ghi đè */
    margin-left: auto;
    margin-right: auto;
}

.service__row {
    margin-top: 70px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.service__img {
    width: 570px;
    height: 570px;
    object-fit: cover;
    border-radius: 12px;
}

.service__list {
    margin-bottom: 55px;
}

.service-item {
    display: flex;
    width: 470px;
    padding: 22px;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    /* Khi hover vào thì chuyển hiệu ứng trong vòng 0.25s */
    transition: 0.25s;
}

.service-item:hover {
    /* Đặt position để bóng đổ đè lên trên item dính sát vào nhau */
    position: relative;
    box-shadow: 0px 14px 28px 0px rgba(0, 0, 0, 0.05);
}

.service-item__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #eff6fd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #10375c;
    /* Khi hover vào thì chuyển hiệu ứng trong 0.25s */
    transition: 0.25s;
}

.service-item:hover .service-item__icon {
    color: #fff;
    background-color: #2e80ce;
}

.service-item__body {
    margin-left: 19px;
}

.service-item__heading {
    color: #10375c;
    font-size: 1.8rem;
    line-height: 1.27;
    font-weight: 600;
}

.service-item__desc {
    margin-top: 8px;
    color: #575f66;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.75;
}

/* Work */
.work {
    background: #f6fbff;
    padding: 100px 0;
}

.work-desc {
    width: 468px;
}

.work__list {
    /* Khi Các Item Đều Nhau Thì Dùng Display Grid  */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    margin-top: 70px;
}

.work-item {
    background-color: #fff;
    border: 16px solid #eaf6ff;
    border-radius: 4px;
    padding: 44px;
    transition: 0.25s;
}

.work-item:hover {
    /* Dịch chuyển lên trên */
    transform: translateY(-6px);
    border-color: #2e80ce;
}

.work-item__heading {
    margin-top: 20px;
    color: #10375c;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.38;
}

.work-item__desc {
    width: 254px;
    margin-top: 28px;
    color: #575f66;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.75;
}

.work-item__more {
    display: inline-block;
    margin-top: 18px;
    color: #2e80ce;
}

/* Feature */
.feature {
    margin-top: 85px;
    padding: 85px;
}

.feature__inner {
    display: flex;
    column-gap: 130px;
    align-items: center;
}

.feature__media {
    width: 48%;
    /* Cái còn lại không phải 52% đâu nhé */
    /* Còn có cả margin nữa */
}

.feature__images {
    position: relative;
    padding-bottom: 121px;
    padding-right: 58px;
}

.feature__img {
    width: 512px;
    height: 370px;
    border-radius: 6px;
    object-fit: cover;
}

.feature__img:last-child {
    width: 332px;
    position: absolute;
    right: 0;
    bottom: 0;
    /* Nếu để padding-bottom: -121 */
    /* Thì sẽ bị va chạm với các thành phần khác bên dưới */
    /* Đem padding-bottom lên để vào thẻ cha */
    /* tương tự với padding-right */
}

.feature__cta {
    margin-top: 38px;
}

/* Member */
.member {
    padding: 85px 0;
    text-align: center;
}

.member__header {
    display: flex;
    flex-direction: column;
    /* Cái nút bị tràn sang 2 bên */
    /* Dùng cái này thì nút sẽ nằm ngay giữa và đúng kích thước */
    align-items: center;
}

.member__cta {
    margin-top: 38px;
}

.member__list {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;
}
.member__control {
    margin-top: 38px;
    justify-content: center;
}

.member-item:hover .member-item__thumb {
    transform: scale(1.1);
}

.member-item__img-bg {
    /* Để khi phóng to không bị tràn */
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    background: #eaf6ff;
    width: 270px;
    height: 318px;
    transition: 0.25s;
}

.member-item__thumb {
    position: absolute;
    bottom: 0;
    left: 0;
    /* Do một số ảnh có kích thước chênh lệch 1 vài px */
    /* Dùng max-width sẽ không bị mất ảnh */
    max-width: 262px;
    height: 290px;
    border-radius: 6px;
    object-fit: cover;
}

.member-item__name {
    font-weight: 500;
    margin-top: 12px;
    color: #10375c;
    font-size: 1.6rem;
    line-height: 1.75;
}

.member-item__title {
    color: #575f66;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.86;
}

/* Install */
.install {
    margin-top: 180px;
}

.install__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    background: #2e80ce;
    padding: 76px 70px 75px 70px;
    column-gap: 160px;
    height: 427px;
}
.install__img {
    display: block;
    width: 284px;
    height: 522px;
    object-fit: cover;
    margin-top: -95px;
}
.install_content {
    max-width: 586px;
}

.install__heading,
.install__desc {
    color: #fff;
}

.install__heading {
    max-width: 489px;
}

.install__row {
    margin-top: 38px;
}

.install__btn-img {
    margin-right: 28px;
}

/* News */
.news {
    margin-top: 85px;
    padding: 85px 0;
}
.news__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news__content {
    flex-shrink: 0;
}

.news__heading {
    max-width: 470px;
}

.news__more {
    margin-top: 28px;
    color: #10375c;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.56;
    text-decoration-line: underline;
    /* Khi gạch chân đến chữ g sẽ không còn gạch chân nữa */
    /* Để đảm bảo luôn có gạch chân thì dùng text-underline-offset */
    text-underline-offset: 5px;
}

.news__control {
    margin-top: 28px;
}

.news__list {
    display: flex;
    column-gap: 30px;
    max-width: 570px;
}

.news-item {
    border-radius: 12px;
    /* Thay Vì Đặt Kích Thước Cố Định */
    /* Sau này muốn sửa kích thước new__list */
    /* phải sửa luôn cả news-item */
    /* thì dùng flex:1 */
    /* Để nó tự chia đều  */
    flex: 1;
    background: #fff;
    overflow: hidden;
    transition: 0.25s;
}

.news-item:hover {
    box-shadow: 0px 18px 50px 0px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
}

.news-item:hover .news-item__body {
    /* Để border: none nội dung sẽ bị giật giật */
    /* Nên để không bị giật giật thì dùng màu trắng */
    border-color: #fff;
}

.news-item:hover .news-item__more {
    color: #2e80ce;
}

.news-item__thumb {
    /* Thay vì để kích thước cố định */
    /* Khi sửa sẽ sửa ở nhiều chỗ */
    /* nên để width: 100% sửa thẻ cha thôi */
    width: 100%;
    height: 172px;
    object-fit: cover;
    /* Không tạo ra khoảng trắng ở phía dưới chân ảnh */
    display: block;
}

.news-item__body {
    padding: 24px;
    border: 1px solid #e8ebee;
    border-top: none;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    transition: 0.25s;
}

.news-item__heading {
    display: block;
    color: #10375c;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 26px;
}

.news-item__desc {
    margin-top: 10px;
    color: #575f66;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.71;
}

.news-item__more {
    display: block;
    margin-top: 12px;
    color: #10375c;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Appointment */
.appointment {
    margin: 85px 0 170px;
}

.appointment__heading::after {
    content: "";
    display: inline-block;
    width: 136px;
    height: 2px;
    background: #2e80ce;
}

.appointment__inner {
    border-radius: 4px;
    background: #f6fbff;
    padding: 100px 179px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.appointment__desc {
    font-size: 1.6rem;
    max-width: 617px;
    margin-bottom: 38px;
}

/* Footer */
.footer {
    font-family: "Open Sans", sans-serif;
    background: #10375c;
    padding: 100px 0 42px;
}

.footer__row {
    display: grid;
    grid-template-columns: 1fr 0.4fr 0.4fr 1fr;
    column-gap: 78px;
}

.footer__desc {
    margin-top: 20px;
    color: #a9b3bb;
    font-size: 1.6rem;
    line-height: 1.75;
}

.footer__heading {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.75;
}

.footer__list {
    margin-bottom: 18px;
}

.footer__link {
    display: inline-block;
    margin-bottom: 10px;
    color: #a9b3bb;
    font-size: 1.4rem;
    line-height: 1.86;
    /* Để không xuống hàng */
    white-space: nowrap;
}

.footer__link:hover {
    cursor: pointer;
    text-decoration: underline;
}

.footer__social {
    display: flex;
    column-gap: 10px;
}

.footer__social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    color: #2e80ce;
    transition: 0.25s;
    margin-bottom: 28px;
}

.footer__social-btn:hover {
    color: #fff;
    background-color: #2e80ce;
}

.footer-form {
    display: flex;
    margin-top: 10px;
    column-gap: 12px;
}

.footer-form__input {
    width: 212px;
    height: 46px;
    padding: 0 10px;
    outline: none;
    border-radius: 4px;
    border: 1px solid #406181;
    background: transparent;
    color: #fff;
}
.footer-form__input::placeholder {
    color: #9ca8b1;
    font-size: 1.4rem;
    line-height: 1.86;
}

.footer-form__submit {
    /* Do khuôn mẫu dùng height là biến */
    /* Nếu bây giờ không dùng biến --height*/
    /* mà dùng height thì ghi đè */
    /* có kết quả không như mong muốn */
    /* nó lệch lên xuống */
    --height: 46px;
    min-width: 108px;
    border-radius: 4px;
    background: #2e80ce;
    /* Mặc dù là thẻ Footer đã đặt Font là Open Sans */
    /* Nhưng các thẻ input, textarea, select, button */
    /* Sẽ không kế thừa */
    /* Để kế thừa thì viết cấu hình vào (đã bổ sung phần common) */
}

.footer__copyright {
    border-top: 1px solid #406181;
    padding-top: 28px;
}

.footer__copyright-text {
    color: #aab3ba;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.86;
}
