/* MSc Integrative Health — Custom Styles */

/* ── Base ─────────────────────────────────────────────────── */
html {
	scroll-behavior: smooth;
}

/* ── Page transition fade-in ─────────────────────────────── */
body {
	animation: pageFadeIn 0.4s ease-out;
}

@keyframes pageFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   HERO CAROUSEL
   ══════════════════════════════════════════════════════════════ */
.hero-carousel {
	position: relative;
	width: 100%;
	height: 560px;
	overflow: hidden;
}

.hero-carousel__track {
	position: absolute;
	inset: 0;
}

.hero-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.hero-carousel__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.hero-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: heroKenBurns 8s ease-in-out forwards;
	will-change: transform;
}

.hero-carousel__slide.is-active img {
	animation: heroKenBurns 8s ease-in-out forwards;
}

@keyframes heroKenBurns {
	0%   { transform: scale(1); }
	100% { transform: scale(1.06); }
}

.hero-carousel__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26, 86, 83, 0.55) 0%, rgba(43, 122, 120, 0.35) 100%);
	z-index: 2;
}

.hero-carousel__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 0 var(--wp--preset--spacing--40, 2rem);
	max-width: 900px;
	margin: 0 auto;
}

.hero-carousel__content h1 {
	color: #ffffff;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.15;
	margin: 0 0 16px;
	font-weight: 700;
}

.hero-carousel__subtitle {
	color: #ffffff;
	font-size: 1.2rem;
	margin: 0 0 32px;
	line-height: 1.6;
}

.hero-carousel__subtitle strong {
	color: #ffffff;
}

.hero-carousel__buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

.hero-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-btn:hover {
	transform: translateY(-2px);
}

.hero-btn--primary {
	background-color: #4CAF50;
	color: #ffffff;
	animation: ctaPulse 2.5s ease-in-out infinite;
}

.hero-btn--primary:hover {
	background-color: #43a047;
	color: #ffffff;
	box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.hero-btn--outline {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid #ffffff;
}

.hero-btn--outline:hover {
	background-color: #ffffff;
	color: #1A5653;
}

/* Carousel dots */
.hero-carousel__dots {
	position: absolute;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 10px;
}

.hero-carousel__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	padding: 0;
}

.hero-carousel__dot:hover {
	background: rgba(255, 255, 255, 0.7);
}

.hero-carousel__dot.is-active {
	background: #ffffff;
	transform: scale(1.3);
}

@media (max-width: 768px) {
	.hero-carousel {
		height: 480px;
	}

	.hero-carousel__dots {
		bottom: 50px;
	}
}

/* ── Navigation ───────────────────────────────────────────── */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #ffffff;
	padding: 2rem;
}

.wp-block-navigation a {
	color: #2C3E50 !important;
}

.wp-block-navigation a:hover {
	color: #2B7A78 !important;
}

/* ══════════════════════════════════════════════════════════════
   STICKY HEADER
   ══════════════════════════════════════════════════════════════ */
#site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	will-change: transform;
}

#site-header.header--scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

#site-header.header--scrolled > .wp-block-group:last-child {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	transition: padding 0.3s ease;
}

#site-header.header--hidden {
	transform: translateY(-100%);
}

/* ── Card hover effects (enhanced) ───────────────────────── */
.wp-block-group:has(> .wp-block-post-title) {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wp-block-group:has(> .wp-block-post-title):hover {
	box-shadow: 0 8px 30px rgba(43, 122, 120, 0.15);
	transform: translateY(-4px);
}

/* Pillar cards — scale + accent border */
.pillar-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	border-bottom: 3px solid transparent;
}

.pillar-card:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 12px 35px rgba(43, 122, 120, 0.18);
	border-bottom-color: #4CAF50;
}

/* Course cards — border-left grows */
.course-card {
	transition: border-left-width 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.course-card:hover {
	border-left-width: 6px !important;
	box-shadow: 0 4px 15px rgba(43, 122, 120, 0.1);
	transform: translateX(3px);
}

/* Career cards — bg shift + shadow */
.career-card {
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.career-card:hover {
	background-color: #e8f5f4 !important;
	box-shadow: 0 6px 20px rgba(43, 122, 120, 0.12);
	transform: translateY(-3px);
}

/* Who-is-it-for cards */
.audience-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(43, 122, 120, 0.12);
}

/* Testimonial cards */
.testimonial-card {
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.testimonial-card:hover {
	box-shadow: 0 6px 20px rgba(43, 122, 120, 0.1);
	transform: translateY(-2px);
}

/* ── Button transitions ───────────────────────────────────── */
.wp-block-button__link {
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@keyframes ctaPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
	50%      { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

/* ── Scroll indicator ────────────────────────────────────── */
.scroll-indicator {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	animation: scrollBounce 2s ease-in-out infinite;
	opacity: 0.7;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

.scroll-indicator:hover {
	opacity: 1;
}

.scroll-indicator svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@keyframes scrollBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50%      { transform: translateX(-50%) translateY(10px); }
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
[data-animate] {
	opacity: 0;
	will-change: opacity, transform;
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate="fade-up"] {
	transform: translateY(30px);
}

[data-animate="fade-left"] {
	transform: translateX(-30px);
}

[data-animate="fade-right"] {
	transform: translateX(30px);
}

[data-animate="fade-in"] {
	transform: none;
}

/* Visible state */
[data-animate].is-visible {
	opacity: 1;
	transform: translateY(0) translateX(0);
}

/* ══════════════════════════════════════════════════════════════
   ANIMATED COUNTERS
   ══════════════════════════════════════════════════════════════ */
.counters-section {
	background: linear-gradient(135deg, #1A5653 0%, #2B7A78 100%);
	padding: 60px 0;
	position: relative;
	overflow: hidden;
}

.counters-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--40, 2rem);
}

.counter-item {
	text-align: center;
	color: #ffffff;
}

.counter-number {
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 8px;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.counter-number .counter-suffix {
	font-size: 0.7em;
	font-weight: 700;
}

.counter-label {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

.counter-divider {
	width: 40px;
	height: 3px;
	background: #4CAF50;
	margin: 12px auto;
	border-radius: 2px;
}

@media (max-width: 768px) {
	.counters-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 480px) {
	.counters-grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

/* ══════════════════════════════════════════════════════════════
   CAMPUS GALLERY IMAGES (standalone page)
   ══════════════════════════════════════════════════════════════ */
.wp-block-image.has-custom-border img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wp-block-image.has-custom-border:hover img {
	transform: scale(1.03);
}

.wp-block-image.has-custom-border {
	overflow: hidden;
	border-radius: 12px;
}

/* ══════════════════════════════════════════════════════════════
   CAMPUS HORIZONTAL CAROUSEL (homepage)
   ══════════════════════════════════════════════════════════════ */
.campus-carousel-section {
	padding: 60px 0 50px;
	background-color: #F4F7F6;
}

.campus-carousel-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 32px;
	padding: 0 var(--wp--preset--spacing--40, 2rem);
}

.campus-carousel-header h2 {
	color: #1A5653;
	font-size: 2rem;
	margin: 0 0 10px;
}

.campus-carousel-header p {
	color: #555;
	font-size: 1.05rem;
	margin: 0;
}

.campus-carousel {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 50px;
}

.campus-carousel__viewport {
	overflow: hidden;
	border-radius: 12px;
}

.campus-carousel__track {
	display: flex;
	gap: 16px;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: grab;
}

.campus-carousel__track:active {
	cursor: grabbing;
}

.campus-carousel__item {
	flex: 0 0 280px;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campus-carousel__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(43, 122, 120, 0.15);
}

.campus-carousel__item img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.campus-carousel__item:hover img {
	transform: scale(1.05);
}

.campus-carousel__item span {
	display: block;
	padding: 10px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1A5653;
	text-align: center;
}

/* Arrows */
.campus-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #2B7A78;
	background: #ffffff;
	color: #2B7A78;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.campus-carousel__arrow:hover {
	background: #2B7A78;
	color: #ffffff;
	transform: translateY(-50%) scale(1.1);
}

.campus-carousel__arrow--left {
	left: 4px;
}

.campus-carousel__arrow--right {
	right: 4px;
}

.campus-carousel__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.campus-carousel__arrow:disabled:hover {
	background: #ffffff;
	color: #2B7A78;
	transform: translateY(-50%);
}

/* CTA link */
.campus-carousel-cta {
	text-align: center;
	margin-top: 28px;
}

.campus-carousel-link {
	display: inline-block;
	color: #2B7A78;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 8px 24px;
	border: 2px solid #2B7A78;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.campus-carousel-link:hover {
	background: #2B7A78;
	color: #ffffff;
}

@media (max-width: 768px) {
	.campus-carousel {
		padding: 0 16px;
	}

	.campus-carousel__arrow {
		display: none;
	}

	.campus-carousel__viewport {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.campus-carousel__viewport::-webkit-scrollbar {
		display: none;
	}

	.campus-carousel__item {
		flex: 0 0 240px;
		scroll-snap-align: start;
	}
}

/* ══════════════════════════════════════════════════════════════
   SECTION PARALLAX
   ══════════════════════════════════════════════════════════════ */
.section-parallax {
	position: relative;
	overflow: hidden;
}

.section-parallax::before {
	content: '';
	position: absolute;
	top: -50%;
	left: 0;
	right: 0;
	bottom: -50%;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(43, 122, 120, 0.03) 0%, transparent 50%),
		radial-gradient(circle at 80% 50%, rgba(76, 175, 80, 0.03) 0%, transparent 50%);
	will-change: transform;
	pointer-events: none;
	z-index: 0;
}

.section-parallax > * {
	position: relative;
	z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   DARK BACKGROUND SECTIONS — force white text everywhere
   Targets: footer (#1A5653) and CTA (#2B7A78)
   ══════════════════════════════════════════════════════════════ */

/* Footer — dark teal background */
.has-primary-dark-background-color {
	background-color: #1A5653 !important;
}

.has-primary-dark-background-color,
.has-primary-dark-background-color p,
.has-primary-dark-background-color h2,
.has-primary-dark-background-color h3,
.has-primary-dark-background-color h4,
.has-primary-dark-background-color li,
.has-primary-dark-background-color span,
.has-primary-dark-background-color .wp-block-heading {
	color: #ffffff !important;
}

.has-primary-dark-background-color a {
	color: #ffffff !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(255, 255, 255, 0.4) !important;
	text-underline-offset: 3px;
}

.has-primary-dark-background-color a:hover {
	text-decoration-color: #ffffff !important;
}

/* Footer separator — visible white line */
.has-primary-dark-background-color .wp-block-separator {
	border-color: rgba(255, 255, 255, 0.25) !important;
	background-color: rgba(255, 255, 255, 0.25) !important;
	color: rgba(255, 255, 255, 0.25) !important;
}

/* Footer social icons — white */
.has-primary-dark-background-color .wp-block-social-links .wp-social-link svg {
	fill: #ffffff !important;
}

/* CTA section — teal background */
.has-primary-background-color {
	background-color: #2B7A78 !important;
}

.has-primary-background-color,
.has-primary-background-color p,
.has-primary-background-color h2,
.has-primary-background-color h3,
.has-primary-background-color h4,
.has-primary-background-color span,
.has-primary-background-color .wp-block-heading {
	color: #ffffff !important;
}

.has-primary-background-color a {
	color: #ffffff !important;
}

/* CTA buttons — override for visibility */
.has-primary-background-color .wp-block-button__link.has-white-background-color {
	background-color: #ffffff !important;
	color: #1A5653 !important;
}

.has-primary-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	color: #ffffff !important;
	border: 2px solid #ffffff !important;
}

.has-primary-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #ffffff !important;
	color: #1A5653 !important;
}

/* ══════════════════════════════════════════════════════════════
   HEADER TOP BAR — dark teal bar, white text
   ══════════════════════════════════════════════════════════════ */
.has-primary-dark-background-color .has-white-color,
.has-primary-dark-background-color .has-white-color a {
	color: #ffffff !important;
}

/* ── Language switcher ────────────────────────────────────── */
.wp-block-group .has-text-color a {
	color: inherit;
}

/* ── Cover overlay gradient (hero) ────────────────────────── */
.wp-block-cover::after {
	background: linear-gradient(135deg, rgba(26, 86, 83, 0.55) 0%, rgba(43, 122, 120, 0.35) 100%);
}

/* ── Faculty archive — circular images ────────────────────── */
.wp-block-post-featured-image img[style*="border-radius: 50%"],
.wp-block-post-featured-image img[style*="border-radius:50%"] {
	aspect-ratio: 1;
	object-fit: cover;
}

/* ── ACF field meta ───────────────────────────────────────── */
.acf-field {
	font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
	.wp-block-cover {
		min-height: 400px !important;
	}

	.wp-block-columns {
		flex-direction: column;
	}

	/* Lighter animations on mobile */
	[data-animate="fade-left"],
	[data-animate="fade-right"] {
		transform: translateY(20px);
	}

	/* No parallax on mobile */
	.section-parallax::before {
		display: none;
	}

	.scroll-indicator {
		bottom: 16px;
	}
}

/* ── Focus styles for accessibility ───────────────────────── */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid #4CAF50;
	outline-offset: 2px;
}

/* ── Table styles ─────────────────────────────────────────── */
table {
	border-collapse: collapse;
	width: 100%;
}

table th {
	background-color: #2B7A78;
	color: #ffffff;
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
}

table td {
	padding: 10px 16px;
	border-bottom: 1px solid #e5e7eb;
}

table tr:nth-child(even) {
	background-color: #F4F7F6;
}

/* ══════════════════════════════════════════════════════════════
   HEADER — logo & title
   ══════════════════════════════════════════════════════════════ */

/* Site title: deep green, prominent */
.header-site-title a {
	color: var(--wp--preset--color--primary-dark, #1A5653) !important;
	text-decoration: none;
}

/* Logo */

@media (max-width: 768px) {
	.header-site-title {
		font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
	}

	.header-logo .wp-block-site-logo {
		width: 70px !important;
	}
}

/* ══════════════════════════════════════════════════════════════
   FUNDING BANNER — Greece 2.0 / NextGenerationEU logos
   ══════════════════════════════════════════════════════════════ */
.funding-banner {
	gap: 20px;
	align-items: center;
	background: #ffffff;
}

.funding-banner .wp-block-image {
	margin: 0;
}

.funding-banner .wp-block-image img {
	height: auto;
	display: block;
}

@media (max-width: 768px) {
	.funding-banner {
		justify-content: center !important;
		gap: 12px;
	}

	.funding-banner .wp-block-image img[style*="180px"] {
		width: 130px !important;
	}

	.funding-banner .wp-block-image img[style*="240px"] {
		width: 170px !important;
	}
}

/* Footer funding logos — negative/white versions on dark background */
.footer-funding-logos {
	gap: 20px;
	align-items: center;
}

.footer-funding-logos .wp-block-image {
	margin: 0;
}

.footer-funding-logos .wp-block-image img {
	height: auto;
	display: block;
}

@media (max-width: 768px) {
	.footer-funding-logos {
		justify-content: center !important;
		gap: 12px;
	}

	.footer-funding-logos .wp-block-image img[style*="180px"] {
		width: 130px !important;
	}

	.footer-funding-logos .wp-block-image img[style*="220px"] {
		width: 160px !important;
	}
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE — larger section headings per Dean's feedback
   ══════════════════════════════════════════════════════════════ */
.home .wp-block-heading.has-text-align-center {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION — respect user preferences
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	[data-animate] {
		opacity: 1 !important;
		transform: none !important;
	}

	.hero-carousel__slide img {
		animation: none !important;
	}

	.scroll-indicator {
		animation: none;
	}

	.hero-cta .wp-block-button__link {
		animation: none;
	}

	body {
		animation: none;
	}
}

/* ══════════════════════════════════════════════════════════════
   SINGLE COURSE PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Hero Banner ─────────────────────────────────────────── */
.course-hero {
	background: linear-gradient(135deg, var(--wp--preset--color--primary-dark) 0%, var(--wp--preset--color--primary) 100%);
	padding: clamp(2rem, 6vw, 3.75rem) clamp(1rem, 4vw, 1.5rem);
}

.course-hero .wp-block-post-title {
	color: #fff !important;
	margin-bottom: 12px;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Course Body ─────────────────────────────────────────── */
.course-body {
	padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 1.5rem) clamp(2rem, 5vw, 3.75rem);
}

/* ── Format Badge (hero) ─────────────────────────────────── */
.course-format-badge {
	display: inline-block;
	background: rgba(255,255,255,0.18);
	color: #fff;
	padding: 4px 16px;
	border-radius: 20px;
	text-transform: capitalize;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ── Format Badge (archive card) ─────────────────────────── */
.course-format-badge--small {
	display: inline-block;
	background: var(--wp--preset--color--teal-light, #E0F2F1);
	color: var(--wp--preset--color--primary-dark, #1A5653);
	padding: 2px 10px;
	border-radius: 12px;
	text-transform: capitalize;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ── Metadata Bar ────────────────────────────────────────── */
.course-meta-bar:empty {
	display: none;
}

.course-meta-bar {
	padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Course Sections ─────────────────────────────────────── */
.course-section {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.course-section h3 {
	margin-bottom: 16px;
	position: relative;
	padding-bottom: 8px;
}

.course-section h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--wp--preset--color--primary, #2B7A78);
	border-radius: 2px;
}

.course-section--alt {
	padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem);
}

.course-section ul,
.course-section--alt ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.course-section ul li,
.course-section--alt ul li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
	line-height: 1.65;
}

.course-section ul li::before,
.course-section--alt ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary, #2B7A78);
}

/* ── Prerequisite Note ───────────────────────────────────── */
.course-prereq-note {
	border-left: 3px solid var(--wp--preset--color--leaf-green, #4CAF50) !important;
	padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.course-prereq-note p {
	margin: 0;
}

/* ── Course Cards (archive) ──────────────────────────────── */
.course-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
	border-left: 3px solid transparent;
}

.course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	border-left-color: var(--wp--preset--color--primary, #2B7A78);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
	.course-card:hover {
		transform: none;
	}

	.course-section ul li,
	.course-section--alt ul li {
		padding-left: 20px;
	}
}
