/*
 * Pitch Pro Courses – front end.
 * Change the colours to match your brand by overriding these variables, e.g. in
 * Avada > Options > Custom CSS:   .ppc { --ppc-accent: #e63946; }
 */
.ppc {
	--ppc-accent: #1d4ed8;
	--ppc-accent-ink: #ffffff;
	--ppc-ink: #111827;
	--ppc-muted: #6b7280;
	--ppc-line: #e5e7eb;
	--ppc-soft: #f6f7f9;
	--ppc-done: #16a34a;
	--ppc-radius: 10px;
	color: var(--ppc-ink);
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 0 64px;
	box-sizing: border-box;
}
.ppc *, .ppc *::before, .ppc *::after { box-sizing: border-box; }
.ppc a { color: var(--ppc-accent); }
.ppc .ppc-muted { color: var(--ppc-muted); }
.ppc .ppc-small { font-size: 0.9em; }

.ppc .ppc-title { margin: 0 0 12px; line-height: 1.2; }
.ppc .ppc-h2 { margin: 40px 0 16px; }
.ppc .ppc-h3 { font-size: 1.1em; margin: 0 0 12px; }
.ppc .ppc-eyebrow { margin: 16px 0 4px; font-size: 0.8em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ppc-muted); }
.ppc .ppc-back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-size: 0.95em; color: var(--ppc-muted); }
.ppc .ppc-back:hover { color: var(--ppc-accent); }
.ppc .ppc-lead { font-size: 1.1em; color: var(--ppc-muted); margin: 0 0 20px; }

/* Buttons */
.ppc .ppc-button,
.ppc .login-submit .button,
.ppc #wp-submit {
	display: inline-block;
	background: var(--ppc-accent);
	color: var(--ppc-accent-ink);
	border: 0;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}
.ppc .ppc-button:hover, .ppc #wp-submit:hover { filter: brightness(1.1); color: var(--ppc-accent-ink); }
.ppc .ppc-button.is-done { background: var(--ppc-done); }
.ppc .ppc-link-btn { text-decoration: none; font-weight: 600; }

/* Progress */
.ppc-progress { margin: 0 0 20px; }
.ppc-progress-track { height: 8px; background: var(--ppc-line); border-radius: 999px; overflow: hidden; }
.ppc-progress-track span { display: block; height: 100%; background: var(--ppc-done); border-radius: 999px; }
.ppc-progress-label { font-size: 0.85em; color: var(--ppc-muted); margin-top: 6px; }

/* Course page */
.ppc-hero { display: grid; gap: 32px; align-items: center; background: var(--ppc-soft); border-radius: var(--ppc-radius); padding: 32px; }
.ppc-hero.has-image { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ppc-hero-img img { width: 100%; height: auto; display: block; border-radius: var(--ppc-radius); }
.ppc-overview { margin-top: 32px; max-width: 780px; }

/* Curriculum */
.ppc-curriculum { display: flex; flex-direction: column; gap: 16px; }
.ppc-section { border: 1px solid var(--ppc-line); border-radius: var(--ppc-radius); overflow: hidden; background: #fff; }
.ppc .ppc-section-title { margin: 0; padding: 12px 16px; font-size: 1em; background: var(--ppc-soft); border-bottom: 1px solid var(--ppc-line); }
.ppc .ppc-lessons { list-style: none; margin: 0; padding: 0; }
.ppc .ppc-lesson-item { margin: 0; border-top: 1px solid var(--ppc-line); }
.ppc .ppc-lesson-item:first-child { border-top: 0; }
.ppc .ppc-lesson-item a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ppc-ink); text-decoration: none; }
.ppc .ppc-lesson-item a:hover { background: var(--ppc-soft); }
.ppc .ppc-lesson-item.is-current a { background: color-mix(in srgb, var(--ppc-accent) 8%, #fff); font-weight: 600; box-shadow: inset 3px 0 0 var(--ppc-accent); }
.ppc-lesson-name { flex: 1; }
.ppc-duration { font-size: 0.85em; color: var(--ppc-muted); font-variant-numeric: tabular-nums; }
.ppc-check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ppc-line); position: relative; }
.ppc-lesson-item.is-video .ppc-check::after { content: ""; position: absolute; left: 6px; top: 4px; border-left: 6px solid var(--ppc-muted); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.ppc-lesson-item.is-done .ppc-check { background: var(--ppc-done); border-color: var(--ppc-done); }
.ppc-lesson-item.is-done .ppc-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); border-left: 0; border-top: 0; }

/* Lesson page */
.ppc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ppc-sidebar-inner { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding-right: 4px; }
.ppc .ppc-sidebar-title { font-weight: 700; margin: 0 0 8px; }
.ppc-sidebar .ppc-curriculum { gap: 12px; }
.ppc-sidebar .ppc-lesson-item a { padding: 10px 12px; font-size: 0.95em; }

.ppc-video { margin: 8px 0 28px; border-radius: var(--ppc-radius); overflow: hidden; background: #000; }
.ppc-video > iframe, .ppc-video > video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.ppc-content { line-height: 1.7; }
.ppc-content img { max-width: 100%; height: auto; }
.ppc-content .ppc-todo { background: #fff3c4; border: 1px dashed #d4a800; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
/* Videos pasted into the lesson text (a Vimeo/YouTube link on its own line). */
.ppc-content iframe[src*="vimeo"], .ppc-content iframe[src*="youtube"], .ppc-content iframe[src*="mediadelivery"], .ppc-content iframe[src*="wistia"], .ppc-content video {
	display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--ppc-radius); margin: 24px 0; background: #000;
}
.ppc-content .wp-block-embed__wrapper, .ppc-content .fluid-width-video-wrapper { padding: 0 !important; height: auto !important; }
.ppc-content .fluid-width-video-wrapper iframe { position: static !important; }

.ppc-downloads { margin: 32px 0 0; }
.ppc-downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ppc-downloads li { margin: 0; }
.ppc-downloads a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--ppc-line); border-radius: var(--ppc-radius); color: var(--ppc-ink); text-decoration: none; }
.ppc-downloads a:hover { border-color: var(--ppc-accent); }
.ppc-file-badge { font-size: 0.7em; font-weight: 700; letter-spacing: .04em; background: #fee2e2; color: #b91c1c; padding: 4px 6px; border-radius: 4px; min-width: 40px; text-align: center; }
.ppc-file-name { flex: 1; font-weight: 600; }
.ppc-file-size { font-size: 0.85em; color: var(--ppc-muted); }

.ppc-lesson-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ppc-line); }
.ppc-nav-next { text-align: right; }
.ppc-complete-form { margin: 0; }

/* Dashboard */
.ppc-dash-head { margin-bottom: 20px; }
.ppc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ppc-card { border: 1px solid var(--ppc-line); border-radius: var(--ppc-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ppc-card-img { display: block; aspect-ratio: 16 / 9; background: var(--ppc-soft); overflow: hidden; }
.ppc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppc-card-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: var(--ppc-accent); }
.ppc-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ppc .ppc-card-title { margin: 0 0 16px; font-size: 1.15em; }
.ppc .ppc-card-title a { color: var(--ppc-ink); text-decoration: none; }
.ppc-card .ppc-button { margin-top: auto; align-self: flex-start; }

/* Login / no access */
.ppc-gate { max-width: 460px; margin: 40px auto; padding: 32px; border: 1px solid var(--ppc-line); border-radius: var(--ppc-radius); background: #fff; }
.ppc-gate form p { margin: 0 0 14px; }
.ppc-gate label { display: block; font-weight: 600; margin-bottom: 4px; }
.ppc-gate .login-remember label { font-weight: 400; }
.ppc-gate input[type="text"], .ppc-gate input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--ppc-line); border-radius: 8px; }

@media (max-width: 900px) {
	.ppc { padding: 16px 0 48px; }
	.ppc-hero, .ppc-hero.has-image { grid-template-columns: 1fr; padding: 20px; }
	.ppc-layout { grid-template-columns: 1fr; gap: 32px; }
	.ppc-sidebar-inner { position: static; max-height: none; }
	.ppc-lesson-nav { grid-template-columns: 1fr 1fr; }
	.ppc-complete-form { grid-column: 1 / -1; grid-row: 1; text-align: center; }
	.ppc-complete-form .ppc-button { width: 100%; }
}
.ppc-content .wp-audio-shortcode, .ppc-content audio { width: 100%; margin: 12px 0; }
