/* ============================================
   FOOTER CSS - Từ Themes/Home
   ============================================ */

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--text-color-light);
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-color-light);
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer-logo {
    margin-bottom: 15px;
    width: 120px;
    aspect-ratio: 1/1;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-color-light);
    opacity: 0.7;
    font-size: 13px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--text-color-light);
    opacity: 1;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 13px;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.certification-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
}

/* Footer Support Staff (CSKH) */
.footer-support-staff {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-support-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.footer-support-item:hover {
    padding-left: 5px;
}

.footer-support-item:last-child {
    border-bottom: none;
}

.footer-support-info {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.footer-support-name {
    display: block;
    font-size: 14px;
    color: var(--text-color-light);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.footer-support-role {
    display: block;
    font-size: 12px;
    color: var(--text-color-light);
    opacity: 0.7;
    line-height: 1.4;
}

.footer-support-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.footer-support-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-color-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-support-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: transparent;
}

.footer-support-link i {
    font-size: 14px;
}

.footer-support-link svg {
    width: 16px;
    height: 16px;
}

.footer-support-phone:hover {
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.footer-support-zalo:hover {
    background-color: #0068ff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-color-light);
    opacity: 0.6;
}

/* Float Buttons */
.whatsapp-float,
.messenger-float {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 1000;
}

.messenger-float {
    bottom: 60px;
}

.whatsapp-float a,
.messenger-float a {
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.messenger-float a {
    background-color: #0084ff;
}

.whatsapp-float a:hover,
.messenger-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float i,
.messenger-float i {
    color: #fff;
    font-size: 28px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float,
    .messenger-float {
        right: 15px;
    }

    .whatsapp-float a,
    .messenger-float a {
        width: 45px;
        height: 45px;
    }
}
