.footer {
    position: relative;
    background: #f7f7f7;
    padding: 40px 0 20px 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    color: #222;
    background-color: #fafafa;
    border-top: 1px solid #3c3b3b;
    bottom: -2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}
.footer__left {
    flex: 1 1 220px;
    min-width: 220px;
    /* border: 1px solid crimson; */
}
.footer__logo {
    width: 110px;
    margin-bottom: 30px;
    color: #222;
}
.footer__copyright {
    margin-bottom: 8px;
    color: #222;
    font-size: 14px;
}
.footer__links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin-right: 8px;
}
.footer__links a:last-child {
    margin-right: 0;
}
.footer__center {
    display: flex;
    gap: 60px;
    min-width: 300px;
    /* border: 1px solid crimson; */
}
.footer__section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    /* border: 1px solid crimson; */
}
.footer__title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}
.footer__section a {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.footer__section a:hover {
    color: #007bff;
}
.footer__right {
    /* flex: 1 1 120px; */
    min-width: 120px;
}
.footer__social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.footer__icon {
    color: #222;
    font-size: 20px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Brand colors for social icons (applies to desktop + mobile)
   - targets the <i> element classes from FontAwesome and the anchor for SVG (Twitter/X)
*/
.footer__icon .fa-instagram,
.footer__icon .fab.fa-instagram {
    color: #E1306C;
}
.footer__icon .fa-facebook,
.footer__icon .fab.fa-facebook,
.footer__icon .fab.fa-facebook-f {
    color: #1877F2;
}
.footer__icon .fa-youtube,
.footer__icon .fab.fa-youtube {
    color: #FF0000;
}
.footer__icon .fa-whatsapp,
.footer__icon .fab.fa-whatsapp {
    color: #25D366;
}
.footer__icon .fa-tiktok,
.footer__icon .fab.fa-tiktok {
    color: #000000;
}
.footer__icon .fa-envelope,
.footer__icon .fas.fa-envelope {
    color: #6c757d;
}
/* Twitter/X uses an inline SVG with fill="currentColor" so set color on the anchor itself */
.footer__icon[title*="Twitter"],
.footer__icon[title*="X"] {
    color: #1DA1F2;
}
.footer__icon:hover {
    color: #007bff;
}
@media (max-width: 900px) {
    .footer__container {
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
    }
    .footer__center {
        gap: 32px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 24px 0 12px 0;
        font-size: 14px;
    }
    .footer__container {
        gap: 16px;
        padding: 0 16px;
    }
    .footer__left,
    .footer__center,
    .footer__right {
        width: 100%;
        min-width: unset;
        align-items: flex-start;
        flex: unset;
    }
    .footer__logo {
        width: 80px;
        margin-bottom: 16px;
    }
    .footer__center {
        /* Pada mobile, tampilkan dua kolom untuk section 'Tentang' dan 'Panduan' */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 16px 0;
    }
    .footer__section {
        width: auto;
        gap: 4px;
    }
    .footer__right {
        margin-top: 12px;
    }
    .footer__social {
        gap: 12px;
        margin-top: 4px;
    }
    .footer__icon {
        font-size: 22px;
        padding: 8px;
        border-radius: 50%;
        background: transparent; /* polos */
        box-shadow: none; /* hilangkan shadow */
    }

    /* Mobile: arrange social icons into 2 rows to avoid cramped single-line */
    .footer__social {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        gap: 12px;
        align-items: center;
    }
    .footer__icon {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-self: center;
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent; /* polos */
        box-shadow: none;
    }
    .footer__copyright {
        font-size: 13px;
    }
    .footer__links {
        font-size: 12px;
    }
}
