.main-footer {
    background-color: #f7f7f2;
    color: #FFF;
    padding: 50px 0 30px;
    font-size: 14px;
    line-height: 1.6;
}

.main-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
    gap: 40px;
}

.main-footer .footer-logo img {
    max-width: 280px;
    margin-bottom: 12px;
    width: 100%;
}

.main-footer .footer-info p {
    margin-bottom: 8px;
}

.main-footer .footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.main-footer .footer-social h3 {
    font-weight: 400;
    font-size: 16px;
}

.main-footer .footer-social ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.main-footer .footer-social ul li {
    display: flex;
}

.main-footer .footer-social a {
    display: flex;
}

.main-footer .footer-social a:hover {
    color: #c4a163;
}

.main-footer .footer-social img {
    height: 25px;
    width: auto !important;
}

.main-footer .footer-bct img {
    height: 40px;
}

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

.main-footer .footer-policy li {
    margin-bottom: 8px;
}

.main-footer .footer-policy a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer .footer-policy a:hover {
    color: #c4a163;
}

.footer-col h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col ul {
    padding: 0;
    margin: 0;
    margin-left: 18px;
}

.footer-col ul li {
    margin-bottom: 5px;
    position: relative;
    font-size: 15px;
}

.footer-col ul li a {
    color: #FFF;
    font-weight: 300;
}

.footer-col ul li a:hover {
    color: var(--color-sub);
}

.main-footer .footer-branch strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.main-footer .footer-branch p {
    color: #555;
    margin-bottom: 10px;
}

.main-footer .footer-branch em {
    font-size: 13px;
    color: #777;
}

.main-footer .map-link {
    color: #c4a163;
    text-decoration: underline;
    font-weight: 600;
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #FFFFFF33;
    padding-top: 15px;
}

.copyright .left a {
    color: #FFF;
}

/* Utilities */
.mt-4 {
    margin-top: 2rem !important;
}

/* Responsive Footer */
@media (max-width: 1199px) {
    .main-footer .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .main-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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

    .main-footer .footer-social {
        justify-content: center;
    }

    .main-footer .footer-list li {
        padding-left: 0;
    }

    .main-footer .footer-list li::before {
        display: none;
    }
}

.backtotop {

    cursor: pointer;
    background: var(--color-primary);
    bottom: 10px;
    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;
    height: 45px;
    border: 1px solid #FFF;

}

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

.backtotop svg path {
    stroke: #fff;
}


/* ===== WIDGET WRAPPER ===== */
#widget {
    position: fixed;
    bottom: 75px;
    right: 12px;
    z-index: 99;
}

/* ===== POPUP PANEL ===== */
#panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: none;
    animation: slideUp 0.25s ease;
}

#panel.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Header */
.panel-header {
    background: var(--color-primary);
    padding: 12px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    /* cursor: pointer; */
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.15s;
    text-decoration: none;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: #fafafa;
}

.contact-icon {
    display: flex;
    border-radius: 50%;
}

.contact-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    padding: 5px;
    border-radius: 50%;
}

#fab img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    position: absolute;
    transition: opacity 0.25s, transform 0.25s;
    opacity: 0;
    transform: scale(0.7);
}

.contact-text {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.contact-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* ===== FLOATING BUTTON ===== */
#fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    outline: none;
    position: relative;
    background: var(--color-5);
    box-shadow: 0 6px 20px rgb(36 40 84 / 50%);
}

#fab:hover {
    transform: scale(1.1);
}

#fab img {
    width: 26px;
    height: 26px;
    /* fill: white; */
    position: absolute;
    transition: opacity 0.25s, transform 0.25s;
}

/* Pulse ring */
#fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid var(--color-5);
    opacity: 0.4;
    animation: pulse 2s ease-out infinite;
}

.footer-widget .text-description strong {
    font-size: 16px;
    letter-spacing: 0.4px;
    font-weight: 900;
    color: #FFF;
}

.footer-widget .text-description span {
    font-size: 12px;
    color: var(--color-5);
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

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

/* Close X button style */
#fab.is-open::before {
    display: none;
}

#fab.is-open {
    transform: none;
}

#fab.is-open:hover {
    transform: rotate(90deg);
}

.fab-close {
    width: 24px;
    height: 24px;
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#fab.is-open .fab-close {
    display: flex;
}

.fab-close::before,
.fab-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2.5px;
    background-color: #fff;
    border-radius: 2px;
}

.fab-close::before {
    transform: rotate(45deg);
}

.fab-close::after {
    transform: rotate(-45deg);
}

/* Backdrop */
#backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 98;
}

#backdrop.active {
    display: block;
}

@media (max-width: 575px) {
    .backtotop {
        bottom: 60px;
    }

    #widget {
        bottom: 125px;
    }
}

@media (max-width: 380px) {

    .footer-widget-box.list,
    .footer-widget-box.certification {
        grid-column: span 2;
    }
}