/* Resources only. No selectors targeting Gravity, Projects or global buttons. */
.enr-library,
.enr-single {
    font-family: "Open Sans", sans-serif;
    color: #2b2b2b;
    font-size: 16px;
    line-height: 1.5
}

.enr-library *,
.enr-single * {
    box-sizing: border-box
}

.enr-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 32px;
    margin: 0 auto
}

.enr-library {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 110px
}

.enr-library>.enr-container {
    position: relative
}

.enr-library-doodle {
    position: absolute;
    right: 30px;
    top: 30px;
    width: 65px;
    opacity: .3;
    transform: rotate(20deg);
    pointer-events: none
}

.enr-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 40px
}

.enr-filter {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #2b2b2b;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s
}

.enr-filter:hover {
    background: #e5e5e5
}

.enr-filter.is-active {
    background: #f07a1e;
    color: #fff
}

.enr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px
}

.enr-card {
    margin: 0;
    min-width: 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s
}

.enr-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12)
}

.enr-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit
}

.enr-card-image {
    height: 200px;
    overflow: hidden;
    flex: none;
    background: #f0f0f0
}

.enr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s
}

.enr-card-link:hover .enr-card-image img {
    transform: scale(1.05)
}

.enr-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.enr-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px
}

.enr-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #f07a1e;
    letter-spacing: .5px;
    text-transform: uppercase
}

.enr-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #fff3e8;
    flex: none
}

.enr-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex: none
}

.enr-card .enr-card-body h3 {
    font: 700 16px/1.4 Montserrat, sans-serif;
    color: #2b2b2b;
    margin: 0 0 10px;
    overflow-wrap: anywhere
}

.enr-card-body p {
    font-size: 13px;
    line-height: 1.6;
    color: #777;
    margin: 0 0 16px;
    overflow-wrap: anywhere
}

.enr-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #2d7a3a
}

.enr-read-more>span {
    font-size: 20px;
    line-height: 1
}

.enr-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: #777;
    background: #f0f0f0;
    font-size: 14px
}

.enr-featured {
    margin: 0 0 40px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    background: #fff
}

.enr-featured-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    color: inherit;
    text-decoration: none
}

.enr-featured-image {
    height: 360px;
    overflow: hidden;
    background: #f0f0f0
}

.enr-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.enr-featured-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0
}

.enr-featured-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.enr-featured-badge,
.enr-topic-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

.enr-featured-badge {
    background: #f07a1e;
    color: #fff
}

.enr-topic-badge {
    background: #f0f0f0;
    color: #2b2b2b
}

.enr-featured .enr-featured-body h2 {
    font: 800 26px/1.3 Montserrat, sans-serif;
    margin: 0 0 14px;
    color: #2b2b2b;
    overflow-wrap: anywhere
}

.enr-featured-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 20px;
    overflow-wrap: anywhere
}

.enr-read-featured {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f07a1e
}

.enr-empty {
    padding: 36px;
    text-align: center;
    border-radius: 12px;
    background: #f8f9f6
}

.enr-empty h2 {
    font: 700 22px/1.4 Montserrat, sans-serif;
    margin: 0 0 12px
}

.enr-empty p {
    margin: 0 0 16px
}

.enr-empty a {
    color: #a74b08
}

.enr-pagination {
    margin-top: 40px
}

.enr-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0
}

.enr-pagination .page-numbers a,
.enr-pagination .page-numbers span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 14px
}

.enr-pagination .page-numbers .current {
    background: #f07a1e;
    color: #fff;
    border-color: #f07a1e
}

.enr-library a:focus-visible,
.enr-single a:focus-visible {
    outline: 3px solid #f07a1e;
    outline-offset: 3px
}

.enr-single {
    background: #fff
}

.enr-article-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #2b2b2b
}

.enr-article-hero-image,
.enr-article-shade {
    position: absolute;
    inset: 0
}

.enr-article-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.enr-article-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, .82) 20%, rgba(0, 0, 0, .25) 100%)
}

.enr-article-hero-copy {
    position: relative;
    padding-top: 100px;
    padding-bottom: 48px
}

.enr-article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px
}

.enr-article-badges a {
    display: inline-block;
    padding: 4px 12px;
    background: #f07a1e;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700
}

.enr-single .enr-article-hero h1 {
    font: 800 44px/1.15 Montserrat, sans-serif;
    color: #fff;
    margin: 0 0 16px;
    max-width: 1000px;
    overflow-wrap: anywhere
}

.enr-article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #ddd;
    font-size: 13px
}

.enr-back {
    background: #f8f9f6;
    border-bottom: 1px solid #e8e8e8
}

.enr-back a {
    display: inline-block;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2b2b2b;
    text-decoration: none
}

.enr-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 80px
}

.enr-article-content {
    min-width: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere
}

.enr-article-content p {
    margin: 0 0 24px
}

.enr-article-content h2,
.enr-article-content h3,
.enr-article-content h4 {
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    line-height: 1.35;
    color: #2b2b2b;
    margin: 36px 0 16px;
    scroll-margin-top: 110px
}

.enr-article-content h2 {
    font-size: 28px
}

.enr-article-content h3 {
    font-size: 23px
}

.enr-article-content h4 {
    font-size: 19px
}

.enr-article-content>:first-child {
    margin-top: 0
}

.enr-article-content ul,
.enr-article-content ol {
    margin: 0 0 24px;
    padding-left: 26px
}

.enr-article-content ul {
    list-style: disc
}

.enr-article-content ol {
    list-style: decimal
}

.enr-article-content li {
    margin-bottom: 8px
}

.enr-article-content a {
    color: #b7530a;
    text-decoration: underline
}

.enr-article-content img,
.enr-article-content video {
    max-width: 100%;
    height: auto
}

.enr-article-content iframe {
    max-width: 100%
}

.enr-article-content figure {
    max-width: 100%;
    margin: 24px 0
}

.enr-article-content figcaption {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 8px
}

.enr-article-content blockquote {
    margin: 28px 0;
    padding: 24px;
    border-left: 4px solid #f07a1e;
    background: #f8f9f6;
    border-radius: 0 12px 12px 0;
    font-size: 18px
}

.enr-article-content blockquote p:last-child {
    margin-bottom: 0
}

.enr-article-content .wp-block-table {
    overflow: auto
}

.enr-article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0
}

.enr-article-content td,
.enr-article-content th {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left
}

.enr-article-content pre {
    max-width: 100%;
    overflow: auto;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px
}

.enr-content-pages,
.enr-tags {
    margin: 24px 0;
    font-size: 14px
}

.enr-sidebar {
    align-self: start;
    min-width: 0
}

.enr-topic-box {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08)
}

.enr-single .enr-topic-box h2 {
    padding: 20px;
    background: #2b2b2b;
    color: #fff;
    font: 700 16px/1.5 Montserrat, sans-serif;
    margin: 0
}

.enr-topic-box nav {
    padding: 8px 20px;
    background: #fff
}

.enr-topic-box nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px
}

.enr-topic-box nav a:last-child {
    border: 0
}

.enr-topic-box nav a>span:last-child {
    margin-left: auto
}

.enr-topic-box .enr-icon {
    color: #f07a1e
}

.enr-article-cta {
    background: #f07a1e;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px
}

.enr-single .enr-article-cta h2 {
    font: 800 19px/1.4 Montserrat, sans-serif;
    color: #fff;
    margin: 0 0 12px
}

.enr-article-cta p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px
}

.enr-article-cta a {
    display: block;
    padding: 14px;
    background: #fff;
    color: #c75e11;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font: 700 14px/1.5 Montserrat, sans-serif
}

.enr-related {
    padding: 64px 0;
    background: #f8f9f6
}

.enr-related-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px
}

.enr-single .enr-related-heading h2 {
    font: 800 28px/1.4 Montserrat, sans-serif;
    margin: 0
}

.enr-related-heading a {
    color: #b7530a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap
}

@media(min-width:768px) {
    .enr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(min-width:1024px) {
    .enr-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .enr-featured-link {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .enr-featured-image {
        height: 360px;
        min-height: 0;
    }

    .enr-article-layout {
        grid-template-columns: minmax(0, 1fr) 320px
    }

    .enr-sidebar {
        position: sticky;
        top: 112px
    }
}

@media(max-width:639px) {
    .enr-container {
        padding-left: 24px;
        padding-right: 24px
    }

    .enr-library {
        padding: 48px 0
    }

    .enr-featured-image {
        height: 240px
    }

    .enr-featured-body {
        padding: 24px
    }

    .enr-featured .enr-featured-body h2 {
        font-size: 23px
    }

    .enr-single .enr-article-hero h1 {
        font-size: 32px
    }

    .enr-article-layout {
        padding-top: 48px;
        padding-bottom: 48px
    }

    .enr-article-hero {
        min-height: 380px
    }

    .enr-related-heading {
        align-items: flex-start
    }
}

@media(prefers-reduced-motion:reduce) {

    .enr-card,
    .enr-card-image img,
    .enr-filter {
        transition: none
    }

    .enr-card-link:hover .enr-card-image img {
        transform: none
    }
}

/* Container หน้า Single Resource */
.enr-single .enr-container {
    width: calc(100% - 64px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 639px) {
    .enr-single .enr-container {
        width: calc(100% - 48px);
    }
}

img.attachment-large.size-large.wp-post-image {
    justify-self: center !important;
    border-radius: 20px;
}

/* Single Post - Related */
body.single-post main#primary.single-resource-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 !important;
}

.single-resource-container {
	width: calc(100% - 64px);
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
    padding: 60px;
}

.single-resource-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 500px;
	min-height: 500px;
	overflow: hidden;
	background: #2b2b2b;
}

.single-resource-hero-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.single-resource-hero-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.single-resource-hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.82) 0%,
			rgba(0, 0, 0, 0.64) 38%,
			rgba(0, 0, 0, 0.18) 100%
		);
}

.single-resource-hero-copy {
	position: relative;
	z-index: 2;
	padding-top: 80px;
	padding-bottom: 48px;
	color: #fff;
}

.single-resource-badge {
	display: inline-flex;
	align-items: center;
	margin-bottom: 16px;
	padding: 7px 14px;
	color: #fff;
	background: #f07a1e;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
    width: fit-content;
}

.single-resource-badge::before {
	width: 8px;
	height: 8px;
	margin-right: 7px;
	background: #fff;
	border-radius: 50%;
	content: "";
}

.single-resource-hero h1 {
	max-width: 1000px;
	margin: 0 0 15px !important;
	color: #fff !important;
	font-family: "Montserrat", sans-serif !important;
	font-size: clamp(38px, 4vw, 54px) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.025em;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.single-resource-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
}

/* Back navigation */
.single-resource-back {
	background: #fff;
	border-bottom: 1px solid #e7e7e7;
}

.single-resource-back .single-resource-container {
	padding-top: 20px;
	padding-bottom: 20px;
}

.single-resource-back a {
	color: #444;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.single-resource-back a:hover {
	color: #f07a1e;
}

/* */
/* ========================================
   SHARED SINGLE RESOURCE CONTAINER
   Align with Related Resources
======================================== */

body.single-post .single-resource-container {
	width: 100%;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 32px;
	padding-left: 32px;
	box-sizing: border-box;
}

/* ========================================
   RESPONSIVE BANNER
======================================== */

body.single-post .single-resource-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 500px;
	min-height: 500px;
	overflow: hidden;
	background: #2b2b2b;
}

body.single-post .single-resource-hero-photo,
body.single-post .single-resource-hero-shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.single-post .single-resource-hero-photo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}

body.single-post .single-resource-hero-shade {
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.82) 0%,
			rgba(0, 0, 0, 0.58) 42%,
			rgba(0, 0, 0, 0.15) 100%
		);
}

body.single-post .single-resource-hero-copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding-top: 80px;
	padding-right: 32px;
	padding-bottom: 48px;
	padding-left: 32px;
}

body.single-post .single-resource-hero h1 {
	max-width: 950px;
	margin: 16px 0 0 !important;
	color: #fff !important;
	font-family: "Montserrat", sans-serif !important;
	font-size: clamp(38px, 4vw, 54px) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	text-wrap: balance;
}

/* ========================================
   BACK NAVIGATION
======================================== */

body.single-post .single-resource-back {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #e7e7e7;
}

body.single-post .single-resource-back .single-resource-container {
	padding-top: 20px;
	padding-right: 32px;
	padding-bottom: 20px;
	padding-left: 32px;
}

/* ========================================
   CONTENT SECTION
   Spacing only — no content typography
======================================== */

/* รองรับทั้งกรณีที่มีและไม่มี class single-resource-content */
body.single-post .single-resource-article >
.single-resource-container:not(.single-resource-hero-copy),
body.single-post .single-resource-content {
	width: 100%;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding: 64px 32px;
	box-sizing: border-box;
}

/* ป้องกัน margin ของ element แรก/สุดท้ายดัน section */
body.single-post .single-resource-article >
.single-resource-container:not(.single-resource-hero-copy) > :first-child,
body.single-post .single-resource-content > :first-child {
	margin-top: 0;
}

body.single-post .single-resource-article >
.single-resource-container:not(.single-resource-hero-copy) > :last-child,
body.single-post .single-resource-content > :last-child {
	margin-bottom: 0;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
	body.single-post .single-resource-hero {
		height: 460px;
		min-height: 460px;
	}

	body.single-post .single-resource-hero h1 {
		max-width: 760px;
		font-size: 40px !important;
	}
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 639px) {
	body.single-post .single-resource-container {
		padding-right: 24px;
		padding-left: 24px;
	}

	body.single-post .single-resource-hero {
		height: 400px;
		min-height: 400px;
	}

	body.single-post .single-resource-hero-copy {
		padding-top: 60px;
		padding-right: 24px;
		padding-bottom: 34px;
		padding-left: 24px;
	}

	body.single-post .single-resource-hero h1 {
		max-width: 100%;
		font-size: 32px !important;
		line-height: 1.16 !important;
	}

	body.single-post .single-resource-back .single-resource-container {
		padding: 17px 24px;
	}

	body.single-post .single-resource-article >
	.single-resource-container:not(.single-resource-hero-copy),
	body.single-post .single-resource-content {
		padding: 44px 24px;
	}
}

/* Small mobile */
@media (max-width: 400px) {
	body.single-post .single-resource-hero {
		height: 370px;
		min-height: 370px;
	}

	body.single-post .single-resource-hero h1 {
		font-size: 28px !important;
	}

	body.single-post .single-resource-hero-copy {
		padding-bottom: 28px;
	}
}

/* Related section stays centred */
.single-related-posts {
	width: calc(100% - 64px);
	max-width: 1200px;
	margin: 0 auto 80px;
}

/* ========================================
   RELATED RESOURCES
   Match the "More projects" design
======================================== */

body.single-post .single-related-posts {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 64px 0;
	overflow: hidden;
	background: #f8f9f6;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
}

body.single-post .single-related-container {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	box-sizing: border-box;
}

/* Heading */
body.single-post .single-related-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 32px;
}

body.single-post .single-related-heading h2 {
	margin: 0;
	color: #2b2b2b;
	font-family: "Montserrat", sans-serif;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.5;
}

body.single-post .single-related-heading > a {
	color: #f07a1e;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

body.single-post .single-related-heading > a:hover {
	text-decoration: underline;
}

/* 3 columns เหมือน More Projects */
body.single-post .single-related-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

/* Compact card */
body.single-post .single-related-card {
	display: block !important;
	min-width: 0;
	height: auto !important;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

body.single-post .single-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
}

/* Image */
body.single-post .single-related-image {
	display: block !important;
	width: 100%;
	height: 180px !important;
	min-height: 180px;
	overflow: hidden;
	background: #f0f0f0;
}

body.single-post .single-related-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	object-position: center;
	transition: transform 0.35s ease;
}

body.single-post .single-related-card:hover .single-related-image img {
	transform: scale(1.04);
}

/* Card content */
body.single-post .single-related-content {
	display: block !important;
	padding: 16px;
}

body.single-post .single-related-category {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: #f07a1e;
	background: transparent;
	border-radius: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
}

body.single-post .single-related-content h3 {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

body.single-post .single-related-content h3 a {
	display: block;
	color: #2b2b2b;
	text-decoration: none;
}

body.single-post .single-related-content h3 a:hover {
	color: #f07a1e;
}

/* ซ่อนรายละเอียดเพื่อให้เป็น Compact Card เหมือน More Projects */
body.single-post .single-related-content p,
body.single-post .single-related-link {
	display: none !important;
}

/* Tablet */
@media (max-width: 900px) {
	body.single-post .single-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 639px) {
	body.single-post .single-related-posts {
		padding: 48px 0;
	}

	body.single-post .single-related-container {
		padding-right: 24px;
		padding-left: 24px;
	}

	body.single-post .single-related-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		margin-bottom: 24px;
	}

	body.single-post .single-related-heading h2 {
		font-size: 24px;
	}

	body.single-post .single-related-grid {
		grid-template-columns: 1fr;
	}

	body.single-post .single-related-image {
		height: 200px !important;
		min-height: 200px;
	}
}

/* Responsive */
@media (max-width: 767px) {
	.single-resource-container {
		width: calc(100% - 40px);
        padding: 40px 20px;
	}

	.single-resource-hero {
		height: 420px;
		min-height: 420px;
	}

	.single-resource-hero-copy {
		padding-bottom: 34px;
	}

	.single-resource-hero h1 {
		font-size: 34px !important;
	}

	.single-resource-meta {
		font-size: 13px;
	}

	.single-related-posts {
		width: calc(100% - 40px);
		margin-bottom: 56px;
	}
}