body {
    font-family: 'Noto Sans Thai', sans-serif;
}

.top-bar {
    background: #1A1A2E;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 9px 0;
}

.top-bar a {
    color: #6DFFC0;
    text-decoration: none;
}

.top-bar a:hover {
    color: #fff;
}

.navbar-main {
    background: #fff;
    border-bottom: 1px solid #F0F0F0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1A1A2E;
    transition: opacity 0.2s;
}

.brand-logo:hover {
    opacity: 0.8;
}

.brand-logo img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1.2;
}

.brand-text-top {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2DB87D;
}

.brand-text-sub {
    display: block;
    font-size: 12px;
    color: #8A9BAE;
}

.nav-item-main {
    color: #1A1A2E;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.nav-item-main:hover,
.nav-item-main.active {
    color: #2DB87D;
    background: rgba(45,184,125,0.08);
}

.btn-nav-cta {
    background: #2DB87D !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-weight: 700;
}

.btn-nav-cta:hover {
    background: #1A9960 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(45,184,125,0.08);
    color: #2DB87D;
}

.dropdown-section-label {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #8A9BAE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1A1A2E;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-wrap {
    background: #fff;
}

.mobile-nav-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid #EEF2F7;
    border-radius: 0 !important;
}

.mobile-nav-accordion .accordion-button {
    padding: 14px 6px;
    font-size: 18px;
    font-weight: 800;
    color: #1A1A2E;
    background: transparent;
    box-shadow: none;
}

.mobile-nav-accordion .accordion-button:not(.collapsed) {
    color: #2DB87D;
    background: rgba(45,184,125,0.06);
}

.mobile-nav-accordion .accordion-button:focus {
    box-shadow: none;
}

.mobile-nav-accordion .accordion-body {
    padding: 6px 6px 14px;
}

.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #1A1A2E;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #2DB87D;
    background: rgba(45,184,125,0.08);
}

.mobile-nav-direct-links {
    display: grid;
    gap: 8px;
    padding: 16px 6px 4px;
}

.mobile-nav-link-cta {
    color: #2DB87D;
    font-weight: 800;
}

.cta-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #2DB87D 0%, #1A9960 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.cta-title {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
}

.cta-sub {
    position: relative;
    z-index: 1;
    margin-bottom: 38px;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.88;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: 30px;
    background: #fff;
    color: #2DB87D;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.btn-line:hover {
    color: #1A9960;
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.2);
}

.btn-outline-white {
    display: inline-block;
    padding: 13px 30px;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-white:hover {
    color: #fff;
    background: rgba(255,255,255,0.18);
    border-color: #fff;
}

.footer-main {
    background: #0D0F1C;
    padding: 65px 0 30px;
    color: rgba(255,255,255,0.7);
}

.footer-brand {
    margin-bottom: 16px;
    display: block;
}

.footer-brand img {
    height: 72px;
    width: auto;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.footer-h {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}

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

.footer-ul li {
    margin-bottom: 10px;
}

.footer-ul a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.18s;
}

.footer-ul a:hover,
.footer-copy a:hover,
.contact-line a:hover {
    color: #2DB87D !important;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-line i {
    color: #2DB87D;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    text-decoration: none;
    transition: all 0.18s;
}

.social-btn:hover {
    background: #2DB87D;
    color: #fff;
}

.footer-hr {
    border-color: rgba(255,255,255,0.08);
    margin: 40px 0 22px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.legacy-page-banner {
    background: linear-gradient(135deg, #EBF8F3 0%, #F0FDF8 60%, #E8F5FF 100%);
    padding: 56px 0 44px;
    position: relative;
    overflow: hidden;
}

.legacy-page-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(45,184,125,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.legacy-page-breadcrumb {
    font-size: 13px;
    color: #8A9BAE;
    margin-bottom: 14px;
}

.legacy-page-breadcrumb a {
    color: #2DB87D;
    text-decoration: none;
}

.legacy-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #1A1A2E;
    margin: 0 0 12px;
    line-height: 1.15;
}

.legacy-page-divider {
    width: 48px;
    height: 4px;
    background: #2DB87D;
    border-radius: 2px;
    margin: 16px 0;
}

.legacy-page-sub {
    font-size: 16px;
    color: #6B7280;
    max-width: 780px;
    margin: 0;
}

.legacy-page-wrap {
    padding: 56px 0 72px;
    background: #fff;
}

.legacy-page-content {
    color: #1A1A2E;
    font-size: 16px;
    line-height: 1.8;
}

.legacy-page-content .text-muted {
    color: #8A9BAE;
}

.legacy-page-content h1,
.legacy-page-content h2,
.legacy-page-content h3,
.legacy-page-content h4 {
    color: #1A1A2E;
    font-weight: 800;
    margin-top: 0;
}

.legacy-page-content h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 16px;
}

.legacy-page-content h2 {
    font-size: 1.7rem;
    margin: 32px 0 14px;
}

.legacy-page-content p,
.legacy-page-content li,
.legacy-page-content td,
.legacy-page-content th {
    font-size: 16px;
}

.legacy-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.legacy-page-content .thumbnail,
.legacy-page-content .panel,
.legacy-page-content .table-responsive,
.legacy-page-content table {
    border-radius: 16px;
    overflow: hidden;
}

.legacy-page-content .thumbnail,
.legacy-page-content .panel,
.legacy-page-content .table-responsive {
    box-shadow: 0 8px 28px rgba(15,23,42,0.08);
    border: 1px solid #E8EDF2;
}

.legacy-page-content .panel-heading {
    background: #1F2937 !important;
    color: #fff !important;
    border: none !important;
}

.legacy-page-content .panel-title a {
    color: #fff !important;
    text-decoration: none;
}

.legacy-page-content .table > thead > tr > th,
.legacy-page-content .table > tbody > tr > th,
.legacy-page-content .table > tfoot > tr > th,
.legacy-page-content .table > thead > tr > td,
.legacy-page-content .table > tbody > tr > td,
.legacy-page-content .table > tfoot > tr > td {
    padding: 14px 16px;
    vertical-align: middle;
}

.legacy-page-content .table-bordered > thead > tr > th,
.legacy-page-content .table-bordered > tbody > tr > th,
.legacy-page-content .table-bordered > tfoot > tr > th,
.legacy-page-content .table-bordered > thead > tr > td,
.legacy-page-content .table-bordered > tbody > tr > td,
.legacy-page-content .table-bordered > tfoot > tr > td {
    border-color: #E5E7EB;
}

.legacy-page-content .about {
    font-size: 17px;
    color: #4B5563;
}

.legacy-page-scroll {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #2DB87D;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(45,184,125,0.4);
    z-index: 999;
}

.legacy-page-scroll:hover {
    background: #1A9960;
}

@media (max-width: 1199px) {
    .d-xl-flex {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .legacy-page-wrap {
        padding: 40px 0 56px;
    }

    .legacy-page-content h1 {
        font-size: 1.8rem;
    }
}
