/* =========================================
   HOMEPAGE BASE
========================================= */

.thbp-homepage {
	background: #f3f4f6;
	color: #1f2937;
}


/* =========================================
   HOMEPAGE SECTION SPACING
========================================= */

.thbp-home-cats,
.thbp-home-why,
.thbp-home-calc {
	padding: 20px 0;
}


/* =========================================
   HOMEPAGE HERO
========================================= */

.thbp-hero {
	padding: 26px 0 20px;
	background: #f3f4f6;
}

.thbp-hero-shell {
	max-width: 980px;
}

.thbp-hero-content {
	max-width: 920px;
}

.thbp-hero h1 {
	margin: 0 0 12px;
	font-size: 42px;
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	max-width: 760px;
}

.thbp-hero p {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
	color: #4b5563;
	max-width: 880px;
}


/* =========================================
   HOMEPAGE SEARCH
========================================= */

.thbp-search-wrap {
	margin-top: 22px;
	max-width: 100%;
	position: relative;
}

.thbp-home-search {
	position: relative;
}

.thbp-home-search-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 0 12px 0 16px;
	background: #ffffff;
	border: 1px solid #d7dbe3;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.thbp-home-search:focus-within .thbp-home-search-main,
.thbp-home-search.thbp-filters-open .thbp-home-search-main,
.thbp-home-search.thbp-results-open .thbp-home-search-main {
	border-color: #142a66;
	box-shadow: 0 0 0 3px rgba(20, 42, 102, 0.08);
}

.thbp-search-icon {
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
	color: #64748b;
}

.thbp-home-search input[type="text"] {
	flex: 1;
	height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 17px;
	color: #111827;
	outline: none;
	box-shadow: none;
	min-width: 0;
}

.thbp-home-search input[type="text"]::placeholder {
	color: #8b95a7;
}

.thbp-filter-btn {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid #d7dbe3;
	border-radius: 12px;
	background: #ffffff;
	color: #142a66;
	font-size: 20px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s ease;
}

.thbp-filter-btn:hover {
	background: #f8fafc;
	border-color: #c5cedb;
}

.thbp-search-results {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	z-index: 20;
}

.thbp-home-search.thbp-results-open .thbp-search-results {
	display: block;
}

.thbp-search-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	background: #f8fafc;
	border-bottom: 1px solid #eef2f7;
}

.thbp-results-close {
	width: 30px;
	height: 30px;
	border: 1px solid #d7dbe3;
	border-radius: 10px;
	background: #ffffff;
	color: #142a66;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.thbp-search-results a {
	display: block;
	padding: 18px 20px;
	text-decoration: none;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 500;
	color: #111827;
	border-bottom: 1px solid #eef2f7;
}

.thbp-search-results a:last-child {
	border-bottom: 0;
}

.thbp-search-results a:hover {
	background: #f8fafc;
	color: #142a66;
}

.thbp-filter-popover {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 360px;
	max-width: calc(100vw - 40px);
	padding: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
	z-index: 30;
}

.thbp-home-search.thbp-filters-open .thbp-filter-popover {
	display: block;
}

.thbp-filter-popover-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.thbp-filter-close {
	width: 30px;
	height: 30px;
	border: 1px solid #d7dbe3;
	border-radius: 10px;
	background: #ffffff;
	color: #142a66;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.thbp-filter-field + .thbp-filter-field {
	margin-top: 12px;
}

.thbp-filter-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.thbp-filter-field select,
.thbp-filter-field input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d7dbe3;
	border-radius: 12px;
	background: #ffffff;
	font-size: 15px;
	color: #111827;
	outline: none;
}

.thbp-filter-field select:focus,
.thbp-filter-field input:focus {
	border-color: #142a66;
	box-shadow: 0 0 0 3px rgba(20, 42, 102, 0.08);
}

.thbp-filter-actions {
	margin-top: 14px;
	display: flex;
	justify-content: flex-end;
}

.thbp-filter-apply {
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: #142a66;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}


/* =========================================
   HOMEPAGE SECTION HEAD
========================================= */

.thbp-section-head {
	max-width: 760px;
	margin-bottom: 16px;
}

.thbp-section-head h2 {
	margin: 0 0 6px;
	font-size: 29px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111827;
}

.thbp-section-head p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #6b7280;
}


/* =========================================
   HOMEPAGE CATEGORY GRID
========================================= */

.thbp-cat-image-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.thbp-cat-image-card {
	position: relative;
	display: block;
	min-height: 210px;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	transform: translateY(0);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: #d7dbe3;
}

.thbp-cat-image-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.thbp-cat-image-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thbp-cat-image-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(9, 18, 43, 0.72), rgba(9, 18, 43, 0.15));
}

.thbp-cat-image-title {
	position: absolute;
	left: 18px;
	bottom: 18px;
	right: 18px;
	z-index: 2;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}


/* =========================================
   HOMEPAGE WHY SECTION
========================================= */

.thbp-why-box {
	background: #ffffff;
	border: 1px solid #e4e8ef;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.thbp-why-copy h2 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111827;
}

.thbp-why-copy p {
	margin: 0;
	font-size: 16px;
	line-height: 1.75;
	color: #4b5563;
	max-width: 840px;
}

.thbp-why-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.thbp-why-point {
	padding: 16px;
	background: #f8fafc;
	border: 1px solid #e7ebf1;
	border-radius: 14px;
}

.thbp-why-point strong {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #111827;
}

.thbp-why-point span {
	display: block;
	font-size: 14px;
	line-height: 1.7;
	color: #6b7280;
}


/* =========================================
   HOMEPAGE CALCULATOR SECTION
========================================= */

.thbp-home-calc {
	padding-bottom: 18px;
}

.thbp-home-calc-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 26px;
	background: #142a66;
	border-radius: 20px;
}

.thbp-home-calc-copy h2 {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.thbp-home-calc-copy p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
	max-width: 760px;
}

.thbp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	transition: all 0.2s ease;
}

.thbp-btn-primary {
	background: #ffffff;
	color: #142a66;
	white-space: nowrap;
}

.thbp-btn-primary:hover {
	background: #eef2ff;
	color: #142a66;
}

/* =========================================
   HOMEPAGE REVIEWS SECTION (FINAL - SINGLE CTA)
========================================= */

.thbp-home-reviews {
	padding: 22px 0 30px;
	background: #f3f4f6;
	margin-top: -8px;
}

.thbp-review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
	align-items: stretch;
}

.thbp-review-card {
	background: #ffffff;
	padding: 18px;
	border-radius: 16px;
	border: 1px solid #e4e8ef;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	font-size: 14px;
	line-height: 1.6;
	color: #374151;

	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.thbp-review-stars {
	color: #f59e0b;
	font-size: 14px;
	margin-bottom: 8px;
	letter-spacing: 2px;
}

.thbp-review-card p {
	margin: 0;
}

.thbp-review-author {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	opacity: 0.85;
}

/* =========================================
   REVIEW CTA (FINAL CLEAN)
========================================= */

.thbp-review-actions {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

/* Main button */
.thbp-review-actions .thbp-btn {
	padding: 12px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
}

/* Leave Review button */
.thbp-review-actions .thbp-btn-primary {
	background: #ffffff;
	color: #142a66;
	border: 1px solid #e5e7eb;
}

.thbp-review-actions .thbp-btn-primary:hover {
	background: #f3f4f6;
	color: #142a66;
}

/* Small link under button */
.thbp-review-link {
	display: block;
	font-size: 13px;
	color: #142a66;
	text-align: center;
	text-decoration: none;
	font-weight: 500;
	opacity: 0.9;
}

.thbp-review-link:hover {
	text-decoration: underline;
	opacity: 1;
}

/* =========================================
   REVIEWS TABLET
========================================= */

@media (max-width: 1024px) {
	.thbp-review-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================
   REVIEWS MOBILE
========================================= */

@media (max-width: 767px) {

	.thbp-home-reviews {
		padding: 20px 0 28px;
	}

	.thbp-review-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.thbp-review-card {
		padding: 16px;
		font-size: 15px;
		line-height: 1.7;
		border-radius: 14px;
	}

	.thbp-review-stars {
		font-size: 15px;
	}

	.thbp-review-author {
		font-size: 14px;
	}

	.thbp-review-actions {
		margin-top: 20px;
		gap: 8px;
	}

	.thbp-review-actions .thbp-btn {
		width: 100%;
		text-align: center;
	}
}
/* =========================================
   HOMEPAGE TABLET
========================================= */

@media (max-width: 1024px) {
	.thbp-cat-image-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.thbp-why-points {
		grid-template-columns: 1fr;
	}

	.thbp-home-calc-box {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* =========================================
   HOMEPAGE MOBILE
========================================= */

@media (max-width: 767px) {
	.thbp-container {
		width: min(100% - 24px, 1120px);
	}

	.thbp-hero {
		padding: 20px 0 12px;
	}

	.thbp-hero h1 {
		font-size: 32px;
		line-height: 1.14;
		margin-bottom: 10px;
		max-width: 100%;
	}

	.thbp-hero p {
		font-size: 16px;
		line-height: 1.7;
	}

	.thbp-search-wrap {
		margin-top: 18px;
	}

	.thbp-home-search-main {
		min-height: 54px;
		padding: 0 8px 0 12px;
		border-radius: 14px;
		gap: 8px;
	}

	.thbp-search-icon {
		font-size: 18px;
	}

	.thbp-home-search input[type="text"] {
		height: 52px;
		font-size: 16px;
	}

	.thbp-filter-btn {
		width: 34px;
		height: 34px;
		font-size: 18px;
		border-radius: 10px;
	}

	.thbp-search-results {
		left: 0;
		right: 0;
		border-radius: 14px;
	}

	.thbp-search-results a {
		padding: 16px 16px;
		font-size: 15px;
	}

	.thbp-filter-popover {
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		border-radius: 14px;
		padding: 14px;
	}

	.thbp-home-cats,
	.thbp-home-why,
	.thbp-home-calc {
		padding: 16px 0;
	}

	.thbp-section-head {
		margin-bottom: 14px;
	}

	.thbp-section-head h2 {
		font-size: 24px;
		line-height: 1.2;
	}

	.thbp-section-head p {
		font-size: 15px;
		line-height: 1.65;
	}

	.thbp-cat-image-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.thbp-cat-image-card {
		min-height: 152px;
		border-radius: 16px;
	}

	.thbp-cat-image-overlay {
		background: linear-gradient(to top, rgba(9, 18, 43, 0.58), rgba(9, 18, 43, 0.12));
	}

	.thbp-cat-image-title {
		left: 12px;
		right: 12px;
		bottom: 12px;
		font-size: 15px;
		line-height: 1.25;
		font-weight: 700;
	}

	.thbp-why-box {
		padding: 18px;
		border-radius: 16px;
	}

	.thbp-why-copy h2 {
		font-size: 24px;
	}

	.thbp-why-copy p {
		font-size: 15px;
	}

	.thbp-why-points {
		margin-top: 14px;
		gap: 10px;
	}

	.thbp-why-point {
		padding: 14px;
		border-radius: 12px;
	}

	.thbp-home-calc-box {
		padding: 20px;
		border-radius: 16px;
	}

	.thbp-home-calc-copy h2 {
		font-size: 22px;
	}

	.thbp-home-calc-copy p {
		font-size: 14px;
	}

	.thbp-btn {
		width: 100%;
	}
}

