/* =========================================================
   TGH BLOG - EDITORIAL / LUXURY FLORIST
   Thế Giới Hoa Hồng
   ========================================================= */

:root {
	--tgh-blog-green: #19392a;
	--tgh-blog-green-dark: #10271d;
	--tgh-blog-cream: #f8f6f1;
	--tgh-blog-cream-dark: #eee9df;
	--tgh-blog-gold: #b99a72;
	--tgh-blog-text: #252525;
	--tgh-blog-muted: #777;
	--tgh-blog-border: #e5e0d7;
	--tgh-blog-white: #ffffff;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.tgh-blog-page,
.tgh-single-page {
	background: var(--tgh-blog-white);
	color: var(--tgh-blog-text);
}

.tgh-blog-container {
	width: min(1180px, calc(100% - 40px));
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================
   BLOG HERO
   ========================================================= */

.tgh-blog-hero {
	background: linear-gradient(135deg, var(--tgh-blog-cream) 0%, #f4f0e8 100%);
	padding: 90px 0 70px;
	text-align: center;
	border-bottom: 1px solid var(--tgh-blog-border);
}

.tgh-blog-eyebrow {
	color: var(--tgh-blog-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.tgh-blog-title {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(42px, 5vw, 68px);
	font-weight: 500;
	line-height: 1.05;
	margin: 0 auto 22px;
	max-width: 850px;
}

.tgh-blog-intro {
	color: var(--tgh-blog-muted);
	font-size: 16px;
	line-height: 1.8;
	margin: 0 auto;
	max-width: 720px;
}

/* =========================================================
   BLOG CATEGORIES
   ========================================================= */

.tgh-blog-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin-top: 35px;
}

.tgh-blog-categories a {
	color: var(--tgh-blog-green);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .4px;
	padding-bottom: 6px;
	position: relative;
	text-decoration: none;
}

.tgh-blog-categories a::after {
	background: var(--tgh-blog-gold);
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
	width: 100%;
}

.tgh-blog-categories a:hover::after,
.tgh-blog-categories a.is-active::after {
	transform: scaleX(1);
}

/* =========================================================
   SECTION HEADING
   ========================================================= */

.tgh-section-heading {
	align-items: center;
	display: flex;
	gap: 20px;
	margin-bottom: 35px;
}

.tgh-section-heading > span:first-child {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 32px;
	font-weight: 600;
	white-space: nowrap;
}

.tgh-heading-line {
	background: var(--tgh-blog-border);
	display: block;
	height: 1px;
	width: 100%;
}

/* =========================================================
   FEATURED
   ========================================================= */

.tgh-blog-featured {
	padding: 80px 0 45px;
}

.tgh-featured-post {
	background: var(--tgh-blog-cream);
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	overflow: hidden;
}

.tgh-featured-image {
	display: block;
	min-height: 500px;
	overflow: hidden;
	background: var(--tgh-blog-cream);
	position: relative;
}

.tgh-featured-image::after {
	background: linear-gradient(to top, rgba(0, 0, 0, .08), transparent 35%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.tgh-featured-image img {
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
	width: 100%;
	display: block;
}

.tgh-featured-image:hover img {
	transform: scale(1.035);
}

.tgh-featured-content {
	align-self: center;
	padding: 65px;
	position: relative;
}

.tgh-featured-content::before {
	color: rgba(185, 154, 114, .22);
	content: "“";
	font-family: Georgia, serif;
	font-size: 110px;
	left: 35px;
	line-height: 1;
	position: absolute;
	top: -15px;
}

.tgh-post-meta {
	align-items: center;
	color: var(--tgh-blog-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	gap: 8px;
	letter-spacing: 1px;
	margin-bottom: 16px;
	text-transform: uppercase;
	min-height: 18px;
}

.tgh-post-meta a {
	color: var(--tgh-blog-gold);
	text-decoration: none;
}

.tgh-post-meta a:hover {
	color: var(--tgh-blog-green);
}

.tgh-featured-content h2 {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(34px, 4vw, 50px);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 20px;
	position: relative;
}

.tgh-featured-content h2 a {
	color: inherit;
	text-decoration: none;
}

.tgh-featured-excerpt {
	color: #626262;
	font-size: 15px;
	line-height: 1.85;
	margin-bottom: 28px;
}

.tgh-read-more,
.tgh-card-link {
	color: var(--tgh-blog-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-decoration: none;
	text-transform: uppercase;
}

.tgh-read-more span,
.tgh-card-link span {
	margin-left: 8px;
	transition: margin-left .25s ease;
}

.tgh-read-more:hover span,
.tgh-card-link:hover span {
	margin-left: 14px;
}

/* =========================================================
   POSTS GRID
   ========================================================= */

.tgh-blog-posts {
	padding: 45px 0 90px;
}

.tgh-post-grid {
	display: grid;
	gap: 35px 25px;
	grid-template-columns: repeat(3, 1fr);
}

.tgh-post-card {
	background: var(--tgh-blog-white);
	border: 1px solid var(--tgh-blog-border);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}

.tgh-post-card:hover {
	box-shadow: 0 18px 45px rgba(25, 57, 42, .09);
	transform: translateY(-5px);
}

.tgh-post-image {
	background: var(--tgh-blog-cream);
	display: block;
	height: 280px;
	overflow: hidden;
	position: relative;
}

.tgh-post-image::after {
	background: linear-gradient(to top, rgba(0, 0, 0, .08), transparent 45%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.tgh-post-image img {
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
	width: 100%;
	display: block;
}

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

.tgh-post-card-content {
	padding: 25px 25px 30px;
	display: flex;
	flex: 1;
	flex-direction: column;
}

.tgh-post-card .tgh-card-link {
	margin-top: auto;
}

.tgh-post-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 14px;
}

.tgh-post-title a {
	color: var(--tgh-blog-green);
	text-decoration: none;
}

.tgh-post-excerpt {
	color: var(--tgh-blog-muted);
	font-size: 14px;
	line-height: 1.75;
	margin: 0 0 22px;
}

/* =========================================================
   PLACEHOLDER & EMPTY
   ========================================================= */

.tgh-blog-placeholder {
	align-items: center;
	background: linear-gradient(135deg, var(--tgh-blog-green), #31523f);
	color: var(--tgh-blog-white);
	display: flex;
	height: 100%;
	justify-content: center;
}

.tgh-blog-placeholder span {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 24px;
}

.tgh-blog-empty {
	grid-column: 1 / -1;
	padding: 80px 20px;
	text-align: center;
	background: var(--tgh-blog-cream);
	border: 1px solid var(--tgh-blog-border);
}

.tgh-blog-empty h2 {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 36px;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.tgh-blog-pagination {
	margin-top: 60px;
	text-align: center;
}

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

.tgh-blog-pagination a,
.tgh-blog-pagination span {
	align-items: center;
	border: 1px solid var(--tgh-blog-border);
	color: var(--tgh-blog-green);
	display: flex;
	height: 42px;
	justify-content: center;
	min-width: 42px;
	padding: 0 12px;
	text-decoration: none;
}

.tgh-blog-pagination .current {
	background: var(--tgh-blog-green);
	border-color: var(--tgh-blog-green);
	color: #fff;
}

/* =========================================================
   SINGLE POST
   ========================================================= */

.tgh-single-header {
	background: var(--tgh-blog-cream);
	padding: 90px 0 70px;
	text-align: center;
}

.tgh-single-header .tgh-blog-breadcrumb {
	justify-content: center;
}

.tgh-single-category {
	color: var(--tgh-blog-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.tgh-single-category a {
	color: inherit;
	text-decoration: none;
}

.tgh-single-title {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(42px, 5vw, 64px);
	font-weight: 500;
	line-height: 1.08;
	margin: 0 auto 20px;
	max-width: 900px;
}

.tgh-single-meta {
	align-items: center;
	color: var(--tgh-blog-muted);
	display: flex;
	font-size: 12px;
	gap: 12px;
	justify-content: center;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.tgh-single-cover {
	background: var(--tgh-blog-cream);
	padding-bottom: 70px;
}

.tgh-single-cover .tgh-blog-container {
	max-width: 1180px;
}

.tgh-single-image {
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: 700px;
	object-fit: cover;
	width: 100%;
}

.tgh-single-body {
	padding: 80px 0 100px;
}

.tgh-single-layout {
	display: grid;
	gap: 80px;
	grid-template-columns: minmax(0, 760px) 280px;
	justify-content: center;
}

.tgh-single-content {
	font-size: 17px;
	line-height: 1.9;
}

.tgh-single-content > * {
	margin-bottom: 1.4em;
}

.tgh-single-content h2,
.tgh-single-content h3,
.tgh-single-content h4 {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	line-height: 1.2;
	margin-top: 1.8em;
}

.tgh-single-content h2 {
	font-size: 36px;
}

.tgh-single-content h3 {
	font-size: 29px;
}

.tgh-single-content p {
	color: #454545;
}

.tgh-single-content a {
	color: var(--tgh-blog-green);
	text-decoration-color: var(--tgh-blog-gold);
}

.tgh-single-content img {
	height: auto;
	max-width: 100%;
}

.tgh-single-content > figure {
	margin-left: 0;
	margin-right: 0;
}

.tgh-single-content ul,
.tgh-single-content ol {
	margin-bottom: 1.5em;
	padding-left: 1.5em;
}

.tgh-single-content li {
	margin-bottom: .5em;
}

.tgh-single-content blockquote {
	border-left: 3px solid var(--tgh-blog-gold);
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 26px;
	font-style: italic;
	margin: 40px 0;
	padding: 5px 25px;
}

.tgh-single-pages {
	border-top: 1px solid var(--tgh-blog-border);
	margin-top: 45px;
	padding-top: 25px;
}

/* =========================================================
   SIDEBAR & RELATED
   ========================================================= */

.tgh-sidebar-box {
	background: var(--tgh-blog-cream);
	padding: 30px;
	position: sticky;
	top: 30px;
}

.tgh-sidebar-label {
	color: var(--tgh-blog-gold);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.tgh-sidebar-box h3 {
	color: var(--tgh-blog-green);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 29px;
	line-height: 1.2;
	margin: 0 0 15px;
}

.tgh-sidebar-box p {
	color: var(--tgh-blog-muted);
	font-size: 13px;
	line-height: 1.7;
	margin-bottom: 22px;
}

.tgh-sidebar-button {
	background: var(--tgh-blog-green);
	color: #fff;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 13px 18px;
	text-decoration: none;
	text-transform: uppercase;
}

.tgh-related-posts {
	background: var(--tgh-blog-cream);
	padding: 80px 0 100px;
}

.tgh-related-posts .tgh-post-card {
	background: var(--tgh-blog-white);
}

/* =========================================================
   BREADCRUMB & CTA
   ========================================================= */

.tgh-blog-breadcrumb {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	gap: 9px;
	letter-spacing: .6px;
	margin-bottom: 28px;
	text-transform: uppercase;
}

.tgh-blog-breadcrumb a {
	color: var(--tgh-blog-muted);
	text-decoration: none;
	transition: color .25s ease;
}

.tgh-blog-breadcrumb a:hover {
	color: var(--tgh-blog-green);
}

.tgh-blog-breadcrumb > span {
	color: var(--tgh-blog-gold);
}

.tgh-blog-breadcrumb-current {
	color: var(--tgh-blog-green);
}

.tgh-blog-cta {
	background: linear-gradient(135deg, var(--tgh-blog-green-dark) 0%, var(--tgh-blog-green) 100%);
	color: var(--tgh-blog-white);
	padding: 75px 0;
	position: relative;
	overflow: hidden;
}

.tgh-blog-cta::before {
	border: 1px solid rgba(185, 154, 114, .18);
	border-radius: 50%;
	content: "";
	height: 420px;
	position: absolute;
	right: -170px;
	top: -220px;
	width: 420px;
}

.tgh-blog-cta::after {
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 50%;
	bottom: -240px;
	content: "";
	height: 420px;
	left: -180px;
	position: absolute;
	width: 420px;
}

.tgh-blog-cta-inner {
	align-items: center;
	display: grid;
	gap: 50px;
	grid-template-columns: minmax(0, 1fr) auto;
	position: relative;
	z-index: 2;
}

.tgh-blog-cta-content {
	max-width: 720px;
}

.tgh-blog-cta .tgh-blog-eyebrow {
	color: var(--tgh-blog-gold);
	margin-bottom: 15px;
}

.tgh-blog-cta h2 {
	color: var(--tgh-blog-white);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 18px;
}

.tgh-blog-cta p {
	color: rgba(255, 255, 255, .76);
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
	max-width: 650px;
}

.tgh-blog-cta-action {
	white-space: nowrap;
}

.tgh-blog-cta .tgh-sidebar-button {
	background: var(--tgh-blog-white);
	color: var(--tgh-blog-green);
	padding: 15px 25px;
	transition: background .25s ease, color .25s ease, transform .25s ease;
}

.tgh-blog-cta .tgh-sidebar-button:hover {
	background: var(--tgh-blog-gold);
	color: var(--tgh-blog-white);
	transform: translateY(-2px);
}

/* =========================================================
   FLATSOME OVERRIDES (GEMINI ENHANCEMENT)
   ========================================================= */

.blog, .archive, .search-results {
	background-color: #ffffff;
	color: var(--tgh-blog-text);
}

.blog .page-title, .archive .page-title {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	color: var(--tgh-blog-green) !important;
	font-size: clamp(36px, 4vw, 48px) !important;
	font-weight: 500 !important;
	text-align: center;
	margin-bottom: 40px !important;
	letter-spacing: -0.01em;
}

.blog .row.blog-wrapper, 
.archive .row.blog-wrapper,
.blog-grid-wrap {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 30px !important;
	max-width: 1240px;
	margin: 0 auto !important;
}

.blog .post-item, .archive .post-item {
	background: var(--tgh-blog-cream) !important;
	border: 1px solid var(--tgh-blog-border) !important;
	border-radius: 0 !important;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog .post-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(25, 57, 42, 0.08);
}

.blog .post-item .box-image, .archive .post-item .box-image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1ede4;
}

.blog .post-item img, .archive .post-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.blog .post-item:hover img {
	transform: scale(1.05);
}

.blog .post-item .box-text, .archive .post-item .box-text {
	padding: 24px !important;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog .post-item .is-divider {
	display: none !important;
}

.blog .post-item .post-title a, .archive .post-item .post-title a {
	color: var(--tgh-blog-green) !important;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: 22px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	transition: color 0.2s ease;
}

.blog .post-item .post-title a:hover {
	color: var(--tgh-blog-gold) !important;
}

.blog .post-item p.from_the_blog_excerpt, .archive .post-item p.from_the_blog_excerpt {
	color: var(--tgh-blog-muted) !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
	margin-top: 10px !important;
	margin-bottom: 25px !important;
}

.blog .post-item .more-link, .archive .post-item .more-link {
	margin-top: auto !important;
	color: var(--tgh-blog-green) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.15em !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--tgh-blog-green);
	padding-bottom: 2px;
	width: fit-content;
	transition: all 0.2s ease;
}

.blog .post-item .more-link:hover {
	color: var(--tgh-blog-gold);
	border-color: var(--tgh-blog-gold);
}

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

@media (max-width: 1024px) {
	.blog .row.blog-wrapper, .archive .row.blog-wrapper,
	.tgh-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.tgh-featured-post {
		grid-template-columns: 1fr;
	}
	.tgh-featured-image {
		min-height: 400px;
	}
	.tgh-featured-content {
		padding: 45px 35px;
	}
	.tgh-single-layout {
		grid-template-columns: 1fr;
	}
	.tgh-single-sidebar {
		order: -1;
	}
	.tgh-sidebar-box {
		position: static;
	}
	.tgh-blog-cta-inner {
		grid-template-columns: 1fr;
	}
	.tgh-blog-cta-action {
		white-space: normal;
	}
}

@media (max-width: 767px) {
	.blog .row.blog-wrapper, .archive .row.blog-wrapper {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	.blog .page-title, .archive .page-title {
		font-size: 32px !important;
	}
}

@media (max-width: 600px) {
	.tgh-blog-container {
		width: min(100% - 30px, 1180px);
	}
	.tgh-blog-hero {
		padding: 60px 0 50px;
	}
	.tgh-blog-title {
		font-size: 42px;
	}
	.tgh-blog-intro {
		font-size: 14px;
	}
	.tgh-blog-categories {
		gap: 10px 18px;
	}
	.tgh-section-heading > span:first-child {
		font-size: 27px;
	}
	.tgh-blog-featured {
		padding: 55px 0 30px;
	}
	.tgh-featured-image {
		min-height: 300px;
	}
	.tgh-featured-content {
		padding: 35px 25px;
	}
	.tgh-featured-content h2 {
		font-size: 36px;
	}
	.tgh-post-grid {
		grid-template-columns: 1fr;
	}
	.tgh-post-image {
		height: 250px;
	}
	.tgh-blog-posts {
		padding-bottom: 65px;
	}
	.tgh-single-header {
		padding: 60px 0 50px;
	}
	.tgh-single-title {
		font-size: 40px;
	}
	.tgh-single-body {
		padding: 55px 0 70px;
	}
	.tgh-single-content {
		font-size: 16px;
		line-height: 1.8;
	}
	.tgh-single-content h2 {
		font-size: 32px;
	}
	.tgh-single-content h3 {
		font-size: 27px;
	}
	.tgh-blog-cta {
		padding: 55px 0;
	}
	.tgh-blog-cta-inner {
		gap: 30px;
	}
	.tgh-blog-cta h2 {
		font-size: 36px;
	}
	.tgh-blog-cta p {
		font-size: 14px;
	}
	.tgh-blog-cta .tgh-sidebar-button {
		display: inline-block;
		width: auto;
	}
}

/* =========================================================
   ACCESSIBILITY & MOTION
   ========================================================= */

.tgh-blog a:focus-visible,
.tgh-single-page a:focus-visible {
	outline: 2px solid var(--tgh-blog-gold);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.tgh-blog *,
	.tgh-single-page * {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}