.container-body {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.py-4 {
    background: #f1f1f3;
}

.card.detail-body {
    min-height: 800px;
    margin-top: 30px;
    box-shadow: 0px 0px 10px 0px #bbb2b2;
    border-radius: 25px;
    overflow: hidden;
}

/* แถบลิงก์บนหัวเมนู */
nav.breadcrumb {
    margin: 10px 20px;
    border-bottom: 2px solid #9ea5b1;
}

.custom-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 15px;
    margin: 10px;
    background-color: #f7f9fc;
    border-radius: 8px;
    font-size: 14px;
}

.custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: #999;
    font-weight: bold;
}

.custom-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #000;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 576px) {
    .custom-breadcrumb {
        font-size: 13px;
        padding: 8px 10px;
    }

    .custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 5px;
    }
}

/* แถบลิงก์บนหัวเมนู */

.detail-articles {
    font-family: 'Noto Sans Thai', sans-serif;
    color: #374151;
    line-height: 1.6;
}

/* Table ให้พอดีกับ container */
.detail-articles table {
    width: 100% !important;
    /* บังคับเต็ม container */
    border-collapse: collapse;
    margin: 1em 0;
    table-layout: fixed;
    /* คอลัมน์เท่ากัน */
}

/* ปรับ td/th ให้พอดี */
.detail-articles table th,
.detail-articles table td {
    border: 1px solid #ccc;
    padding: 0.5em;
    word-wrap: break-word;
    /* ตัดคำไม่ให้เลยขอบ */
    text-align: left;
}

/* ลบ inline width จาก editor */
.detail-articles table[style] {
    width: 100% !important;
}

.detail-articles,
.detail-directory {
    padding: 2px 30px;
}

.detail-articles-file {
    padding: 20px 30px;
}

.No-information-found {
    font-size: 30px;
    display: flex;
    justify-content: center;
}

.card-body-directory {
    display: flex;
    justify-content: space-between;
}

.directory-topic {
    display: flex;
    gap: 50px;
}

.directory-box {
    padding: 25px;
}

.directory-img-box {
    width: 100px;
    height: 85px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.directory-img-box img.directory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-card {
    height: 110px;
    margin: 10px 0;
    box-shadow: 0px 0px 4px 2px #dbdbdb;
    padding: 10px;
}

.directory-card-cate {
    height: 50px;
    margin: 10px 0;
    box-shadow: 0px 0px 4px 2px #dbdbdb;
    padding: 15px;
}

.directory-card:hover,
.directory-card-cate:hover {
    background: #e2ebd2a3;
}

.directory-title {
    margin: 15px;
    font-size: 23px;
    font-weight: 800;
}

.directory-img-topic {
    display: flex;
    justify-content: center;
}

.directory-text-box.mt-6 {
    margin: 55px;
}

img.clickable-img {
    width: 250px;
    height: 100px;
    max-width: 150px;
    max-height: 65px;
    width: auto;
    height: auto;
}

.title-menu {
    font-size: 50px;
    text-align: center;
    font-weight: 800;
}