/* ========================================
   JOURNAL SECTIONS — homepage cards (1.html areas design)
   ======================================== */

.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, 'Cairo', sans-serif);
	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, 'Cairo', sans-serif);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	margin: 0;
	color: inherit;
}

/* 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);
	}
}

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

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

	.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;
	}
}
