/* ====================================================
   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: 9999;
}

.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: #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-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: 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-3);
    color: #fff;
}

.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: #fff;
    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-5);
    font-size: 20px;
}

/* ====================================================
   Footer Component Layout & Styling
   ==================================================== */
.site-footer {
    background-color: #ffffff;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-family);
    border-top: 1px solid #eaeaea;
}

/* Background graphics representing modern energy styling */
.site-footer::before {
    content: "";
    position: absolute;
    bottom: 48px; /* height of footer-bottom */
    left: 0;
    width: 45%;
    height: 180px;
    background: linear-gradient(30deg, rgba(0, 139, 70, 0.06) 0%, rgba(0, 139, 70, 0.12) 50%, rgba(0, 139, 70, 0) 80%);
    clip-path: polygon(0 100%, 100% 100%, 0 20%);
    z-index: 1;
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: 48px;
    right: 0;
    width: 280px;
    height: 150px;
    background-image: radial-gradient(rgba(0, 139, 70, 0.08) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    position: relative;
    z-index: 2; /* above the background shapes */
    padding-bottom: 40px;
}

.footer-col {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

.footer-col-brand {
    flex: 0 0 28%;
    max-width: 28%;
}

.footer-col:not(.footer-col-brand) {
    flex: 0 0 18%;
    max-width: 18%;
}

/* Title styling */
.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    position: relative;
    padding-left: 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: #008b46;
    border-radius: 2px;
}

/* Contact Info Styling */
.contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-col-contact .contact-info-group:first-of-type {
    border-bottom: 1.5px dashed #008b46;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.contact-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.contact-value {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value:hover {
    color: #008b46;
}

/* Links Styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #008b46;
    transform: translateX(4px);
}

/* Brand column styling */
.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

.footer-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Social icons styling */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon.linkedin {
    background-color: #0077b5;
}
.social-icon.facebook {
    background-color: #1877f2;
}
.social-icon.tiktok {
    background-color: #000000;
}
.social-icon.x {
    background-color: #000000;
}
.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #e2ecec;
    padding: 15px 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.copyright-text {
    font-size: 13px;
    color: #555;
    margin: 0;
    text-align: center;
}

/* Responsive media queries */
@media (max-width: 1024px) {
    .footer-col:not(.footer-col-brand) {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .footer-col-brand {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
        border-top: 1px dashed #eaeaea;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 40px;
    }
    .footer-col:not(.footer-col-brand) {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .site-footer::before {
        width: 100%;
        height: 120px;
        clip-path: polygon(0 100%, 100% 100%, 0 0);
    }
    .site-footer::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-col:not(.footer-col-brand) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .footer-col-contact .contact-info-group:first-of-type {
        border-bottom: 1.5px dashed #008b46;
        padding-bottom: 12px;
        margin-bottom: 12px;
        max-width: 100%;
    }
}