/* ====================================================
   Newsletter / ÄÄƒng kÃ½ nháº­n tin Section
   ==================================================== */


/* ====================================================
   Back to top button
   ==================================================== */
.backtotop {
    position: fixed;
    bottom: 12px;
    right: 20px;
    z-index: 999;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.backtotop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* VÃ²ng trÃ²n ngoÃ i */
.backtotop-inner {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #29271f;
    border: 1px solid #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* SVG progress ring */
/* .backtotop-svg {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.backtotop-track {
    fill: none;
    stroke: rgba(212, 167, 84, 0.18);
    stroke-width: 2.5;
}

.backtotop-progress {
    fill: none;
    stroke: var(--color-2);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 138.2;
    stroke-dashoffset: 138.2;
    transition: stroke-dashoffset 0.1s linear;
} */

/* Arrow icon */
.backtotop-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s, transform 0.25s;
}

.backtotop:hover .backtotop-arrow {
    color: #f0c860;
    transform: translateY(-2px);
}

.backtotop-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ====================================================
   Support Widget / Contact Panel
   ==================================================== */
.support-widget {
    position: fixed;
    bottom: 69px;
    right: 15px;
    z-index: 9998;
}

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-2);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 167, 84, 0.4);
    transition: transform 0.2s;
}

.trigger-btn:hover {
    transform: scale(1.05);
}

.trigger-btn .icon-bvc-member img {
    border-radius: 50%;
    object-fit: cover;
}

.trigger-btn .icon-close-main {
    display: none;
    width: 22px;
    height: 22px;
    fill: #111;
}

.trigger-btn.active .icon-bvc-member {
    display: none;
}

.trigger-btn.active .icon-close-main {
    display: block;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-2);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #1a1c22;
    border: 1px solid rgba(212, 167, 84, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.contact-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--color-2);
    color: #111;
}

.panel-title {
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    gap: 10px;
}

.panel-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.panel-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.panel-info span {
    font-size: 11px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
}

.close-btn {
    background: none;
    border: none;
    color: #111;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.panel-greeting {
    padding: 14px 16px;
    font-size: 13px;
    color: #bbb;
    margin: 0;
    border-bottom: 1px solid #2a2c32;
}

.contact-list {
    padding: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #eee;
    transition: background 0.2s;
    gap: 10px;
}

.contact-item:hover {
    background: rgba(212, 167, 84, 0.1);
    text-decoration: none;
}

.contact-item .icon-wrap {
    flex-shrink: 0;
}

.contact-item .icon-wrap img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.contact-text strong {
    font-size: 16px;
    font-weight: 600;
    color: #eee;
}

.contact-text p {
    font-size: 13px;
}

.contact-arrow {
    margin-left: auto;
    color: var(--color-2);
    font-size: 20px;
}

/*=========================
        FOOTER
=========================*/

.site-footer {
    background: #44863E;
    color: #fff;
}

.footer-main {
    padding: 30px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 20px;
}

.footer-item {
    padding: 0;
    position: relative;
}

.footer-item:not(:first-child) {
    border-left: 1px dashed rgba(255, 255, 255, .3);
    padding-left: 20px;
}

/*=========================
        TITLE
=========================*/

.footer-item h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #fff;
}

/*=========================
      CONTACT
=========================*/

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 18px;

    font-size: 15px;
    line-height: 1.7;
}

.footer-contact i {
    width: 18px;
    margin-top: 3px;
    color: #fff;
    text-align: center;
}

/*=========================
      SOCIAL
=========================*/

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 30px;
    height: 30px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;

    transition: .3s;
}

.footer-social a:hover {
    background: #98ca3d;
    color: #4d9342;
}

/*=========================
        MENU
=========================*/

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 16px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.footer-menu a:hover {
    padding-left: 8px;
}

/*=========================
      NEWSLETTER
=========================*/

.footer-item p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-form {
    position: relative;
}

.footer-form input {

    width: 100%;
    height: 48px;

    padding: 0 55px 0 16px;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);

    color: #fff;
    outline: none;
}

.footer-form input::placeholder {
    color: rgba(255, 255, 255, .85);
}

.footer-form button {

    position: absolute;
    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: none;

    color: #fff;
    cursor: pointer;

    font-size: 18px;
}

/*=========================
      FOOTER BOTTOM
=========================*/

.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, .15);

    padding: 12px 0;

    text-align: center;
}

.footer-bottom p {

    margin: 0;

    font-size: 14px;

    color: #fff;
}

.footer-item h3 {
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 27px;
}

.footer-contact h4 {
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-news-text {
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
}

.footer-menu li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 9px;
    width: 5px;
    height: 5px;
    background: #fff;
}

.footer-item h2 {
    text-transform: uppercase;
    font-size: 19px;
    margin-bottom: 15px;
}

.footer-item ul {}

.footer-item ul li {
    margin-left: 20px;
    padding-bottom: 9px;
    font-size: 15px;
}

.footer-item ul li a {
    color: #fff;
}

.footer-item ul li a:hover {
    color: #FF0;
}

/*=========================
      RESPONSIVE
=========================*/

@media(max-width:1200px) {

    .footer-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 45px;
    }

    .footer-item {

        border: none !important;
    }

    .footer-item:not(:first-child) {
        padding-left: 0px;
    }

}

@media(max-width:768px) {

    .footer-main {

        padding: 30px 0;
    }

    .footer-grid {

        gap: 0px 10px;
    }

    .footer-item.item-1,
    .footer-item.item-4 {
        grid-column: 1 / -1;
    }

    .footer-item {

        padding: 0;

        border: none;

        border-bottom: 1px dashed rgba(255, 255, 255, .25);

        padding-bottom: 20px;
    }

    .footer-item:last-child {

        border: none;
        padding-bottom: 0;
    }

    .footer-item h3 {

        font-size: 18px;

        margin-bottom: 20px;
    }

    .footer-contact li,
    .footer-menu a,
    .footer-item p {

        font-size: 15px;
    }

    .footer-social a {

        width: 36px;
        height: 36px;
    }

    .footer-form input {

        height: 44px;
    }

}

@media(max-width:380px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-item a img {
    width: 15px;
    height: 15px;
    object-fit: contain
}

.quick-contact-stack {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.qcs-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: none;
    outline: none;
}

.qcs-btn:hover {
    transform: scale(1.08);
}

.qcs-backtotop {
    background-color: #8c8c8c;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.qcs-backtotop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qcs-backtotop svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
}

.qcs-zalo {
    background-color: #0084ff;
    border-radius: 50%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.3px;
}

.qcs-messenger {
    background-color: #0084ff;
    border-radius: 50%;
}

.qcs-hotline-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;
}

.qcs-hotline-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none !important;
    height: 52px;
}

.qcs-hotline-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #e51c24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(229, 28, 36, 0.4);
}

.qcs-pulse-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(229, 28, 36, 0.45);
    border-radius: 50%;
    animation: qcsPulse 2s infinite ease-out;
    pointer-events: none;
    z-index: 1;
}

.qcs-pulse-ring.delay {
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    border-width: 1.5px;
    animation-delay: 0.5s;
}

@keyframes qcsPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.qcs-hotline-text {
    position: absolute;
    right: 20px;
    height: 48px;
    line-height: 48px;
    background-color: #e51c24;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    padding: 0 42px 0 22px;
    border-radius: 25px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    /* box-shadow: 0 4px 15px rgba(229, 28, 36, 0.3); */
}

.qcs-hotline-wrap:hover .qcs-hotline-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}
