/*
 * Civil applications on /applications/other (dincel_resource.application_civil_section).
 * Layout follows dincelcivilsolutions.com.au/applications: two columns of cards,
 * each a photo with the application icon beside the title and text.
 * Colours from theme_dincel/static/src/scss/_variables.scss; fonts are the theme's.
 */

.civil-apps {
	--civil-text: #2b2a2a;
	--civil-text-secondary: #575656;   /* $Dincel-DeepGrey */
	--civil-white: #ffffff;

	padding: 24px 0 8px;
	background: var(--civil-white);
}

/* intro: the page's h1, intro text and the quote / information buttons */
.civil-apps__intro {
	max-width: 760px;
	margin-bottom: 32px;
}

/* Bebas Neue (Google Fonts, loaded by page_applications_category for this page);
   overrides the theme's white 1.5rem h1 */
.civil-apps .civil-apps__title {
	margin: 0 0 12px;
	padding: 0;
	color: #000;
	font-family: "Bebas Neue", RobotoCondensed, Arial, sans-serif;
	font-size: 2.75rem;
	font-weight: 400;          /* Bebas Neue has one weight */
	line-height: 1;
	letter-spacing: 0.01em;
}

.civil-apps__intro p {
	margin: 0 0 12px;
}

.civil-apps__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 32px;
}

.civil-card {
	min-width: 0;
	/* anchor links land below the sticky header */
	scroll-margin-top: 120px;
}

.civil-card__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 54 / 25;
	object-fit: cover;
	object-position: center;
}

.civil-card__photo--top {
	object-position: top;
}

.civil-card__body {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 16px;
}

.civil-card__icon {
	flex: 0 0 96px;
	width: 96px;
	height: auto;
}

.civil-card__text {
	min-width: 0;
}

/* body text uses the theme's own p style (Roboto .75rem, $Dincel-DeepGrey) like the
   rest of the page - only spacing is set here */

/* overrides the theme's white 1.5rem / red 1.25rem headings */
.civil-apps .civil-card__title {
	margin: 0 0 12px;
	padding: 0;
	color: #000;
	font-family: RobotoCondensed, Arial, sans-serif;
	font-size: 1.25rem;
	font-weight: bold;
	line-height: 1.2;
}

.civil-apps .civil-card__text p {
	margin: 0 0 12px;
}

/* video cell beside the last card */
.civil-card--video {
	margin: 0;
}

.civil-card__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.civil-card__video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.civil-apps .civil-card__caption {
	margin-top: 12px;
	color: var(--civil-text-secondary);
	font-family: Roboto, Arial, sans-serif;
	font-size: 0.75rem;
}

@media (max-width: 991px) {
	.civil-apps__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (max-width: 575px) {
	.civil-apps .civil-apps__title {
		font-size: 2.25rem;
	}

	.civil-card__icon {
		flex-basis: 64px;
		width: 64px;
	}
}
