/* ====================================================
   Back to top button
   ==================================================== */
.backtotop {
    cursor: pointer;
    background: var(--color-3);
    bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px;
    position: fixed;
    right: 12px;
    text-align: center;
    text-transform: uppercase;
    width: 40px;
    z-index: 999;
    border-radius: 4px;
    border: 1px solid #FFF;
}

.backtotop svg {
    width: 26px;
    height: 18px;
    margin-bottom: -1px;
}

.backtotop svg path {
    stroke: #fff;
}

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

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-5);
    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 {
    /* width: 34px;
    height: 34px; */
    border-radius: 50%;
    object-fit: cover;
}

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

.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-5);
    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: 350px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px 0;
    background: transparent;
    color: #0f172a;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.panel-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.2;
}

.panel-info span {
    font-size: 13px;
    color: #22c55e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
}

.close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.panel-greeting {
    padding: 0;
    font-size: 14px;
    color: #475569;
    margin: 0 0 16px 0;
    border-bottom: none;
    line-height: 1.5;
    font-weight: 400;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    background: #edf5fd;
    border: 1px solid #d0e4ff;
    color: #0f172a !important;
    transition: all 0.2s ease;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    background: #e2f0fe;
    border-color: #3b82f6;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.contact-item .icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
}

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

.contact-text {
    flex: 1;
}

.contact-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1.25;
}

.contact-text p {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
    font-weight: 400;
}

.contact-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-arrow {
    color: #475569;
    transform: translateX(2px);
}

.icon-bvc-member svg {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.icon-headset {
    fill: #3b82f6;
    width: 38px;
    height: 38px;
}


/* ====================================================
   Site Footer Custom Layout (CLB Toán 9+)
   ==================================================== */
.site-footer {
    background-color: #f0f0f0;
    color: #333333;
    font-family: inherit;
    padding-top: 40px;
    /* border-top: 1px solid #e2e8f0; */
}

.footer-main-content {
    padding-bottom: 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.25fr 1.3fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Map Column */
.footer-map-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
    background: #ffffff;
}

.footer-map-box iframe {
    display: block;
    width: 100%;
    height: 190px;
    border: 0;
    border-radius: 12px;
}

/* Brand Column */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-col-brand>p {
    margin: 0 0 10px 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #4a5568;
}

.footer-col-brand p img.image,
.footer-col-brand img.image {
    max-height: 80px;
    width: auto !important;
    display: block;
    object-fit: contain;
    margin-bottom: 8px;
}

.brand-icon-wrapper {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.brand-title-text {
    font-size: 24px;
    font-weight: 800;
    color: #001594;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 13.5px;
    line-height: 1.65;
    color: #4a5568;
    margin: 0 0 16px 0;
}

.footer-social-list {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.social-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    overflow: hidden;
    background-color: var(--color-3);
}

.social-item img {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.social-item:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-item svg {
    width: 18px;
    height: 18px;
}

.social-fb {
    background-color: #1877f2;
}

.social-yt {
    background-color: #ff0000;
}

.social-zalo {
    background-color: #ea4335;
}

/* Section Titles */
.footer-col-title,
.footer-col-info h2,
.footer-col-info h3,
.footer-col-menu h2,
.footer-col-menu h3 {
    font-size: 18px;
    font-weight: 700;
    color: #001594;
    margin: 0 0 18px 0;
    text-transform: uppercase;
}

/* Contact Info Column */
.footer-contact-items,
.footer-col-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-line,
.footer-col-info ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #2d3748;
}

.contact-icon,
.footer-col-info ul li img.image,
.footer-col-info ul li img {
    width: 20px;
    height: 20px;
    /* border-radius: 50%; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    /* padding: 4px; */
    object-fit: contain;
}

.footer-col-info ul li img {
    filter: brightness(0);
}

.contact-icon svg {
    width: 14px;
    height: 14px;
}

.contact-val,
.footer-col-info ul li a {
    color: #2d3748;
    text-decoration: none;
    word-break: break-word;
}

.contact-val strong {
    color: #001594;
    font-weight: 700;
}

.phone-link {
    font-weight: 700;
    color: #001594;
    font-size: 15px;
}

.email-link {
    font-weight: 600;
    color: #001594;
}

.contact-val:hover,
.footer-col-info ul li a:hover {
    color: #1a56b0;
}

/* Menu Column */
.footer-quick-links,
.footer-col-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-quick-links li a,
.footer-col-menu ul li {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col-menu ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #001594;
    font-weight: 700;
    font-size: 13px;
}

.footer-col-menu ul li a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-quick-links li a:hover,
.footer-col-menu ul li:hover,
.footer-col-menu ul li a:hover {
    color: #001594;
}

.arrow-icon {
    color: #001594;
    font-weight: 700;
    font-size: 13px;
}

/* Copyright Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid #e1e7f0;
    padding: 16px 0;
    background-color: #f0f0f0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #4a5568;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.copyright-left {
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright-left p {
    margin: 0;
}

.copyright-left p a {
    color: #001594;
    text-decoration: none;
    font-weight: 700;
}


/* Responsive Breakdown */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

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

    .footer-bottom-content,
    .copyright-left {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-main-content {
        padding-bottom: 20px;
    }
}
