.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--primary);
    padding: 80px 0 40px;
    position: relative;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background: var(--text-light);
    margin-bottom: 24px;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 240px;
}

.social-icons {
    margin-top: 24px;
}

.social-icons a {
    color: var(--primary);
    margin-right: 20px;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.newsletter-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.newsletter-box {
    display: flex;
}

.newsletter-input {
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    padding: 0 16px;
    flex-grow: 1;
    width: 100%;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
}

.newsletter-btn {
    background: var(--primary);
    color: var(--black);
    border: none;
    padding: 0 24px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 12px;
    color: var(--text-gray);
}

.footer-policy {
    display: flex;
    gap: 24px;
}

.footer-policy a {
    font-size: 12px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-policy a:hover {
    color: var(--primary);
}

.back-to-top {
    position: absolute;
    right: 30px;
    bottom: 100px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

@media(max-width:991px) {
    .footer {
        text-align: center;
        padding: 60px 0 40px;
    }

    .footer-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }

    .newsletter-box {
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }

    .back-to-top {
        position: static;
        margin: 30px auto 0;
    }
}