.footer {
    background-color: #023875;
    padding: 2rem 0;
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

.footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.kem-parent {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.kem-icon {
    width: 80px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.kementerian-pendidikan-dasar-d-parent {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

.kementerian-pendidikan-dasar,
.direktorat-jenderal-pendidikan {
    margin: 0;
    padding: 0;
    color: white;
    width: 100%;
    display: block;
    text-align: left;
}

.kementerian-pendidikan-dasar {
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    line-height: 1.4;
}

.direktorat-jenderal-pendidikan {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    line-height: 1.3;
}

.social-media {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .footer-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .kementerian-pendidikan-dasar,
    .direktorat-jenderal-pendidikan {
        font-size: 0.85rem;
    }
}

/* Tablets and large phones */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer-inner {
        padding: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0;
    }

    .kem-parent {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .kementerian-pendidikan-dasar-d-parent {
        text-align: center;
        padding: 0 1rem;
    }

    .kementerian-pendidikan-dasar,
    .direktorat-jenderal-pendidikan {
        text-align: center;
    }

    .kementerian-pendidikan-dasar {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .direktorat-jenderal-pendidikan {
        font-size: clamp(0.7rem, 2.3vw, 0.8rem);
        line-height: 1.25;
        margin-bottom: 0.25rem;
    }

    .social-media {
        margin-top: 0.5rem;
        justify-content: center;
        padding: 0;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Medium-sized phones */
@media (max-width: 600px) {
    .footer {
        padding: 1.25rem 0;
    }

    .kem-parent {
        padding: 0 0.75rem;
    }

    .kem-icon {
        width: 70px;
    }

    .kementerian-pendidikan-dasar-d-parent {
        padding: 0 0.75rem;
    }

    .kementerian-pendidikan-dasar {
        font-size: clamp(0.7rem, 3vw, 0.8rem);
        line-height: 1.25;
    }

    .direktorat-jenderal-pendidikan {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
        line-height: 1.2;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .footer {
        padding: 1rem 0;
    }

    .kem-parent {
        padding: 0 0.5rem;
    }

    .kem-icon {
        width: 60px;
    }

    .kementerian-pendidikan-dasar-d-parent {
        padding: 0 0.5rem;
    }

    .kementerian-pendidikan-dasar {
        font-size: clamp(0.65rem, 3.2vw, 0.75rem);
        line-height: 1.2;
    }

    .direktorat-jenderal-pendidikan {
        font-size: clamp(0.6rem, 3vw, 0.7rem);
        line-height: 1.15;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .social-media {
        gap: 0.75rem;
    }
}