body {
    font-family: "Kanit", serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

o {
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 25px;
}

header {
    background-color: #e6272b;
    color: white;
    padding: 15px;
    text-align: center;
    justify-content: space-between;
    display: flex;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block;
    border-bottom: 2px solid #ffffff00;
    transition: .3s;
}

nav ul li a:hover {
    border-bottom: 2px solid #fff;
}

.submenu {
    display: none;
    position: absolute;
    background-color: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
    top: 100%;
    left: 0;
    width: 150px;
}

.submenu li {
    padding: 10px;
    text-align: left;
    margin: 0;
}

.submenu li:hover {
    padding: 10px;
    text-align: left;
    margin: 0;
    background: #003d82;
    color: #fff;
}

.submenu li a {
    color: #003d82;
    padding: 10px;
    display: block;
}

.submenu li a:hover {
    border-bottom: 2px solid #ffffff00;
    color: inherit;
}

main {
    padding: 20px;
    text-align: center;
}

footer {
    background-color: #e6272b;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    z-index: 0;
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
