/* Challenges (listing + single) — loads AFTER menterra-home.css */

/* ================= LISTING ================= */
.challengesSec { padding: 48px 0 90px; }
.challenges-heading { text-align: center; max-width: 1100px; margin: 0 auto 50px; padding: 0 20px; }
.challenges-heading h1 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.challenges-heading p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.adminNotice { width: min(90%, 1820px); margin: 0 auto 24px; background: #fff3cd; border: 1px solid #e0b100; padding: 12px 16px; }
.contentSec { width: min(89%, 1820px); margin: 0 auto; }

/* filters (same pattern as the Portfolio page) */
.filterSec { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfcfcf; background: var(--cream); margin-bottom: 30px; }
.filterGroup { position: relative; }
.filterGroup + .filterGroup { border-left: 1px solid #cfcfcf; }
.filterHead {
	display: flex; width: 100%; height: 50px; align-items: center; justify-content: space-between; padding: 0 14px;
	background: var(--cream); border: 0; cursor: pointer; text-align: left;
	font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text);
}
.filterChevron { width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.filterHead[aria-expanded="true"] .filterChevron { transform: rotate(-135deg) translate(-2px, -2px); }
.filterList { position: absolute; top: 100%; left: -1px; right: -1px; z-index: 30; margin: 0; padding: 0; min-width: 0; background: var(--cream); border: 1px solid #cfcfcf; }
.filterOption { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 14px; border-bottom: 1px solid #cfcfcf; cursor: pointer; font-size: 15px; text-transform: capitalize; }
.filterOption:last-of-type { border-bottom: 0; }
.filterOption input { order: 2; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.clearFilters { grid-column: 1 / -1; padding: 14px 20px; background: var(--cream); border: 0; border-top: 1px solid #cfcfcf; color: var(--green); font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }

.nodata-sec { text-align: center; padding: 40px 20px; }
.nodata-img img { margin: 0 auto 18px; max-width: 160px; }
.nodata-sec h2 { font-size: 22px; }

/* cards */
.challengesGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 10px; }
.cardDiv { margin: 0; }
.challengeCard { position: relative; height: 100%; display: flex; flex-direction: column; border: 1px solid #cfcfcf; background: var(--cream); }
.challengeCard:focus-within { outline: 3px solid #f5c400; outline-offset: 3px; box-shadow: 0 0 0 5px #000; }
.challengeImg { aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8e8; }
.challengeImg img { width: 100%; height: 100%; object-fit: cover; }
.challengeBody { padding: 22px 25px 26px; }
.challengeBody h2 { font-size: 26px; margin-bottom: 10px; }
.challengeLink { color: var(--text); text-decoration: underline; }
.challengeLink::after { content: ""; position: absolute; inset: 0; }       /* whole card is clickable */
.challengeLink:focus-visible { outline: none; box-shadow: none; }          /* focus ring is drawn on the card */
.challengeCard:hover .challengeLink { color: var(--green); }
.challengeSub { font-size: 14px; color: var(--muted); }
.statusBadge {
	position: absolute; top: 16px; right: 16px; padding: 4px 12px; background: #fff; border: 1px solid var(--green);
	color: var(--green); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}

/* ================= SINGLE: shared ================= */
.backArrow { max-width: 1820px; margin: 0 auto; padding: 40px 3% 0; }
.backArrow a { color: var(--text); font-size: 14px; text-decoration: underline; }
.banDescription, .bannerDisc { max-width: 1400px; margin: 0 auto; padding: 30px 20px; text-align: center; }
.banDescription h1, .bannerDisc h1 { font-family: var(--font-body); font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.banDescription p, .bannerDisc p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.videoMain { max-width: 900px; margin: 30px auto 0; }
.videoFrame { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.videoFrame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================= SINGLE: PAST ================= */
.banChallengewin { max-width: 1400px; margin: 0 auto; padding: 40px 20px 90px; text-align: center; }
.banChallengewin h2 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 26px; }
.banChallengewin p { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
.winnerImg { width: 242px; height: 206px; margin: 30px auto; border: 1px solid #cfcfcf; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.winnerImg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.founder_head { font-family: var(--font-head); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; }
.founderNames { font-size: 14px !important; margin-bottom: 20px !important; }
.winnerCta { margin-top: 30px; }

/* ================= SINGLE: ACTIVE ================= */
.eyebrow { font-size: 14px !important; letter-spacing: 3px; text-transform: uppercase; color: var(--green) !important; margin-bottom: 10px; }
.bannerDisc h1 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--text); }
.banCta { margin-top: 26px; }
.videoChallengeSec .banDescription h2,
.challTheme h2, .focusAreasec h2, .benefitssec h2, .joinusSection h2, .partnerChallenge h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.videobtmPara { margin-top: 30px; }
.videobtmPara .ctaThree { margin-top: 12px; }

.challTheme, .focusAreasec, .benefitssec { max-width: 1400px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.challengeMainbx, .focusMainbx, .benefitMainbx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; text-align: left; }
.challengebxinner, .focusbxinner { background: var(--beige); border: 1px solid #ddd; padding: 28px 24px; }
.challengebxinner img { width: 56px; height: 56px; margin-bottom: 14px; }
.challengebxinner h3, .focusbxinner h3 { font-size: 20px; margin-bottom: 10px; }
.challengebxinner p, .focusbxinner p, .benefitbxinner p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.benefitssec > p { font-size: 17px; color: var(--muted); max-width: 900px; margin: 0 auto; }
.benefitMainbx { grid-template-columns: repeat(2, 1fr); }
.benefitbxinner { border: 1px solid #ddd; background: #fff; }
.benefitbxinner > p { padding: 24px; }
.miniBox { background: var(--green); padding: 22px 24px; }
.miniBox h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.miniBox p { color: #fff !important; }

.joinusSection { background: var(--beige); padding: 70px 20px; }
.joinusMain { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.joinusTitle p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.joinusContent { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.joinusContent ul { list-style: disc; padding-left: 20px; }
.joinusContent li { margin-bottom: 12px; font-size: 16px; line-height: 1.6; }
.joinusImg img { width: 100%; height: auto; }

.partnerChallenge { max-width: 800px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.partnerChallenge img { margin: 0 auto 20px; max-height: 90px; width: auto; }
.partnerChallenge p { color: var(--muted); margin-bottom: 8px; }
.partnerChallenge a { color: var(--green); font-weight: 600; text-decoration: underline; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
	.challengesGrid { grid-template-columns: repeat(2, 1fr); }
	.challengeMainbx, .focusMainbx { grid-template-columns: repeat(2, 1fr); }
	.joinusMain { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.challengesSec { padding-top: 60px; }
	.filterSec { grid-template-columns: 1fr; }
	.filterGroup + .filterGroup { border-left: 0; border-top: 1px solid #cfcfcf; }
	.challengesGrid, .challengeMainbx, .focusMainbx, .benefitMainbx, .joinusContent { grid-template-columns: 1fr; }
	.challengeBody h2 { font-size: 22px; }
}

/* ================= SINGLE CHALLENGE: typography (Soleil Light look) ================= */
/* Original design uses "Soleil Light". If you have the font files, add an @font-face named 'Soleil'.
   Otherwise Nunito Sans (light) is the closest free match (enqueued only on challenge pages). */
body.single-challenges-post {
	--font-light: 'Soleil', 'Nunito Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
body.single-challenges-post .banDescription h1,
body.single-challenges-post .bannerDisc h1 {
	font-family: var(--font-light); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px);
	line-height: 1.2; color: var(--text); margin-bottom: 6px;
}
body.single-challenges-post .bannerDisc h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 4vw, 46px); }

body.single-challenges-post .banDescription p,
body.single-challenges-post .bannerDisc p,
body.single-challenges-post .banChallengewin p,
body.single-challenges-post .benefitssec > p,
body.single-challenges-post .joinusTitle p,
body.single-challenges-post .videobtmPara p {
	font-family: var(--font-light); font-weight: 300; font-size: 20px; line-height: 1.55;
	letter-spacing: .02em; color: var(--text);
}
body.single-challenges-post .banDescription { max-width: 1250px; }
body.single-challenges-post .banChallengewin { max-width: 1300px; }
body.single-challenges-post .banChallengewin h2 { font-size: clamp(30px, 3.2vw, 38px); }
body.single-challenges-post .founderNames { font-size: 15px !important; }
body.single-challenges-post .backArrow a { font-family: var(--font-light); font-size: 15px; }

/* card text on the Active layout stays a little smaller */
body.single-challenges-post .challengebxinner p,
body.single-challenges-post .focusbxinner p,
body.single-challenges-post .benefitbxinner p { font-family: var(--font-light); font-weight: 300; font-size: 17px; color: var(--text); }

@media (max-width: 767px) {
	body.single-challenges-post .banDescription h1 { font-size: 30px; }
	body.single-challenges-post .banDescription p,
	body.single-challenges-post .bannerDisc p,
	body.single-challenges-post .banChallengewin p,
	body.single-challenges-post .benefitssec > p,
	body.single-challenges-post .joinusTitle p,
	body.single-challenges-post .videobtmPara p { font-size: 17px; letter-spacing: .01em; }
    .challenges-heading p {
    font-size: 14px;
 
}
}
/* ================= BOLD HEADINGS FIX =================
   The Customizer font CSS forces Soleil Light (!important) on button / span / p / form elements.
   Soleil Light has no bold, so font-weight:700 did nothing. These items must use IvyPresto Semi Bd,
   which is already a bold face – so the family is forced and weight stays normal
   (700 on top would make a smeared fake bold). */
.filterHead,
.filterHead span,
.filterOption span,
.founder_head,
.challengeBody h2,
.challengeBody h2 a,
.bannerDisc h1,
.challengebxinner h3,
.focusbxinner h3,
.miniBox h3 {
	font-family: "IvyPresto Text Semi Bd", "IvyPresto Text", Georgia, "Times New Roman", serif !important;
	font-weight: normal !important;
	font-synthesis: none;
}
.filterHead { font-size: 18px; }
.filterOption { font-size: 17px; }
body.single-challenges-post .bannerDisc h1 { font-weight: normal !important; }
/* ==========================================================================
   MOBILE (<= 767px): the two filters sit SIDE BY SIDE (Focus Sectors | Challenge Status)
   Keep this block LAST – it overrides the earlier "1fr" stacking rule.
   ========================================================================== */
@media (max-width: 767px) {
	.filterSec { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.filterGroup { min-width: 0; }
	.filterGroup + .filterGroup { border-top: 0 !important; border-left: 1px solid #cfcfcf !important; }
	.filterHead {
		height: clamp(52px, 12.5vw, 62px); padding: 0 clamp(10px, 4vw, 20px);
		font-size: clamp(14px, 3.7vw, 18px) !important; line-height: 1.2; gap: 6px;
	}
	.filterHead span { min-width: 0; }
	.filterChevron { flex: none; margin-right: 2px; }
	.filterList { left: -1px; right: -1px; }
	.filterOption { height: 46px; padding: 0 clamp(10px, 4vw, 20px); font-size: clamp(14px, 3.5vw, 17px) !important; }
}
