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

body {
    min-height: 100vh;
    background-color: #fff;
}

html {
    font-size: 100%;
}

/* Co the ko can vi mac dinh da 100% roi */
/* @media only screen and (max-width: 112.5em){
    html{
        font-size: 100%; 
    }
} */

@media only screen and (max-width: 75em) {
    html {
        font-size: 56.25%;
    }
}

@media only screen and (max-width: 56.25em) {
    html {
        font-size: 60%;
    }
}

main {
    flex: 1;
}

/* Danh cho header */
.header {
    background-color: #ffffff;
    width: 100%;
    top: 0;
    padding: 1.25rem 0;
    /* box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1); */
    z-index: 50;
    font-size: 1.125rem;
    border: 3px solid #000;
}

.header__container {
    width: 90%;
    padding: 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #333;
}

.header__logo .logo_img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.375rem;
    width: auto;
    border: 2px solid #666;
    padding: 1rem;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap; /*coi ki*/
    font-size: 1.3rem;
    /* font-weight: bold; */
    margin-right: 2rem;
    padding: 1rem;
    border: 2px solid #333;
}

.header__nav a {
    text-decoration: none;
    color: #000000;
    margin-left: 1.25rem;
    transition: color 0.3s ease;
}

.header__nav a:hover {
    color: #0000ff;
    text-decoration: underline;
    text-decoration-color: #0000ff;
}

.header__hidden--account {
    position: absolute;
    /* background-color: #f3ecec; */
    z-index: 1;
    min-width: 10rem;
    border-radius: 0.25rem;
    /* box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2); */
    top: 4.5rem;
    right: 1rem;
    border-radius: 0.25rem;
    padding: 0.625rem;
}

.header__hidden--account h1 {
    text-align: center;
    font-size: 1.25rem;
    color: #000000;
}

.header__hidden--account p {
    font-size: 1rem;
    text-align: center;
    color: #000000;
}

.header__nav .header__account--signout {
    display: block;
    text-decoration: none !important;
    border: 1px solid #000000;
    border-radius: 0.5rem;
    background-color: yellow !important;
    color: black !important;
    padding: 0.625rem 1.25rem;
    text-align: center;
    font-size: 0.938rem;
    font-weight: bold;
    margin-left: 0;
    margin-top: 0.25rem;
}

.header__account {
    position: relative;
}

.header__account {
    display: none;
}

.header__hidden--none {
    display: none;
}

.none {
    display: none;
}

.block {
    display: block;
}

/* Danh cho fooster */

.footer__sub--border {
    padding: 1rem;
}

.footer {
    margin-top: 1rem;
    border: 3px solid #000;
}

.footer__top {
    background-color: #fff;
    /* color: #ffffff; */
    /* height: auto; */
    width: 100%;
    /* padding: 0.3125rem; */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.1); */
    margin-top: 1rem;
    padding: 1.5rem;
    gap: 1rem;
}

.footer__logo,
.footer__contact,
.footer__services,
.footer__location {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* padding-left: 2.5rem; */
    border: solid 2px #333;
    justify-content: center;
    align-items: center;
}

.footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem;
    border: 2px solid #999;
}

.logo {
    font-size: 1.25rem;
    padding: 0.5rem;
}

.footer__social-link {
    /* color: #fff; */
    font-size: 2.5rem;
    margin-right: 0.0625rem;
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: #feb47b;
}

.footer__contact p {
    font-size: 1.25rem;
    /* color: #ffffff; */
    margin: 0;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    /* border: 2px solid #999; */
}

.footer__h1 {
    font-size: 1.875rem;
    font-weight: bold;
    /* margin-bottom: 1rem; */
    /* padding: 1rem; */
    /* border: solid #666; */
    /* display: flex; */
}

.footer__services-item,
.footer__location-item {
    font-size: 1.25rem;
    /* color: #ffffff; */
    color: black;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    /* border: solid 2px #333; */
    /* padding: 0.25rem; */
}

.footer__contact p:hover,
.footer__services a:hover,
.footer__location a:hover {
    color: #feb47b;
}

.fas,
.fab,
.fa-solid {
    padding-right: 1rem;
}

.footer__copyright {
    width: 100%;
    text-align: center;
    padding: 0.938rem 0;
    font-size: 1.25rem;
    /* color: #f8f9fa !important; */
    /* background-color: #1a1a1a; */
    border: 2px solid #333;
}

/* Danh cho trang chu */
.home__section1 {
    position: relative;
    overflow: hidden;
    background: url(./Image/home-bg.jpg) no-repeat center center/cover;
    height: 100vh;
    display: flex;
}

.home__div1 {
    font-size: 2.6875rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 8.125rem 6.25rem 6.25rem 9.375rem;
}

.home__div1 a {
    display: inline-block;
    border-radius: 2.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.625rem 2.25rem;
    border: 0.125rem solid #ffffff;
    text-align: center;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    transition: ease-in-out 0.2s;
}

.home__section2 {
    background-color: #8ea9a6;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 3.125rem 0;
    margin: 0 auto;
}

.home__div2 {
    display: flex;
    width: calc(33.3% - 1.25rem);
    margin: 0.625rem;
    padding: 1.25rem;
    flex-direction: column;
    align-items: center;
}

.home__div2 img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    max-width: 85%;
    margin-bottom: 1.25rem;
}

.home__div2 a {
    display: inline-block;
    border-radius: 2.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.625rem 2.25rem;
    border: 0.0625rem solid #ffffff;
    text-align: center;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1.5rem;
}

.home__div2 h1 {
    font-size: 1.75rem;
    color: #ffffff;
    text-align: center;
}

.home__section3 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 3.125rem 0;
    margin: 0 auto;
    background-color: #acbfbd;
}

.home__section4 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 3.125rem 0;
    margin: 0 auto;
    background-color: #647c7a;
}

.home__div3,
.home__div4 {
    display: flex;
    /* width: calc(50% - 2.5rem); */
    margin: 0.625rem;
    padding: 1.25rem;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}

.home__div3 img {
    width: 40%;
    margin-bottom: 1.25rem;
    margin-left: 5rem;
}

.home__div3--content,
.home__div4--content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home__div3 h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-top: 0;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    margin-left: 4.375rem;
}

.home__div3 p {
    font-size: 1.125rem;
    color: #000000;
    margin-right: 7.5rem;
    margin-left: 4.375rem;
    line-height: 1.5;
}

.home__div3 a {
    display: inline-block;
    border-radius: 2.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    font-size: 0.875rem;
    padding: 0.625rem 1.875rem;
    border: 0.0625rem solid #000000;
    text-align: center;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    margin: 1.5rem auto;
}

.home__div4 h1 {
    font-size: 2.5rem;
    color: #000000;
    margin: 0 0 2.5rem 5rem;
    line-height: 1.5;
}

.home__div4 p {
    font-size: 1.125rem;
    color: #000000;
    margin-left: 5rem;
    margin-right: 3.125rem;
    line-height: 1.5;
}

.home__div4 a {
    display: inline-block;
    border-radius: 2.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    font-size: 0.875rem;
    padding: 0.625rem 1.875rem;
    border: 0.0625rem solid #000000;
    text-align: center;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    margin: 1.5rem auto;
}
.home__div4 img {
    width: 40%;
    margin-right: 5rem;
}

.home__div--revealUp.home__div--hidden {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: all 0.6s ease;
}

.home__div--revealUp {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.home__section--revealUp.home__section--hidden {
    opacity: 0;
    transform: translateY(6.25rem);
    transition: all 0.4s ease;
}

.home__section--revealUp {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.home__div--revealLeft.home__div--hidden,
.home__img--revealLeft.home__img--hidden {
    opacity: 0;
    transform: translateX(-1.875rem);
    transition: all 0.6s ease;
}

.home__div--revealLeft,
.home__img--revealLeft {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.home__div--revealRight.home__div--hidden,
.home__img--revealRight.home__img--hidden {
    opacity: 0;
    transform: translateX(1.875rem);
    transition: all 0.6s ease;
}

.home__div--revealRight,
.home__img--revealRight {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

/* Them filter brightness lam toi background */
.home__section1::before {
    position: absolute;
    content: "";
    inset: 0;
    filter: brightness(0.5);
    background: url(./Image/home-bg.jpg) no-repeat center center/cover;
}

/* Hieu ung khi hover */
.home__div1 a:hover {
    background-color: #ffffff;
    color: #000000;
}

@media (max-width: 520px) {
    .header__nav {
        padding: 1rem 0.5rem;
        height: 3rem;
    }

    .home__div2,
    .home__div3,
    .home__div4 {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .home__div3 img {
        width: 80%;
        margin-left: 0;
    }
    .home__div4 img {
        width: 80%;
        margin-right: 0;
    }

    .footer__top {
        display: flex;
        flex-direction: column;
        line-height: 1.5;
    }
}

@media (max-width: 630px) {
    .header__nav {
        height: 4rem;
        padding: 1rem 1rem;
    }

    .home__div2 h1,
    .home__div3 h1,
    .home__div4 h1 {
        flex-direction: column;
        line-height: 1;
        min-height: calc(1em * 2);
    }
}

@media (max-width: 730px) {
    .home__div2 h1,
    .home__div3 h1,
    .home__div4 h1 {
        flex-direction: column;
        line-height: 1;
        min-height: calc(1em * 2);
    }
    .header__nav {
        height: 4rem;
        padding: 1.3rem 2rem;
    }
}
