* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    font-family: 'Kanit', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}

main {
    flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #00744B;
    padding: 10px 0;   /* ลดจาก 15px */
}

.nav-wrapper {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    font-size: 18px;   /* ลดจาก 20px */
    font-weight: 600;
    color: #ffffff;
}

.brand span {
    font-size: 12px;   /* ลดจาก 13px */
    color: #94a3b8;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    color: #e2e8f0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;   /* เพิ่มให้ดูสมดุล */
}

.menu a:hover {
    color: #B7DCCB;
}

.menu .active {
    color: #B7DCCB;
    font-weight: 500;
}

/* ===== CONTENT ===== */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content .container {
    padding: 40px 0;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ===== MENU CARD ===== */
.menu-card{
    background:#ffffff;
    border-radius:12px;
    padding:16px 18px;
    text-decoration:none;
    box-shadow:0 6px 16px rgba(0,0,0,0.06);
    border:1px solid #e2e8f0;
    transition:all .25s ease;
    display:block;
}

.menu-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 24px rgba(0,0,0,0.12);
    background:#f1f5f9;
}

/* ===== WELCOME PAGE ===== */
.welcome-section {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    animation: fadeIn 1s ease-in-out;
}

.welcome-box {
    text-align: center;
    max-width: 900px;
    padding: 50px 40px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.welcome-box h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #00744B;
    font-weight: 600;
    position: relative;
}

.welcome-box h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #00744B;
    margin: 15px auto 0;
    border-radius: 2px;
}

.welcome-box p {
    font-size: 1.1rem;
    color: #00744B;
    margin-bottom: 10px;
}

.quick-menu {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-menu a {
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* ===== ปุ่มแบบใหม่ ===== */
.quick-menu a {
    background-color: #ffffff;
    color: #00744B;
    border: 2px solid #00744B;
}

.quick-menu a:hover {
    background-color: #00744B;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
    background: #00744B;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}