html {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #2E3D96;
}

body {
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #2E3D96;
}

@media (max-width: 1000px) {
    body {
        height: 100vh;
    }

    .container {
        height: 100% !important;
        flex-direction: column !important;
        justify-content: start !important;
        padding-top: 30px !important;
    }
    .sm-container {
        height: 400px !important;
        padding-top: 20px;
    }
    .logo-running {
        margin-top: 0 !important;
    }

    .first-container {
        display: none !important;
    }
    .sub {
        display: block !important;
    }

    .logo-running .img-container {
        flex: 0 0 auto;
        width: 150px !important;
        height: 100px !important;

    }
    .group a {
        color: gray;
        font-size: 13px;
        margin-top: 0px !important;
    }
    


    
    
} 

@media (max-width :600px ) {
    footer .container h5 {
        font-size: small !important;
        margin: 0;
    }
    footer .container p {
        font-size: smaller !important;
        margin: 0;
    }
    footer {
        justify-content: start !important;
        padding-inline: 50px !important;
    }

    footer .container {
        width: 100% !important;
    }
    .group a {
        color: gray;
        font-size: 13px;
        margin-top: 0px !important;
    }
}

@media  (max-height:450px) {
    .container {
        min-height: 720px;
        flex-direction: column !important;
        justify-content: start !important;
        padding-top: 30px !important;
    }
    .group a {
        color: gray;
        font-size: 13px;
        margin-top: 0px !important;
    }

    
}


.first-container {
    display: block;

}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 15px;
    padding: 0%;
    flex-wrap: wrap;
}

.sm-container {
    background-color: white;
    height: 450px;
    width: 375px;
    border-radius: 10px;
    box-shadow:#070a29 0px 2px 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}
.container hr {
    width: 100%;
}

.sm-container p {
    justify-self: center;
    text-wrap: wrap;
    font-weight: 500;
    font-size: 9px;
    margin: 0;
    margin-top: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #b6b6b6;
    padding-left: 15px;
    
}
input[type="password"] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #b6b6b6;
    padding-left: 15px;
    
}

.forget {
    color:#9D9D9D;
    text-decoration: underline;
    margin-top: 20px;

}

button[type="submit"] {
    background-color: #2E3D96;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 7px;
    box-shadow:#c1c1c1 0px 2px 5px;
    width: 100%;
}

h3 {
    color: #2E3D96;
}



button[type="submit"]:hover {
    background-color: #222e73;
}

.group {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
}

.group a {
    color: gray;
    font-size: 13px;
}

.group h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.group p {
    margin-top: 30px;
}

.logo-running {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 0px; /* << ลดจาก 150px เหลือ 0 */
    padding-inline: 30px;
    padding-block: 25px;
    background: white;
    box-shadow: 0px 5px 10px #19266f;
}

.logo-running .img-container {
    flex: 0 0 auto;
    width: 200px;
    height: 175px;

}

.img-container img {
    width: auto;
    height: 100%;
    object-fit: contain;
}
.logo-track {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    will-change: transform;
    animation: scrollLeft 10s linear infinite;
}
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-54.1%);
    }
}

.sub-logo {
    display: flex;
    width: 100%;
    overflow: hidden;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
    opacity: 75%;
}

.sub-logo .img-container {
    flex: 0 0 auto;
    width: 40px;
    height: auto;
}

.sub-logo .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
footer {
    background-color:#1F1F1F;
    box-sizing: border-box;
    height: max-content;
    width: 100%;
    position:inherit;
    bottom: 0;
    margin-top: 50px;
    padding: 50px;
    display: flex;
    padding-bottom: 100px;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    padding-inline: 80px;
}

footer .container {
    display: flex;
    flex-direction: column;
    color: #d7d7d7;
    width: 25%;
    min-height: 100%;
    max-width: max-content;
    align-items: start;
    justify-content: start;
    gap: 10px;
    min-width: 160px ;
    margin: 0;
}

footer .container hr {
    margin-block: 5px;
    margin-top: 1px;
}

footer .container h5 {
    font-size: medium;
    margin: 0;
}
footer .container p {
    font-size: small;
    margin: 0;
}

footer .container .sub-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
footer .container .sub-container a :hover {
    opacity: 80%;
}

.filter-white {
    filter: invert(96%) sepia(0%) saturate(187%) hue-rotate(218deg) brightness(90%) contrast(95%);
}

.sub {
    display: none;
    width: 145px;
    filter: invert(97%) sepia(97%) saturate(0%) hue-rotate(40deg) brightness(200%) contrast(104%);
    opacity: 80%;
}

.logo-img {
    width: 275px;
    margin-bottom: 4px;
}
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #343a40;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
}

.cookie-message {
    font-size: 14px;
}

.cookie-consent .accept-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-consent .accept-button:hover {
  background-color: #0056b3;
}
