#footer {
    background: linear-gradient(135deg, #1e1548 0%, #2a1962 100%);
    color: #ffffff;
}

#footer .title {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

#footer .content {
    line-height: 1.8;
    font-size: 0.95rem;
    opacity: 0.9;
}

#footer .content a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

#footer .content a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

#footer img {
    max-width: 100%;
    height: auto;
}

#footer .logo-footer {
    margin-bottom: 1.5rem;
}

#footer .logo-footer img {
    max-width: 140px;
    padding: 0;
    background: transparent;
    border: none;
    filter: drop-shadow(1px 0px 0px #fff) drop-shadow(-1px 0px 0px #fff) drop-shadow(0px 1px 0px #fff) drop-shadow(0px -1px 0px #fff) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

#footer .logo-footer img:hover {
    filter: drop-shadow(1px 0px 0px #fff) drop-shadow(-1px 0px 0px #fff) drop-shadow(0px 1px 0px #fff) drop-shadow(0px -1px 0px #fff) drop-shadow(0 3px 6px rgba(255, 255, 255, 0.4));
}

#footer .kominfo-footer img {
    max-width: 70px;
}

/* Social Media Icons */
#footer .social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1rem;
}

#footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

#footer .social-icons a:hover {
    background: #ffd700;
    color: #1e1548;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Contact Links */
#footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-links li {
    margin-bottom: 0.5rem;
}

#footer .footer-links a {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Kominfo Badge */
#footer .kominfo-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .kominfo-footer {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Copyright */
#footer .copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.8;
}

#footer .copyright a {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#footer .copyright a:hover {
    opacity: 0.8;
}

/* Desktop Layout */
@media (min-width: 768px) {
    #footer .footer-main-row {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 2rem;
    }

    #footer .logo-section {
        padding-right: 1rem;
    }

    /* Desktop: Pisahkan kolom Layanan & Informasi */
    #footer .services-info-wrapper {
        display: contents;
    }

    /* Desktop: Gabungkan Hubungi & Ikuti dalam 1 kolom */
    #footer .contact-social-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #footer .layanan-section,
    #footer .informasi-section,
    #footer .hubungi-section,
    #footer .ikuti-section {
        background: none;
        padding: 0;
        border-radius: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    #footer {
        padding: 2.5rem 0 1.5rem;
    }

    #footer .logo-footer img {
        max-width: 120px;
    }

    #footer .kominfo-footer img {
        max-width: 60px;
    }

    #footer .title {
        font-size: 1.05rem;
        margin-bottom: 0.85rem;
        margin-top: 2rem;
        padding-bottom: 0.5rem;
    }

    #footer .logo-section .title,
    #footer .logo-section {
        margin-top: 0 !important;
        padding: 1.25rem 1rem;
    }

    #footer .logo-section .content {
        margin-top: 1rem;
        text-align: left;
        padding-right: 0;
    }

    #footer .content {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    #footer .footer-links {
        margin-top: 0.5rem;
    }

    #footer .footer-links li {
        margin-bottom: 0.6rem;
        padding-left: 1rem;
        position: relative;
    }

    #footer .footer-links li:before {
        content: "›";
        position: absolute;
        left: 0;
        color: #ffd700;
        font-size: 1.2rem;
        font-weight: bold;
    }

    #footer .footer-links a {
        font-size: 0.9rem;
    }

    /* Mobile Stack Layout */
    #footer .footer-main-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #footer .mobile-section {
        width: 100%;
        text-align: left;
    }

    /* Social Icons Mobile */
    #footer .social-icons {
        justify-content: flex-start;
        gap: 12px;
        margin-top: 0.75rem;
    }

    #footer .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        background: rgba(255, 215, 0, 0.15);
        border: 1px solid rgba(255, 215, 0, 0.3);
    }

    #footer .social-icons a:hover {
        background: #ffd700;
        border-color: #ffd700;
    }

    /* Hubungi & Ikuti side-by-side on mobile */
    #footer .contact-social-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 0;
    }

    #footer .hubungi-section,
    #footer .ikuti-section {
        background: transparent;
        padding: 1.25rem 1rem;
        border-radius: 8px;
        text-align: left;
    }

    #footer .contact-social-wrapper .title {
        margin-top: 0 !important;
        font-size: 0.95rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }

    #footer .contact-social-wrapper .footer-links li {
        padding-left: 0;
        margin-bottom: 0.65rem;
    }

    #footer .contact-social-wrapper .footer-links li:before {
        display: none;
    }

    #footer .contact-social-wrapper .footer-links a {
        font-size: 0.85rem;
    }

    /* Layanan & Informasi side-by-side on mobile */
    #footer .services-info-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    #footer .layanan-section,
    #footer .informasi-section {
        background: transparent;
        padding: 1.25rem 1rem;
        border-radius: 8px;
        text-align: left;
    }

    #footer .services-info-wrapper .title {
        margin-top: 0 !important;
        font-size: 0.95rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }

    #footer .services-info-wrapper .footer-links li {
        padding-left: 0;
        margin-bottom: 0.65rem;
    }

    #footer .services-info-wrapper .footer-links li:before {
        display: none;
    }

    #footer .services-info-wrapper .footer-links a {
        font-size: 0.85rem;
    }

    #footer .kominfo-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    #footer .kominfo-section .title {
        margin-top: 0;
        border-bottom: none;
    }

    #footer .copyright {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    #footer .footer-main-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    #footer .logo-section {
        grid-column: 1 / -1;
    }
}