/*
 * Components for the static iiv.sk pages. Everything else - fonts, colours,
 * headings, buttons, the section and card classes - comes from the WordPress
 * theme (GeneratePress + GenerateBlocks), so these rules use its colour
 * variables (--base, --accent, ...) and only fill the gaps.
 *
 * Prefix: iivp- (iiv pages), to stay clear of the theme's own classes.
 */

/* Hero - matches the subpage heroes on the WordPress side (Mentor Academy). */
.iivp-hero {
	background-color: var(--base);
	padding-top: 4rem;
	padding-bottom: 4rem;
	text-align: center;
}
.iivp-hero__inner {
	max-width: 48rem;
}
.iivp-hero .gbp-section__text--lg {
	margin-bottom: 0;
}

/* Overview cards linking to the programmes below. */
.iivp-overview {
	padding-top: 4rem;
	padding-bottom: 0;
}
.iivp-overview__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}
.iivp-card {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.5rem;
	border: 1px solid var(--base);
	border-radius: 16px;
	background-color: var(--base-3);
	color: var(--contrast);
	text-decoration: none;
}
.iivp-card:hover,
.iivp-card:focus {
	color: var(--contrast);
	border-color: var(--accent-3);
}
.iivp-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.75rem;
	border-radius: 50%;
	background-color: var(--accent);
	color: var(--base-3);
	font-weight: 700;
}

/* One programme: picture beside the text, sides alternating. */
.iivp-program {
	padding-top: 5rem;
	padding-bottom: 5rem;
	scroll-margin-top: 1rem;
}
.iivp-program:nth-of-type(even) {
	background-color: var(--base);
}
.iivp-program__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 4rem;
	align-items: start;
}
.iivp-program:nth-of-type(even) .iivp-program__media {
	order: 2;
}
.iivp-program__media {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	position: sticky;
	top: 2rem;
}
.iivp-program__body > p:not([class]) {
	margin-bottom: 1.25em;
}

.iivp-modules {
	margin-top: 2rem;
	padding: 1.5rem 1.75rem;
	border-left: 4px solid var(--accent);
	border-radius: 0 16px 16px 0;
	background-color: var(--base-3);
}
.iivp-program:nth-of-type(odd) .iivp-modules {
	background-color: var(--base);
}
.iivp-modules__title {
	margin-bottom: 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
}
.iivp-modules ul {
	margin: 0 0 0 1.25em;
}
.iivp-modules li {
	margin-bottom: 0.35em;
}
.iivp-modules li:last-child {
	margin-bottom: 0;
}

/* Closing call to action. */
.iivp-cta {
	padding-top: 5rem;
	padding-bottom: 6rem;
	text-align: center;
}
.iivp-cta__inner {
	max-width: 40rem;
}

@media (max-width: 1024px) {
	.iivp-overview__grid {
		grid-template-columns: 1fr;
	}
	.iivp-program__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.iivp-program:nth-of-type(even) .iivp-program__media {
		order: 0;
	}
	.iivp-program__media {
		position: static;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 767px) {
	.iivp-hero,
	.iivp-program {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
	.iivp-overview {
		padding-top: 3rem;
	}
	.iivp-modules {
		padding: 1.25rem;
	}
}
