/* =========================================================================
 * Apollo E-Learning — front-end styles
 * Brand: Montserrat, #EF334B (red), #242B42 (navy)
 * ===================================================================== */

.apollo-course-single,
.apollo-courses-grid {
	--apollo-red: #EF334B;
	--apollo-navy: #242B42;
	--apollo-ink: #3a4152;
	--apollo-muted: #5b6474;
	--apollo-bg: #EDF1F3;
	--apollo-card: #FBFCFD;
	--apollo-border: #E3E8EC;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--apollo-ink);
	box-sizing: border-box;
}

.apollo-course-single *,
.apollo-course-single *::before,
.apollo-course-single *::after,
.apollo-courses-grid *,
.apollo-courses-grid *::before,
.apollo-courses-grid *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * HERO
 * ---------------------------------------------------------------------- */
.apollo-hero {
	position: relative;
	height: 777px;
	background-color: var(--apollo-navy);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	isolation: isolate;
}

.apollo-hero-overlay {
	position: absolute;
	inset: 0;
	/* Top 80% black -> bottom #6D1722 @ 10% */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(109, 23, 34, 0.1) 100%);
	z-index: 1;
}

.apollo-hero-inner {
	position: relative;
	z-index: 2;
	height: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.apollo-hero-accent {
	display: block;
	width: 90px;
	height: 4px;
	background: var(--apollo-red);
	margin-bottom: 22px;
}

.apollo-hero-title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 48px;
	font-weight: 600;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.apollo-hero-subtitle {
	margin: 0 0 30px;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
}

.apollo-hero-graphic {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	z-index: 2;
	line-height: 0;
	pointer-events: none;
}

.apollo-hero-graphic svg {
	display: block;
	width: 100%;
	height: auto;
}

/* -------------------------------------------------------------------------
 * BUTTONS
 * ---------------------------------------------------------------------- */
.apollo-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 0;
	border-bottom: 3px solid var(--apollo-red);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.apollo-btn:hover {
	transform: translateY(-1px);
}

.apollo-btn-back {
	background: rgba(255, 255, 255, 0.92);
	color: var(--apollo-navy);
}
.apollo-btn-back:hover {
	background: #fff;
}

.apollo-btn-primary,
.apollo-btn-secondary {
	background: #fff;
	color: var(--apollo-navy);
	border: 1px solid var(--apollo-border);
	border-bottom: 3px solid var(--apollo-red);
}
.apollo-btn-primary:hover,
.apollo-btn-secondary:hover {
	background: var(--apollo-red);
	color: #fff;
	border-color: var(--apollo-red);
}

/* -------------------------------------------------------------------------
 * BODY LAYOUT
 * ---------------------------------------------------------------------- */
.apollo-course-body {
	background: var(--apollo-bg);
	padding: 60px 0 80px;
}

.apollo-course-container {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: 30px;
	align-items: start;
}

.apollo-card {
	background: var(--apollo-card);
	border: 1px solid var(--apollo-border);
	padding: 34px 38px;
	margin-bottom: 30px;
}

.apollo-card:last-child {
	margin-bottom: 0;
}

/* Description card top row: category label + badges */
.apollo-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.apollo-category-label {
	color: var(--apollo-red);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding-top: 6px;
}

.apollo-badges {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.apollo-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--apollo-red);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 8px 12px;
}

.apollo-badge-time svg {
	width: 12px;
	height: 12px;
	display: inline-block;
	vertical-align: middle;
}

.apollo-section-title {
	margin: 8px 0 22px;
	color: var(--apollo-navy);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.apollo-description-body {
	color: var(--apollo-muted);
	font-size: 1rem;
	line-height: 1.7;
}
.apollo-description-body p {
	margin: 0 0 18px;
}
.apollo-description-body p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * MODULES TABLE
 * ---------------------------------------------------------------------- */
.apollo-modules {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.apollo-modules thead th {
	text-align: left;
	color: var(--apollo-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 0 12px 12px;
	border-bottom: 2px solid var(--apollo-red);
}

.apollo-modules thead th:last-child,
.apollo-modules tbody td:last-child {
	text-align: left;
	width: 100px;
}

.apollo-modules thead th:first-child,
.apollo-modules tbody td:first-child {
	width: 90px;
}

.apollo-modules tbody td {
	padding: 15px 12px;
	color: var(--apollo-ink);
	border-bottom: 1px solid var(--apollo-border);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
}

.apollo-modules tbody tr:last-child td {
	border-bottom: 0;
}

/* -------------------------------------------------------------------------
 * CTA ROW
 * ---------------------------------------------------------------------- */
.apollo-cta-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* -------------------------------------------------------------------------
 * RIGHT COLUMN PANELS
 * ---------------------------------------------------------------------- */
.apollo-panel {
	background: var(--apollo-card);
	border: 1px solid var(--apollo-border);
	padding: 28px 30px;
	margin-bottom: 30px;
}
.apollo-panel:last-child {
	margin-bottom: 0;
}

.apollo-panel-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: var(--apollo-navy);
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.apollo-panel-icon {
	display: inline-flex;
	line-height: 0;
}
.apollo-panel-icon svg {
	width: 28px;
	height: 28px;
}

.apollo-panel-body {
	color: var(--apollo-muted);
	font-size: 0.98rem;
	line-height: 1.65;
}
.apollo-panel-body p {
	margin: 0 0 14px;
}
.apollo-panel-body p:last-child {
	margin-bottom: 0;
}
.apollo-panel-body ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}
.apollo-panel-body li {
	margin-bottom: 6px;
}
.apollo-panel-body strong {
	color: var(--apollo-navy);
}

/* -------------------------------------------------------------------------
 * COURSES GRID (shortcode)
 * ---------------------------------------------------------------------- */
.apollo-courses-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	width: 100%;
	margin: 0 auto;
	padding: 20px 0;
}
.apollo-cols-1 .apollo-course-card { width: 100%; }
.apollo-cols-2 .apollo-course-card { width: calc((100% - 20px) / 2); }
.apollo-cols-3 .apollo-course-card { width: calc((100% - 40px) / 3); }
.apollo-cols-4 .apollo-course-card { width: calc((100% - 60px) / 4); }

.apollo-course-card {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 20px;
}

.apollo-card-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--apollo-red);
	margin-bottom: 20px;
}

.apollo-card-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}
.apollo-card-icon img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.apollo-card-title {
	margin: 0;
	color: var(--apollo-navy);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.apollo-card-desc {
	margin: 0 0 24px;
	color: var(--apollo-muted);
	font-size: 1rem;
	line-height: 1.6;
	flex: 1 1 auto;
}

.apollo-card-foot {
	display: flex;
	justify-content: flex-end;
}

.apollo-btn-learn {
	background: #E9EEF1;
	color: var(--apollo-navy);
	border-bottom: 3px solid var(--apollo-red);
}
.apollo-btn-learn:hover {
	background: var(--apollo-red);
	color: #fff;
}

.apollo-courses-empty {
	text-align: center;
	color: var(--apollo-muted);
	padding: 40px 0;
}

/* -------------------------------------------------------------------------
 * RESPONSIVE
 * ---------------------------------------------------------------------- */
@media (max-width: 980px) {
	.apollo-course-container {
		grid-template-columns: 1fr;
	}
	.apollo-cols-3 .apollo-course-card,
	.apollo-cols-4 .apollo-course-card {
		width: calc((100% - 20px) / 2);
	}
	.apollo-hero {
		height: auto;
	}
	.apollo-hero-inner {
		padding: 90px 24px 120px;
	}
	.apollo-hero-title {
		font-size: 34px;
	}
}

@media (max-width: 640px) {
	.apollo-cols-2 .apollo-course-card,
	.apollo-cols-3 .apollo-course-card,
	.apollo-cols-4 .apollo-course-card {
		width: 100%;
	}
	.apollo-card {
		padding: 26px 22px;
	}
	.apollo-cta-row .apollo-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}
