@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }

    header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1rem;
        min-height: auto;
        max-height: none;
        gap: 0.6rem;
    }

    #header-logo a {
        font-size: 1.4rem;
        min-width: auto;
        max-width: none;
    }

    #header-nav {
        width: 100%;
        min-width: unset;
        max-width: unset;
        justify-content: center;
    }

    #header-nav-ul {
        flex-direction: column;
        width: 100%;
        gap: 0.4rem;
    }

    #header-nav-ul li {
        width: 100%;
    }

    #header-nav-ul a {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    #page-footer {
        padding: 1.2rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    #footer-right,
    #form-social-media,
    #company-address,
    #footer-nav {
        width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    #footer-nav {
        padding-top: 0;
        gap: 0.4rem;
    }

    #footer-nav li a {
        font-size: 0.95rem;
    }

    #flex-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
    }

    .footer-social-media {
        margin-top: 1.5rem;
    }

    .footer-social-media a i {
        font-size: 1.8rem;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #form-social-media {
        width: 100%;
        max-width: none;
    }

    #page-footer {
        flex-direction: column;
        align-items: center; 
        gap: 2rem;          
    }

    #form-social-media,
    #footer-right {
        width: 100%;         
        max-width: 100%;      
        padding: 0 1rem;      
    }

    #flex-section {
        flex-direction: column; 
        align-items: center;
        gap: 2rem;
    }

    #footer-nav {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        max-width: 100%;
    }

    #company-address {
        align-items: center;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }

    .footer-social-media a i {
        font-size: 1.6rem;
    }
}