/* ================================
   FOOTER - CINVICO Professional Style
   Consistent with page theme
   ================================ */

.site-footer {
    margin-top: auto;
}

/* Footer Main */
.footer-main {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 50px 0 40px;
    border-top: 3px solid #1a4fa0;
}

/* Footer Widget */
.footer-widget {
    height: 100%;
}

/* Company Logo */
.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-height: 45px;
    width: auto;
}

/* Company Name */
.company-name {
    color: #1a4fa0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer Contact Info */
.footer-contact {
    margin-top: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.contact-item i {
    color: #1a4fa0;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.contact-item span,
.contact-item a {
    flex: 1;
}

.contact-item a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1a4fa0;
}

/* Footer Titles */
.footer-title {
    color: #1a4fa0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1a4fa0, #2196F3);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #1a4fa0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #1a4fa0;
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Footer Bottom / Copyright */
.footer-bottom {
    background: #1a4fa0;
    padding: 18px 0;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer Badges (Bộ Công Thương) */
.footer-badges {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.footer-badges a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-badges a:hover {
    transform: scale(1.05);
    opacity: 1;
    text-decoration: none;
}

.footer-badges img {
    height: 50px;
    width: auto;
}

/* Footer Bottom Links */
.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 991.98px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 35px 0 25px;
    }

    .footer-widget {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 12px;
    }

    .company-name {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-badges img {
        height: 40px;
    }

    .footer-bottom-links {
        margin-top: 10px;
        gap: 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 30px 0 20px;
    }

    .footer-widget {
        margin-bottom: 25px;
    }

    .company-name {
        font-size: 0.8rem;
    }

    .contact-item {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding: 12px 0;
    }

    .footer-badges img {
        height: 35px;
    }

    .footer-bottom-links {
        font-size: 0.75rem;
    }
}
