/* 2025 Motif: Scoped tokens, layout, and card styles */
.motif-2025 {
	--twp-brand: #2D6484;
	--twp-brand-strong: #207cca;
	--twp-text: #334155;
	--twp-muted: #425563;
	--twp-border: #e6ebf0;
	--twp-surface: #ffffff;
	/* Accent palette (2025) */
	--twp-accent-red: #AF3F3A;
	--twp-accent-red-strong: #8F2F2D;
	/* Default accent uses brand blue for calmer callouts */
	--twp-accent: var(--twp-brand);
	--twp-accent-strong: #1a4056;
	--twp-radius-sm: 8px;
	--twp-radius-md: 12px;
	--twp-shadow-sm: 0 4px 12px rgba(45,100,132,0.15);
	--twp-shadow-md: 0 10px 24px rgba(45,100,132,0.15);
}

/* Containers */
.motif-2025 .section { max-width: 1200px; margin: 40px auto; padding: 0 10px; }
.motif-2025 .wrap { max-width: 1200px; margin: 0 auto; padding: 0 10px; }

/* Mission Bridge Logo Centering */
.motif-2025 .mission-bridge .mission-logo {
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
}

.motif-2025 .mission-bridge .mission-logo img {
  display: block;
  margin: 0 auto;
  max-width: 200px;
  height: auto;
}

/* Section headers */
.motif-2025 .section-header { text-align: center; margin-bottom: 20px; }
.motif-2025 .section-header h2 { margin: 0 0 8px 0; font-size: 28px; font-weight: 700; color: var(--twp-brand); }
.motif-2025 .section-header .subtitle { color: var(--twp-muted); font-size: 16px; }

/* Buttons */
.motif-2025 .btn-primary-shared {
	background: var(--twp-brand);
	color: #fff;
	border: 2px solid var(--twp-brand);
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	border-radius: var(--twp-radius-sm);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}
.motif-2025 .btn-primary-shared:hover { background: var(--twp-brand-strong); border-color: var(--twp-brand-strong); transform: translateY(-1px); box-shadow: var(--twp-shadow-sm); color: #fff; text-decoration: none; }

/* Cards */
.motif-2025 .card { background: var(--twp-surface); border: 1px solid var(--twp-border); border-radius: var(--twp-radius-md); box-shadow: 0 4px 16px rgba(0,0,0,0.06); overflow: hidden; }
.motif-2025 .card-hover:hover { transform: translateY(-4px); box-shadow: var(--twp-shadow-md); }

/* Grids */
.motif-2025 .grid { display: grid; gap: 16px; }
.motif-2025 .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.motif-2025 .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.motif-2025 .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.motif-2025 .grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) { .motif-2025 .grid.cols-4, .motif-2025 .grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .motif-2025 .grid.cols-3, .motif-2025 .grid.cols-4, .motif-2025 .grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .motif-2025 .grid, .motif-2025 .grid.cols-2, .motif-2025 .grid.cols-3, .motif-2025 .grid.cols-4, .motif-2025 .grid.cols-5 { grid-template-columns: 1fr; } }

/* Utilities */
.motif-2025 .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.motif-2025 .text-center { text-align: center; }
.motif-2025 .mt-0 { margin-top: 0; } .motif-2025 .mt-1 { margin-top: 8px; } .motif-2025 .mt-2 { margin-top: 16px; } .motif-2025 .mt-3 { margin-top: 24px; } .motif-2025 .mt-4 { margin-top: 32px; }
.motif-2025 .mb-0 { margin-bottom: 0; } .motif-2025 .mb-1 { margin-bottom: 8px; } .motif-2025 .mb-2 { margin-bottom: 16px; } .motif-2025 .mb-3 { margin-bottom: 24px; } .motif-2025 .mb-4 { margin-bottom: 32px; }

/* Banner: Accent gradient card (2025) */
.motif-2025 .banner-accent,
.motif-2025 .banner-red {
	background: linear-gradient(135deg, var(--twp-accent) 0%, var(--twp-accent-strong) 100%);
	color: #ffffff;
	border-radius: var(--twp-radius-md);
	padding: 32px 24px;
	box-shadow: var(--twp-shadow-sm);
	contain: layout style paint;
}

/* Optional inner container for banners */
.motif-2025 .banner-red .wrap,
.motif-2025 .banner-red .section { max-width: 1200px; margin: 0 auto; }

/* Ensure inner Bootstrap containers don't mask the gradient */
.motif-2025 .banner-accent .container,
.motif-2025 .banner-accent .container-fluid { background: transparent !important; }

/* Backward-compatible hook for pages still using .red-section within 2025 scope */
.motif-2025 .red-section {
	background: linear-gradient(135deg, var(--twp-accent) 0%, var(--twp-accent-strong) 100%);
	color: #ffffff;
	border-radius: var(--twp-radius-md);
	padding: 32px 24px;
	box-shadow: var(--twp-shadow-sm);
}

/* YouTube/Vimeo embed card (2025) */
.motif-2025 .yt-embed {
	border-radius: var(--twp-radius-md);
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(45,100,132,0.15);
	background: #000;
}
.motif-2025 .yt-embed .embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border-radius: inherit; }
.motif-2025 .yt-embed .embed-responsive-16by9 { padding-bottom: 56.25%; }
.motif-2025 .yt-embed .embed-responsive-item,
.motif-2025 .yt-embed iframe,
.motif-2025 .yt-embed video,
.motif-2025 .yt-embed object,
.motif-2025 .yt-embed embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }

/* Summary / FAQ modal component (2025) */
.motif-2025 .hero-summary-btn {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 5000;
	pointer-events: auto !important;
	background: rgba(255,255,255,0.92);
	color: var(--twp-brand);
	border: 2px solid #ffffff;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	backdrop-filter: blur(8px);
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 767px) {
	.motif-2025 .hero-summary-btn { bottom: 8px; right: 8px; padding: 12px 18px; }
}
.motif-2025 .hero-summary-btn * { pointer-events: none; }
.motif-2025 .hero-summary-btn .fa { display: inline-block; width: 1em; text-align: center; }
.motif-2025 .hero-summary-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.motif-2025 .hero-summary-btn:focus { outline: 2px solid var(--twp-brand); outline-offset: 2px; }

/* Bootstrap 3 modal overrides for Summary/FAQ */
.twp-summary-modal .modal-dialog { width: auto; max-width: 920px; margin: 30px auto; }
.twp-summary-modal .modal-content { border-radius: var(--twp-radius-md); border: 1px solid var(--twp-border); overflow: hidden; }
.twp-summary-modal .modal-header { background: linear-gradient(135deg, var(--twp-accent) 0%, var(--twp-accent-strong) 100%); color:#fff; }
.twp-summary-modal .modal-title { font-weight: 600; }
.twp-summary-modal .close { color:#fff; opacity: 1; text-shadow: none; }
.twp-summary-modal .modal-body { display: grid; grid-template-columns: 1fr; gap: 16px; }
.twp-summary-modal .twp-summary { background:#f8fafc; border:1px solid var(--twp-border); border-radius: var(--twp-radius-sm); padding: 14px; }
.twp-summary-modal .twp-summary h3 { margin: 0 0 8px 0; color: var(--twp-brand); font-size: 16px; }
.twp-summary-modal .twp-summary p { margin: 0 0 8px 0; color: var(--twp-muted); }
.twp-summary-modal .twp-faq { border:1px solid var(--twp-border); border-radius: var(--twp-radius-sm); padding: 0; }
.twp-summary-modal .twp-faq details { border-top: 1px solid var(--twp-border); }
.twp-summary-modal .twp-faq details:first-of-type { border-top: none; }
.twp-summary-modal .twp-faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; color: #111827; position: relative; }
.twp-summary-modal .twp-faq summary::-webkit-details-marker { display: none; }
.twp-summary-modal .twp-faq summary::after { content: '\25BC'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(0deg); font-size: 12px; color: #6b7280; transition: transform .2s ease; }
.twp-summary-modal .twp-faq details[open] summary::after { transform: translateY(-50%) rotate(-180deg); }
.twp-summary-modal .twp-faq .faq-answer { padding: 0 16px 14px 16px; color: #374151; }

@media (min-width: 768px) {
	.twp-summary-modal .modal-body { grid-template-columns: 1fr 1fr; }
}

