/**
 * Two Columns Boxed Content
 * Figma desktop: 21234-6863
 * Figma mobile: file wxwuK7BpekIvd9pKAYnPC4, node-id=21363-7892 (rules in the max-width: 767px block)
 * Section title + intro: Figma 21363-2686 (desktop) / 21363-8387 (mobile) — Service inner "Quality Service"
 *
 * Desktop 1440: section px 160 / py 80, grid 1120 (2 × 550, gap 20)
 * Box: white, radius 40, padding 40, gap 32, shadow 0 6 40 rgba(0,0,0,.06)
 * Title: Lato Bold Italic 28/38, tracking -0.5% · bar 60×6 #a5ce4c
 * Body: Lato Regular 16/24 #454545 · checklist icon 24px, gap 6, row gap 2
 */

.two-columns-boxed-content {
	width: 100%;
	box-sizing: border-box;
	padding: 48px 20px;
	background-color: #f7f3e3;
}

.two-columns-boxed-content__inner {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

/* Optional section title + intro — mobile: title -> text 12, header -> boxes 32 */
.two-columns-boxed-content__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin-bottom: 32px;
	text-align: center;
}

.two-columns-boxed-content__section-title {
	margin: 0;
	color: var(--color-black);
	font-family: var(--font-h2-family);
	font-size: var(--font-h2-size); /* Mobile/H2 38/48 · Desktop/H2 44/54 */
	font-style: var(--font-h2-style);
	font-weight: var(--font-h2-weight);
	letter-spacing: var(--font-h2-tracking);
	line-height: var(--font-h2-line);
	text-transform: capitalize;
}

.two-columns-boxed-content__section-text {
	color: var(--color-grey-800);
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	line-height: 24px;
}

.two-columns-boxed-content__section-text p {
	margin: 0 0 16px;
	color: inherit;
	font: inherit;
}

.two-columns-boxed-content__section-text > :last-child {
	margin-bottom: 0;
}

.two-columns-boxed-content__section-text a,
.two-columns-boxed-content__section-text a:visited {
	color: inherit;
	text-decoration: underline;
}

.two-columns-boxed-content__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}

.two-columns-boxed-content__box {
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
	padding: 32px 24px;
	border-radius: 24px;
	background-color: var(--color-white);
	box-shadow: 0 6px 40px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.two-columns-boxed-content__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.two-columns-boxed-content__title {
	margin: 0;
	width: 100%;
	color: var(--color-black);
	font-family: var(--font-primary);
	font-size: 24px;
	font-style: italic;
	font-weight: var(--font-weight-bold);
	letter-spacing: -0.005em;
	line-height: 32px;
	text-align: center;
	text-transform: capitalize;
}

.two-columns-boxed-content__bar {
	display: block;
	width: 60px;
	height: 6px;
	background-color: #a5ce4c;
}

.two-columns-boxed-content__richtext {
	width: 100%;
	color: var(--color-grey-800);
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	line-height: 24px;
}

.two-columns-boxed-content__box--align-center .two-columns-boxed-content__richtext {
	max-width: 354px; /* Figma centered text column */
	margin-inline: auto;
	text-align: center;
}

.two-columns-boxed-content__richtext p {
	margin: 0 0 16px;
	color: inherit;
	font: inherit;
}

.two-columns-boxed-content__richtext p:has(+ ul),
.two-columns-boxed-content__richtext p:has(+ ol) {
	margin-bottom: 6px;
}

.two-columns-boxed-content__richtext > :last-child {
	margin-bottom: 0;
}

.two-columns-boxed-content__richtext a,
.two-columns-boxed-content__richtext a:visited {
	color: inherit;
	text-decoration: underline;
}

.two-columns-boxed-content__richtext a:hover,
.two-columns-boxed-content__richtext a:focus-visible {
	color: var(--color-bright-green);
}

.two-columns-boxed-content__richtext strong,
.two-columns-boxed-content__richtext b {
	font-weight: var(--font-weight-bold);
}

.two-columns-boxed-content__richtext em,
.two-columns-boxed-content__richtext i {
	font-style: italic;
}

.two-columns-boxed-content__richtext ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.two-columns-boxed-content__richtext ul li {
	position: relative;
	margin: 0;
	padding: 0 0 0 30px;
	text-align: left;
}

.two-columns-boxed-content__richtext ul li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	background-image: var(--tcbc-check);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.two-columns-boxed-content__box--align-center .two-columns-boxed-content__richtext ul {
	align-items: center;
}

.two-columns-boxed-content__richtext ol {
	margin: 0 0 16px;
	padding-left: 1.5em;
	text-align: left;
}

/* Mobile — Figma 21363-7892 */
@media (max-width: 767px) {
	.two-columns-boxed-content {
		padding: 40px 20px;
	}

	.two-columns-boxed-content__grid {
		gap: 15px;
	}

	.two-columns-boxed-content__box {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.two-columns-boxed-content__header {
		gap: 12px; /* title -> bar */
	}

	.two-columns-boxed-content__title {
		letter-spacing: 0; /* Mobile/H4 - M: 24/32 */
	}

	/* Centred box paragraphs are separated by a blank 24px line in Figma */
	.two-columns-boxed-content__box--align-center .two-columns-boxed-content__richtext p:not(:last-child) {
		margin-bottom: 24px;
	}
}

/* Tablet (768–1023): desktop fonts, boxes still stacked */
@media (min-width: 768px) {
	.two-columns-boxed-content {
		padding: 64px 40px;
	}

	.two-columns-boxed-content__intro {
		gap: 16px;
		margin-bottom: 40px;
	}

	.two-columns-boxed-content__box {
		gap: 32px;
		padding: 40px;
		border-radius: 40px;
	}

	.two-columns-boxed-content__title {
		font-size: 28px;
		line-height: 38px;
	}
}

/* Desktop — Figma 1440: px 160 (11.111%), py 80, two equal columns */
@media (min-width: 1024px) {
	.two-columns-boxed-content {
		padding: 80px 11.111%;
	}

	.two-columns-boxed-content__intro {
		padding-inline: 80px; /* Figma: 960 text column inside the 1120 grid */
		box-sizing: border-box;
	}

	.two-columns-boxed-content__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Stacked layout (below 1024): every container spans the full column width (developer rule) */
@media (max-width: 1023.98px) {
	.two-columns-boxed-content__box--align-center .two-columns-boxed-content__richtext {
		max-width: none;
	}
}

/*
 * Beige boxes + note — Figma ZDscpW9XEbLKuqIer7N99K node-id=21577-4550 (About Us "Our Mission And Vision", 1440 × 660):
 * white section, boxes #f7f3e3 without shadow, note 32 below the boxes (Paragraph, centred, links #2847e1).
 */
.two-columns-boxed-content--boxes-beige .two-columns-boxed-content__box {
	background-color: #f7f3e3;
	box-shadow: none;
}

.two-columns-boxed-content__note {
	width: 100%;
	margin-top: 24px;
	color: var(--color-grey-800);
	font-family: var(--font-primary);
	font-size: var(--font-paragraph-size);
	font-weight: var(--font-paragraph-weight);
	line-height: var(--font-paragraph-line);
	text-align: center;
}

.two-columns-boxed-content__note > * {
	margin: 0;
	color: inherit;
	font: inherit;
}

.two-columns-boxed-content__note > * + * {
	margin-top: 24px;
}

/* Rule #24: visited looks the same */
.two-columns-boxed-content__note a,
.two-columns-boxed-content__note a:visited {
	color: #2847e1;
	text-decoration: underline;
}

.two-columns-boxed-content__note a:hover,
.two-columns-boxed-content__note a:focus {
	color: #2847e1;
	text-decoration-thickness: 2px;
}

@media (min-width: 768px) {
	.two-columns-boxed-content__note {
		margin-top: 32px;
	}
}

/*
 * Grid of boxes — Figma ZDscpW9XEbLKuqIer7N99K node-id=21592-20070 (About Us "Corporate Profile And Directory"):
 * any number of boxes two per row (Full Width box = whole row), rows 20 apart; "green" title style = Dark Green
 * title, #84bd25 bar, bar → content 24; narrow intro 800 of the 1120 grid; logo row (rule #23 uniform boxes)
 * and a chart image at the box width, each 24 below the text.
 */
.two-columns-boxed-content--accent-green .two-columns-boxed-content__title {
	color: var(--color-dark-green);
}

.two-columns-boxed-content--accent-green .two-columns-boxed-content__bar {
	background-color: #84bd25;
}

/* Logos Title: second heading in a box; sits with its logos at the bottom of a stretched box */
.two-columns-boxed-content__header--logos {
	margin-top: auto;
	padding-top: 24px;
}

.two-columns-boxed-content__logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	width: 100%;
}

/* Rule #23 — every logo gets the same box (max 160 × 72, 4px clearance); the logo is contained inside it */
.two-columns-boxed-content__logo {
	display: flex;
	flex: 0 1 calc((100% - 16px) / 2);
	align-items: center;
	justify-content: center;
	max-width: 160px;
	height: 72px;
	padding: 4px;
	box-sizing: border-box;
}

.two-columns-boxed-content__logo-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.two-columns-boxed-content__media picture {
	display: contents;
}

.two-columns-boxed-content__media {
	width: 100%;
}

.two-columns-boxed-content__image {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	.two-columns-boxed-content--accent-green .two-columns-boxed-content__box {
		gap: 24px;
	}

	.two-columns-boxed-content__logo {
		flex-basis: calc((100% - 48px) / 4);
	}
}

@media (min-width: 1024px) {
	.two-columns-boxed-content__box--full {
		grid-column: 1 / -1;
	}

	.two-columns-boxed-content--intro-narrow .two-columns-boxed-content__intro {
		padding-inline: 14.286%; /* 800 of the 1120 grid */
	}
}

/* Center (full width): centred text across the whole box (Figma 21592-20070), no 354px text column */
.two-columns-boxed-content__box--align-center-full .two-columns-boxed-content__richtext {
	text-align: center;
}

.two-columns-boxed-content__box--align-center-full .two-columns-boxed-content__richtext ul {
	align-items: center;
}

/* Box links — #2847e1 underlined (Figma 21662-9626 Contact Us enquiries; matches the site notes). Rule #24: visited = normal. */
.two-columns-boxed-content__richtext a,
.two-columns-boxed-content__richtext a:visited {
	color: #2847e1;
}

.two-columns-boxed-content__richtext a:hover,
.two-columns-boxed-content__richtext a:focus-visible {
	color: #2847e1;
	text-decoration-thickness: 2px;
}

/* Section title as a label (Figma EMS 21631-23246: "Jubilee has two main business segments:"):
   Lato 16/20 uppercase, 8% tracking — same as the heading-image-block label. Label → boxes 32 mobile / 40 from 768. */
.two-columns-boxed-content--title-label .two-columns-boxed-content__section-title {
	color: #020202;
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 20px;
	text-transform: uppercase;
}

/* Center (full width): paragraphs a blank line (24px) apart at every width (Figma AMA 21631-23211 / 21691-6844). */
.two-columns-boxed-content__box--align-center-full .two-columns-boxed-content__richtext p:not(:last-child) {
	margin-bottom: 24px;
}

/*
 * Section Text: White — Figma KnHTsNjt2byi1jkl2jubPo 21592-20070 (About Us "Corporate Profile And Directory" on #507109):
 * section title, intro and note white, their links yellow. Boxes keep their own colours.
 */
.two-columns-boxed-content--text-light .two-columns-boxed-content__section-title,
.two-columns-boxed-content--text-light .two-columns-boxed-content__section-text,
.two-columns-boxed-content--text-light .two-columns-boxed-content__note {
	color: var(--color-white);
}

/* Rule #24: visited looks the same */
.two-columns-boxed-content--text-light .two-columns-boxed-content__section-text a,
.two-columns-boxed-content--text-light .two-columns-boxed-content__section-text a:visited,
.two-columns-boxed-content--text-light .two-columns-boxed-content__note a,
.two-columns-boxed-content--text-light .two-columns-boxed-content__note a:visited,
.two-columns-boxed-content--text-light .two-columns-boxed-content__note a:hover,
.two-columns-boxed-content--text-light .two-columns-boxed-content__note a:focus {
	color: var(--color-yellow);
}

/* Linked logos fill their logo box; hover/focus dim slightly (rule #4). Rule #24: visited looks the same. */
.two-columns-boxed-content__logo-link,
.two-columns-boxed-content__logo-link:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	transition: opacity 0.2s ease;
}

.two-columns-boxed-content__logo-link:hover,
.two-columns-boxed-content__logo-link:focus-visible {
	opacity: 0.75;
}
