/* TKB-style homepage — ported from reference design */

.tw-homepage {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.tw-homepage .site-main {
	padding: 0;
	margin: 0;
}

.tw-container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Hero */
.tw-hero-section {
	position: relative;
	min-height: 520px;
	background-color: #1a3a5c;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	padding: 64px 0;
}

.tw-hero-section__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(15, 40, 70, 0.88) 0%,
		rgba(15, 40, 70, 0.55) 55%,
		rgba(15, 40, 70, 0.25) 100%
	);
}

.tw-hero-content {
	position: relative;
	z-index: 1;
}

.tw-hero-text-box {
	max-width: 640px;
	color: #fff;
}

.tw-hero-badge {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.tw-hero-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
	color: #fff;
}

.tw-hero-desc {
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.92);
}

.tw-hero-list {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
}

.tw-hero-list li {
	margin-bottom: 0.4rem;
	line-height: 1.5;
}

.tw-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tw-hero-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border-radius: 30px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
	border: 2px solid transparent;
}

.tw-btn-primary {
	background: #c97a3d;
	color: #fff;
	border-color: #c97a3d;
}

.tw-btn-primary:hover {
	background: #b56a30;
	color: #fff;
}

.tw-btn-outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.75);
}

.tw-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.tw-btn-success {
	background: #06c755;
	color: #fff;
	border-color: #06c755;
}

.tw-btn-success:hover {
	background: #05a948;
	color: #fff;
}

.tw-hero-note {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 1rem;
}

/* Post sections */
.tw-section-padding {
	padding: 56px 0;
}

.tw-section-padding--light {
	background: #f7f3ec;
}

.tw-section-title {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
}

.tw-section-heading {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #3a3226;
}

.tw-section-subtitle {
	display: block;
	color: #6b5d4d;
	font-size: 0.92rem;
	line-height: 1.5;
}

.tw-read-more-link {
	color: #c97a3d;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.tw-read-more-link:hover {
	color: #a55a1f;
	text-decoration: underline;
}

.tw-read-more-link--desktop {
	display: none;
}

@media (min-width: 768px) {
	.tw-read-more-link--desktop {
		display: inline;
	}
}

/* Horizontal scroll cards */
.tw-scroll-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.tw-scroll-card {
	flex: 0 0 85%;
	max-width: 340px;
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.tw-scroll-card {
		flex: 0 0 calc(33.333% - 0.85rem);
		max-width: none;
	}
}

.tw-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tw-card-clickable {
	transition: transform 0.2s, box-shadow 0.2s;
}

.tw-card-clickable:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tw-card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.tw-card-img--placeholder {
	background: linear-gradient(135deg, #efe6d6, #f7f3ec);
}

.tw-card-body {
	padding: 1rem 1.1rem 1.1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tw-card-badges {
	margin-bottom: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tw-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	background: #0f4c81;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.tw-card-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 0.5rem;
	color: #3a3226;
}

.tw-card-excerpt {
	font-size: 0.85rem;
	color: #6b7280;
	line-height: 1.5;
	margin: 0 0 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tw-card-footer {
	margin-top: auto;
}

.tw-card-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.45rem 0.75rem;
	border-radius: 8px;
	border: 1.5px solid #0f4c81;
	color: #0f4c81;
	font-size: 0.85rem;
	font-weight: 600;
	background: #fff;
}

.tw-card-link-mask {
	position: absolute;
	inset: 0;
	z-index: 2;
	text-indent: -9999px;
}

.tw-scroll-hint {
	margin-top: 12px;
	color: #9ca3af;
}

@media (min-width: 768px) {
	.tw-scroll-hint {
		display: none;
	}
}

.tw-no-posts {
	color: #6b5d4d;
	font-style: italic;
}

/* Full-width homepage layout (Astra page-builder template) */
body.home.ast-page-builder-template .site-content > .ast-container,
body.home.ast-page-builder-template #primary.tw-homepage {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
	width: 100%;
}

body.home.ast-page-builder-template #primary.tw-homepage .site-main {
	padding: 0;
	margin: 0;
}

body.home.ast-page-builder-template .entry-content {
	margin: 0;
}

/* Solid header bar on front page (no transparent overlay) */
body.home:not(.ast-theme-transparent-header) .main-header-bar {
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.home:not(.ast-theme-transparent-header) .main-header-menu .menu-link,
body.home:not(.ast-theme-transparent-header) .main-header-menu > .menu-item > .menu-link {
	color: #3a3226;
	font-weight: 500;
}

body.home:not(.ast-theme-transparent-header) .main-header-menu .menu-link:hover,
body.home:not(.ast-theme-transparent-header) .main-header-menu .current-menu-item > .menu-link {
	color: #c97a3d;
	background: #fff3e6;
}

body.home:not(.ast-theme-transparent-header) .ast-header-break-point .main-header-bar {
	background: #fff;
}
