/*
 * home page styles
 */

/* Home page reset */
body.home .site-main,
body.home #main,
body.home main,
body.home .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.home .ct-container,
body.home .ct-container-full {
	padding-top: 18px !important;
}

body.home .hero-section,
body.home .entry-header,
body.home .page-title,
body.home h1.entry-title {
	display: none !important;
}

body.home .bgo-home-layout {
	margin-top: 0 !important;
}

/* Base layout */
.bgo-home-layout,
.bgo-home-layout > .wp-block-group__inner-container {
	display: grid !important;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 22px !important;
	column-gap: 22px !important;
	align-items: start;
}

.bgo-home-layout > .wp-block-group__inner-container {
	grid-column: 1 / -1;
}

.bgo-home-sidebar {
	grid-column: 1;
	grid-row: 1 / span 10;
	display: block;
	align-self: start;
	height: auto;
	position: sticky;
	top: 24px;
}

.bgo-home-main {
	grid-column: 2;
	min-width: 0;
	padding: 34px;
}

.bgo-home-sidebar > .wp-block-group__inner-container,
.bgo-home-main > .wp-block-group__inner-container,
.bgo-home-cta-standalone > .wp-block-group__inner-container {
	display: block;
}

.bgo-home-sidebar > .wp-block-group__inner-container {
	height: auto;
}

/* Shared surfaces */
.bgo-sidebar-card,
.bgo-sidebar-contact,
.bgo-home-main {
	border: 1px solid #e5e7eb;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.045);
}

.bgo-sidebar-card {
	padding: 30px;
}

.bgo-sidebar-contact {
	margin-top: 22px;
	padding: 26px;
}

/* Sidebar */
.bgo-sidebar-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 84px;
	height: 84px;
	margin: 0 auto 28px;
	border-radius: 22px;
	background: #f8fafc;
}

.bgo-sidebar-logo img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.bgo-sidebar-card h1,
.bgo-sidebar-card h2 {
	font-size: 30px;
	color: #111827;
}

.bgo-sidebar-card h1 {
	margin: 0 0 16px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.bgo-sidebar-card h2 {
	margin: 0 0 18px;
	line-height: 1.18;
	letter-spacing: -0.035em;
}

.bgo-sidebar-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.72;
	color: #334155;
}

.bgo-sidebar-card strong {
	color: #111827;
}

.bgo-sidebar-contact h2,
.bgo-sidebar-contact h3 {
	font-size: 22px;
	line-height: 1.25;
	color: #111827;
}

.bgo-sidebar-contact h2 {
	margin: 0 0 14px;
}

.bgo-sidebar-contact h3 {
	margin: 0 0 16px;
}

.bgo-sidebar-contact p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.65;
	color: #334155;
}

.bgo-sidebar-contact p:last-child {
	margin-bottom: 0;
}

.bgo-sidebar-contact a {
	color: #2872FA;
	font-weight: 700;
	text-decoration: none;
}

.bgo-sidebar-contact a:hover {
	text-decoration: underline;
}

/* Sections */
.bgo-home-section {
	grid-column: 2;
	margin: 0 0 56px;
	padding: 0;
}

.bgo-home-section:last-child {
	margin-bottom: 0;
}

.bgo-home-section h2 {
	margin: 0 0 26px;
	font-size: 34px;
	line-height: 1.18;
	letter-spacing: -0.025em;
	color: #111827;
}

/* Lists and cards */
.bgo-card-grid,
.bgo-comments-grid,
.bgo-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.bgo-review-card,
.bgo-comment-card {
	flex: 1 1 250px;
	min-width: 250px;
	min-height: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bgo-review-card:hover,
.bgo-comment-card:hover {
	transform: translateY(-2px);
	border-color: #2872FA;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.bgo-review-card__link,
.bgo-comment-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px;
	color: inherit;
	text-decoration: none;
}

.bgo-review-card__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.35;
	color: #111827;
}

.bgo-review-card__excerpt {
	margin: 0 0 18px;
	line-height: 1.65;
	color: #334155;
}

.bgo-review-card__meta {
	margin-top: auto;
	font-size: 14px;
	color: #64748b;
}

.bgo-comment-card__author {
	margin-bottom: 6px;
	font-weight: 700;
	color: #111827;
}

.bgo-comment-card__post {
	margin-bottom: 12px;
	font-size: 14px;
	color: #2872FA;
}

.bgo-comment-card__text {
	line-height: 1.6;
	color: #334155;
}

/* Categories */
.bgo-category-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 220px;
	min-width: 220px;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #ffffff;
	color: #334155;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bgo-category-item:hover {
	transform: translateY(-1px);
	border-color: #2872FA;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.bgo-category-item__name {
	font-weight: 700;
	color: #111827;
}

.bgo-category-item__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 28px;
	padding: 0 9px;
	border-radius: 999px;
	background: #f8fafc;
	font-size: 13px;
	color: #334155;
}

/* CTA */
.bgo-review-cta,
.bgo-section-cta {
	margin-top: 0;
	margin-bottom: 56px;
}

.bgo-review-cta-card {
	position: relative;
	overflow: hidden;
	margin-top: 0;
	padding: 30px;
	border: 1px solid #dbeafe;
	border-radius: 20px;
	background: linear-gradient(135deg, #eff6ff 0%, #ffffff 68%);
	box-shadow: none;
}

.bgo-review-cta-card:before {
	content: "";
	position: absolute;
	top: -52px;
	right: -52px;
	width: 160px;
	height: 160px;
	border-radius: 999px;
	background: rgba(40, 114, 250, 0.08);
}

.bgo-review-cta-card h2,
.bgo-review-cta-card h3 {
	position: relative;
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: #111827;
}

.bgo-review-cta-card p {
	position: relative;
	max-width: 780px;
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.65;
	color: #334155;
}

.bgo-review-cta-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 24px;
	border-radius: 999px;
	background: #2872FA;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(40, 114, 250, 0.24);
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.bgo-review-cta-button:hover {
	transform: translateY(-1px);
	background: #155EE8;
	color: #ffffff !important;
	box-shadow: 0 14px 30px rgba(21, 94, 232, 0.28);
}

.bgo-home-cta-standalone {
	grid-column: 2;
	margin-top: 0 !important;
	margin-block-start: 0 !important;
	margin-bottom: 0;
}

/* Tablet and desktop layout */
@media screen and (min-width: 690px) {
	.bgo-home-layout,
	.bgo-home-layout > .wp-block-group__inner-container {
		grid-template-rows: auto auto;
		row-gap: 22px !important;
	}

	.bgo-home-sidebar,
	.bgo-home-sidebar > .wp-block-group__inner-container {
		display: grid;
		grid-template-rows: auto auto;
		row-gap: 22px;
		align-items: start;
		height: auto;
		max-height: none;
		overflow: visible !important;
	}

	.bgo-home-sidebar {
		grid-row: 1 / span 2;
		align-self: start;
		position: sticky !important;
		top: 24px !important;
		z-index: 2;
	}

	.bgo-sidebar-card,
	.bgo-sidebar-contact {
		align-self: start;
		height: auto;
		min-height: 0;
	}

	.bgo-sidebar-card {
		grid-row: 1;
		position: static;
		top: auto;
		z-index: auto;
	}

	.bgo-sidebar-contact {
		grid-row: 2;
		margin-top: 0;
	}

	.bgo-home-main {
		grid-row: 1;
		align-self: start;
	}

	.bgo-home-cta-standalone {
		grid-row: 2;
		align-self: start;
		margin-top: 0 !important;
	}
}

/* Medium screens */
@media screen and (max-width: 1024px) {
	.bgo-home-layout,
	.bgo-home-layout > .wp-block-group__inner-container {
		grid-template-columns: 280px minmax(0, 1fr);
	}

	.bgo-home-main {
		padding: 28px;
	}

	.bgo-sidebar-card,
	.bgo-sidebar-contact {
		padding: 24px;
	}

	.bgo-sidebar-card h1 {
		font-size: 26px;
	}

	.bgo-home-section h2 {
		font-size: 30px;
	}
}

/* Mobile */
@media screen and (max-width: 689px) {
	.bgo-home-layout,
	.bgo-home-layout > .wp-block-group__inner-container {
		display: flex !important;
		flex-direction: column;
		gap: 0 !important;
		row-gap: 0 !important;
		column-gap: 0 !important;
	}

	body.home .bgo-home-layout .bgo-home-main {
		order: 1;
		width: 100%;
		margin-bottom: 36px !important;
		padding: 22px;
		border-radius: 18px;
	}

	body.home .bgo-home-layout .bgo-home-sidebar {
		order: 2;
		position: static !important;
		top: auto !important;
		z-index: auto;
		width: 100%;
		max-height: none;
		overflow: visible !important;
		margin-top: 0 !important;
		margin-bottom: 44px;
		display: block;
		height: auto;
	}

	.bgo-home-sidebar > .wp-block-group__inner-container {
		display: block;
		height: auto;
		overflow: visible !important;
	}

	.bgo-sidebar-card {
		position: static;
		top: auto;
		z-index: auto;
	}

	.bgo-section-categories,
	.bgo-section-comments {
		order: 1;
	}

	.bgo-section-latest {
		order: 2;
	}

	.bgo-section-cta,
	.bgo-home-cta-standalone {
		order: 3;
	}

	.bgo-section-popular {
		order: 5;
	}

	.bgo-home-section {
		width: 100%;
		margin-bottom: 42px;
	}

	.bgo-home-section:last-child {
		margin-bottom: 0;
	}

	.bgo-home-section h2 {
		margin-bottom: 20px;
		font-size: 28px;
	}

	.bgo-sidebar-card,
	.bgo-sidebar-contact {
		padding: 24px;
		border-radius: 18px;
	}

	.bgo-sidebar-card h2 {
		font-size: 28px;
	}

	.bgo-review-card,
	.bgo-comment-card,
	.bgo-category-item {
		flex-basis: 100%;
		min-width: 100%;
	}

	.bgo-review-card__link,
	.bgo-comment-card__link {
		padding: 19px;
	}

	.bgo-review-cta,
	.bgo-section-cta {
		margin-top: 0;
		margin-bottom: 42px;
	}

	.bgo-review-cta-card {
		padding: 24px 22px;
		border-radius: 18px;
	}

	.bgo-review-cta-card h2,
	.bgo-review-cta-card h3 {
		font-size: 26px;
	}

	.bgo-review-cta-card p {
		font-size: 16px;
	}

	.bgo-home-cta-standalone {
		width: 100%;
		margin-top: 0 !important;
		margin-bottom: 36px;
	}
}