/* Main container */
.mengtai_foot {
    font-family: var(--font-family);
}

/* Footer main section with dark blue background */
.mengtai_foot .foot-main {
    background: var(--color-primary);
    padding: var(--component-gap-md) 0 20px;
}

.mengtai_foot .foot-content {
    display: flex;
    gap: var(--component-gap-md);
    justify-content: space-between;
}

/* Logo Section - Left */
.mengtai_foot .logo-section {
    max-width: 400px;
    flex-shrink: 0;
}

.mengtai_foot .logo-images {
    display: flex;
    flex-direction: column;
    gap: calc(var(--text-gap-lg) - 4px);
    margin-bottom: var(--component-gap-sm);
}

.mengtai_foot .foot-logo {
    max-width: 190px;
    height: auto;
    object-fit: contain;
}

.mengtai_foot .logo-desc {
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    margin: 0 0 var(--text-gap-lg);
}

/* Social media section */
.mengtai_foot .social-section {
    display: flex;
    align-items: center;
    gap: var(--text-gap-sm);
}

.mengtai_foot .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mengtai_foot .social-icon i {
    font-size: 18px;
    color: #fff;
    transition: color 0.3s ease;
}

.mengtai_foot .social-icon:hover {
    background: #fff;
}

.mengtai_foot .social-icon:hover i {
    color: var(--color-primary);
}

/* Navigation column - single column layout */
.mengtai_foot .nav-column {
    display: flex;
    max-width: 300px;
    flex-direction: column;
    flex-shrink: 0;
}

/* Navigation title with left line indicator */
.mengtai_foot .nav-title {
    color: #fff;
    font-family: var(--semibold-font-family);
    font-size: var(--title-size-h5);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 calc(var(--text-gap) + 10px);
    position: relative;
}


/* Navigation list */
.mengtai_foot .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mengtai_foot .nav-list li {
    margin-bottom: 0;
}

.mengtai_foot .nav-list a {
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 2.19;
    transition: color 0.3s ease;
    display: inline-block;
}

.mengtai_foot .nav-list a:hover {
    color: var(--color-second);
}

/* Contact column specific styles */
.mengtai_foot .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mengtai_foot .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--text-gap-sm);
    margin-bottom: var(--text-gap-sm);
}

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

.mengtai_foot .contact-icon {
    flex-shrink: 0;
}

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

.mengtai_foot .contact-item a,
.mengtai_foot .contact-item span {
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    /* line-height: 2; */
    word-break: break-word;
    transition: color 0.3s ease;
}

.mengtai_foot .contact-item a:hover {
    color: #fff;
}

.mengtai_foot .address-item span:last-child {
    line-height: 1.75;
}

/* QR Code Section - Right */
.mengtai_foot .qrcode-section {
    max-width: 350px;
    /* flex-shrink: 0; */
    text-align: center;
}

.mengtai_foot .qrcode-desc {
    color: #fff;
    font-family: var(--font-family);
    font-size: var(--text-size-md);
    font-weight: 400;
    line-height: 1.5;
    margin-top: 12px;
    text-align: center;
}

.mengtai_foot .qrcode-list {
    display: flex;
    gap: var(--text-gap-sm);
    justify-content: center;
}

.mengtai_foot .qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--text-gap-sm);
}

.mengtai_foot .qrcode-img-wrap {
    width: 166px;
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mengtai_foot .qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mengtai_foot .qrcode-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: var(--font-family);
    font-size: var(--text-flag-size);
    font-weight: 400;
    line-height: 1.39;
}

.mengtai_foot .qrcode-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Bottom section: Divider & Copyright */
.mengtai_foot .foot-bottom {
    margin-top: var(--component-gap-sm);
}

.mengtai_foot .divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--text-gap);
}

.mengtai_foot .copyright-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--text-gap);
}

.mengtai_foot .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.57;
    margin: 0;
}

.mengtai_foot .privacy-link {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.57;
    transition: color 0.3s ease;
}

.mengtai_foot .privacy-link:hover {
    color: #fff;
}

/* ===================================
   Responsive Styles
   Bootstrap breakpoints with max-width descending
   =================================== */

@media screen and (max-width: 1500px) {
    .mengtai_foot .logo-section {
        max-width: 300px;
    }
    .mengtai_foot .foot-logo {
        max-width: 180px;
    }
    .mengtai_foot .qrcode-img-wrap {
        width: 110px;
        height: 110px;
    }
}

@media screen and (max-width: 1280px) {
    .mengtai_foot .logo-section {
        max-width: 260px;
    }
    .mengtai_foot .foot-logo {
        max-width: 160px;
    }
    .mengtai_foot .social-icon {
        width: 32px;
        height: 32px;
    }
    .mengtai_foot .social-icon i {
        font-size: 16px;
    }
    .mengtai_foot .qrcode-img-wrap {
        width: 100px;
        height: 100px;
    }
    .mengtai_foot .qrcode-section {
        max-width: 240px;
    }
}

@media screen and (max-width: 1200px) {
    .mengtai_foot .foot-content {
        flex-wrap: wrap;
        gap: var(--component-gap-sm) var(--component-gap-md);
    }
    .mengtai_foot .logo-section {
        max-width: 100%;
        width: 100%;
    }
    .mengtai_foot .logo-images {
        flex-direction: row;
    }
    .mengtai_foot .qrcode-section {
        /* max-width: 100%; */
        /* flex-basis: 100%; */
    }
    .mengtai_foot .qrcode-list {
        /* justify-content: flex-start; */
    }
    .mengtai_foot .qrcode-desc {
        text-align: center;
    }
    .mengtai_foot .foot-bottom {
    margin-top: 60px;
}
}

@media screen and (max-width: 992px) {
    .mengtai_foot .foot-content {
        /* flex-direction: column; */
        gap: var(--component-gap-sm);
    }
    .mengtai_foot .logo-section,
    .mengtai_foot .nav-column,
    .mengtai_foot .qrcode-section {
        /* max-width: 100%; */
        width: 30%;
    }
    .mengtai_foot .logo-section{
        width: 100%;
    }
    .mengtai_foot .social-section {
        width: 100%;
        justify-content: flex-start;
    }
    .mengtai_foot .foot-main {
        padding: var(--component-gap-lg) 0 var(--text-gap-lg);
    }
    .mengtai_foot .nav-list a,
    .mengtai_foot .contact-item a, 
    .mengtai_foot .contact-item span {
        font-size: 14px;
    }
    .mengtai_foot .qrcode-img-wrap {
        width: 90px;
        height: 90px;
    }
}

@media screen and (max-width: 768px) {
    .mengtai_foot .nav-list a,
    .mengtai_foot .contact-item a, 
    .mengtai_foot .contact-item span {
        font-size: 13px;
    }
    .mengtai_foot .nav-column {
        margin-bottom: var(--text-gap);
    }
    .mengtai_foot .nav-column:last-child {
        margin-bottom: 0;
    }
    .mengtai_foot .nav-title {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }
    .mengtai_foot .nav-title::after {
        content: '';
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #fff;
        transition: transform 0.3s ease;
    }
    .mengtai_foot .nav-title.active::after {
        transform: rotate(180deg);
    }
    .mengtai_foot .nav-list,
    .mengtai_foot .contact-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, margin-top 0.3s ease;
        margin-top: 0;
    }
    .mengtai_foot .nav-title.active + .nav-list,
    .mengtai_foot .nav-title.active + .contact-list {
        max-height: 500px;
        margin-top: var(--text-gap);
    }
    .mengtai_foot .copyright-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--text-gap-sm);
    }
    .mengtai_foot .social-icon {
        width: 30px;
        height: 30px;
    }
    .mengtai_foot .social-icon i {
        font-size: 14px;
    }
    .mengtai_foot .logo-images {
        flex-direction: column;
        align-items: flex-start;
    }
    .mengtai_foot .foot-logo {
        max-width: 150px;
    }
    .mengtai_foot .qrcode-img-wrap {
        width: 100%;
        height: auto;
    }
    .mengtai_foot .foot-content {
        flex-direction: column;
    }
    .mengtai_foot .logo-section, .mengtai_foot .nav-column, .mengtai_foot .qrcode-section{
        width: 100%;
        max-width:100%;
    }
    .mengtai_foot .qrcode-section{
        width: 60%;
    }
    .mengtai_foot .qrcode-item{
        flex: 1;
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .mengtai_foot .email-input {
        padding: var(--text-gap-sm) var(--text-gap-md);
    }

    .mengtai_foot .submit-btn {
        padding: var(--text-gap-sm) var(--text-gap-md);
    }

    .mengtai_foot .submit-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 480px) {
    .mengtai_foot .social-icon {
        width: 28px;
        height: 28px;
    }
    .mengtai_foot .social-icon i {
        font-size: 12px;
    }
    .mengtai_foot .foot-logo {
        max-width: 130px;
    }
    .mengtai_foot .qrcode-label svg {
        width: 14px;
        height: 14px;
    }
}
