/* ==========================================================================
   FO Hub — Baseline Styles
   Minimal, overridable by Elementor controls and theme CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sticky Navigation
   -------------------------------------------------------------------------- */

.fo-hub-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	position: relative;
}

.fo-hub-nav:after,
.fo-hub-nav:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 16px;
	pointer-events: none;
	z-index: 1;
}

.fo-hub-nav:after {
	background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 0) 100%);
	right: 0;
}

.fo-hub-nav:before {
	background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 0) 100%);
	left: 0;
}

.fo-hub-nav__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}

.fo-hub-nav__list::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.fo-hub-nav__item {
	display: flex;
	align-items: center;
	margin: 0;
	flex-shrink: 0;
}

.fo-hub-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.fo-hub-nav__icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   Hub Sections
   -------------------------------------------------------------------------- */

.fo-hub-sections-wrap {
	display: flex;
	flex-direction: column;
	gap: 48px; /* overridden by Elementor control */
}

.fo-hub-section {
	/* margin removed — spacing handled by sections wrap gap */
}

.fo-hub-section__heading {
	margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Subcategory Grid
   -------------------------------------------------------------------------- */

.fo-hub-subcat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* overridden by Elementor responsive control */
	gap: 20px;
}

@media (max-width: 1024px) {
	.fo-hub-subcat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.fo-hub-subcat-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

.fo-hub-subcat-grid--direct {
	margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Subcategory Card
   -------------------------------------------------------------------------- */

.fo-hub-subcat-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	background-color: #ffffff;
	border-radius: 4px;
	overflow: hidden;
}

.fo-hub-subcat__header {
	padding: 12px 16px;
	border-bottom: 1px solid #e5e5e5;
}

.fo-hub-subcat__label {
	display: flex;
	font-weight: 600;
	text-decoration: none;
}

.fo-hub-subcat__posts {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.fo-hub-post-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* --------------------------------------------------------------------------
   Featured Post
   -------------------------------------------------------------------------- */

.fo-hub-post--featured {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fo-hub-post__thumbnail-link {
	display: block;
}

.fo-hub-post__thumbnail {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Editor placeholder thumbnail */
.fo-hub-post__thumbnail--placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #e0e0e0;
}

.fo-hub-post__title {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.4;
}

.fo-hub-post__title a {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Post Links
   -------------------------------------------------------------------------- */

.fo-hub-post--link {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.fo-hub-post__caret {
	flex-shrink: 0;
	font-size: 1.1em;
	line-height: 1;
}

.fo-hub-post__link {
	font-size: 0.875em;
	text-decoration: none;
	line-height: 1.4;
}

.fo-hub-post__link:hover {
	text-decoration: underline;
}
