/* ==========================================
   Buildtown Editorial Luxury Blog Module CSS
   ========================================== */

:root {
	--blog-accent: #C8A96A;
	--blog-accent-light: rgba(200, 169, 106, 0.15);
	--blog-dark: #12191A;
	--blog-card-bg: #182224;
	--blog-text-white: #FFFFFF;
	--blog-text-muted: rgba(255, 255, 255, 0.8);
	--blog-serif: 'Playfair Display', Georgia, serif;
	--blog-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page Header & Banner */
.blog-hero-section {
	position: relative;
	background: url('../images/about-banner-bg.jpg') no-repeat center center / cover !important;
	margin-top: -118px;
	padding: 270px 0 150px;
	min-height: 85vh;
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(200, 169, 106, 0.2);
}

.blog-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(25, 35, 36, 0.72) 0%, rgba(25, 35, 36, 0.60) 50%, rgba(25, 35, 36, 0.35) 100%) !important;
	z-index: 1;
}

.blog-hero-content {
	position: relative;
	z-index: 2;
}

.blog-hero-subtitle {
	color: var(--blog-accent);
	font-family: var(--blog-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 15px;
}

.blog-hero-title {
	font-family: var(--blog-serif);
	font-size: 48px;
	font-weight: 600;
	color: var(--blog-text-white);
	line-height: 1.2;
	margin-bottom: 20px;
}

.blog-hero-title span {
	color: var(--blog-accent);
	font-style: italic;
	font-weight: 500;
}

.blog-hero-desc {
	color: var(--blog-text-muted);
	font-size: 17px;
	line-height: 1.7;
	max-width: 680px;
	margin-bottom: 0;
}

/* Category Filters Bar */
.blog-filter-section {
	background-color: #162022;
	padding: 24px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-filter-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.blog-filter-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
	/* Firefox */
}

.blog-filter-buttons::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.blog-filter-btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.75);
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	white-space: nowrap;
	cursor: pointer;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
	background: var(--blog-accent);
	border-color: var(--blog-accent);
	color: #12191A;
}

/* Search Bar */
.blog-search-box {
	position: relative;
	width: 280px;
}

.blog-search-input {
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 30px;
	padding: 8px 18px 8px 42px;
	color: #FFFFFF;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.3s ease;
}

.blog-search-input:focus {
	border-color: var(--blog-accent);
	background: rgba(255, 255, 255, 0.1);
}

.blog-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
}

/* Horizontal Scroll Section Header */
.blog-slider-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 30px;
}

.blog-slider-title-wrap {
	max-width: 600px;
}

.blog-section-subtitle {
	color: var(--blog-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	display: block;
	margin-bottom: 8px;
}

.blog-section-title {
	font-family: var(--blog-serif);
	font-size: 34px;
	color: #FFFFFF;
	font-weight: 600;
	margin-bottom: 0;
}

/* Swiper / Horizontal Scroll Navigation Buttons */
.blog-nav-buttons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.blog-nav-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(200, 169, 106, 0.4);
	background: rgba(200, 169, 106, 0.05);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.blog-nav-btn:hover {
	background: var(--blog-accent);
	border-color: var(--blog-accent);
	color: #12191A;
	transform: translateY(-2px);
}

/* ==========================================
   Reference Replica Luxury Blog Card CSS
   ========================================== */
.blog-cards-scroll-container {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 10px 0 30px 0;
	scrollbar-width: none;
	/* Firefox */
	-webkit-overflow-scrolling: touch;
}

.blog-cards-scroll-container::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.blog-card-item {
	flex: 0 0 calc(33.333% - 16px);
	min-width: 320px;
	scroll-snap-align: start;
}

@media (max-width: 991px) {
	.blog-card-item {
		flex: 0 0 calc(50% - 12px);
		min-width: 290px;
	}
}

@media (max-width: 575px) {
	.blog-card-item {
		flex: 0 0 100%;
		min-width: 280px;
	}
}

.blog-luxury-card {
	position: relative;
	height: 480px;
	border-radius: 20px;
	overflow: hidden;
	background-color: var(--blog-card-bg);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 30px 28px;
	text-decoration: none !important;
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-luxury-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 45px rgba(0, 0, 0, 0.6);
}

/* Background Image & Overlay */
.blog-card-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-luxury-card:hover .blog-card-bg-img {
	transform: scale(1.06);
}

.blog-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 25, 0.85) 0%, rgba(12, 19, 21, 0.55) 45%, rgba(10, 15, 17, 0.94) 100%);
	z-index: 2;
	transition: opacity 0.3s ease;
}

.blog-luxury-card:hover .blog-card-overlay {
	background: linear-gradient(180deg, rgba(15, 23, 25, 0.9) 0%, rgba(12, 19, 21, 0.6) 45%, rgba(10, 15, 17, 0.96) 100%);
}

/* Top Content */
.blog-card-header {
	position: relative;
	z-index: 3;
}

.blog-card-category {
	color: var(--blog-accent);
	font-family: var(--blog-sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 14px;
}

.blog-card-title {
	font-family: var(--blog-serif);
	font-size: 24px;
	font-weight: 500;
	color: #FFFFFF;
	line-height: 1.3;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card-desc {
	font-family: var(--blog-sans);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.55;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Bottom Content */
.blog-card-footer {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
}

.blog-card-date {
	color: rgba(255, 255, 255, 0.65);
	font-size: 13.5px;
	font-weight: 500;
}

.blog-card-arrow-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(200, 169, 106, 0.5);
	background: rgba(200, 169, 106, 0.05);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: all 0.3s ease;
}

.blog-luxury-card:hover .blog-card-arrow-btn {
	background: var(--blog-accent);
	border-color: var(--blog-accent);
	color: #12191A;
	transform: scale(1.08);
}

.all-blogs-section {
	padding: 100px 0;
	background-color: #12191A;
}

@media (max-width: 991px) {
	.all-blogs-section {
		padding: 70px 0;
	}
}

@media (max-width: 767px) {
	.all-blogs-section {
		padding: 50px 0;
	}
}

.blog-grid-item {
	margin-bottom: 30px;
}

/* ==========================================
   Blog Detail Page Styles
   ========================================== */
.blog-detail-hero {
	position: relative;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	margin-top: -118px;
	padding-top: 180px;
	padding-bottom: 70px;
	border-bottom: 1px solid rgba(200, 169, 106, 0.2);
}

.blog-detail-hero .story-container {
	position: relative;
	z-index: 2;
}

.blog-detail-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 20px;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.85);
}

.blog-detail-meta i {
	color: var(--blog-accent, #C8A96A);
}

.blog-detail-category {
	color: var(--blog-accent);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: rgba(200, 169, 106, 0.12);
	padding: 4px 14px;
	border-radius: 20px;
	border: 1px solid rgba(200, 169, 106, 0.3);
}

.blog-detail-date,
.blog-detail-readtime {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.blog-detail-title {
	font-family: var(--blog-serif);
	font-size: 46px;
	color: #FFFFFF;
	line-height: 1.22;
	font-weight: 600;
	margin-bottom: 24px;
}

.blog-detail-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.blog-author-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--blog-accent);
	color: #12191A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
}

.blog-author-name {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
}

.blog-author-role {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

/* Feature Image Container */
.blog-detail-banner-wrap {
	margin: 40px 0 60px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	max-height: 540px;
}

.blog-detail-banner-wrap img {
	width: 100%;
	height: 100%;
	max-height: 540px;
	object-fit: cover;
	display: block;
}

/* Article Body Typography */
.blog-article-content {
	background-color: #12191A;
	color: #E2E8F0;
	font-size: 17.5px;
	line-height: 1.85;
}

.blog-article-intro {
	font-family: var(--blog-serif);
	font-size: 21px;
	line-height: 1.65;
	color: #F1F5F9;
	border-left: 3px solid var(--blog-accent);
	padding-left: 24px;
	margin-bottom: 40px;
	font-style: italic;
}

.blog-article-content h2 {
	font-family: var(--blog-serif);
	font-size: 30px;
	color: #FFFFFF;
	margin-top: 48px;
	margin-bottom: 20px;
	font-weight: 600;
}

.blog-article-content p {
	margin-bottom: 24px;
	color: #CBD5E1;
}

/* FAQ Accordion Section */
.blog-faq-section {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-faq-title {
	font-family: var(--blog-serif);
	font-size: 32px;
	color: #FFFFFF;
	margin-bottom: 24px;
}

.blog-faq-accordion .accordion-item {
	background: #182224;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px !important;
	margin-bottom: 14px;
	overflow: hidden;
}

.blog-faq-accordion .accordion-button {
	background: #182224;
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 600;
	padding: 20px 24px;
	box-shadow: none;
}

.blog-faq-accordion .accordion-button:not(.collapsed) {
	color: var(--blog-accent);
	background: #1C282B;
}

.blog-faq-accordion .accordion-body {
	color: #CBD5E1;
	font-size: 16px;
	line-height: 1.7;
	padding: 0 24px 22px;
}

/* Article CTA Box */
.blog-article-cta {
	margin-top: 60px;
	background: linear-gradient(135deg, #1C282B 0%, #162022 100%);
	border: 1px solid rgba(200, 169, 106, 0.3);
	border-radius: 20px;
	padding: 45px 40px;
	text-align: center;
}

.blog-article-cta h3 {
	font-family: var(--blog-serif);
	font-size: 30px;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.blog-article-cta p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 16px;
	margin-bottom: 26px;
}

.blog-cta-btn {
	background: var(--blog-accent);
	color: #12191A;
	padding: 14px 36px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	display: inline-block;
	transition: all 0.3s ease;
}

.blog-cta-btn:hover {
	background: #D9B775;
	color: #12191A;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(200, 169, 106, 0.3);
}

/* Prev / Next Article Nav */
.blog-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-nav-link-card {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none !important;
	display: flex;
	flex-direction: column;
	transition: color 0.3s ease;
}

.blog-nav-link-card:hover {
	color: var(--blog-accent);
}

.blog-nav-label {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--blog-accent);
	margin-bottom: 6px;
}

.blog-nav-post-title {
	font-family: var(--blog-serif);
	font-size: 18px;
	font-weight: 600;
	color: #FFFFFF;
}

@media (max-width: 767px) {
	#index-journal {
		padding-top: 45px !important;
		padding-bottom: 45px !important;
	}

	#index-journal .container {
		display: flex;
		flex-direction: column;
	}

	.blog-slider-header {
		display: block;
		margin-bottom: 20px;
	}

	.blog-section-subtitle {
		font-size: 11px;
		letter-spacing: 2px;
		margin-bottom: 6px;
	}

	.blog-section-title {
		font-size: 25px !important;
		line-height: 1.25 !important;
	}

	.blog-cards-scroll-container {
		order: 2;
		margin-bottom: 0;
		padding-bottom: 10px;
	}

	.blog-nav-buttons {
		order: 3;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin-top: 16px;
		width: 100%;
	}

	.blog-nav-btn {
		width: 40px;
		height: 40px;
		font-size: 15px;
	}

	.blog-hero-title {
		font-size: 34px;
	}

	.blog-detail-title {
		font-size: 30px;
	}

	.blog-luxury-card {
		height: 440px;
		padding: 24px 20px;
	}

	.blog-card-title {
		font-size: 20px;
	}
}

@media (max-width: 767px) {

	.blog-hero-section,
	.blog-detail-hero {
		position: relative !important;
		width: 100% !important;
		height: 100vh !important;
		height: 100svh !important;
		height: 100dvh !important;
		min-height: 100vh !important;
		min-height: 100svh !important;
		min-height: 100dvh !important;
		margin-top: 0 !important;
		padding-top: calc(85px + env(safe-area-inset-top)) !important;
		padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: space-between !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	.blog-hero-container {
		height: 100% !important;
		flex: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: space-between !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.blog-hero-container>.row {
		height: 100% !important;
		flex: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: space-between !important;
		align-items: stretch !important;
		margin: 0 !important;
	}

	.blog-hero-text-content {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		flex: 1 !important;
		padding: 4px 0 !important;
		margin: auto 0 !important;
	}

	.blog-hero-subtitle {
		font-size: 12px;
		letter-spacing: 2.5px;
		margin-bottom: 8px;
	}

	.blog-hero-title {
		font-size: clamp(24px, 6.5vw, 32px) !important;
		line-height: 1.25 !important;
		margin-bottom: 12px !important;
	}

	/* blogs.html 1-Card Mobile Slider & Arrow Navigation */
	#allBlogsGrid {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		scroll-behavior: smooth !important;
		-webkit-overflow-scrolling: touch !important;
		scrollbar-width: none !important;
		padding-bottom: 10px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		scroll-snap-type: x mandatory !important;
	}

	#allBlogsGrid::-webkit-scrollbar {
		display: none !important;
	}

	#allBlogsGrid>[class*="col-"] {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		scroll-snap-align: start !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.blog-mobile-nav {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 16px !important;
		margin-top: 20px !important;
	}

	.blog-nav-btn {
		width: 42px !important;
		height: 42px !important;
		border-radius: 50% !important;
		background: #182224 !important;
		border: 1px solid rgba(200, 169, 106, 0.4) !important;
		color: #C8A96A !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 16px !important;
		transition: all 0.3s ease !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
	}

	.blog-nav-btn:active,
	.blog-nav-btn:hover {
		background: #C8A96A !important;
		color: #12191A !important;
	}
}