.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 0px solid #ffffff;
    padding: 8px 15px;
    box-sizing: border-box;
    z-index: 1000;
    height: 50px;
    display: flex;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 38px; /* reduce space between logo and icons */
}

.logo-bottom img {
    height: 25px;
    width: auto;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    color: #0056b3;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #003d80;
}

.social-icon-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-footer {
        padding: 6px 10px;
        height: 40px;
    }
    
    .logo-bottom img {
        height: 20px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        position: static !important;
        bottom: unset !important;
        left: unset !important;
        z-index: unset !important;
        width: 100%;
        background: #09071a;
        border-radius: 0;
        box-shadow: none;
        height: auto; 
        padding: 24px 0; 
        
        display: block;
        transition: none;
        cursor: default;
        margin-top: auto;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px; /* Sedikit menambah jarak antara logo dan ikon */
        width: 100%;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .logo-bottom {
        display: flex;
        justify-content: center;
        margin-bottom: 0; /* Dihapus karena sudah diatur oleh 'gap' di container */
    }

    .logo-bottom img {
        height: 28px;
        width: auto;
    }

    .social-icons {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        justify-content: center;
        align-items: center;
        gap: 20px 24px;
        width: 100%;
        max-width: 400px;
    }

    .social-icons a,
    .social-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        font-size: 1.2rem;
        text-decoration: none;
        transition: all 0.3s ease-in-out;
        margin: 0;
        box-shadow: none;
        padding: 0;
        background-color: #0056b3; 
        color: #fff;               
        border: none;             
    }

    .social-icons a.row-top {
        grid-row: 1;

    }

    .social-icons a.row-bottom {
        grid-row: 2;
    }

    /* Order classes for dynamic ordering */
    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .order-3 { order: 3; }
    .order-4 { order: 4; }
    .order-5 { order: 5; }
    .order-6 { order: 6; }
    .order-7 { order: 7; }
    .order-8 { order: 8; }
    .order-9 { order: 9; }
    .order-10 { order: 10; }

    .social-icons a:hover {
        background-color: #003d80;
    }

    .social-icon-text {
        display: none;
    }
}