/* Journal sections - homepage */

.home-sections {
	--hs-primary: #005B9A;
	--hs-primary-dark: #003D6B;
	--hs-gold: #C9A34E;
	--hs-text: #0b1a33;
	--hs-muted: #5a6d86;
	--hs-border: #e2e8f0;
	--hs-bg: #f4f7fc;
	--hs-white: #ffffff;
	--hs-radius: 16px;
	--hs-shadow: 0 4px 20px rgba(0, 91, 154, 0.06);
	--hs-shadow-hover: 0 16px 36px rgba(0, 91, 154, 0.14);

	padding: 56px 0;
	background: var(--hs-bg);
	color: var(--hs-text);
}

.home-sections .hs-title {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--hs-primary-dark);
	margin: 0 0 8px;
	position: relative;
	display: inline-block;
}

.home-sections .hs-title::after {
	content: '';
	display: block;
	width: 60%;
	min-width: 48px;
	height: 4px;
	background: linear-gradient(135deg, var(--hs-primary), var(--hs-gold));
	border-radius: 4px;
	margin-top: 8px;
}

.home-sections .hs-subtitle {
	color: var(--hs-muted);
	font-size: 1.05rem;
	margin: 0 0 28px;
}

.home-sections .hs-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.home-sections .hs-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 32px 16px;
	min-height: 160px;
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	box-shadow: var(--hs-shadow);
	text-align: center;
	text-decoration: none;
	color: var(--hs-text);
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		box-shadow 0.35s ease,
		border-color 0.35s ease;
}

.home-sections .hs-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--hs-shadow-hover);
	border-color: var(--hs-gold);
	color: var(--hs-text);
}

.home-sections .hs-card i {
	font-size: 2.2rem;
	color: var(--hs-gold);
	line-height: 1;
}

.home-sections .hs-card h4 {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	margin: 0;
	color: inherit;
}

.home-indexers-sections .hs-card-indexer {
	padding: 20px 18px;
}

.home-indexers-sections .hs-card-indexer img {
	width: 100%;
	max-width: 190px;
	height: auto;
	max-height: 86px;
	object-fit: contain;
}

.home-indexers-sections .hs-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.home-indexers-sections .hs-slider-viewport {
	overflow: hidden;
	flex: 1 1 auto;
	min-width: 0;
}

.home-indexers-sections .hs-slider-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 60px) / 4);
	gap: 20px;
	width: 100%;
	will-change: transform;
	transition: transform 0.5s ease;
}

.home-indexers-sections .hs-slider-track .hs-card {
	min-width: 0;
	width: 100%;
}

.home-indexers-sections .hs-slider-btn {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--hs-primary-dark);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 61, 107, 0.22);
	transition: background 0.2s ease, transform 0.2s ease;
}

.home-indexers-sections .hs-slider-btn:hover {
	background: var(--hs-primary);
	transform: scale(1.05);
}

/* Scroll reveal */
.home-sections .fade-up {
	opacity: 1;
	transform: none;
}

.home-sections.js-animate .fade-up {
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		box-shadow 0.35s ease,
		border-color 0.35s ease;
}

.home-sections.js-animate .fade-up:not(.visible) {
	opacity: 0;
	transform: translateY(35px);
}

.home-sections.js-animate .fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

.home-sections.js-animate .fade-up.visible:hover {
	transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
	.home-sections.js-animate .fade-up {
		transition: none;
	}
}

@media (max-width: 1100px) {
	.home-sections .hs-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-indexers-sections .hs-slider-track {
		grid-auto-columns: calc((100% - 40px) / 3);
	}
}

@media (max-width: 700px) {
	.home-sections {
		padding: 40px 0;
	}

	.home-sections .hs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.home-indexers-sections .hs-slider-track {
		gap: 14px;
		grid-auto-columns: calc((100% - 14px) / 2);
	}

	.home-sections .hs-card {
		min-height: 140px;
		padding: 24px 12px;
	}

	.home-sections .hs-title {
		font-size: 1.4rem;
	}
}

@media (max-width: 420px) {
	.home-sections .hs-grid {
		grid-template-columns: 1fr;
	}

	.home-indexers-sections .hs-slider-track {
		grid-auto-columns: 100%;
	}
}
