/* ==========================================================================
   Page-specific styles for advanced-aerial-yoga-teacher-training.php
   (page-templates/programs/advanced-aerial-yoga-teacher-training.php). Loaded only on this one page.
   Shared building blocks (tables, cards, price boxes, includes grid,
   etc.) live in assets/css/pages/program-category.css, enqueued
   automatically alongside this file — add rules here only for things
   unique to this page.
   ========================================================================== */

/* This page's own hero background image — set as a CSS custom
   property inline (the URL is PHP-generated), applied here so the
   actual styling rule lives in this page's own file rather than as a
   bare inline style. */
.hero--page { background-image: var(--hero-bg); }

/* Duplicated from assets/css/pages/program-category.css so this page's
   file is fully self-contained. Edit both if this pattern ever needs to
   change. */
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.stat-pill {
	display: flex; flex-direction: column; gap: 2px;
	background: var(--color-bg-alt); border: 1px solid var(--color-border);
	border-radius: var(--radius-sm); padding: 12px 20px;
}
.stat-pill strong { font-family: var(--font-heading); color: var(--color-primary-dark); font-size: 1.05rem; }
.stat-pill span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-light); }

.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.98rem; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-primary); margin-top: 3px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.two-col > * { min-width: 0; }
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse .two-col-media { order: 2; }
.two-col-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.two-col-media { position: relative; }
.floating-badge {
	position: absolute; bottom: -24px; right: -18px;
	background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
	padding: 16px 22px; text-align: center; border: 1px solid var(--color-border);
}
.floating-badge strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-secondary-dark); }
.floating-badge span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-light); }

.schedule-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.schedule-table tr:not(:last-child) td { border-bottom: 1px solid var(--color-border); }
.schedule-table td { padding: 16px 22px; vertical-align: top; }
.schedule-table td:first-child { font-weight: 600; color: var(--color-primary-dark); width: 160px; white-space: nowrap; }
.schedule-table tr:nth-child(odd) { background: var(--color-bg-alt); }
.schedule-table { white-space: normal; }
.schedule-note { font-size: 0.85rem; color: var(--color-text-light); margin-top: 12px; }

.includes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.includes-grid li { display: flex; align-items: center; gap: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.93rem; }
.includes-grid svg { width: 20px; height: 20px; color: var(--color-secondary); flex-shrink: 0; }

.price-box {
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
	padding: 32px; box-shadow: var(--shadow-md); text-align: center;
}
.price-box .price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-primary-dark); margin: 6px 0 18px; }
.price-box .price small { font-size: 0.9rem; color: var(--color-text-light); font-weight: 400; display: block; margin-top: 4px; }
.price-box-note { font-size: 0.82rem; color: var(--color-text-light); margin-top: 14px; margin-bottom: 0; }

.grid--top { align-items: start; }

/* ==========================================================================
   Curriculum & Daily Schedule — redesigned.
   Scoped with :has() to the two-column section that holds the schedule, so
   this page's other two-column sections (e.g. "Why Choose Us") keep their
   own look. Browsers without :has() simply keep the previous styling.
   Hover effects: curriculum cards slide + accent bar + spinning check;
   schedule rows tint + time pill turns saffron + timeline dot glows;
   the whole schedule card lifts.
   ========================================================================== */
.two-col:has(.schedule-table) {
	align-items: start;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
}

/* ---- Curriculum: numbered cards ---- */
.two-col:has(.schedule-table) .check-list {
	counter-reset: sty-curr;
	display: grid;
	gap: 12px;
	margin-top: 22px;
}
.two-col:has(.schedule-table) .check-list li {
	counter-increment: sty-curr;
	position: relative;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px 18px 14px 16px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	cursor: default;
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.two-col:has(.schedule-table) .check-list li::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--color-secondary), var(--color-gold));
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 300ms ease;
}
.two-col:has(.schedule-table) .check-list li::after {
	content: counter(sty-curr, decimal-leading-zero);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--color-border);
	transition: color var(--transition);
}
.two-col:has(.schedule-table) .check-list li svg {
	width: 34px;
	height: 34px;
	padding: 8px;
	margin: 0;
	border-radius: 50%;
	background: rgba(47, 93, 80, 0.1);
	color: var(--color-primary);
	transition: background var(--transition), color var(--transition), transform 450ms ease;
}
.two-col:has(.schedule-table) .check-list li span {
	flex: 1;
	font-weight: 500;
	color: var(--color-text);
	transition: color var(--transition);
}
.two-col:has(.schedule-table) .check-list li:hover {
	transform: translateX(6px);
	border-color: rgba(217, 138, 61, 0.45);
	box-shadow: var(--shadow-md);
}
.two-col:has(.schedule-table) .check-list li:hover::before { transform: scaleY(1); }
.two-col:has(.schedule-table) .check-list li:hover::after { color: var(--color-secondary); }
.two-col:has(.schedule-table) .check-list li:hover svg {
	background: var(--color-primary);
	color: #fff;
	transform: rotate(360deg);
}
.two-col:has(.schedule-table) .check-list li:hover span { color: var(--color-primary-dark); }

/* ---- Daily Schedule: timeline card ---- */
.two-col:has(.schedule-table) .schedule-table {
	--sty-time-col: 118px;
	display: block;
	width: 100%;
	margin-top: 22px;
	padding: 10px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.two-col:has(.schedule-table) .schedule-table:hover {
	transform: translateY(-3px);
	border-color: rgba(47, 93, 80, 0.3);
	box-shadow: var(--shadow-lg);
}
.two-col:has(.schedule-table) .schedule-table tbody { display: block; }
.two-col:has(.schedule-table) .schedule-table tr {
	position: relative;
	display: grid;
	grid-template-columns: var(--sty-time-col) 1fr;
	align-items: center;
	background: transparent;
	border-radius: var(--radius-md);
	transition: background var(--transition);
}
/* Vertical timeline line, running through every row's dot. */
.two-col:has(.schedule-table) .schedule-table tr::before {
	content: '';
	position: absolute;
	left: calc(var(--sty-time-col) + 12px);
	top: 0; bottom: 0;
	width: 2px;
	background: var(--color-border);
}
.two-col:has(.schedule-table) .schedule-table tr:first-child::before { top: 50%; }
.two-col:has(.schedule-table) .schedule-table tr:last-child::before { bottom: 50%; }
.two-col:has(.schedule-table) .schedule-table td {
	display: block;
	width: auto;
	padding: 13px 16px;
	border: 0;
	vertical-align: middle;
}
/* Time: a pill. */
.two-col:has(.schedule-table) .schedule-table td:first-child {
	justify-self: start;
	margin-left: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(47, 93, 80, 0.08);
	color: var(--color-primary-dark);
	font-weight: 600;
	font-size: 0.86rem;
	white-space: nowrap;
	transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
/* Activity, with its timeline dot. */
.two-col:has(.schedule-table) .schedule-table td:last-child {
	position: relative;
	padding-left: 34px;
	color: var(--color-text);
	transition: padding-left var(--transition), color var(--transition);
}
.two-col:has(.schedule-table) .schedule-table td:last-child::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-surface);
	border: 3px solid var(--color-primary);
	transform: translateY(-50%);
	z-index: 1;
	transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.two-col:has(.schedule-table) .schedule-table tr:hover {
	background: linear-gradient(90deg, rgba(47, 93, 80, 0.08), rgba(217, 138, 61, 0.07));
}
.two-col:has(.schedule-table) .schedule-table tr:hover td:first-child {
	background: var(--color-secondary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(217, 138, 61, 0.35);
}
.two-col:has(.schedule-table) .schedule-table tr:hover td:last-child {
	padding-left: 40px;
	color: var(--color-primary-dark);
}
.two-col:has(.schedule-table) .schedule-table tr:hover td:last-child::before {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	transform: translateY(-50%) scale(1.35);
	box-shadow: 0 0 0 5px rgba(217, 138, 61, 0.18);
}
.two-col:has(.schedule-table) .schedule-note {
	margin-top: 14px;
	padding-left: 6px;
	font-style: italic;
}

@media (max-width: 1024px) {
	.two-col:has(.schedule-table) { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 780px) {
	.two-col:has(.schedule-table) .schedule-table { --sty-time-col: 96px; padding: 6px; }
	.two-col:has(.schedule-table) .schedule-table td { padding: 11px 10px; font-size: 0.9rem; }
	.two-col:has(.schedule-table) .schedule-table td:first-child { margin-left: 2px; padding: 5px 10px; font-size: 0.8rem; }
	.two-col:has(.schedule-table) .schedule-table td:last-child { padding-left: 30px; }
	.two-col:has(.schedule-table) .check-list li { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.two-col:has(.schedule-table) .check-list li,
	.two-col:has(.schedule-table) .check-list li svg,
	.two-col:has(.schedule-table) .schedule-table,
	.two-col:has(.schedule-table) .schedule-table td { transition: none; }
	.two-col:has(.schedule-table) .check-list li:hover,
	.two-col:has(.schedule-table) .schedule-table:hover { transform: none; }
	.two-col:has(.schedule-table) .check-list li:hover svg { transform: none; }
}
