
/* --- Base --- */
.site-footer {
    background-color: #000;
    color: #fff;
    font-family: 'Gotham', sans-serif;
    font-weight: 400;
}

/* Override Bootstrap .container */
.footer-container {
    /* Ying - remove max-width */
    /* max-width: 1440px; */
    padding-left: 20px;
    padding-right: 20px;
}

/* --- CTA Section --- */
.footer-cta {
    padding-top: 60px;
    padding-bottom: 60px;
}

.cta-heading {
    display: inline-block;
    position: relative;
    font-weight: 700;
    font-size: calc(30px + 30 * ((100vw - 480px) / 1140));
    line-height: 1;
    color: #fff;
    margin: 0 0 60px; /* Ying - updated the margin */
    padding-left: 20px;  /* Ying - updated the padding */
}

.cta-heading::before {
    content: "";
    background: #00BE65;
    display: block;
    height: calc(100% - 0.3em);
    left: 0;
    position: absolute;
    top: 0.15em;
    width: 3px;
}

.cta-sub {
    font-size: calc(18px + 4 * ((100vw - 480px) / 1140));
    color: #fff;
    margin: 0 0 40px; /* Ying - updated the margin */
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.25s ease-out;
    vertical-align: middle;
    line-height: 1.2;
}

.cta-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* Green circle */
.cta-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background-color: #00be65;
    flex-shrink: 0;
    transition: transform 0.45s ease;
    position: relative;
    transition-delay: 0.2s;
}

.cta-btn:hover .cta-btn-icon {
    transform: scale(1.2);
}

.cta-btn-icon svg {
    width: 19px;
    height: 19px;
    stroke: #fff;
    display: block;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 54%;
}

/* --- Footer Bottom --- */
.footer-bottom {
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 60px;
    opacity: 1;
}

.footer-main {
    margin-bottom: 75px;
}

/* --- Nav Menu --- */
.footer-nav li {
    margin-bottom: 29px;
}

.footer-nav li:last-child {
    margin-bottom: 0;
}
/* Ying - Added new style here */
.legal-links li{
    margin-bottom: 11px;
}
#menu-footer-menu {
    padding-top: 2vh;
}
/* Ying - Added new style here ended */

.footer-nav a {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-block;
}

.footer-nav:hover a {
    color: rgba(255, 255, 255, 0.35);
}

.footer-nav li:hover > a {
    color: #00be65;
}

.footer-nav li.current-menu-item > a,
.footer-nav li.current_page_item > a {
    color: #00be65;
}

/* --- Social Links --- */
.footer-social {
    gap: 29px 28px; /* Bashierah - updated gap */
    padding-top: 2vh; /* Bashierah - replaced margin-top */
    width: 100%; 
    align-content: flex-start; /* Bashierah - added align-content */
}

.social-link {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.6;
}

.social-link:hover {
    color: #fff;
    text-decoration: none;
}

/* --- Legal Row --- */
.footer-legal {
    align-items: flex-start !important;
    padding-bottom: 8%;
}
/* Ying - Hide this style */
/* .legal-link-block {
    margin-top: 14px;
} */

.legal-links li + li:not(.legal-link-block) {
    margin-left: 40px;
}

.legal-link {
    font-size: calc(15.1579px + 0.175439vw);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
    line-height: 1.6;
}

.legal-link:hover {
    color: #fff;
    text-decoration: none;
}

.footer-copyright {
    font-size: calc(15.1579px + 0.175439vw);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    padding-top: 2px;
    line-height: 1.6;
}

/* ---- Tablet (≤ 1024px) ---- */ /* Ying - Remove the padding for footer-container */
/* @media (max-width: 1024px) { 
    .footer-container {
        padding-left: 48px;
        padding-right: 48px;
    }

} */

/* ---- Mobile (< 768px — Bootstrap md breakpoint) ---- */
@media (max-width: 767px) {
    /* Ying - Remove the padding for footer-container */
    /* .footer-container {
        padding-left: 24px;
        padding-right: 24px;
    } */

    /* Ying - Remove the margin */
    /* .cta-heading {
        margin-bottom: 28px;
    } */

    .footer-main {
        margin-bottom: 32px;
    }

    .footer-nav li {
        margin-bottom: 24px;
    }

    .footer-divider {
        margin-bottom: 40px;
    }

    .footer-social {
        /* margin-top: 40px; */ /* Ying - Remove the margin */
        justify-content: flex-start;
        gap: 24px 28px; 
    }

    .social-link {
        font-size: 16px;
    }

    .footer-legal {
        align-items: flex-start !important;
    }

    .footer-copyright {
        margin-top: 24px;
        padding-top: 0;
    }
}

/* ---- Small Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    .footer-social {
        flex-direction: column; /* stack vertically on small mobile only */
        gap: 24px 28px; 
    }

    .legal-links li + li:not(.legal-link-block) {
        margin-left: 20px;
    }
}
/* Ying - Added new style here */
@media only screen and (min-width: 480px) {
    .footer-container{
        padding-left: 50px;
        padding-right: 50px;
        margin: auto;
    }
    /* Ying - added the padding */
    .cta-heading {
        padding-left: 40px; 
    }
}
@media only screen and (min-width: 551px) and (max-width: 899px) {
    .footer-cta > .footer-container .col-12{
        margin: auto;
        max-width: 450px;
        padding: 0;
    }
}
@media only screen and (min-width: 720px) {
    .footer-cta {
        padding-top: 8%;
        padding-bottom: 8%;
    }
}
@media only screen and (min-width: 1280px) {
    .footer-container{
        padding-left: calc((100% - 1180px) / 2);
        padding-right: calc((100% - 1180px) / 2);
    }
}
@media only screen and (min-width: 1620px) {
    .cta-sub{
        font-size: 22px;
    }
    .footere-bottom, .legal-link, .footer-copyright{
        font-size: 18px;
    }
    .cta-heading{
        font-size: 60px;
    }
}