/* Footer Base */
.footer {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 15px 20px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-grid > div {
    margin-top: 0;
}

/* Headings */
.footer h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--white);
    position: relative;
    padding-bottom: 3px;
}

.footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    margin: 4px auto 0 auto; /* centers line */
}

.footer h3:hover::after {
    width: 50px;
    background: var(--primary-color);
}

/* About Text Justify */
.footer-about p {
    text-align: justify;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Lists */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 4px;
    font-size: 0.9rem;
    margin-top: 0;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Social Icons */
.footer .social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    padding-left: 0;
}

.footer .social-icons li {
    display: flex;
    align-items: center;
    background: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.footer .social-icons li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Icon colors only on hover */
.footer .social-icons li i {
    margin-right: 6px;
    font-size: 1rem;
    color: var(--white);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons li:hover i {
    transform: scale(1.2);
}

.footer .social-icons li.facebook:hover i {
    color: #1877f2; /* Facebook blue */
}
.footer .social-icons li.twitter:hover i {
    color: #1da1f2; /* Twitter blue */
}
.footer .social-icons li.youtube:hover i {
    color: #ff0000; /* YouTube red */
}
.footer .social-icons li.whatsapp:hover i {
    color: #25d366; /* WhatsApp green */
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 8px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--white);
}

/* =========================
   Responsive
========================= */
@media screen and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer .social-icons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }

    .footer .social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}
