/* ===========================================
   GUIDES SUPER PORTAL - CSS
   The definitive crypto education hub
   =========================================== */

/* Variables */
:root {
	--portal-primary: #3B82F6;
	--portal-dark: #0f172a;
	--portal-gray: #64748b;
	--portal-light: #f8fafc;
	--portal-border: #e2e8f0;
	--portal-beginner: #16a34a;
	--portal-intermediate: #d97706;
	--portal-advanced: #dc2626;
}

/* Base */
.portal-page {
	background: var(--portal-light);
	min-height: 100vh;
}

/* Account for fixed header */
.header + .portal-page {
	margin-top: var(--header-offset, 126px);
}

/* Override hub-container for portal page */
.portal-page .hub-container {
	padding: 1px;
}

.portal-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

.portal-section {
	padding: 60px 0;
}

.portal-section__header {
	text-align: center;
	margin-bottom: 40px;
}

.portal-section__title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--portal-dark);
	margin: 0 0 8px;
}

.portal-section__subtitle {
	font-size: 1.1rem;
	color: var(--portal-gray);
	margin: 0;
}

/* Large headers with expanded descriptions */
.portal-section__header--large {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50px;
}

.portal-section__header--large .portal-section__title {
	font-size: 2.4rem;
	margin-bottom: 16px;
}

.portal-section__subtitle--expanded {
	font-size: 1.15rem;
	line-height: 1.7;
	max-width: 800px;
	margin: 0 auto;
}

/* Header Stats */
/* Compact stats bar below tagline */
.header-stats-bar {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-top: 24px;
	margin-bottom: 24px;
}

.header-stats-bar__item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-stats-bar__value {
	font-size: 1.5rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.header-stats-bar__label {
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 500;
}

/* Header Hub Links */
.header-hubs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 24px;
}

.header-hub {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: #374151;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-hub:hover {
	border-color: var(--hub-color);
	background: color-mix(in srgb, var(--hub-color) 8%, white);
	color: var(--hub-color);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.header-hub__count {
	font-size: 0.75rem;
	font-weight: 600;
	color: #94a3b8;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 10px;
}

.header-hub:hover .header-hub__count {
	background: color-mix(in srgb, var(--hub-color) 15%, white);
	color: var(--hub-color);
}

/* Inline Stats Bar (after Quick Start) */
.inline-stats {
	background: #f1f5f9;
	padding: 40px 40px 60px;
	text-align: center;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-top: -1px;
}

.inline-stats__grid {
	display: flex;
	justify-content: center;
	gap: 60px;
	margin-bottom: 20px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.inline-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.inline-stats__value {
	font-size: 2.5rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
	margin-bottom: 6px;
}

.inline-stats__label {
	font-size: 0.9rem;
	color: #64748b;
	font-weight: 500;
}

.inline-stats__tagline {
	font-size: 0.9rem;
	color: #94a3b8;
	margin: 0;
}

/* ===========================================
   SECTION 1: QUICK START PATHS (Light bg, Dark cards)
   =========================================== */
.portal-quickstart {
	background: linear-gradient(160deg, #ffffff 0%, #faf8f5 30%, #f5f0e6 60%, #efe8db 100%);
	padding: 60px;
	position: relative;
	overflow: hidden;
	/* Full width breakout */
	width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.portal-quickstart::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 70% 80%, rgba(184, 156, 78, 0.06) 0%, transparent 50%);
	pointer-events: none;
}

.portal-quickstart .portal-section__header {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin: 0 auto;
}

.portal-quickstart .portal-section__title {
	color: #0f172a;
}

.portal-quickstart .portal-section__subtitle {
	color: #64748b;
}

/* Quick Start Grid */
.qs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin: 0 auto;
}

/* Quick Start Card - iOS 26 Liquid Glass */
.qs-card {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.72) 0%,
		rgba(255, 255, 255, 0.48) 100%
	);
	border-radius: 28px;
	overflow: hidden;
	border: 0.5px solid rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(40px) saturate(180%);
	-webkit-backdrop-filter: blur(40px) saturate(180%);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow:
		0 2px 16px rgba(0, 0, 0, 0.06),
		0 8px 32px rgba(0, 0, 0, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		inset 0 -1px 0 rgba(0, 0, 0, 0.05);
	position: relative;
}

/* Specular highlight - top edge glow */
.qs-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
	z-index: 10;
}

.qs-card:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.08),
		0 16px 48px rgba(0, 0, 0, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Card Header (colored gradient bar) */
.qs-card__header {
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
}

.qs-card__number {
	font-size: 2.5rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--level-color) 0%, color-mix(in srgb, var(--level-color) 70%, #000) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	opacity: 0.8;
}

.qs-card__intro {
	flex: 1;
}

.qs-card__subtitle {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--level-color);
	display: block;
	margin-bottom: 0;
	font-weight: 600;
}

.qs-card__title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 0.8em;
}

.qs-card__count {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--level-color);
	background: color-mix(in srgb, var(--level-color) 12%, white);
	padding: 6px 12px;
	border-radius: 20px;
}

/* Card Body */
.qs-card__body {
	padding: 0 24px 24px;
	background: rgba(255, 255, 255, 0.2);
}

.qs-card__desc {
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.6;
	margin: 0 0 20px;
}

/* Articles Grid in Card */
.qs-card__articles {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

/* Individual Article Row */
.qs-article {
	display: flex;
	gap: 14px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.4);
	border-radius: 16px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 0.5px solid rgba(255, 255, 255, 0.5);
}

.qs-article:hover {
	background: rgba(255, 255, 255, 0.6);
	transform: translateX(4px);
}

.qs-article__image {
	width: 80px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #e2e8f0;
}

.qs-article__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qs-article__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
	opacity: 0.8;
}

.qs-article__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.qs-article__hub {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--hub-color, #10b981);
	opacity: 0.9;
	margin-bottom: 4px;
}

.qs-article__title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qs-article__time {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 4px;
}

/* CTA Button */
.qs-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--level-color);
	border: none;
	border-radius: 10px;
	color: white;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--level-color) 30%, transparent);
}

.qs-card__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px color-mix(in srgb, var(--level-color) 40%, transparent);
}

/* ===========================================
   GUIDED SECTIONS (with excerpts)
   =========================================== */
.guided-section {
	padding: 50px 0;
	border-top: 1px solid var(--portal-border);
}

.guided-section__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
	gap: 20px;
}

.guided-section__title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--portal-dark);
	margin: 0 0 8px;
}

.guided-section__subtitle {
	font-size: 1rem;
	color: var(--portal-gray);
	margin: 0;
	max-width: 700px;
	line-height: 1.5;
}

.guided-section__viewall {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: white;
	text-decoration: none;
	white-space: nowrap;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--portal-primary) 0%, #2563eb 100%);
	border: none;
	border-radius: 12px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.guided-section__viewall:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.guided-section__viewall::after {
	content: '→';
	font-size: 1.1rem;
	transition: transform 0.2s ease;
}

.guided-section__viewall:hover::after {
	transform: translateX(4px);
}

.guided-section__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* Expanded grid for more articles */
.guided-section__grid--expanded {
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.guided-section--expanded .guided-section__header {
	text-align: left;
	align-items: flex-start;
}

.guided-section--expanded .guided-section__subtitle {
	max-width: none;
}

/* Guided Article Card (with excerpt) */
.guided-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--portal-border);
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
}

.guided-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.guided-card__image {
	height: 180px;
	overflow: hidden;
	background: #f1f5f9;
}

.guided-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.guided-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.guided-card__placeholder-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	opacity: 0.7;
}

.guided-card__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.guided-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.guided-card__hub {
	font-size: 0.75rem;
	font-weight: 600;
	color: white;
	padding: 3px 10px;
	border-radius: 4px;
}

.guided-card__difficulty {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 4px;
	text-transform: capitalize;
}

.guided-card__time {
	font-size: 0.8rem;
	color: var(--portal-gray);
}

.guided-card__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--portal-dark);
	margin: 0;
	line-height: 1.4;
}

.guided-card__excerpt {
	font-size: 0.9rem;
	color: var(--portal-gray);
	line-height: 1.5;
	margin: 0;
	flex-grow: 1;
}

/* ===========================================
   SECTION 2: HUB GRID
   =========================================== */
.portal-hubs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.portal-hub-card {
	background: white;
	border-radius: 16px;
	padding: 24px;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--portal-border);
	transition: all 0.2s ease;
}

.portal-hub-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.1);
	border-color: var(--hub-accent, var(--hub-color));
}

.portal-hub-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.portal-hub-card__icon {
	font-size: 2rem;
}

.portal-hub-card__count {
	font-size: 0.85rem;
	color: var(--portal-gray);
	font-weight: 500;
}

.portal-hub-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--portal-dark);
	margin: 0 0 8px;
}

.portal-hub-card__desc {
	font-size: 0.9rem;
	color: var(--portal-gray);
	margin: 0 0 16px;
	line-height: 1.5;
}

.portal-hub-card__bar {
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	display: flex;
	overflow: hidden;
	margin-bottom: 8px;
}

.portal-hub-card__bar-segment {
	height: 100%;
}

.portal-hub-card__bar-segment--beginner { background: var(--portal-beginner); }
.portal-hub-card__bar-segment--intermediate { background: var(--portal-intermediate); }
.portal-hub-card__bar-segment--advanced { background: var(--portal-advanced); }

.portal-hub-card__levels {
	display: flex;
	gap: 12px;
	font-size: 0.75rem;
	color: var(--portal-gray);
}

/* ===========================================
   HUB SHOWCASE - Full Width Glassmorphism
   =========================================== */
.portal-hubs {
	padding: 20px 0 80px;
}

/* Wrapper with arrows and fades */
.portal-hubs__wrapper {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.portal-hubs__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: white;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0f172a;
	transition: all 0.2s ease;
}

.portal-hubs__arrow:hover {
	background: #0f172a;
	color: white;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.portal-hubs__arrow--left {
	left: 0;
}

.portal-hubs__arrow--right {
	right: 0;
}

/* Inactive arrows at start/end */
.portal-hubs__wrapper.at-start .portal-hubs__arrow--left,
.portal-hubs__wrapper.at-end .portal-hubs__arrow--right {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.portal-hubs__wrapper.at-start .portal-hubs__fade--left {
	opacity: 0;
}

.portal-hubs__wrapper.at-end .portal-hubs__fade--right {
	opacity: 0;
}

/* Fade gradients */
.portal-hubs__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 120px;
	pointer-events: none;
	z-index: 5;
	transition: opacity 0.3s ease;
}

.portal-hubs__fade--left {
	left: 0;
	background: linear-gradient(to right, var(--portal-light) 0%, transparent 100%);
}

.portal-hubs__fade--right {
	right: 0;
	background: linear-gradient(to left, var(--portal-light) 0%, transparent 100%);
}

/* Visual scroll progress indicator */
.portal-hubs__progress {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.portal-hubs__progress-track {
	width: 200px;
	height: 4px;
	background: #e2e8f0;
	border-radius: 2px;
	overflow: hidden;
}

.portal-hubs__progress-bar {
	height: 100%;
	width: 30%;
	background: #94a3b8;
	border-radius: 2px;
	transition: transform 0.15s ease-out;
}

.portal-hubs__showcase {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 20px 0 40px;
	padding-inline: 60px;
	scroll-padding-inline: 60px;
	scrollbar-width: none;
}

.portal-hubs__showcase::-webkit-scrollbar {
	display: none;
}

.portal-hubs__showcase .portal-hub-card {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 380px;
	min-height: 420px;
	background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255,255,255,0.3);
	box-shadow:
		0 8px 32px rgba(0,0,0,0.08),
		inset 0 1px 0 rgba(255,255,255,0.5);
	padding: 32px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.portal-hubs__showcase .portal-hub-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--hub-accent, var(--hub-color));
}

.portal-hubs__showcase .portal-hub-card::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, var(--hub-color) 0%, transparent 70%);
	opacity: 0.08;
	pointer-events: none;
}

/* Hub-specific gradient backgrounds - using official color schemes */
.portal-hubs__showcase .portal-hub-card[data-hub="bitcoin"] {
	--hub-bg: #fff3c9;
	--hub-accent: #F7931A;
}
.portal-hubs__showcase .portal-hub-card[data-hub="bitcoin"]::after {
	background: radial-gradient(ellipse at 80% 20%, #F7931A 0%, #fff3c9 50%, transparent 75%);
	opacity: 0.25;
}

.portal-hubs__showcase .portal-hub-card[data-hub="ethereum"] {
	--hub-bg: #e8e8f0;
	--hub-accent: #8A92B2;
}
.portal-hubs__showcase .portal-hub-card[data-hub="ethereum"]::after {
	background: radial-gradient(ellipse at 90% 10%, #8A92B2 0%, #e8e8f0 50%, transparent 75%);
	opacity: 0.3;
}

.portal-hubs__showcase .portal-hub-card[data-hub="trading"] {
	--hub-bg: #181a20;
	--hub-accent: #181a20;
}
.portal-hubs__showcase .portal-hub-card[data-hub="trading"]::after {
	background: radial-gradient(ellipse at 60% 20%, #181a20 0%, #2d3139 40%, transparent 70%);
	opacity: 0.12;
}

.portal-hubs__showcase .portal-hub-card[data-hub="altcoins"] {
	--hub-bg: #f0f0f5;
	--hub-accent: #a855f7;
	--hub-accent-2: #22c55e;
}
.portal-hubs__showcase .portal-hub-card[data-hub="altcoins"]::after {
	background: radial-gradient(ellipse at 85% 25%, #a855f7 0%, #22c55e 30%, #e8e0f0 60%, transparent 80%);
	opacity: 0.2;
}

.portal-hubs__showcase .portal-hub-card[data-hub="defi"] {
	--hub-bg: #f0f0f5;
	--hub-accent: #8b5cf6;
	--hub-accent-2: #10b981;
}
.portal-hubs__showcase .portal-hub-card[data-hub="defi"]::after {
	background: radial-gradient(ellipse at 70% 30%, #8b5cf6 0%, #10b981 30%, #e5e0f0 60%, transparent 80%);
	opacity: 0.2;
}

.portal-hubs__showcase .portal-hub-card[data-hub="professional-playbook"] {
	--hub-bg: #f0f0f0;
	--hub-accent: #d4af37;
	--hub-accent-2: #f09f3a;
}
.portal-hubs__showcase .portal-hub-card[data-hub="professional-playbook"]::after {
	background: radial-gradient(ellipse at 70% 20%, #d4af37 0%, #f09f3a 30%, #f0f0f0 60%, transparent 80%);
	opacity: 0.25;
}

/* Default/basics hub */
.portal-hubs__showcase .portal-hub-card[data-hub="basics"] {
	--hub-bg: #fff3c9;
	--hub-accent: #f09f3a;
	--hub-accent-2: #c758d0;
}
.portal-hubs__showcase .portal-hub-card[data-hub="basics"]::after {
	background: radial-gradient(ellipse at 80% 30%, #f09f3a 0%, #c758d0 35%, #fff3c9 60%, transparent 80%);
	opacity: 0.2;
}

.portal-hubs__showcase .portal-hub-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow:
		0 20px 60px rgba(0,0,0,0.15),
		0 0 0 2px var(--hub-accent, var(--hub-color)),
		inset 0 1px 0 rgba(255,255,255,0.8);
}

.portal-hubs__showcase .portal-hub-card__title {
	font-size: 1.5rem;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
}

.portal-hubs__showcase .portal-hub-card__desc {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 24px;
	flex-grow: 1;
	position: relative;
	z-index: 1;
}

.portal-hubs__showcase .portal-hub-card__count {
	font-size: 1rem;
	font-weight: 700;
	color: var(--hub-accent, var(--hub-color));
	background: color-mix(in srgb, var(--hub-accent, var(--hub-color)) 10%, transparent);
	padding: 4px 12px;
	border-radius: 20px;
}

.portal-hubs__showcase .portal-hub-card__bar {
	height: 8px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.portal-hubs__showcase .portal-hub-card__levels {
	font-size: 0.85rem;
	gap: 16px;
}

/* ===========================================
   SECTION 3: LEARNING TRACKS
   =========================================== */
.portal-tracks {
	padding: 60px 0;
}

.portal-tracks__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.track-card {
	display: flex;
	flex-direction: column;
	background: white;
	border-radius: 16px;
	padding: 28px;
	border: 1px solid var(--portal-border);
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.track-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--track-color);
}

.track-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.track-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--track-color);
	background: color-mix(in srgb, var(--track-color) 10%, white);
	padding: 4px 10px;
	border-radius: 20px;
}

.track-card__icon {
	font-size: 2rem;
	margin-bottom: 12px;
}

.track-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--portal-dark);
	margin: 0 0 8px;
	line-height: 1.3;
}

.track-card__desc {
	font-size: 0.9rem;
	color: var(--portal-gray);
	margin: 0 0 20px;
	line-height: 1.5;
}

.track-card__steps {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.track-card__step {
	display: flex;
	align-items: center;
}

.track-card__step-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 6px 8px;
	margin: -6px -8px;
	border-radius: 6px;
	transition: background 0.15s ease;
	width: 100%;
}

.track-card__step-link:hover {
	background: #f1f5f9;
}

.track-card__step-link:hover .track-card__step-title {
	color: var(--track-color);
}

.track-card__step-num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--track-color);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

.track-card__step-title {
	font-size: 0.9rem;
	color: var(--portal-dark);
	font-weight: 500;
	transition: color 0.15s ease;
}

.track-card__cta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--portal-border);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--track-color);
	text-decoration: none;
	transition: gap 0.2s ease;
}

.track-card__cta:hover {
	gap: 12px;
}

.track-card__cta svg {
	transition: transform 0.2s ease;
}

.track-card__cta:hover svg {
	transform: translateX(4px);
}

/* ===========================================
   SECTION 4: TOPIC BROWSER (Sidebar + Content)
   =========================================== */
.portal-topics {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	padding: 60px 40px;
	position: relative;
	/* Full width breakout */
	width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.portal-topics::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
	pointer-events: none;
}

.portal-topics .portal-section__title {
	color: white;
}

.portal-topics .portal-section__subtitle {
	color: rgba(255, 255, 255, 0.7);
}

/* Topic Browser Layout */
.topic-browser {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	position: relative;
	z-index: 1;
	min-height: 500px;
}

/* Sidebar */
.topic-sidebar {
	background: rgba(0, 0, 0, 0.2);
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.topic-sidebar__list {
	display: flex;
	flex-direction: column;
}

.topic-sidebar__list::-webkit-scrollbar {
	width: 4px;
}

.topic-sidebar__list::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
}

.topic-sidebar__list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
}

.topic-sidebar__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: left;
}

.topic-sidebar__item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.topic-sidebar__item--active {
	background: rgba(59, 130, 246, 0.2);
	border-left: 3px solid #3b82f6;
}

.topic-sidebar__name {
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

.topic-sidebar__item--active .topic-sidebar__name {
	color: white;
	font-weight: 600;
}

.topic-sidebar__count {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.1);
	padding: 3px 8px;
	border-radius: 12px;
}

.topic-sidebar__item--active .topic-sidebar__count {
	background: rgba(59, 130, 246, 0.3);
	color: rgba(255, 255, 255, 0.9);
}

/* Content Area */
.topic-content {
	padding: 24px;
	position: relative;
}

.topic-content__panel {
	display: none;
}

.topic-content__panel--active {
	display: block;
}

.topic-content__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topic-content__title {
	font-size: 1.3rem;
	font-weight: 700;
	color: white;
	margin: 0;
}

.topic-content__count {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

/* Articles Grid with Internal Scroll */
.topic-content__articles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.topic-content__articles::-webkit-scrollbar {
	width: 6px;
}

.topic-content__articles::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 3px;
}

.topic-content__articles::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

/* Article Card - Background Image Style */
.topic-article {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 140px;
	border-radius: 12px;
	text-decoration: none;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	transition: all 0.2s ease;
}

.topic-article:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.topic-article:hover .topic-article__overlay {
	opacity: 0.5;
}

.topic-article__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
	transition: opacity 0.2s ease;
}

.topic-article__title {
	position: relative;
	z-index: 1;
	font-size: 0.9rem;
	font-weight: 600;
	color: white;
	margin: 0;
	padding: 14px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ===========================================
   SECTION 5: SLIDERS / COLLECTIONS
   =========================================== */
.portal-slider {
	margin-bottom: 40px;
}

.portal-slider__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.portal-slider__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--portal-dark);
	margin: 0 0 4px;
}

.portal-slider__desc {
	font-size: 0.9rem;
	color: var(--portal-gray);
	margin: 0;
}

.portal-slider__nav {
	display: flex;
	gap: 8px;
}

.portal-slider__btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--portal-border);
	background: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.portal-slider__btn:hover {
	background: var(--portal-light);
	border-color: var(--portal-gray);
}

.portal-slider__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 10px;
	scrollbar-width: none;
}

.portal-slider__track::-webkit-scrollbar {
	display: none;
}

.portal-slider__track > * {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 280px;
}

/* ===========================================
   ARTICLE CARDS
   =========================================== */
.portal-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--portal-border);
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
}

.portal-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.portal-card__image {
	height: 160px;
	overflow: hidden;
	background: #f1f5f9;
}

.portal-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portal-card__content {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.portal-card__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.portal-card__hub {
	font-size: 0.7rem;
	font-weight: 600;
	color: white;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}

.portal-card__difficulty {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: capitalize;
}

.portal-card__time {
	font-size: 0.75rem;
	color: var(--portal-gray);
}

.portal-card__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--portal-dark);
	margin: 0;
	line-height: 1.4;
}

.portal-card--small {
	width: 100%;
}

.portal-card--small .portal-card__image {
	height: 120px;
}

/* ===========================================
   SECTION 6: CONTENT TYPES
   =========================================== */
.portal-types__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.portal-type-card {
	background: white;
	border-radius: 16px;
	padding: 30px 24px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--portal-border);
	transition: all 0.2s ease;
}

.portal-type-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.08);
	border-color: var(--portal-primary);
}

.portal-type-card__icon {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 16px;
	background: var(--portal-light);
	border-radius: 12px;
}

.portal-type-card__icon--book { background: #dbeafe; }
.portal-type-card__icon--tool { background: #dcfce7; }
.portal-type-card__icon--scale { background: #fef3c7; }
.portal-type-card__icon--microscope { background: #f3e8ff; }

.portal-type-card__label {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--portal-dark);
	margin: 0 0 6px;
}

.portal-type-card__desc {
	font-size: 0.85rem;
	color: var(--portal-gray);
	margin: 0 0 12px;
}

.portal-type-card__count {
	font-size: 0.9rem;
	color: var(--portal-primary);
	font-weight: 600;
}

/* ===========================================
   SECTION 7: DIFFICULTY BROWSER
   =========================================== */
.portal-difficulty__tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 30px;
}

.portal-difficulty__tab {
	padding: 12px 24px;
	border: 2px solid var(--portal-border);
	background: white;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--portal-gray);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.portal-difficulty__tab:hover {
	border-color: var(--portal-primary);
	color: var(--portal-primary);
}

.portal-difficulty__tab--active {
	background: var(--portal-primary);
	border-color: var(--portal-primary);
	color: white;
}

.portal-difficulty__tab-count {
	font-size: 0.8rem;
	opacity: 0.8;
}

.portal-difficulty__panel {
	display: none;
}

.portal-difficulty__panel--active {
	display: block;
}

.portal-difficulty__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

/* ===========================================
   SECTION 8: STATS
   =========================================== */
.portal-stats {
	background: var(--portal-dark);
	color: white;
	padding: 60px 20px;
	text-align: center;
}

.portal-stats__grid {
	display: flex;
	justify-content: center;
	gap: 60px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.portal-stats__item {
	display: flex;
	flex-direction: column;
}

.portal-stats__value {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
}

.portal-stats__label {
	font-size: 0.9rem;
	opacity: 0.7;
	margin-top: 8px;
}

.portal-stats__tagline {
	font-size: 1rem;
	opacity: 0.6;
	margin: 0;
}

/* ===========================================
   SECTION 9: FOOTER CTA
   =========================================== */
.portal-cta {
	background: linear-gradient(135deg, var(--portal-primary) 0%, #2563eb 100%);
	color: white;
	padding: 60px 20px;
	text-align: center;
}

.portal-cta__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.portal-cta__desc {
	font-size: 1.1rem;
	opacity: 0.9;
	margin: 0 0 24px;
}

.portal-cta__btn {
	background: white;
	color: var(--portal-primary);
	border: none;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.portal-cta__btn:hover {
	transform: scale(1.05);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
	.guided-section__grid--expanded {
		grid-template-columns: repeat(2, 1fr);
	}

	.portal-tracks__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.portal-section__header--large .portal-section__title {
		font-size: 2rem;
	}

	.portal-hubs__showcase .portal-hub-card {
		width: 320px;
		min-height: 380px;
	}
}

@media (max-width: 768px) {
	/* Large headers */
	.portal-section__header--large .portal-section__title {
		font-size: 1.6rem;
	}

	.portal-section__subtitle--expanded {
		font-size: 1rem;
	}

	/* Header stats */
	.header-stats-bar {
		flex-wrap: wrap;
		gap: 16px 24px;
	}

	.header-stats-bar__value {
		font-size: 1.2rem;
	}

	.header-stats-bar__label {
		font-size: 0.75rem;
	}

	/* Header hub links */
	.header-hubs {
		gap: 8px;
	}

	.header-hub {
		padding: 8px 12px;
		font-size: 0.8rem;
		border-radius: 10px;
	}

	.header-hub__count {
		font-size: 0.7rem;
		padding: 2px 6px;
	}

	/* Inline stats (remove since in header now) */
	.inline-stats {
		padding: 30px 16px 40px;
	}

	.inline-stats__grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.inline-stats__value {
		font-size: 1.8rem;
	}

	.inline-stats__label {
		font-size: 0.8rem;
	}

	/* Quick start paths */
	.portal-quickstart {
		padding: 40px 16px 60px;
	}

	.qs-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.qs-card__header {
		padding: 20px;
	}

	.qs-card__number {
		font-size: 1.5rem;
	}

	.qs-card__title {
		font-size: 1.2rem;
	}

	.qs-card__body {
		padding: 20px;
	}

	.qs-article__image {
		width: 70px;
		height: 50px;
	}

	.qs-article__title {
		font-size: 0.85rem;
	}

	/* Guided sections */
	.guided-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.guided-section__grid,
	.guided-section__grid--expanded {
		grid-template-columns: 1fr;
	}

	.guided-card__image {
		height: 160px;
	}

	/* Topic browser */
	.portal-topics {
		margin: 0 -16px;
		padding: 40px 16px;
	}

	.topic-browser {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.topic-sidebar {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.topic-sidebar__list {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		max-height: none;
		gap: 8px;
		padding: 12px;
	}

	.topic-sidebar__item {
		flex-shrink: 0;
		padding: 10px 16px;
		border-radius: 20px;
		border-bottom: none;
		background: rgba(255, 255, 255, 0.05);
	}

	.topic-sidebar__item--active {
		border-left: none;
		background: rgba(59, 130, 246, 0.3);
	}

	.topic-content__articles {
		grid-template-columns: 1fr;
	}

	/* Hub showcase */
	.portal-hubs__showcase {
		padding: 10px 40px 30px;
	}

	.portal-hubs__showcase .portal-hub-card {
		width: 280px;
		min-height: 340px;
		padding: 24px;
	}

	.portal-hubs__showcase .portal-hub-card__title {
		font-size: 1.25rem;
	}

	.guided-section__title {
		font-size: 1.3rem;
	}

	/* Other sections */
	.portal-section {
		padding: 40px 0;
	}

	.portal-section__title {
		font-size: 1.5rem;
	}

	.portal-tracks__grid {
		grid-template-columns: 1fr;
	}

	.track-card__title {
		font-size: 1.1rem;
	}

	.portal-stats__grid {
		gap: 30px;
	}

	.portal-stats__value {
		font-size: 2rem;
	}

	.portal-difficulty__tabs {
		flex-direction: column;
		align-items: center;
	}

	.portal-difficulty__tab {
		width: 100%;
		max-width: 300px;
		justify-content: center;
	}
}

@media (min-width: 1024px) {
	.portal-slider__track > * {
		width: 300px;
	}

	.portal-card__image {
		height: 180px;
	}
}
