/* Breadcrumb (หน้า custom page) */

.custom-page-breadcrumb {
    background-color: #f0fbf5;
    padding: 0.75rem 0;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.custom-page-breadcrumb__nav {
    padding: 0;
}

.custom-page-breadcrumb .breadcrumb.custom-page-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
    font-family: "Kanit", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
}

.custom-page-breadcrumb__list .breadcrumb-item {
    color: #6c757d;
}

.custom-page-breadcrumb__list .breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: #6c757d;
    font-weight: 400;
    content: "›";
}

.custom-page-breadcrumb__list .breadcrumb-item + .breadcrumb-item:hover::before {
    text-decoration: none;
}

.custom-page-breadcrumb__list .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.custom-page-breadcrumb__list .breadcrumb-item a:hover,
.custom-page-breadcrumb__list .breadcrumb-item a:focus-visible {
    color: #495057;
    text-decoration: underline;
}

.custom-page-breadcrumb__list .breadcrumb-item.active {
    color: #006d62;
}

.row.p-0.container {
    margin: auto;
}

/* เฉพาะแท็ก em — กล่อง callout แนวนอนเต็มความกว้าง (ตามภาพ) */
.custom-page-content em {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    vertical-align: top;
    font-style: normal;
    font-weight: 700;
    font-family: "Kanit", sans-serif;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.65;
    text-align: left;
    background-color: #f0faf7;
    border: 1px solid #e1f0e9;
    border-radius: 9px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1rem 0;
    box-shadow: none;
    outline: none;
}

.custom-page-content em:last-child {
    margin-bottom: 0;
}

/* h2 — แถบเขียวซ้าย + ข้อความเข้ม พื้นโปร่ง (ตามภาพ) */
.custom-page-content h2 {
    display: block;
    box-sizing: border-box;
    width: 100%;
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: #212529;
    line-height: 1.35;
    text-align: left;
    background-color: transparent;
    border: none;
    border-left: 5px solid #00965e;
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1.125rem;
    margin: 1.5rem 0 0.75rem 0;
    box-shadow: none;
    outline: none;
}

.custom-page-content h2:first-child {
    margin-top: 0;
}

/*
 * Bordered ul — โครงเดียวกับ .blog-single-post .content-holder ul ใน blog_custom.css
 * ใช้ ✓ สีเขียวแทนจุดกลม (ตามภาพ)
 */
.custom-page-content ul {
    list-style: none;
    padding: 0;
    margin: 1.25em 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}

.custom-page-content ul > li {
    position: relative;
    padding: 20px 20px 20px 46px;
    border-bottom: 1px solid #e0e0e0;
    color: #374151;
    line-height: 1.6;
    font-family: "Kanit", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    background-color: #ffffff;
}

.custom-page-content ul > li:last-child {
    border-bottom: none;
}

.custom-page-content ul > li::before {
    content: "\2713";
    position: absolute;
    left: 20px;
    top: calc(20px + 0.35em);
    color: #10a37f;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Nested ul — รายการย่อยแบบ disc ไม่มีกล่อง (เหมือน blog) */
.custom-page-content ul ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 12px 0 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.custom-page-content ul ul > li {
    position: static;
    padding: 0.35em 0;
    border-bottom: none;
    color: #374151;
    line-height: 1.6;
}

.custom-page-content ul ul > li:last-child {
    border-bottom: none;
}

.custom-page-content ul ul > li::before {
    content: none;
    display: none;
}

/*
 * Numbered lists — เหมือน .blog-single-post .content-holder ol ใน blog_custom.css
 * (แถบเลขซ้าย absolute + padding ที่ li; ไม่ใช้ flex / ol li > *)
 */
.custom-page-content ol {
    counter-reset: blog-ol;
    list-style: none;
    padding: 0;
    margin: 1.25em 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.custom-page-content ol > li {
    counter-increment: blog-ol;
    position: relative;
    padding: 18px 20px 18px 72px;
    border-bottom: 1px solid #e0e0e0;
    color: #555555;
    line-height: 1.6;
    background: #fff;
    font-family: "Kanit", sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.custom-page-content ol > li:last-child {
    border-bottom: none;
}

.custom-page-content ol > li::before {
    content: counter(blog-ol);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    box-sizing: border-box;
    background-color: #19a35e;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-family: "Kanit", sans-serif;
}

.custom-page-content ol > li:first-child::before {
    border-top-left-radius: 9px;
}

.custom-page-content ol > li:last-child::before {
    border-bottom-left-radius: 9px;
}

.custom-page-content ol ol,
.custom-page-content ul ol {
    counter-reset: blog-ol;
    list-style: decimal;
    list-style-position: outside;
    padding-left: 1.5em;
    margin: 12px 0 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.custom-page-content ol ol > li,
.custom-page-content ul ol > li {
    position: static;
    padding: 0.35em 0;
    padding-left: 0;
    border-bottom: none;
    background: transparent;
    color: #555555;
}

.custom-page-content ol ol > li::before,
.custom-page-content ul ol > li::before {
    content: none;
    display: none;
}

.custom-page-content ol ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 12px 0 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.custom-page-content ol ul > li {
    position: static;
    padding: 0.35em 0;
    border-bottom: none;
    color: #374151;
}

.custom-page-content ol ul > li::before {
    content: none;
    display: none;
}

/* CTA จาก partial custom_page_insert_content */

.custom-page-insert-cta {
    margin-inline: auto;
    width: 100%;
    max-width: 16rem;
}

.custom-page-insert-cta.text-start {
    margin-inline: 0;
    margin-right: auto;
}

.custom-page-insert-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 1.5rem;
    background-color: #1da362;
    color: #ffffff !important;
    font-family: "Kanit", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-page-insert-cta__btn:hover,
.custom-page-insert-cta__btn:focus-visible {
    background-color: #178a52;
    color: #ffffff !important;
    text-decoration: none;
}

.custom-page-insert-cta__btn:focus-visible {
    outline: 2px solid #0f5c37;
    outline-offset: 2px;
}

.custom-page-insert-cta__icon {
    flex-shrink: 0;
    font-size: 1.05em;
    color: inherit;
}

.custom-page-insert-cta__label {
    flex: 0 1 auto;
}

.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}