/* ==========================================================================
   LMS Content Page Components — Base Stylesheet
   ========================================================================== */

/* ---------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   --------------------------------------------------------------------------- */
:root {
	--lms-primary: #1a56db;
	--lms-primary-light: #e8eefb;
	--lms-secondary: #374151;
	--lms-accent: #0891b2;
	--lms-accent-light: #e0f7fa;
	--lms-bg: #ffffff;
	--lms-bg-muted: #f8f9fb;
	--lms-text: #1f2937;
	--lms-text-muted: #6b7280;
	--lms-border: #e5e7eb;
	--lms-radius: 10px;
	--lms-radius-sm: 6px;
	--lms-radius-lg: 16px;
	--lms-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--lms-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--lms-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10);
	--lms-font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
	--lms-font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
	--lms-spacing-xs: 0.5rem;
	--lms-spacing-sm: 1rem;
	--lms-spacing-md: 1.5rem;
	--lms-spacing-lg: 2.5rem;
	--lms-spacing-xl: 3.5rem;
}

/* ---------------------------------------------------------------------------
   Page Wrapper & Typography Baseline
   --------------------------------------------------------------------------- */
.lms-page {
	font-family: var(--lms-font-base);
	color: var(--lms-text);
	background: var(--lms-bg);
	line-height: 1.7;
	font-size: 1rem;
	max-width: 960px;
	margin: 0 auto;
	padding: var(--lms-spacing-lg);
}

.lms-page h2 {
	font-family: var(--lms-font-heading);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--lms-secondary);
	margin: 0 0 var(--lms-spacing-sm) 0;
	line-height: 1.3;
}

.lms-page h3 {
	font-family: var(--lms-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--lms-secondary);
	margin: 0 0 var(--lms-spacing-xs) 0;
	line-height: 1.35;
}

.lms-page h4 {
	font-family: var(--lms-font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--lms-secondary);
	margin: 0 0 var(--lms-spacing-xs) 0;
	line-height: 1.4;
}

.lms-page p {
	margin: 0 0 var(--lms-spacing-sm) 0;
}

.lms-page ul,
.lms-page ol {
	margin: 0 0 var(--lms-spacing-sm) 0;
	padding-left: 1.5em;
}

.lms-page li {
	margin-bottom: 0.35em;
}

.lms-page img {
	max-width: 100%;
	height: auto;
	border-radius: var(--lms-radius-sm);
}

.lms-page table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--lms-spacing-md) 0;
	font-size: 0.95rem;
}

.lms-page th,
.lms-page td {
	padding: 0.65rem 0.85rem;
	text-align: left;
	border-bottom: 1px solid var(--lms-border);
}

.lms-page th {
	font-weight: 600;
	background: var(--lms-bg-muted);
	color: var(--lms-secondary);
}

.lms-page strong {
	font-weight: 600;
	color: var(--lms-secondary);
}

/* ---------------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------------- */
.lms-hero {
	position: relative;
	background: linear-gradient(135deg, var(--lms-primary), var(--lms-accent));
	border-radius: var(--lms-radius-lg);
	overflow: hidden;
	margin-bottom: var(--lms-spacing-lg);
	box-shadow: var(--lms-shadow-md);
}

.lms-hero__overlay {
	padding: var(--lms-spacing-xl) var(--lms-spacing-lg);
	text-align: center;
}

.lms-hero__title {
	font-family: var(--lms-font-heading);
	font-size: 2rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 var(--lms-spacing-xs) 0;
	line-height: 1.2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.lms-hero__subtitle {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	font-weight: 400;
}

/* ---------------------------------------------------------------------------
   Two-Column Layout
   --------------------------------------------------------------------------- */
.lms-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--lms-spacing-lg);
	align-items: center;
	margin-bottom: var(--lms-spacing-lg);
	padding: var(--lms-spacing-md);
	background: var(--lms-bg-muted);
	border-radius: var(--lms-radius);
	box-shadow: var(--lms-shadow);
}

.lms-two-col__text {
	min-width: 0;
}

.lms-two-col__text h3 {
	margin-top: 0;
}

.lms-two-col__text p:last-child {
	margin-bottom: 0;
}

.lms-two-col__media {
	min-width: 0;
	overflow: hidden;
}

.lms-two-col__media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--lms-radius);
	box-shadow: var(--lms-shadow);
}

@media (max-width: 700px) {
	.lms-two-col {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------------------
   Callout Box
   --------------------------------------------------------------------------- */
.lms-callout {
	border-left: 4px solid var(--lms-primary);
	background: var(--lms-primary-light);
	border-radius: 0 var(--lms-radius) var(--lms-radius) 0;
	padding: var(--lms-spacing-md) var(--lms-spacing-md) var(--lms-spacing-md) var(--lms-spacing-md);
	margin-bottom: var(--lms-spacing-lg);
	box-shadow: var(--lms-shadow);
}

.lms-callout__label {
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--lms-primary);
	margin: 0 0 var(--lms-spacing-xs) 0;
}

.lms-callout__body {
	margin: 0;
	color: var(--lms-text);
	line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   Icon Grid
   --------------------------------------------------------------------------- */
.lms-icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--lms-spacing-md);
	margin-bottom: var(--lms-spacing-lg);
}

.lms-icon-grid__item {
	text-align: center;
	padding: var(--lms-spacing-md);
	background: var(--lms-bg);
	border: 1px solid var(--lms-border);
	border-radius: var(--lms-radius);
	box-shadow: var(--lms-shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lms-icon-grid__item:hover {
	box-shadow: var(--lms-shadow-md);
	transform: translateY(-2px);
}

.lms-icon-grid__icon {
	font-size: 2.25rem;
	margin-bottom: var(--lms-spacing-xs);
	line-height: 1;
}

.lms-icon-grid__label {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.25rem 0;
	color: var(--lms-secondary);
}

.lms-icon-grid__desc {
	font-size: 0.9rem;
	color: var(--lms-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Statistic Highlight
   --------------------------------------------------------------------------- */
.lms-stat {
	text-align: center;
	padding: var(--lms-spacing-lg) var(--lms-spacing-md);
	margin-bottom: var(--lms-spacing-lg);
	background: linear-gradient(135deg, var(--lms-primary-light), var(--lms-accent-light));
	border-radius: var(--lms-radius-lg);
	box-shadow: var(--lms-shadow);
}

.lms-stat__number {
	display: block;
	font-family: var(--lms-font-heading);
	font-size: 3.25rem;
	font-weight: 800;
	color: var(--lms-primary);
	line-height: 1.1;
	margin-bottom: var(--lms-spacing-xs);
}

.lms-stat__caption {
	font-size: 1.05rem;
	color: var(--lms-text-muted);
	margin: 0;
}

/* ---------------------------------------------------------------------------
   Timeline Section
   --------------------------------------------------------------------------- */
.lms-timeline {
	margin-bottom: var(--lms-spacing-lg);
}

.lms-timeline__list {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}

.lms-timeline__list::before {
	content: '';
	position: absolute;
	left: 18px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--lms-border);
	border-radius: 2px;
}

.lms-timeline__item {
	display: flex;
	align-items: flex-start;
	gap: var(--lms-spacing-md);
	position: relative;
	padding-bottom: var(--lms-spacing-md);
	margin-bottom: 0;
}

.lms-timeline__item:last-child {
	padding-bottom: 0;
}

.lms-timeline__marker {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lms-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--lms-bg), var(--lms-shadow);
	z-index: 1;
}

.lms-timeline__content {
	flex: 1;
	background: var(--lms-bg-muted);
	padding: var(--lms-spacing-sm) var(--lms-spacing-md);
	border-radius: var(--lms-radius);
	box-shadow: var(--lms-shadow);
}

.lms-timeline__content h4 {
	margin-top: 0;
}

.lms-timeline__content p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Checklist Block
   --------------------------------------------------------------------------- */
.lms-checklist {
	background: var(--lms-bg-muted);
	border-radius: var(--lms-radius);
	padding: var(--lms-spacing-md);
	margin-bottom: var(--lms-spacing-lg);
	box-shadow: var(--lms-shadow);
}

.lms-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: var(--lms-spacing-sm);
	padding: var(--lms-spacing-xs) 0;
	border-bottom: 1px solid var(--lms-border);
}

.lms-checklist__item:last-child {
	border-bottom: none;
}

.lms-checklist__icon {
	flex-shrink: 0;
	font-size: 1.3rem;
	line-height: 1.5;
	color: var(--lms-primary);
}

.lms-checklist__text {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lms-text);
}

/* ---------------------------------------------------------------------------
   Quote Block
   --------------------------------------------------------------------------- */
.lms-quote {
	position: relative;
	background: var(--lms-bg-muted);
	border-left: 4px solid var(--lms-accent);
	border-radius: 0 var(--lms-radius) var(--lms-radius) 0;
	padding: var(--lms-spacing-md) var(--lms-spacing-md) var(--lms-spacing-md) var(--lms-spacing-lg);
	margin: 0 0 var(--lms-spacing-lg) 0;
	box-shadow: var(--lms-shadow);
}

.lms-quote::before {
	content: '\201C';
	position: absolute;
	top: 0.15em;
	left: 0.25em;
	font-size: 3rem;
	line-height: 1;
	color: var(--lms-accent);
	opacity: 0.3;
	font-family: Georgia, serif;
}

.lms-quote__text {
	font-size: 1.1rem;
	font-style: italic;
	color: var(--lms-text);
	margin: 0 0 var(--lms-spacing-xs) 0;
	line-height: 1.65;
}

.lms-quote__attribution {
	font-size: 0.9rem;
	color: var(--lms-text-muted);
}

.lms-quote__attribution cite {
	font-style: normal;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Utility: Vertical Section Spacing
   --------------------------------------------------------------------------- */
.lms-page > * + * {
	margin-top: var(--lms-spacing-md);
}