/*
 * Single seminar page (single-seminar.php), in the course page's style
 * (assets/css/course-detail.css): a dark hero on the footer's glow and grid
 * with the details, countdown and actions beside the photo; then the story
 * and map beside a sticky event card with a navy head; then other seminars.
 * Plain CSS, outside the frozen Tailwind build.
 */

.sd {
	--sd-accent: #10B981;
	--sd-accent-dark: #059669;
	--sd-navy: #0F172A;
	--sd-ink: #0F172A;
	--sd-text: #475569;
	--sd-line: #E2E8F0;
	background: #F8FAFC;
}

.sd-wrap {
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 768px) {
	.sd-wrap {
		padding-inline: 1.5rem;
	}
}

/* ----- Buttons ----- */

.sd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.sd-btn:active {
	transform: scale(0.97);
}

.sd-btn .material-symbols-outlined {
	font-size: 1.2rem;
}

.sd-btn--accent,
.sd-btn--accent:visited {
	background: var(--sd-accent);
	box-shadow: 0 10px 24px -12px rgb(16 185 129 / 0.8);
	color: #FFFFFF;
}

.sd-btn--accent:hover,
.sd-btn--accent:focus-visible {
	background: var(--sd-accent-dark);
	color: #FFFFFF;
}

.sd-btn--ghost,
.sd-btn--ghost:visited {
	border-color: #334155;
	background: rgb(30 41 59 / 0.8);
	color: #E2E8F0;
	font-weight: 600;
}

.sd-btn--ghost:hover,
.sd-btn--ghost:focus-visible {
	border-color: #64748B;
	background: #1E293B;
	color: #FFFFFF;
}

.sd-btn--wa,
.sd-btn--wa:visited {
	border-color: #22C55E;
	background: #FFFFFF;
	color: #16A34A;
}

.sd-btn--wa:hover,
.sd-btn--wa:focus-visible {
	background: #F0FDF4;
	color: #15803D;
}

.sd-btn--block {
	display: flex;
	width: 100%;
}

/* ----- Hero ----- */

.sd-hero {
	position: relative;
	overflow: hidden;
	color: #FFFFFF;
}

.sd-hero__inner {
	position: relative;
	padding-block: 1.75rem 3.5rem;
}

@media (min-width: 1024px) {
	.sd-hero__inner {
		padding-block: 2.25rem 4.5rem;
	}
}

.sd-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
	color: #94A3B8;
	font-size: 0.875rem;
}

.sd-crumbs a {
	color: #94A3B8;
	text-decoration: none;
}

.sd-crumbs a:hover {
	color: #FFFFFF;
}

.sd-crumbs .material-symbols-outlined {
	font-size: 1rem;
}

.sd-crumbs [aria-current] {
	color: #FFFFFF;
	font-weight: 600;
}

.sd-hero__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.sd-hero__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 3.5rem;
	}
}

.sd-status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.4rem 0.9rem;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.08);
	color: #CBD5E1;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sd-status__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background: #94A3B8;
}

.sd-status.is-upcoming {
	background: rgb(16 185 129 / 0.15);
	color: #6EE7B7;
}

.sd-status.is-upcoming .sd-status__dot {
	background: #34D399;
	animation: sd-ping 2s ease-out infinite;
}

@keyframes sd-ping {
	0% {
		box-shadow: 0 0 0 0 rgb(52 211 153 / 0.6);
	}

	100% {
		box-shadow: 0 0 0 8px rgb(52 211 153 / 0);
	}
}

.sd-hero__title {
	margin: 0;
	color: #FFFFFF;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

@media (min-width: 768px) {
	.sd-hero__title {
		font-size: 2.6rem;
	}
}

.sd-hero__lead {
	max-width: 40rem;
	margin: 1rem 0 0;
	color: #CBD5E1;
	font-size: 1rem;
	line-height: 1.7;
}

/* Date / time / cost, each a small glass chip with its label above. */
.sd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.sd-chips li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 1rem 0.6rem 0.7rem;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 0.9rem;
	background: rgb(255 255 255 / 0.06);
	font-size: 0.9rem;
	font-weight: 700;
}

.sd-chips .material-symbols-outlined {
	display: grid;
	width: 2.1rem;
	height: 2.1rem;
	place-items: center;
	border-radius: 0.65rem;
	background: rgb(16 185 129 / 0.15);
	color: #6EE7B7;
	font-size: 1.15rem;
}

.sd-chips small {
	display: block;
	color: #94A3B8;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sd-countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.sd-countdown[hidden] {
	display: none;
}

.sd-countdown__label {
	margin-right: 0.25rem;
	color: #94A3B8;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sd-countdown__unit {
	display: flex;
	min-width: 3.6rem;
	flex-direction: column;
	align-items: center;
	padding: 0.45rem 0.6rem;
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 0.75rem;
	background: rgb(255 255 255 / 0.07);
	color: #94A3B8;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sd-countdown__unit strong {
	color: #FFFFFF;
	font-size: 1.35rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	line-height: 1.15;
}

.sd-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.sd-ctas:empty {
	display: none;
}

/* The photo in a glass frame, its date and cost pinned to the corners. */
.sd-photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 6px solid rgb(255 255 255 / 0.08);
	border-radius: 1.5rem;
	background: #1E293B;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
}

.sd-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sd-photo__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #475569;
	font-size: 4rem;
}

.sd-photo__date {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: flex;
	min-width: 4.5rem;
	flex-direction: column;
	align-items: center;
	padding: 0.55rem 0.8rem;
	border-radius: 1rem;
	background: #FFFFFF;
	box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.5);
	color: #4F46E5;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sd-photo__date strong {
	color: var(--sd-ink);
	font-size: 1.8rem;
	letter-spacing: 0;
	line-height: 1;
}

.sd-photo__cost {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.4rem 0.95rem;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 9999px;
	background: rgb(15 23 42 / 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 0.82rem;
	font-weight: 700;
}

/* ----- Body ----- */

.sd-body {
	display: grid;
	gap: 2rem;
	padding-block: 3rem;
}

@media (min-width: 1024px) {
	.sd-body {
		grid-template-columns: minmax(0, 1fr) 22rem;
		align-items: start;
		gap: 2.5rem;
		padding-block: 4rem;
	}
}

.sd-main {
	display: grid;
	gap: 1.5rem;
	min-width: 0;
}

.sd-card {
	padding: 1.5rem;
	border: 1px solid var(--sd-line);
	border-radius: 1.25rem;
	background: #FFFFFF;
	box-shadow: 0 20px 40px -32px rgb(15 23 42 / 0.4);
}

@media (min-width: 768px) {
	.sd-card {
		padding: 2rem;
	}
}

.sd-card__title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	color: var(--sd-ink);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.3;
}

.sd-card__title .material-symbols-outlined {
	display: grid;
	width: 2.4rem;
	height: 2.4rem;
	place-items: center;
	border-radius: 0.75rem;
	background: #EEF2FF;
	color: #4F46E5;
	font-size: 1.3rem;
}

.sd-prose {
	color: var(--sd-text);
	font-size: 1rem;
	line-height: 1.8;
}

.sd-map {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 1rem;
	border: 1px solid var(--sd-line);
}

.sd-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* The event card: a navy head on the footer's glow and grid with a flag on
   its top edge, then the details and the actions. Sticky beside the story. */
.sd-side {
	min-width: 0;
	padding-top: 0.75rem; /* room for the flag above the card */
}

@media (min-width: 1024px) {
	.sd-side {
		position: sticky;
		top: 7rem;
	}
}

.sd-ticket {
	border: 2px solid var(--sd-navy);
	border-radius: 1.25rem;
	background: #FFFFFF;
	box-shadow: 0 24px 48px -28px rgb(15 23 42 / 0.45);
}

.sd-ticket__head {
	position: relative;
	isolation: isolate;
	padding: 1.75rem 1.25rem 1.5rem;
	border-radius: calc(1.25rem - 2px) calc(1.25rem - 2px) 0 0;
	background: var(--sd-navy);
	color: #FFFFFF;
	text-align: center;
}

.sd-ticket__layer {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.sd-ticket__flag {
	position: absolute;
	top: 0;
	left: 50%;
	padding: 0.25rem 0.8rem;
	border-radius: 9999px;
	background: var(--sd-accent);
	box-shadow: 0 4px 10px -2px rgb(15 23 42 / 0.3);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

.sd-ticket__label {
	display: block;
	color: #CBD5E1;
	font-size: 0.8rem;
}

.sd-ticket__amount {
	display: block;
	margin-top: 0.2rem;
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.15;
}

.sd-ticket__amount--title {
	font-size: 1.25rem;
}

.sd-ticket__body {
	display: grid;
	gap: 0.75rem;
	padding: 1.25rem;
}

.sd-rows {
	display: grid;
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
	color: var(--sd-text);
	font-size: 0.85rem;
}

.sd-rows li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid #F1F5F9;
}

.sd-rows li > span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.sd-rows .material-symbols-outlined {
	color: #4F46E5;
	font-size: 1.15rem;
}

.sd-rows strong,
.sd-rows a {
	color: var(--sd-ink);
	font-weight: 700;
	text-align: right;
}

.sd-rows a {
	color: #4F46E5;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ----- More seminars ----- */

.sd-more {
	padding-bottom: 4rem;
}

.sd-more__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.sd-more__title {
	margin: 0;
	color: var(--sd-ink);
	font-size: 1.6rem;
	font-weight: 800;
}

.sd-more__all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #4F46E5;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.sd-more__all:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sd-more__all .material-symbols-outlined {
	font-size: 1.1rem;
}

.sd-more__grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.sd-more__grid {
		grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	}
}

.sd-mini {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--sd-line);
	border-radius: 1rem;
	background: #FFFFFF;
	color: var(--sd-ink);
	text-decoration: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sd-mini:hover {
	border-color: #C7D2FE;
	box-shadow: 0 18px 36px -24px rgb(79 70 229 / 0.5);
	transform: translateY(-2px);
}

.sd-mini__date {
	display: flex;
	min-width: 3.5rem;
	flex-direction: column;
	align-items: center;
	padding: 0.45rem 0.5rem;
	border-radius: 0.8rem;
	background: #EEF2FF;
	color: #4F46E5;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sd-mini__date strong {
	color: var(--sd-ink);
	font-size: 1.4rem;
	letter-spacing: 0;
	line-height: 1.05;
}

.sd-mini__text {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	gap: 0.2rem;
}

.sd-mini__title {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
}

.sd-mini__meta {
	color: #64748B;
	font-size: 0.8rem;
}

.sd-mini__go {
	display: grid;
	width: 2.2rem;
	height: 2.2rem;
	flex-shrink: 0;
	place-items: center;
	border-radius: 9999px;
	background: #F1F5F9;
	color: #4F46E5;
	font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
	.sd-status.is-upcoming .sd-status__dot {
		animation: none;
	}

	.sd-btn,
	.sd-mini {
		transition: none;
	}

	.sd-mini:hover {
		transform: none;
	}
}

/* Nothing for the left column: the event card alone, centred. */
@media (min-width: 1024px) {
	.sd-body--solo {
		grid-template-columns: minmax(0, 24rem);
		justify-content: center;
	}
}

.sd-body--solo .sd-main {
	display: none;
}

/* Other seminars inside the left column, under the story and map. */
.sd-main .sd-more {
	padding-bottom: 0;
}
