/**
 * Course Structure — B.Ed programme tables and sections.
 *
 * @package DBCTE_Tura
 */

.course-page {
	padding-top: 0;
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
	background:
		radial-gradient(ellipse 70% 45% at 50% -15%, rgba(30, 58, 138, 0.07) 0%, transparent 55%),
		linear-gradient(180deg, #f1f5f9 0%, #f8fafc 35%, #ffffff 100%);
}

.course-page.section {
	padding-top: 0;
}

.course-page__hero {
	margin: 0 calc(50% - 50vw) 0;
	width: 100vw;
	padding: clamp(1.85rem, 4vw, 2.75rem) 1.25rem;
	background:
		radial-gradient(ellipse 65% 70% at 85% 15%, color-mix(in srgb, var(--dbcte-hub-sky) 18%, transparent) 0%, transparent 50%),
		linear-gradient(155deg, var(--dbcte-primary) 0%, color-mix(in srgb, var(--dbcte-primary) 85%, #0c1929 15%) 100%);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
}

.course-page__hero-inner {
	max-width: min(100%, 56rem);
	margin: 0 auto;
	text-align: center;
}

.course-page__title {
	margin: 0;
	font-size: clamp(1.55rem, 3.6vw, 2.05rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.course-page__shell {
	max-width: min(100%, 58rem);
	margin: 0 auto;
	padding: clamp(1.75rem, 4vw, 2.5rem) 1rem 0;
}

.course-page__shell > *:first-child {
	margin-top: 0;
}

.course-section__title {
	margin: 2rem 0 1rem;
	font-size: clamp(1.05rem, 2.2vw, 1.2rem);
	font-weight: 700;
	color: var(--dbcte-primary);
	letter-spacing: 0.02em;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid color-mix(in srgb, var(--dbcte-hub-sky) 45%, transparent);
}

.course-section__title:first-child,
.course-section__title--intro {
	margin-top: 0;
}

.course-section__title--intro {
	font-size: clamp(1.15rem, 2.5vw, 1.35rem);
	border-bottom: 3px solid color-mix(in srgb, var(--dbcte-hub-sky) 55%, var(--dbcte-primary) 45%);
	padding-bottom: 0.5rem;
}

.course-subtitle {
	margin: 1.25rem 0 0.65rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--dbcte-text);
}

.course-page__shell > p:not([class]) {
	margin: 0 0 1rem;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--dbcte-text);
	max-width: 52rem;
}

.course-prose {
	margin: 0 0 1rem;
	font-size: 0.96rem;
	line-height: 1.75;
	color: var(--dbcte-text);
	max-width: 52rem;
}

.course-prose:last-child {
	margin-bottom: 0;
}

.course-footnote {
	margin: 1rem 0 1.25rem;
	padding: 0.75rem 1rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--dbcte-muted);
	background: #f8fafc;
	border-left: 3px solid var(--dbcte-hub-sky);
	border-radius: 0 8px 8px 0;
}

.course-note {
	margin: 0.85rem 0 1.25rem;
	padding: 0.65rem 0.85rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #334155;
	background: linear-gradient(90deg, rgba(0, 168, 225, 0.08) 0%, rgba(248, 250, 252, 0.95) 100%);
	border: 1px solid rgba(0, 168, 225, 0.2);
	border-radius: 8px;
}

.course-note u {
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* Tables */
.course-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.5rem;
	border-radius: var(--dbcte-radius);
	border: 1px solid rgba(30, 58, 138, 0.12);
	background: #fff;
	box-shadow: 0 4px 24px rgba(30, 58, 138, 0.07);
}

.course-table-wrap--wide {
	max-width: 100%;
}

.course-table-wrap--wide .course-table {
	min-width: 56rem;
}

.course-table-wrap--spaced {
	margin-top: 1rem;
}

.course-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.82rem;
	line-height: 1.45;
}

.course-table th,
.course-table td {
	padding: 0.55rem 0.65rem;
	text-align: left;
	vertical-align: top;
	border: 1px solid #e2e8f0;
}

.course-table thead th,
.course-table tbody th,
.course-table tr:first-child th {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5b21b6;
	background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

.course-table tbody tr:nth-child(even) td {
	background: rgba(248, 250, 252, 0.85);
}

.course-table tbody tr:hover td {
	background: rgba(0, 168, 225, 0.05);
}

/* Wide evaluation table: smaller cells on desktop */
.course-table-wrap--wide .course-table th,
.course-table-wrap--wide .course-table td {
	padding: 0.45rem 0.4rem;
	font-size: 0.75rem;
}

.course-table--compact th,
.course-table--compact td {
	padding: 0.65rem 0.5rem;
	font-size: 0.8rem;
	text-align: center;
}

.course-table .course-list {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
}

.course-list--methods li {
	margin-bottom: 0.25rem;
}

.course-list--numbered {
	margin: 0.5rem 0 1rem;
	padding-left: 1.35rem;
}

.course-list--numbered li {
	margin-bottom: 0.4rem;
	line-height: 1.55;
}

@media (max-width: 640px) {
	.course-section__title {
		margin-top: 1.5rem;
	}

	.course-table {
		font-size: 0.78rem;
	}

	.course-table th,
	.course-table td {
		padding: 0.45rem 0.4rem;
	}
}
