/*
 * Single Post - Trầm Hương Minh Lâm
 * Theme child: phongthuy
 */

.thm-single-page {
	background: #fff!important;
	color: #17140f;
	padding-bottom: 70px;
}

.thm-single-container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 15px;
}

.thm-single-header {
	padding: 18px 0 28px;
}

.thm-single-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 26px;
	color: #8d8478;
	font-size: 14px;
	line-height: 1.5;
}

.thm-single-breadcrumb a {
	color: #403b35;
}

.thm-single-breadcrumb a:hover {
	color: #9a6a2b;
}

.thm-single-breadcrumb .is-current {
	color: #b27b31;
}

.thm-single-title {
	max-width: 980px;
	margin: 0 0 24px;
	color: #8a5b22;
	font-size: 36px;
	line-height: 1.18;
	font-weight: 500;
}

.thm-single-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.thm-single-meta-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

.thm-single-author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #17140f;
	font-size: 14px;
}

.thm-single-author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.thm-single-author strong {
	font-weight: 500;
}

.thm-single-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #17140f;
	font-size: 14px;
}

.thm-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	/*border-radius: 50%;
	background: #faf7f1;*/
	color: #c08a42;
}
span.thm-meta-icon .item {
    display: inline-flex;
}

.thm-single-font-size {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #17140f;
	font-size: 13px;
}

.thm-single-font-size button {
    width: 15px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a6a2b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    margin: 0px;
}

.thm-single-featured {
	margin-bottom: 28px;
	border-radius: 10px;
	overflow: hidden;
}

.thm-single-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.thm-single-layout {
	display: block;
}

.thm-single-main {
	width: 100%;
}

.thm-single-content {
	max-width: 100%;
	color: #27211b;
	font-size: 18px;
	line-height: 1.85;
}

.thm-single-content p {
	margin: 0 0 20px;
}

.thm-single-content h2,
.thm-single-content h3,
.thm-single-content h4 {
	color: #80541f;
	line-height: 1.35;
}

.thm-single-content h2 {
	margin: 34px 0 16px;
	font-size: 28px;
}

.thm-single-content h3 {
	margin: 28px 0 14px;
	font-size: 23px;
}

.thm-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.thm-single-content blockquote {
	margin: 28px 0;
	padding: 18px 22px;
	border-left: 3px solid #9b6c2f;
	background: #faf7f2;
	color: #554a3e;
}

.thm-single-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid #eee8df;
}

.thm-single-tags > strong {
	color: #6f4b22;
	font-size: 14px;
}

.thm-single-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.thm-single-tags-list a {
	display: inline-flex;
	padding: 6px 10px;
	border: 1px solid #e6ddcf;
	border-radius: 99px;
	color: #766a5c;
	font-size: 12px;
}

.thm-single-tags-list a:hover {
	background: #95672b;
	border-color: #95672b;
	color: #fff;
}

.thm-comments-section,
.thm-related-posts {
	margin-top: 58px;
}

.thm-section-title {
	margin: 0 0 24px;
	color: #7e5423;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 600;
}

/* COMMENTS */

.thm-comments-wrap {
	max-width: 1080px;
	margin: 0 auto;
}

.thm-comment-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	margin-bottom: 24px;
}

.thm-comment-field-main {
	grid-column: 1 / -1;
}

.thm-comment-form textarea {
	width: 100%;
	min-height: 120px;
	padding: 14px 16px;
	border: 1px solid #e1ddd6;
	border-radius: 8px;
	background: #f3f3f3;
	color: #17140f;
	resize: vertical;
	box-shadow: none;
}

.thm-comment-fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.thm-comment-field input {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #ddd8d0;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
}

.thm-comment-submit {
	align-self: end;
	min-height: 42px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 99px;
	background: #b98a47;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.thm-comment-submit:hover {
	background: #95672b;
}

.thm-comments-count {
	margin: 18px 0 14px;
	color: #17140f;
	font-size: 16px;
	font-weight: 600;
}

.thm-comment-list,
.thm-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.thm-comment-item {
	margin-bottom: 14px;
}

.thm-comment-list .children {
	margin: 10px 0 0 34px;
}

.thm-comment-body {
	display: flex;
	gap: 12px;
	padding: 12px 0;
}

.thm-comment-avatar {
	flex: 0 0 42px;
}

.thm-comment-avatar img {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	object-fit: cover;
}

.thm-comment-main {
	flex: 1;
	min-width: 0;
}

.thm-comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 5px;
}

.thm-comment-author {
	color: #26211b;
	font-size: 14px;
}

.thm-comment-admin-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 6px;
	border-radius: 2px;
	background: #cf9a2a;
	color: #17140f;
	font-size: 9px;
	font-weight: 700;
}

.thm-comment-text {
	color: #514a42;
	font-size: 14px;
	line-height: 1.55;
}

.thm-comment-text p:last-child {
	margin-bottom: 0;
}

.thm-comment-actions {
	display: flex;
	gap: 6px;
	margin-top: 5px;
	color: #8da5c9;
	font-size: 11px;
}

.thm-comment-actions a {
	color: #6794d4;
}

.thm-comment-list .children > .thm-comment-item > .thm-comment-body {
	padding: 14px;
	background: #f4f4f4;
	border: 1px solid #ececec;
}

/* RELATED POSTS */

.thm-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.thm-related-card {
	margin: 0;
	border-radius: 8px;
	background: #f3f2f0;
	overflow: hidden;
}

.thm-related-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / .92;
	overflow: hidden;
	background: #e8e2da;
}

.thm-related-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.thm-related-card:hover .thm-related-thumb img {
	transform: scale(1.04);
}

.thm-related-no-thumb {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e4d8c8, #c8b598);
}

.thm-related-date {
	position: absolute;
	top: 0;
	left: 20px;
	z-index: 2;
	width: 40px;
	min-height: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #9b6b2e;
	color: #fff;
	line-height: 1;
}

.thm-related-date::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -7px;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 7px solid #9b6b2e;
}

.thm-related-date strong {
	font-size: 13px;
}

.thm-related-date small {
	margin-top: 3px;
	color: #fff;
	font-size: 9px;
}

.thm-related-content {
	padding: 14px 14px 16px;
}

.thm-related-content h3 {
	margin: 0 0 15px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 600;
}

.thm-related-content h3 a {
	color: #7c5425;
}

.thm-related-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #6e655c;
	font-size: 11px;
}

.thm-related-author-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid #e5d6bf;
	border-radius: 50%;
	color: #b37b2d;
}

@media (max-width: 767px) {

	.thm-single-page {
		padding-bottom: 45px;
	}

	.thm-single-container {
		padding-left: 15px;
		padding-right: 15px;
	}

	.thm-single-header {
		padding: 14px 0 20px;
	}

	.thm-single-breadcrumb {
		gap: 7px;
		margin-bottom: 18px;
		font-size: 12px;
	}

	.thm-single-title {
		margin-bottom: 18px;
		font-size: 28px;
	}

	.thm-single-meta {
		align-items: flex-start;
	}

	.thm-single-meta-left {
		gap: 12px 18px;
	}

	.thm-single-author {
		width: 100%;
	}

	.thm-single-font-size {
		display: none;
	}

	.thm-single-content {
		font-size: 16px;
		line-height: 1.8;
	}

	.thm-single-content h2 {
		font-size: 24px;
	}

	.thm-single-content h3 {
		font-size: 20px;
	}

	.thm-comments-section,
	.thm-related-posts {
		margin-top: 42px;
	}

	.thm-section-title {
		margin-bottom: 18px;
		font-size: 24px;
	}

	.thm-comments-wrap {
		max-width: 100%;
	}

	.thm-comment-form {
		display: block;
	}

	.thm-comment-fields-row {
		grid-template-columns: 1fr;
		margin-top: 8px;
	}

	.thm-comment-field {
		margin-bottom: 8px;
	}

	.thm-comment-submit {
		width: 100%;
		margin-top: 0;
	}

	.thm-comment-list .children {
		margin-left: 18px;
	}

	.thm-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.thm-related-content {
		padding: 10px 10px 12px;
	}

	.thm-related-content h3 {
		font-size: 13px;
		line-height: 1.45;
	}

	.thm-related-meta {
		font-size: 10px;
	}
}

.thm-comment-form input#submit {
    border-radius: 30px;
    font-size: 13px;
    line-height: 14px;
    padding: 11px 23px;
    margin: unset;
    background-color: #b18e4f;
    text-transform: none;
}

/* =========================================================
   DARK THEME - TRẦM HƯƠNG MINH LÂM
   ========================================================= */

.thm-single-page,
.thm-single-page .thm-single-article {
    background: #0f0d0a !important;
    color: #eee5d8;
}

.thm-single-container {
    background: transparent;
}

.thm-single-title {
    color: #d3a55c !important;
}

.thm-single-breadcrumb {
    color: #9f9486;
}

.thm-single-breadcrumb a {
    color: #cfc3b4;
}

.thm-single-breadcrumb a:hover,
.thm-single-breadcrumb .is-current {
    color: #d3a55c;
}

.thm-single-author,
.thm-single-meta-item,
.thm-single-font-size {
    color: #eee5d8;
}

.thm-meta-icon,
.thm-single-font-size button {
    color: #d3a55c;
}

.thm-single-content {
    color: #e8dfd2 !important;
}

.thm-single-content p,
.thm-single-content li,
.thm-single-content td,
.thm-single-content th {
    color: #e8dfd2;
}

.thm-single-content h1,
.thm-single-content h2,
.thm-single-content h3,
.thm-single-content h4,
.thm-single-content h5,
.thm-single-content h6 {
    color: #d3a55c !important;
}

/*.thm-single-content a {
    color: #e0ad60;
}

.thm-single-content a:hover {
    color: #f3c982;
}*/

.thm-single-content strong,
.thm-single-content b {
    color: #f4e7d3;
}

.thm-single-content blockquote {
    background: #18140f;
    border-left-color: #b7863d;
    color: #d8cbbd;
}

.thm-single-content hr,
.thm-single-content table,
.thm-single-content td,
.thm-single-content th {
    border-color: #332b23;
}

.thm-single-tags {
    border-top-color: #2f2922;
}

.thm-single-tags > strong,
.thm-section-title,
.thm-comments-count {
    color: #d3a55c;
}

.thm-single-tags-list a {
    border-color: #3a3127;
    color: #bdb2a5;
    background: #15110d;
}

.thm-single-tags-list a:hover {
    background: #95672b;
    border-color: #95672b;
    color: #fff;
}

/* COMMENTS */

.thm-comment-form textarea,
.thm-comment-field input {
    background: #15110d !important;
    border-color: #3b332a !important;
    color: #f0e7db !important;
    box-shadow: none !important;
}

.thm-comment-form textarea::placeholder,
.thm-comment-field input::placeholder {
    color: #7f7468;
    opacity: 1;
}

.thm-comment-form textarea:focus,
.thm-comment-field input:focus {
    border-color: #a77a39 !important;
    box-shadow: 0 0 0 1px rgba(167, 122, 57, .25) !important;
}

.thm-comment-submit,
.thm-comment-form input#submit {
    background: #a77a39 !important;
    border-color: #a77a39 !important;
    color: #fff !important;
}

.thm-comment-submit:hover,
.thm-comment-form input#submit:hover {
    background: #c08e45 !important;
    border-color: #c08e45 !important;
}

.thm-comment-author {
    color: #f0e7db;
}

.thm-comment-text {
    color: #cfc4b7;
}

.thm-comment-actions,
.thm-comment-actions time {
    color: #81776d;
}

.thm-comment-actions a {
    color: #c89752;
}

.thm-comment-actions a:hover {
    color: #efc77d;
}

.thm-comment-list .children > .thm-comment-item > .thm-comment-body {
    background: #18140f;
    border-color: #302920;
}

.thm-comment-admin-badge {
    background: #b7863d;
    color: #140f09;
}

/* RELATED POSTS */

.thm-related-card {
    background: #17130f;
    border: 1px solid #29231c;
}

.thm-related-thumb {
    background: #221b14;
}

.thm-related-content h3 a {
    color: #d6aa68;
}

.thm-related-content h3 a:hover {
    color: #f0c97e;
}

.thm-related-meta {
    color: #9f9486;
}

.thm-related-author-icon {
    border-color: #3a3127;
    color: #c7944e;
}

.thm-related-card:hover {
    border-color: #4a3a28;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.thm-single-featured,
.thm-single-content img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.thm-single-page ::selection {
    background: #9b6b2e;
    color: #fff;
}

/* MOBILE */
@media (max-width: 767px) {
    .thm-single-page {
        background: #0f0d0a !important;
    }

    .thm-single-title,
    .thm-section-title {
        color: #d3a55c !important;
    }

    .thm-single-content {
        color: #e8dfd2 !important;
    }
}
