body {
    font-family: 'Sarabun', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

main.main, main {
    flex-grow: 1;
}

.main-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: none;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: none;
    color: #003366;
    font-family: 'Sarabun', sans-serif;
}

.main-nav {
    /* Base styles, no specific properties here for desktop view */
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
}

.main-nav ul li {
    margin-left: 20px;
    position: relative;
}

.main-nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 5px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Sarabun', sans-serif;
}

.main-nav ul li a .dropdown-indicator {
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.main-nav ul li:hover > a .dropdown-indicator {
    transform: rotate(180deg);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0ad4e;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #003366;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul ul.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: none;
    border: 1px solid #ffffff;
    border-top: 2px solid #f0ad4e;
    z-index: 1000;
    padding: 5px 0;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.main-nav ul li:hover > ul.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul ul.dropdown-menu li {
    margin-left: 0;
    width: 100%;
}

.main-nav ul ul.dropdown-menu li a {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
    white-space: nowrap;
}

.main-nav ul ul.dropdown-menu li a::after {
    display: none;
}

.main-nav ul ul.dropdown-menu li a:hover,
.main-nav ul ul.dropdown-menu li a.active {
    background-color: #f0ad4e;
    color: #003366;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #003366;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    outline: none;
    transition: color 0.3s ease;
}
.menu-toggle:hover {
    color: #f0ad4e;
}

.menu-toggle .fa-times {
    display: none;
}

.menu-toggle.is-active .fa-bars {
    display: none;
}

.menu-toggle.is-active .fa-times {
    display: inline;
}

@media (max-width: 991.98px) {
    .main-nav {
        display: block;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out, transform 0.5s ease-out;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: none;
        padding-bottom: 10px;
        z-index: 998;
    }

    .main-nav.is-active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        transition: max-height 0.5s ease-in, opacity 0.5s ease-in, transform 0.5s ease-in;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .main-nav ul li {
        margin: 0;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        color: #333;
        width: 100%;
    }

    .main-nav ul li a::after {
        display: none;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background-color: #f0ad4e;
        color: #003366;
    }

    .main-nav ul li a .dropdown-indicator {
        float: right;
        transition: transform 0.3s ease;
        padding-top: 4px;
    }

    .main-nav ul ul.dropdown-menu {
        position: static;
        display: block;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-5px);
        box-shadow: none;
        border: none;
        border-top: none;
        padding-left: 20px;
        background-color: #f8f9fa;
        width: 100%;
        border-radius: 0;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .main-nav ul li.dropdown-parent.open > ul.dropdown-menu {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
        transition: max-height 0.3s ease-in, opacity 0.3s ease-in, transform 0.3s ease-in;
    }

    .main-nav ul ul.dropdown-menu li a {
        padding: 10px 15px 10px 20px;
        font-size: 0.85rem;
        border-bottom: 1px dotted #ddd;
    }
    .main-nav ul ul.dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }
}

.top-bar {
    background-color: #002244;
    color: #e0e0e0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    color: #f0ad4e;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .audience-nav a:first-child,
.top-bar .quick-links a:first-child {
    margin-left: 0;
}

.top-bar .audience-nav span {
    margin: 0 5px;
    color: #777;
}

.top-bar i {
    margin-right: 4px;
}

.main-footer {
    background: #002244;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    margin-top: auto;
}

.main-footer p {
    margin-bottom: 8px;
}

.main-footer a {
    color: #f0ad4e;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

.main-footer .social-icons-simple a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #f0ad4e;
    transition: color 0.3s ease;
}
.main-footer .social-icons-simple.footer-socials {
    margin-bottom: 15px;
}

.main-footer .social-icons-simple a:hover {
    color: #fff;
}

/* --- Global Style Overrides --- */
/* Remove focus shadow (blue glow) from all buttons and form controls for a cleaner look */
.btn:focus, .btn:focus-visible, .btn.focus-visible,
.form-control:focus,
.form-select:focus,
.accordion-button:focus {
    outline: 0 !important;
    box-shadow: none !important;
}