@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

body, html, *, h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

/* ==========================================================
   1. ส่วนหัวเว็บไซต์ (Header) - ไล่เฉดสีเข้มข้น
   ========================================================== */
body .site-header,
body header.header,
body .container-header,
body .header-container {
    background: linear-gradient(145deg, #002621 0%, #003B34 35%, #005A50 70%, #007A6D 100%) !important;
    background-image: linear-gradient(145deg, #002621 0%, #003B34 35%, #005A50 70%, #007A6D 100%) !important;
}

/* ==========================================================
   2. ส่วนท้ายเว็บไซต์ (Footer) และตัวแปรหลัก
   ========================================================== */
.site-grid {
    --cassiopeia-color-primary: #003B34;
}

body {
    --footer-bg: #003B34;
}

footer, .container-footer {
    background-color: #003B34 !important;
    background-image: none !important;
    color: #ffffff !important;
}

footer a, .container-footer a {
    color: #ffffff !important;
}

/* ==========================================================
หัวข้อกล่องโมดูล ใช้สีเดียวกับ Footer
========================================================== */

.card > .card-header {
    background-color: #003B34 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-bottom: 2px solid #004d40 !important;
}
/* ข้อความหัวเมนู */
.card > .card-header,
.card > .card-header *,
.card > .card-header .card-title,
.card > .card-header h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}


/* ==========================================================
   4. เมนูและรายการภายในกล่องโมดูล
   ========================================================== */

/* ไอคอนหน้าข้อความเมนู */
.card .card-body ul.mod-menu li a::before,
.card .card-body .nav li a::before,
.card .card-body ul li a::before {
    content: "»" !important;
    color: #005A50 !important;
    display: inline-block !important;
    margin-right: 9px !important;
    font-weight: 700 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* เส้นคั่นระหว่างรายการ */
.card .card-body ul.mod-menu li,
.card .card-body .nav li,
.card .card-body ul li {
    border-bottom: 1px dotted #b2dfdb !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ยกเลิกเส้นคั่นรายการสุดท้าย */
.card .card-body ul.mod-menu li:last-child,
.card .card-body .nav li:last-child,
.card .card-body ul li:last-child {
    border-bottom: none !important;
}

/* รูปแบบลิงก์เมนู */
.card .card-body ul.mod-menu li a,
.card .card-body .nav li a,
.card .card-body ul li a {
    display: block !important;
    box-sizing: border-box !important;
    padding: 9px 8px !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* เอฟเฟกต์เมื่อเมาส์ชี้เมนู */
.card .card-body ul.mod-menu li a:hover,
.card .card-body .nav li a:hover,
.card .card-body ul li a:hover {
    background-color: #e0f2f1 !important;
    color: #003B34 !important;
    padding-left: 16px !important;
    text-decoration: none !important;
}

/* เปลี่ยนสีไอคอนเมื่อเมาส์ชี้ */
.card .card-body ul.mod-menu li a:hover::before,
.card .card-body .nav li a:hover::before,
.card .card-body ul li a:hover::before {
    color: #003B34 !important;
}

