/* PC: Desktop từ 992px trở lên */
@media screen and (min-width: 992px) {
    .nav__menu-toggle,
    .header__mobile {
        display: none;
    }
}

/* Tablet và Mobile: từ 0px đến 991px */
@media screen and (max-width: 991.98px) {
    .header__nav-list {
        display: none;
    }

    .header__body {
        position: relative;
    }

    .header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .nav__menu-toggle {
        display: inline-block;
        cursor: pointer;
        padding: 8px;
    }

    .toggle-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 18px;
        width: 18px;
        position: relative;
    }

    .toggle-icon span {
        width: 100%;
        height: 1.5px;
        background-color: #c9d2da;
        display: block;
        position: relative;
    }

    .toggle-icon span::before,
    .toggle-icon span::after {
        content: "";
        width: 100%;
        height: 1.5px;
        background-color: #c9d2da;
        position: absolute;
        left: 0;
        transition: all ease-in 0.2s;
    }

    .toggle-icon span::before {
        top: -5px;
    }

    .toggle-icon span::after {
        top: 5px;
    }

    .header__overlay {
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 10;
        position: fixed;
        opacity: 0;
        visibility: hidden;
    }

    #menu-toggle:checked ~ .header__overlay {
        opacity: 1;
        visibility: visible;
    }

    .nav__mobile {
        top: 0;
        left: 0;
        width: 40%;
        height: 100vh;
        background-color: var(--primary-bg-color);
        z-index: 11;
        position: fixed;
        padding: 48px;
        transform: translateX(-120%);
    }

    .nav__mobile-list {
        margin-top: 50px;
    }

    .nav__mobile-item {
        padding: 8px;
    }

    .nav__mobile-link {
        font-weight: 400;
        font-size: 2.4rem;
        line-height: 175%;
        text-align: center;
        color: #c9d2da;
        transition: all ease-in 0.2s;
    }

    /* hero */

    .hero__body {
        flex-direction: column;
        row-gap: 80px;
        margin-top: 48px;
    }

    .hero__content {
        width: 100%;
        text-align: center;
        order: 2;
    }

    .hero__desc {
        padding: 16px 100px;
    }

    /* service */

    .services {
        padding: 100px 0;
    }

    .services__content {
        justify-content: center;
    }

    .services__media {
        display: none;
    }

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

    /* work */
    .works-list {
        grid-template-columns: none;
        grid-template-rows: repeat(3, 1fr);
        row-gap: 16px;
    }

    /* feature */
    .feature {
        padding: 100px 0;
    }

    .feature-body {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .feature-media {
        width: 100%;
        margin-right: 0;
        order: 2;
    }

    .feature-media__img:last-child {
        right: 2px;
    }

    .cta {
        display: none;
    }
}

/* Tablet: từ 768px đến 991px */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .nav__mobile-logo {
        font-size: 1.8rem;
    }

    /* service */
    .services__heading-desc {
        font-size: 1.6rem;
    }
}

/* Mobile: dưới 768px */
@media screen and (max-width: 767px) {

    .btn {
        font-size: 1.4rem;
    }

    /* hero */
    .header__action {
        display: none;
    }

    .hero__sologan {
        font-size: 5rem;
    }

    .hero__media {
        display: none;
    }

    .hero__desc {
        padding: 16px 24px;
    }

    .hero__action {
        margin-top: 0;
    }

    .hero__action {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 30px;
    }

    .hero__action-btn {
        margin-right: 0;
    }

    .works__heading-title {
        font-size: 4rem;
    }

    .works__heading-desc {
        font-size: 1.3rem;
        width: 100%;
    }

    /* service */
    .services {
        padding: 70px 0;
    }

    .services__heading-title {
        font-size: 4rem;
    }

    .services__heading-desc {
        font-size: 1.4rem;
    }

    .services__content {
        margin-top: 0;
    }

    .services__card {
        width: 100%;
        padding: 18px 0;
    }

    .services__card-title {
        font-size: 1.6rem;
    }

    .services__card-desc {
        font-size: 1.2rem;
    }

    .services__list {
        margin-top: 30px;
    }

    /* feature */

    .dentist {
        margin-top: 100px;
    }

    .feature {
        display: none;
    }

    .feature-media {
        display: none;
    }

    .feature__heading {
        font-size: 4rem;
    }

    .feature__desc {
        font-size: 1.3rem;
    }

    .feature__link {
        padding: 10px 30px;
    }

    .dentist__heading {
        font-size: 4rem;
    }

    .dentist__link {
        margin-top: 30px;
        padding: 10px 25px;
    }

    .dentist__action {
        display: none;
    }

    .detist-list {
        grid-template-columns: none;
        grid-template-rows: repeat(4, 1fr);
        row-gap: 30px;
        align-items: center;
        justify-items: center;
    }

    .cta {
        display: none;
    }

    .news {
        padding: 100px 0;
    }

    .news-body {
        flex-direction: column;
        gap: 50px;
    }

    .news__heading {
        width: 100%;
    }

    .news__title {
        font-size: 4rem;
    }

    .news__link {
        font-size: 1.6rem;
        margin-top: 18px;
    }

    .news__action {
        display: none;
    }

    .news__list {
        grid-template-columns: none;
        grid-template-rows: repeat(2, 1fr);
        justify-content: center;
        gap: 20px;
    }

    .welcome {
        margin-top: 0;
        margin-bottom: 100px;
    }

    .welcome-body {
        padding: 50px;
    }

    .welcome__desc {
        width: 100%;
        font-size: 1.3rem;
    }

    .welcome__title {
        font-size: 3rem;
    }

    .welcome__btn {
        padding: 8px 20px;
    }

    .footer__body {
        flex-direction: column;
        gap: 30px;
    }

    .footer__desc {
        font-size: 1.3rem;
    }

    .footer__logo {
        font-size: 1.3rem;
    }
}
