/* ==========================================================================
   About Us page
   
   ========================================================================== */

/* ---------- About ---------- */

.philosophy .glass-card h3 {
	color: #fff;
}

.assoc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px !important;
}

.assoc-badges li {
	display: grid;
	gap: 2px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--muted);
}

.assoc-badges strong {
	font-size: 0.95rem;
	color: var(--ink);
}

.big-quote {
	position: relative;
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

.big-quote__mark {
	display: block;
	height: 80px;
	font-family: var(--serif);
	font-size: 9rem;
	line-height: 1;
	color: var(--coral);
}

.big-quote blockquote {
	margin: 0 0 20px;
}

.big-quote p {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
	font-weight: 300;
	line-height: 1.4;
	color: var(--ink);
}

.big-quote figcaption {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--moss);
}

/* ---------- Word-by-word quote (pages/about.js) ---------- */

.big-quote p.is-split .quote-word {
	opacity: 0.18;
	transition: opacity 0.4s var(--ease), color 0.4s;
}

.big-quote p.is-split .quote-word.is-lit {
	opacity: 1;
}

/* ---------- Yoga Alliance certificates (template-parts/about/certificates.php) ---------- */

.certs {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 70% at 100% 0%, rgba(197, 146, 59, 0.22), transparent 70%),
		linear-gradient(160deg, var(--forest-2) 0%, var(--ink) 70%);
	color: rgba(255, 255, 255, 0.8);
}

.certs__glow {
	position: absolute;
	left: -10%;
	bottom: -30%;
	z-index: -1;
	width: 60vw;
	height: 60vw;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(159, 217, 79, 0.1), transparent 65%);
	pointer-events: none;
}

.certs .section-title {
	color: #fff;
}

.certs .section-title em {
	color: #e8c27a;
}

.certs .section-lead {
	color: rgba(255, 255, 255, 0.75);
}

.certs__head {
	display: grid;
	gap: 28px 64px;
	align-items: end;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.certs__head .section-head {
	margin-bottom: 0;
}

@media (min-width: 1000px) {
	.certs__head {
		grid-template-columns: 1.2fr 1fr;
	}
}

.certs__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	border: 1px solid rgba(232, 194, 122, 0.3);
	border-radius: var(--radius);
	background: rgba(232, 194, 122, 0.3);
	overflow: hidden;
}

.certs__facts > div {
	padding: 16px 18px;
	background: rgba(15, 36, 29, 0.85);
}

.certs__facts dt {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e8c27a;
}

.certs__facts dd {
	margin: 4px 0 0;
	font-family: var(--serif);
	font-size: 1.25rem;
	color: #fff;
}

.certs__facts small {
	font-family: var(--sans);
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.6);
}

.certs__grid {
	display: grid;
	gap: 28px;
}

@media (min-width: 900px) {
	.certs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px;
	}
}

.cert {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}

.cert:hover {
	transform: translateY(-6px);
	border-color: rgba(232, 194, 122, 0.45);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

/* Gold "mat" around the certificate, like a framed document. */
.cert__frame {
	position: relative;
	display: block;
	width: 100%;
	padding: clamp(14px, 2.2vw, 24px);
	border: 0;
	background: linear-gradient(135deg, #f3e3bf, #d9b56c 50%, #f5e7c6);
	cursor: zoom-in;
}

.cert__frame img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 10px 30px -10px rgba(60, 40, 5, 0.55);
	transition: transform 0.8s var(--ease);
}

.cert:hover .cert__frame img {
	transform: scale(1.015);
}

.cert__zoom {
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s, transform 0.3s var(--ease);
}

.cert:hover .cert__zoom,
.cert__frame:focus-visible .cert__zoom {
	opacity: 1;
	transform: none;
}

.cert__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 18px;
	padding: 22px 24px;
}

.cert__seal {
	display: grid;
	place-items: center;
	align-content: center;
	flex: none;
	width: 62px;
	height: 62px;
	border: 1.5px solid #e8c27a;
	border-radius: 50%;
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1;
	color: #fff;
	box-shadow: inset 0 0 0 4px rgba(232, 194, 122, 0.15);
}

.cert__seal small {
	font-family: var(--sans);
	font-size: 0.56rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: #e8c27a;
}

.cert__text {
	flex: 1;
	min-width: 190px;
}

.cert__title {
	margin-bottom: 2px;
	font-size: 1.25rem;
	color: #fff;
}

.cert__text p {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
}

.cert__actions {
	display: flex;
	gap: 8px;
}

.cert__actions .btn--outline {
	--btn-fg: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.cert__actions .btn--outline:hover {
	--btn-bg: #fff;
	--btn-fg: var(--ink);
	border-color: #fff;
}

.certs__verify {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin: 36px 0 0;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

.certs__verify > .icon {
	color: #e8c27a;
}

.certs__verify a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #e8c27a;
}

/* ---------- Full-size certificate viewer ---------- */

.cert-viewer {
	width: min(1200px, 94vw);
	max-width: none;
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: transparent;
	overflow: visible;
}

.cert-viewer::backdrop {
	background: rgba(8, 20, 16, 0.9);
	backdrop-filter: blur(4px);
}

.cert-viewer[open] {
	animation: certIn 0.35s var(--ease);
}

@keyframes certIn {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: none; }
}

.cert-viewer figure {
	margin: 0;
}

.cert-viewer img {
	display: block;
	width: 100%;
	max-height: 84vh;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.cert-viewer figcaption {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	font-size: 0.92rem;
}

.cert-viewer__close {
	position: absolute;
	top: -18px;
	right: -18px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow);
}

@media (max-width: 600px) {
	.cert-viewer__close {
		top: -52px;
		right: 0;
	}
}

@media (max-width: 600px) {
	.certs__facts > div {
		padding: 14px;
	}
	.certs__facts dd {
		font-size: 1.05rem;
		white-space: nowrap;
	}
	.certs__facts small {
		display: block;
		margin-top: 2px;
	}
}
