.footer {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--primary-background);
    gap: 100px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--text-color);
    font-family: "Kanit", sans-serif;
}

.footer-content1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: 120px;
}

.footer-social {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.footer-content2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    min-height: 150px;
    color: var(--text-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    text-align: center;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-strong);
}

.footer-links a:active {
    color: var(--active-color);
}

@media (max-width: 900px) {
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 10px 5px;
        width: 100vw;
        box-sizing: border-box;
    }
    .footer-content1,
    .footer-content2,
    .footer-links {
        width: 100%;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }
    .footer-content1 {
        margin-left: 0;
        gap: 5px;
    }
    .logo-ash {
        width: 120px;
    }
    .footer-social {
        margin-top: 10px;
        gap: 10px;
    }
    .footer-content2 {
        font-size: 12px;
        min-height: unset;
        padding: 5px;
        text-align: center;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
        max-width: 100vw;
        text-align: center;
    }
    .footer-links ul {
        margin-bottom: 0;
        width: 100%;
        align-items: center;
    }
    .footer-links li {
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 10px 5px;
        width: 100vw;
        box-sizing: border-box;
    }
    .footer-content1,
    .footer-content2,
    .footer-links {
        width: 100%;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }
    .footer-content1 {
        margin-left: 0;
        gap: 5px;
    }
    .logo-ash {
        width: 120px;
    }
    .footer-social {
        margin-top: 10px;
        gap: 10px;
    }
    .footer-content2 {
        font-size: 12px;
        min-height: unset;
        padding: 5px;
        text-align: center;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
        max-width: 100vw;
        text-align: center;
    }
    .footer-links ul {
        margin-bottom: 0;
        width: 100%;
        align-items: center;
    }
    .footer-links li {
        margin-bottom: 10px;
    }
}

@media (max-width: 430px) {
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 10px 5px;
        width: 100vw;
        box-sizing: border-box;
    }
    .footer-content1,
    .footer-content2,
    .footer-links {
        width: 100%;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }
    .footer-content1 {
        margin-left: 0;
        gap: 5px;
    }
    .logo-ash {
        width: 120px;
    }
    .footer-social {
        margin-top: 10px;
        gap: 10px;
    }
    .footer-content2 {
        font-size: 12px;
        min-height: unset;
        padding: 5px;
        text-align: center;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
        max-width: 100vw;
        text-align: center;
    }
    .footer-links ul {
        margin-bottom: 0;
        width: 100%;
        align-items: center;
    }
    .footer-links li {
        margin-bottom: 10px;
    }
}