/* =============================================================
   Mithila About Page — about.css  v1.0
   Sections: hero · story · mission-vision · mission · vision · subscribe
   Colour scheme: Creedy theme CSS variables
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

/* ── Full-width container override (injected via wp_add_inline_style) ── */
/* Handled in functions.php — no body-class needed here. */

/* ── Reset ───────────────────────────────────────────────── */
.mab-page *,
.mab-page *::before,
.mab-page *::after { box-sizing: border-box; }
.mab-page img     { max-width: 100%; height: auto; display: block; }
.mab-page ul,
.mab-page ol      { list-style: none; margin: 0; padding: 0; }
.mab-page figure  { margin: 0; }
.mab-page p       { margin-top: 0; }

.mab-page {
	width: 100%;
	font-family: var(--wdtFontTypo_Base, 'Roboto', sans-serif);
	color: var(--wdtBodyTxtColor, #202020);
	background: var(--wdtBodyBGColor, #fff);
}
ul.mab-container.mab-pillars { margin:0 auto; margin-bottom:30px;}
/* Every section is full-width */
.mab-page section {
	display: block;
	width: 100%;
	position: relative;
}

/* ── Inner content container ─────────────────────────────── */
.mab-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Shared typography ──────────────────────────────────── */
.mab-h2 {
	font-family: var(--wdtFontTypo_Alt, 'Oswald', sans-serif);
	font-size: clamp(1.9rem, 3.8vw, 2.8rem);
	font-weight: var(--wdtFontWeight_Alt, 700);
	color: var(--wdtHeadAltColor, #202020);
	line-height: 1.2;
	margin: 0 0 1.1rem;
}
.mab-h2--center  { text-align: center; }
.mab-h2--dark    { color: var(--wdtHeadAltColor, #202020); }

/* Script / cursive kicker — mimics the handwritten style in the reference */
.mab-script-kicker {
	display: block;
	font-family: 'Dancing Script', cursive;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--wdtPrimaryColor, #d88e7d);
	margin-bottom: .6rem;
	line-height: 1.3;
}
.mab-script-kicker--center { text-align: center; }
.mab-script-kicker--dark   { color: var(--wdtSecondaryColor, #363e5a); }

/* Divider bar */
.mab-divider {
	width: 52px;
	height: 4px;
	background: var(--wdtPrimaryColor, #d88e7d);
	border-radius: 2px;
	margin-bottom: 1.5rem;
}

/* ── Button ─────────────────────────────────────────────── */
.mab-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .72rem 1.75rem;
	background: var(--wdtPrimaryColor, #d88e7d);
	color: var(--wdtAccentTxtColor, #fff);
	border: 2px solid var(--wdtPrimaryColor, #d88e7d);
	border-radius: var(--wdtRadius_Part, 2.5em);
	font-size: .9375rem;
	font-weight: 600;
	font-family: var(--wdtFontTypo_Base, 'Roboto', sans-serif);
	text-decoration: none;
	transition: var(--wdtBaseTransition, all .3s linear);
	cursor: pointer;
	line-height: 1;
	margin-top: 1.25rem;
}
.mab-btn:hover {
	background: var(--wdtSecondaryColor, #363e5a);
	border-color: var(--wdtSecondaryColor, #363e5a);
	color: #fff;
}
.mab-btn--icon { padding-right: 1.25rem; }

/* =============================================================
   1. HERO / PAGE BANNER
   ============================================================= */
.mab-hero {
	position: relative;
	overflow: hidden;
	height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mab-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.mab-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(54,62,90,.72) 0%,
		rgba(54,62,90,.60) 100%
	);
}

.mab-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
}

.mab-hero__title {
	font-family: var(--wdtFontTypo_Alt, 'Oswald', sans-serif);
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 .75rem;
}

.mab-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	font-size: .95rem;
	color: rgba(255,255,255,.85);
}
.mab-breadcrumb a {
	color: rgba(255,255,255,.85);
	text-decoration: none;
	transition: color .2s;
}
.mab-breadcrumb a:hover { color: var(--wdtPrimaryColor, #d88e7d); }

/* =============================================================
   2. OUR STORY
   ============================================================= */
.mab-story {
	background: var(--wdtBodyBGColor, #fff);
	padding-block: clamp(4rem, 7vw, 6.5rem);
}

.mab-story__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	align-items: center;
}

/* Decorative image framed painting */
.mab-story__figure img {
	width: 100%;
	max-width: 520px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: var(--wdtRadius_3X, 10px);
	box-shadow: 0 6px 30px rgba(54,62,90,.15);
	/* Decorative border mimicking the reference site */
	outline: 6px solid var(--wdtPrimaryColor, #d88e7d);
	outline-offset: 8px;
}

.mab-story__body { position: relative; }

/* Decorative corner element */
.mab-story__decor {
	position: absolute;
	top: -2rem;
	right: -1rem;
	width: 110px;
	opacity: .35;
	pointer-events: none;
}
.mab-story__decor img {
	width: 100%;
	border-radius: 50%;
}

.mab-story__prose p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--wdtBodyTxtColor, #202020);
	opacity: .82;
	margin-bottom: 1rem;
}
.mab-story__prose p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
	.mab-story__grid { grid-template-columns: 1fr; }
	.mab-story__decor { display: none; }
}

/* =============================================================
   3. MISSION & VISION BANNER + THREE PILLARS
   ============================================================= */
.mab-mv-banner {
	background: var(--wdtBodyBGColor, #fff);
	padding-top: clamp(3rem, 5vw, 5rem);
	padding-bottom: 0;
}

.mab-mv-banner__text {
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
	padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.mab-mv-banner__sub {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wdtBodyTxtColor, #202020);
	opacity: .78;
	max-width: 58ch;
	margin: 0 auto;
}

/* Three equal-width pillar images — boxed inside container */
.mab-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.mab-pillars__item {
	position: relative;
	overflow: hidden;
}

.mab-pillars__figure {
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: var(--wdtRadius_3X, 10px);
}
.mab-pillars__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
	display: block;
}
.mab-pillars__item:hover .mab-pillars__figure img { transform: scale(1.06); }

/* Label overlay at bottom of each pillar */
.mab-pillars__label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem 1.25rem;
	background: linear-gradient(to top, rgba(54,62,90,.82) 0%, transparent 100%);
}
.mab-pillars__label h3 {
	font-family: var(--wdtFontTypo_Alt, 'Oswald', sans-serif);
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	margin: 0;
	letter-spacing: .03em;
}

@media (max-width: 680px) {
	.mab-pillars { grid-template-columns: 1fr; }
}

/* =============================================================
   4. MISSION
   ============================================================= */
.mab-mission {
	background: var(--wdtTertiaryColor, #f8eae1);
	padding-block: clamp(4rem, 7vw, 6.5rem);
	overflow: hidden;
}

/* Subtle Mithila line-art pattern in background */
.mab-mission__pattern {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23d88e7d' stroke-width='0.5' opacity='0.15'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Cline x1='5' y1='30' x2='55' y2='30'/%3E%3Cline x1='30' y1='5' x2='30' y2='55'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	background-size: 60px 60px;
	pointer-events: none;
	z-index: 0;
}

.mab-mission__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	align-items: center;
}

.mab-mission__figure img {
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 8px 32px rgba(54,62,90,.15);
	margin-inline: auto;
}

.mab-mission__body p {
	font-size: 1rem;
	line-height: 1.78;
	color: var(--wdtBodyTxtColor, #202020);
	opacity: .82;
	margin-bottom: 1rem;
}
.mab-mission__body p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
	.mab-mission__grid { grid-template-columns: 1fr; }
	.mab-mission__figure img { border-radius: var(--wdtRadius_3X, 10px); }
}

/* =============================================================
   5. VISION
   ============================================================= */
.mab-vision {
	background: var(--wdtBodyBGColor, #fff);
	padding-block: clamp(4rem, 7vw, 6.5rem);
}

.mab-vision__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	align-items: center;
}

.mab-vision__body p {
	font-size: 1rem;
	line-height: 1.78;
	color: var(--wdtBodyTxtColor, #202020);
	opacity: .82;
	margin-bottom: 1rem;
}
.mab-vision__body p:last-child { margin-bottom: 0; }

.mab-vision__figure img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: var(--wdtRadius_3X, 10px);
	box-shadow: 0 6px 28px rgba(54,62,90,.14);
}

@media (max-width: 820px) {
	.mab-vision__grid { grid-template-columns: 1fr; }
	.mab-vision__figure { order: -1; }
}

/* =============================================================
   6. SUBSCRIBE
   ============================================================= */
.mab-subscribe {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4.5rem, 8vw, 7rem);
}

.mab-subscribe__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

/* Creamy warm overlay that matches the reference site's patterned look */
.mab-subscribe__overlay {
	position: absolute;
	inset: 0;
	background: rgba(248,234,225,.88);
}

.mab-subscribe__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.mab-subscribe__desc {
	max-width: 52ch;
	margin: 0 auto 1.75rem;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wdtBodyTxtColor, #202020);
	opacity: .78;
}

.mab-subscribe__form {
	display: flex;
	gap: .75rem;
	max-width: 500px;
	margin-inline: auto;
	flex-wrap: wrap;
	justify-content: center;
}

.mab-subscribe__input {
	flex: 1;
	min-width: 220px;
	padding: .78rem 1.35rem;
	border: 2px solid rgba(54,62,90,.22);
	border-radius: var(--wdtRadius_Part, 2.5em);
	font-size: 1rem;
	font-family: var(--wdtFontTypo_Base, 'Roboto', sans-serif);
	color: var(--wdtBodyTxtColor, #202020);
	background: rgba(255,255,255,.85);
	outline: none;
	transition: var(--wdtBaseTransition, all .3s linear);
}
.mab-subscribe__input::placeholder { color: rgba(32,32,32,.45); }
.mab-subscribe__input:focus {
	border-color: var(--wdtPrimaryColor, #d88e7d);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(216,142,125,.2);
}
