

html, body {
    overflow-x: hidden;
}

/* ============================================
   Footer - exact layout / color match
============================================ */

.main-footer {
    background: #16332d;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.main-footer *,
.main-footer *::before,
.main-footer *::after {
    box-sizing: border-box;
}

.main-footer .widget-section {
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

/* ---- 4-column grid: equal gaps, no negative-margin overflow ---- */
.main-footer .row.clearfix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-footer .footer-column {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    flex: none !important;
}

/* ---- Column 1: Logo ---- */
.main-footer .logo-column figure.footer-logo {
    margin-bottom: 18px;
    text-align: left;
}

.main-footer .logo-column figure.footer-logo img {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 316px !important;
    height: auto;
}

.main-footer .footer-tagline {
    display: block;
    margin: 28px 0 15px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
    text-align: center;
}

.main-footer .know-more-btn {
    display: inline-block;
    background: #f0793c;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 14px 26px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 22px;
    transition: background .2s ease;
}

.main-footer .know-more-btn:hover {
    background: #e0672b;
    color: #fff !important;
}

/* ---- Widget titles ---- */
.main-footer .widget-title h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
}

/* ---- Column 2: Quick Links ---- */
.main-footer .links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-footer .links-list li {
    margin-bottom: 14px;
}

.main-footer .links-list li a {
    color: #ffffff !important;
    font-size: 15px;
    text-decoration: none;
    transition: color .2s ease;
}

.main-footer .links-list li a:hover {
    color: #f0793c;
}

/* ---- Column 3: Party Office (icon rows) ---- */
.main-footer .contact-widget .widget-content {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.main-footer .info-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.main-footer .info-row .icon-box {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    background: #0f2621;
    border: 1px solid #2a4a43;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer .info-row .icon-box i {
    color: #f0793c;
    font-size: 20px;
}

.main-footer .info-row .info-text {
    min-width: 0;
}

.main-footer .info-row .info-text h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 8px;
}

.main-footer .info-row .info-text p,
.main-footer .info-row .info-text p a {
    color: #cfd9d6;
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;
    margin: 0;
    word-break: break-word;
}

.main-footer .info-row .info-text p a:hover {
    color: #f0793c;
}

/* ---- Column 4: Portrait image ---- */
.main-footer .image-widget {
    text-align: left;
    position: relative;
}

.main-footer .image-widget figure {
    margin: 0;
}

.main-footer .image-widget figure img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: inline-block;
}

/* ---- Divider above footer-bottom ---- */
.main-footer .widget-section::after {
    content: "";
    display: block;
    max-width: 1320px;
    margin: 30px auto 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

/* ---- Footer bottom ---- */
.main-footer .footer-bottom {
    background: #1c3f38;
    padding: 18px 0;
    position: relative;
    z-index: 2;
}

.main-footer .footer-bottom .bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer .footer-bottom .copyright p {
    margin: 0;
    color: #cfd9d6;
    font-size: 14px;
    text-align: center;
}

.main-footer .footer-bottom .copyright p a {
    color: #f0793c;
    text-decoration: none;
}

.main-footer .footer-bottom .copyright p a:hover {
    text-decoration: underline;
}

.main-footer .footer-bottom .footer-nav {
    display: none;
}

/* ---- Floating action stack (feedback / whatsapp / scroll-top) ---- */
.footer-float-stack {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 40px);
}

.footer-float-stack .feedback-pill {
    background: #4caf7d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.footer-float-stack .whatsapp-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    flex-shrink: 0;
}

/* ============================================
   TABLET
============================================ */
@media (max-width: 991px) {
    .main-footer .row.clearfix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 30px;
    }

    .main-footer .image-widget {
        text-align: center;
        margin-top: 10px;
    }

    .main-footer .image-widget figure img {
        max-width: 220px;
    }
}

/* ============================================
   MOBILE - single centered column, no overflow
============================================ */
@media (max-width: 767px) {
    .main-footer .row.clearfix {
        grid-template-columns: 1fr;
        gap: 34px;
        justify-items: center;
    }

    .main-footer .footer-column {
        text-align: center;
        width: 100% !important;
        max-width: 400px !important;
    }

    .main-footer .logo-column figure.footer-logo {
        display: flex;
        justify-content: center;
    }

    .main-footer .links-list {
        display: inline-block;
        text-align: left;
    }

    .main-footer .contact-widget .widget-content {
        align-items: center;
    }

    .main-footer .info-row {
        text-align: left;
        justify-content: center;
    }

    .main-footer .image-widget {
        text-align: center;
    }

    .main-footer .image-widget figure {
        margin: 0 auto;
        max-width: 200px;
    }

    .footer-float-stack {
        right: 12px;
        bottom: 16px;
    }
}
