footer {
    padding: 150px 0 0px;
    background: #25747f;
    color: white;
    border-top: 1px solid #f5f5f5;
    position: relative;
    z-index: 1;
    background-size: cover !important;

    @media (max-width: 768px) {
        padding: 50px 0 0px;
        margin-top: 30px;
    }

    &::before {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        background: var(--color-4);
        opacity: 0.9;
        top: -1px;
        z-index: -2;
        position: absolute;
        left: 0;
    }
}

.ft-wave {
    position: absolute;
    top: -15px;
    width: 100%;
    left: 0;
    height: 8rem;
    overflow: hidden;
    z-index: -1;
}

.wbot {
    z-index: -2;
}

.wtop {
    mix-blend-mode: darken;
}

.ft-wave .waves {
    height: 100%;
}

.waves {
    position: absolute;
    width: 100%;
    height: 15rem;
    left: 0;
    z-index: -1;
    top: 0;
    display: block;
    overflow: hidden;
}

.ft-wave.wbot .waves {
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
}

.waves .parallax>use {
    -webkit-animation: move-forever 35s cubic-bezier(.55, .5, .45, .5) infinite;
    animation: move-forever 35s cubic-bezier(.55, .5, .45, .5) infinite;
}

.waves .parallax>use:nth-child(1) {
    -webkit-animation-delay: -2s;
    animation-delay: -2s;
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
}

.waves .parallax>use:nth-child(2) {
    -webkit-animation-delay: -6s;
    animation-delay: -6s;
    -webkit-animation-duration: 14s;
    animation-duration: 14s;
}

.waves .parallax>use:nth-child(3) {
    -webkit-animation-delay: -8s;
    animation-delay: -8s;
    -webkit-animation-duration: 18s;
    animation-duration: 18s;
}

.waves .parallax>use {
    -webkit-animation: move-forever 35s cubic-bezier(.55, .5, .45, .5) infinite;
    animation: move-forever 35s cubic-bezier(.55, .5, .45, .5) infinite;
}

.ft-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: -1px;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;

    @media (max-width: 768px) {
        max-height: 50px;
    }
}

/* 2. ANIMATION: Đã đổi tên thành "move-slowly" để không bị dính cache cũ */
.parallax>use {
    /* 45s là thời gian gốc, chạy rất chậm */
    animation: move-slowly 45s cubic-bezier(.55, .5, .45, .5) infinite !important;
}

/* 3. TINH CHỈNH TỪNG LỚP (Ép xung nhịp chậm lại bằng !important) */
.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 25s !important;
    /* Chậm hơn code cũ (7s) gấp 3 lần */
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 40s !important;
    /* Chậm hơn code cũ (10s) gấp 4 lần */
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 60s !important;
    /* Chậm hơn code cũ (13s) gấp 5 lần */
}

/* KEYFRAMES MỚI: Đã đổi tên */
@keyframes move-slowly {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* 4. MOBILE */
@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }

    .ft-wave {
        margin-bottom: -1px;
    }
}

.wtop {
    background: transparent;
}

.wbot {
    background: transparent;
}

@keyframes move-forever {
    0% {
        -webkit-transform: translate3d(-9rem, 0, 0);
        transform: translate3d(-9rem, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(8.5rem, 0, 0);
        transform: translate3d(8.5rem, 0, 0);
    }
}

.footer-top {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    position: relative;
}

/* .footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .95);
    z-index: 0;
} */



.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}

.footer-logo img {
    max-width: 250px;
    margin-bottom: 10px;
}

.footer-center {
    h2 {
        font-size: 20px;
        color: white;
        margin-bottom: 15px;
        font-weight: 500;
        font-family: "EB Garamond", serif;
    }

    a {
        color: inherit
    }
}

.footer-info {
    ul {
        margin-bottom: 15px;
    }
}

.footer-top ul {
    margin-left: 18px;
}

.footer-top ul li {
    line-height: 26px;
    font-size: 15px;
    font-weight: 300;
}

.footer-social ul li {
    list-style: none;
}

.footer-social ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    margin-left: 0;
    gap: 0 10px;
}

.footer-social {
    margin-top: 20px;
}

.footer-partner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;

    >* {
        width: 131px;

        @media (max-width: 768px) {
            width: 90px;
        }
    }
}

.footer-heading {
    margin-top: 30px;
}

.footer-heading-logo {
    img {
        width: 196px;
        height: 196px;

        @media (max-width: 768px) {
            width: 120px;
            height: 120px;
        }
    }
}

.footer-copyright {
    margin: 0px;
    font-size: 16px;
    background: #000;
    color: #FFF;
    padding: 10px;

    a {
        color: inherit;

        &:hover {
            color: var(--color-3);
        }
    }
}

.footer-action {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 10px;
}

.footer-action__booking {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-bottom: 4px;
}

.footer-action__tooltip {
    background: #d99201;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}

.footer-action__tooltip:hover {
    background: #1e5a9e;
}

.footer-action__tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    /* transform: translateX(-50%); */
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #d99201;
}

.footer-action__tooltip:hover::after {
    border-top-color: #1e5a9e;
}

.footer-action__mascot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: block;
    background: var(--color-2);
    transition: transform 0.3s;
}

.footer-action__mascot:hover {
    transform: scale(1.08);
}

.footer-action__mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-action__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    text-decoration: none;
    margin-right: 0;
}

.footer-action__btn--zalo {
    animation: zoom-pulse 2s infinite ease-in-out;
}

@keyframes zoom-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.footer-action__btn:hover {
    transform: scale(1.1);
}

.footer-action__btn img,
.footer-action__btn svg {
    display: block;
    border-radius: 50%;
}

.footer-action__btn--top {
    width: 45px;
    height: 45px;
    opacity: 0;
    visibility: hidden;
    background: var(--color-4);
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.footer-action__btn--top.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .footer-action {
        bottom: 15px;
        right: 12px;
        gap: 8px;
    }

    .footer-action__mascot {
        width: 50px;
        height: 50px;
    }

    .footer-action__btn {
        width: 44px;
        height: 44px;
    }

    .footer-action__btn img,
    .footer-action__btn svg {
        width: 44px;
        height: 44px;
    }

    .footer-action__tooltip {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* .copyright a {
    color: var(--color-1);
} */

.backtotop {
    cursor: pointer;
    background: var(--color-1);
    bottom: 32px;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    height: 40px;
    padding: 2px;
    position: fixed;
    right: 20px;
    text-align: center;
    text-transform: uppercase;
    width: 40px;
    z-index: 3;
    border-radius: 4px;
}

.backtotop svg {
    width: 28px;
    height: 22px;
    margin-bottom: -8px;
}

.backtotop svg path {
    stroke: #fff;
}

#button-contact-vr {
    bottom: 55px;
    margin: -10px;
    transform: scale(0.8);
    margin-bottom: 0px !important;
    position: fixed;
    z-index: 3;
    right: 10px;
}

#gom-all-in-one #viber-vr {
    transition: 1.3s all;
    -moz-transition: 1.3s all;
    -webkit-transition: 1.3s all;
}

#button-contact-vr .button-contact .phone-vr {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility 0.5s;
    left: 0;
    bottom: 0;
    display: block;
}

.phone-vr-circle-fill {
    width: 70px;
    height: 70px;
    top: 7px;
    left: 7px;
    position: absolute;
    box-shadow: 0 0 0 0 #c31d1d;
    background-color: rgba(230, 8, 8, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    transition: all 0.5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animuiion: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
}

#viber-vr .phone-vr-circle-fill {
    box-shadow: 0 0 0 0 #2196f3;
    background-color: rgba(33, 150, 243, 0.7);
}

.phone-vr-img-circle {
    background-color: #e60808;
    width: 60px;
    height: 60px;
    line-height: 40px;
    top: 12px;
    left: 12px;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

#viber-vr .phone-vr-img-circle {
    background-color: #2196f3;
}

.phone-vr-img-circle a {
    display: block;
    line-height: 37px;
}

.phone-vr-img-circle svg {
    fill: #ffffff;
    width: 38px;
    height: 44px;
    margin-top: 8px;
}

.phone-vr-img-circle svg path {
    stroke: #fff;
}

@-webkit-keyframes phone-vr-circle-fill {
    0% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }

    10% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
    }

    20% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
    }

    30% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
    }

    40% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
    }

    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }

    100% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }
}

@keyframes zoom {
    0% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
    }
}

.wrap-button-fixed {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #f5f6fa;
    width: 300px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 20px 40px 10px 20px;
    display: none;
}

.wrap-button-fixed.active {
    display: block;
}

.wrap-button-fixed .close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.wrap-button-fixed .close svg {
    width: 20px;
    height: 20px;
}

.wrap-button-fixed .link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wrap-button-fixed .link img {
    width: 40px;
    height: 40px;
}

.wrap-button-fixed .link .text {
    font-size: 18px;
}

.phone-vr-img-circle img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.footer-address {
    font-size: 15px;
    font-weight: 300;
}

.footer-address h3 {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--color-3);
}

@media (max-width: 992px) {
    .footer-content {
        margin-top: 15px;
    }

    .doi-tac-slider {
        padding-bottom: 30px;
    }

    .doi-tac-slider .slick-dots {
        bottom: -5px;
    }

    #button-contact-vr {
        transform: scale(0.6);
        bottom: 35px;
    }
}

@media (max-width: 768px) {
    .footer-bottom .tag {
        width: calc(25% - 10px);
    }
}

@media (max-width: 550px) {
    .person-contact {
        gap: 15px;
        justify-content: space-around;
    }

    .footer-bottom .tag {
        width: calc(50% - 10px);
    }

    .person-contact .info h3 {
        text-align: center;
    }

    .copyright .inner p {
        text-align: center;
        font-size: 13px;
    }
}