/* ==========================================================================
   Commodore landing page sections (Graduation, Sports Groups, Corporate…)
   Used by the "Commodore landing page" block patterns (inc/landing-patterns.php).
   Use with the "Full Width Page" template.
   Added 2026-11-13.
   ========================================================================== */

:root {
	--cm-navy: #253b79;
	--cm-cream: #fff3e7;
	--cm-gold: #e0a526;
	--cm-text: #343a40;
	--cm-line: #e3e6ee;
}

/* Section spacing ---------------------------------------------------------- */
.lp-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
}
.lp-section + .lp-section {
	border-top: 1px solid var(--cm-line);
}
.lp-section h2,
.lp-band h2 {
	color: var(--cm-navy);
	margin-bottom: 1rem;
}
.lp-section h3,
.lp-band h3 {
	color: var(--cm-navy);
}

/* Intro (centred, narrower) ------------------------------------------------ */
.lp-intro {
	max-width: 1080px; /* was 860px; widened 2026-11-13 at Philippa's request */
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Image + text ------------------------------------------------------------- */
.lp-split > .col {
	padding-left: 15px;
	padding-right: 15px;
}
.lp-split__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}
.lp-split__media {
	display: flex;
}

/* Image fills its column and crops, so it's never taller than the text
   (same idea as fit-container-cover on Donna Lim). */
.fit-container-cover {
	height: 100%;
	width: 100%;
	margin: 0 !important;
}
.fit-container-cover img {
	height: 100% !important;
	width: 100% !important;
	object-fit: cover;
	border-radius: 4px;
}

@media (max-width: 991.98px) {
	.lp-split__media {
		margin-bottom: 1.5rem;
	}
	.lp-split__media .fit-container-cover img {
		height: 280px !important;
	}
}
@media (min-width: 992px) {
	.lp-split__text {
		padding: 1rem 1rem 1rem 2.5rem;
	}
	.lp-split--reverse .lp-split__text {
		padding: 1rem 2.5rem 1rem 1rem;
	}
	.lp-split__media .fit-container-cover img {
		min-height: 360px;
	}
}

/* Tick list --------------------------------------------------------------- */
ul.lp-ticks {
	list-style: none;
	padding-left: 0;
	margin-bottom: 1.25rem;
}
ul.lp-ticks li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: .5rem;
}
ul.lp-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.1rem;
	height: 1.1rem;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e0a526' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

/* Date / dot list (gold bullets) ------------------------------------------- */
ul.lp-dates {
	list-style: none;
	padding-left: 0;
	margin-bottom: 1.25rem;
}
ul.lp-dates li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: .25rem;
}
ul.lp-dates li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: .6em;
	width: .45rem;
	height: .45rem;
	border-radius: 50%;
	background: var(--cm-gold);
}

/* Full-width colour band --------------------------------------------------- */
.lp-band {
	padding-top: 3rem;
	padding-bottom: 3rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
}
.lp-band.bg-secondary {
	background-color: var(--cm-cream) !important;
}
.lp-band .lp-band__intro {
	max-width: 760px;
	margin: 0 auto 1.5rem;
	text-align: center;
}
@media (min-width: 768px) {
	.lp-band .lp-band__col + .lp-band__col {
		border-left: 1px solid rgba(37, 59, 121, .15);
	}
}

/* Buttons ------------------------------------------------------------------ */
.lp-section .wp-block-buttons,
.lp-band .wp-block-buttons {
	margin-top: 1.25rem;
}

/* FAQ accordion (custom/blocks/bs-accordion) ------------------------------ */
.accordion-faq {
	border-top: 1px solid var(--cm-line);
	margin-bottom: 1.5rem;
}
.accordion-faq .faq-item {
	border-bottom: 1px solid var(--cm-line);
}
.accordion-faq .faq-question {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
}
.accordion-faq .faq-toggle {
	display: block;
	width: 100%;
	padding: 1rem 2.5rem 1rem .25rem;
	border: 0;
	background: transparent;
	text-align: left;
	font-weight: 700;
	color: var(--cm-navy);
	position: relative;
	cursor: pointer;
}
.accordion-faq .faq-toggle:focus {
	outline: 2px solid rgba(37, 59, 121, .35);
	outline-offset: 2px;
}
.accordion-faq .faq-toggle::after {
	content: "";
	position: absolute;
	right: .75rem;
	top: 50%;
	width: .6rem;
	height: .6rem;
	border-right: 2px solid var(--cm-navy);
	border-bottom: 2px solid var(--cm-navy);
	transform: translateY(-75%) rotate(45deg);
	transition: transform .2s ease;
}
.accordion-faq .faq-toggle:not(.collapsed)::after {
	transform: translateY(-25%) rotate(-135deg);
}
.accordion-faq .faq-answer {
	padding: 0 2.5rem 1rem .25rem;
	color: var(--cm-text);
}
.accordion-faq .faq-answer p:last-child {
	margin-bottom: 0;
}
