/* ============================================================================
   SCMEP ONLINE — HOMEPAGE REDESIGN
   Scoped entirely under #sc-homepage so nothing here can leak onto the seven
   other pages of the site, which keep using the shared design system as-is.
   Component styles reuse existing --sc-* tokens; only container width,
   section rhythm and heading scale are widened for this page specifically,
   per the brief's 1400px container / 120px section spacing / 52px-40px type.
   ============================================================================ */

#sc-homepage .sc-container { max-width: 1400px; }
#sc-homepage .sc-section { padding-block: 7.5rem; }
#sc-homepage .sc-section__title { font-size: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------------------------------------------------------------------------
   HERO LAYOUT — content + floating stat card
   --------------------------------------------------------------------------- */
.sc-hero-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sc-6);
	flex-wrap: wrap;
}

.sc-hero-layout .scmep-hero__content { flex: 1 1 30rem; }

.sc-hero-card {
	flex: 0 1 22rem;
	background: rgb(16 42 67 / 55%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 20px;
	padding: var(--sc-4);
	box-shadow: var(--sc-shadow-lg);
}

.sc-hero-card__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sc-3);
}

.sc-hero-card__stat { display: flex; flex-direction: column; gap: 4px; }
.sc-hero-card__stat svg { width: 22px; height: 22px; color: var(--sc-accent); margin-bottom: 2px; }
.sc-hero-card__num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: #fff; }
.sc-hero-card__label { font-size: var(--sc-fs-xs); color: var(--sc-on-dark-muted); line-height: 1.3; }

/* ---------------------------------------------------------------------------
   FEATURED COURSE CARDS — extends the existing .sc-card / .sc-card__media
   --------------------------------------------------------------------------- */
.sc-course-card { padding: 0; overflow: hidden; }
.sc-course-card .sc-card__media { aspect-ratio: 16 / 9; background: var(--sc-bg); overflow: hidden; margin: 0; }
.sc-course-card .sc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-course-card__body { padding: var(--sc-3); display: flex; flex-direction: column; gap: var(--sc-1); }

.sc-course-card__badge {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgb(15 108 189 / 10%);
	color: var(--sc-secondary);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.sc-course-card__meta {
	display: flex;
	gap: var(--sc-2);
	font-size: var(--sc-fs-xs);
	color: var(--sc-muted);
	margin: 2px 0 var(--sc-1);
}

.sc-course-card .sc-btn { align-self: flex-start; margin-top: var(--sc-1); }

/* ---------------------------------------------------------------------------
   REAL-FACTS STATS BAND
   --------------------------------------------------------------------------- */
.sc-band { background: var(--sc-primary); color: #fff; padding-block: var(--sc-6); }
.sc-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sc-4); }
.sc-band__stats { display: flex; flex-wrap: wrap; gap: var(--sc-6); }
.sc-band__stat { display: flex; align-items: center; gap: var(--sc-2); }
.sc-band__stat svg { width: 30px; height: 30px; color: var(--sc-accent); flex: 0 0 30px; }
.sc-band__num { margin: 0; font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.sc-band__label { margin: 0; color: var(--sc-on-dark-muted); font-size: var(--sc-fs-xs); }
.sc-band__actions { display: flex; flex-wrap: wrap; gap: var(--sc-2); }

/* ---------------------------------------------------------------------------
   LATEST NEWS
   auto-fit collapses tracks with no card in them, so 2 posts don't leave a
   blank gap the width of 2 missing columns the way a fixed repeat(4,1fr)
   would. max-width on the card stops that same fix from stretching a lone
   card to fill the whole row.
   --------------------------------------------------------------------------- */
.sc-grid--news { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sc-news {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 360px;
	background: var(--sc-surface);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	overflow: hidden;
	box-shadow: var(--sc-shadow-sm);
	transition: transform var(--sc-dur) var(--sc-ease), box-shadow var(--sc-dur) var(--sc-ease);
}
.sc-news:hover { transform: translateY(-5px); box-shadow: var(--sc-shadow-lg); }
.sc-news__media { display: block; aspect-ratio: 16 / 9; }
.sc-news__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-news__body { padding: var(--sc-2); display: flex; flex-direction: column; gap: 6px; }
.sc-news__date { margin: 0; color: var(--sc-muted); font-size: 0.75rem; }
.sc-news__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.sc-news__title a { color: inherit; text-decoration: none; }
.sc-news__title a:hover { color: var(--sc-secondary); }
