/* Betania – ny design (2026-10-16). Bygger på temat Vision Church; ändrar bara utseendet. */

:root {
	--b-blue: #2F6FE4;
	--b-blue-dark: #1F55B8;
	--b-ink: #171C24;
	--b-text: #33383F;
	--b-muted: #4A5058;
	--b-bg: #F4F7F8;
	--b-dark: #282828;
	--b-darker: #1E1E1E;
	--b-line: #E3E8EB;
}

/* ---------- Grund ---------- */
body {
	background: var(--b-bg);
	color: var(--b-text);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}
body p, .wpb_text_column p {
	font-weight: 400;
	color: var(--b-text);
	font-size: 17px;
	line-height: 1.7;
}
a { color: var(--b-blue); }
a:hover, a:focus { color: var(--b-blue-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--b-blue); outline-offset: 2px; }

/* ---------- Sidhuvud ---------- */
#header {
	background: #FFFFFF;
	box-shadow: 0 1px 0 var(--b-line);
}
#header #nav > li > a {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--b-text);
}
#header #nav > li.current-menu-item > a,
#header #nav > li > a:hover { color: var(--b-blue); }

/* Desktop header: logo vertically centred on the left, menu centred in the header. */
@media (min-width: 961px) {
	#header .container { position: relative; }
	#header .logo-wrap .logo { display: flex; align-items: center; min-height: 100px; }
	#header #nav-wrap {
		float: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		width: 100%;
		text-align: center;
		pointer-events: none;
	}
	#header #nav-wrap #nav { float: none !important; display: inline-flex !important; flex-direction: row; width: auto !important; margin: 0 auto; pointer-events: auto; }
	#header #nav-wrap #nav > li { float: none !important; display: block; width: auto !important; }
	/* Sticky header (after scrolling) is 64px tall: centre its smaller logo too. */
	#header.sticky .logo-sticky a { display: flex; align-items: center; height: 64px; }
}

/* ---------- Logotyp ---------- */
.b-logo { display: block; width: 137px; height: auto; overflow: visible; }
.logo-sticky .b-logo { width: 120px; }
.b-logo .b-ink { fill: #111111; }
.b-logo .b-t { font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 600; }
.b-logo .b-glow, .b-logo .b-shine { opacity: 0; }

.b-logo.b-play .b-stem { transform-box: fill-box; transform-origin: 50% 0; animation: b-grow-y 0.55s cubic-bezier(.2,.8,.2,1) both; }
.b-logo.b-play .b-bar  { transform-box: fill-box; transform-origin: 50% 50%; animation: b-grow-x 0.5s cubic-bezier(.2,.8,.2,1) 0.4s both; }
.b-logo.b-play .b-t1   { animation: b-rise 0.5s ease-out 0.75s both; }
.b-logo.b-play .b-t2   { animation: b-rise 0.5s ease-out 0.95s both; }
.b-logo.b-play .b-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: b-glow 1.6s ease-out 0.8s both; }
.b-logo.b-play .b-shine { animation: b-shine 1.1s ease-in-out 1.35s both; }
a:hover > .b-logo .b-glow { opacity: 0.45; transition: opacity 0.4s; }

@keyframes b-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes b-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes b-rise   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes b-glow   { 0% { opacity: 0; transform: scale(0.4); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes b-shine  { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(560px); } }

@media (prefers-reduced-motion: reduce) {
	.b-logo.b-play * { animation: none !important; }
}

/* Homepage intro: big white logo on the photo, then it glides into the header corner. */
#rev_slider_6_1_wrapper { position: relative; }
.b-hero-logo { display: none; }
html.b-intro .b-hero-logo {
	display: block;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 30;
	width: clamp(220px, 34vw, 440px);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}
html.b-intro .b-hero-logo.b-on { opacity: 1; }
.b-hero-logo .b-logo { width: 100%; }
.b-hero-logo .b-ink { fill: #FFFFFF; transition: fill 0.9s ease; }
html.b-intro .b-hero-logo.b-fly {
	z-index: 10000;
	transition: left 0.9s cubic-bezier(.6,0,.2,1), top 0.9s cubic-bezier(.6,0,.2,1), width 0.9s cubic-bezier(.6,0,.2,1), filter 0.9s ease;
	filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}
html.b-intro .b-hero-logo.b-fly .b-ink { fill: #111111; }
html.b-intro .b-hero-logo.b-fly .b-glow,
html.b-intro .b-hero-logo.b-fly .b-shine { display: none; }

/* While the intro runs, the header logo and the VÄLKOMMEN text wait. */
html.b-intro-playing #header .b-logo.b-anim { opacity: 0; }
html.b-intro #rev_slider_6_1 rs-layer { opacity: 0 !important; }
html.b-intro-done #rev_slider_6_1 rs-layer { animation: b-fade-in 0.8s ease-out; }
@keyframes b-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
	html.b-intro .b-hero-logo { width: 200px; }
}

/* ---------- Rubriker (UPPTÄCK / Våra Verksamheter) ---------- */
.title-plus-text.type-1 h3 {
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--b-text);
	text-transform: uppercase;
}
.title-plus-text.type-1 h3 .before {
	display: block;
	width: 48px;
	height: 3px;
	background: var(--b-blue);
	margin: 0 auto 14px;
}
.title-plus-text.type-1 h3 .after { display: none; }
.title-plus-text.type-1 h2 {
	font-family: Poppins, sans-serif;
	font-size: clamp(30px, 4.2vw, 48px);
	line-height: 1.15;
	color: var(--b-ink);
	letter-spacing: 0.01em;
}
.title-plus-text.type-1 h2.part-1 { font-weight: 300; }
.title-plus-text.type-1 h2.part-2 { font-weight: 700; }
.title-plus-text.type-1 p { color: var(--b-muted); font-size: 15px; }

/* ---------- Värderingar / Vision / Mission ---------- */
.icon-box2 {
	background: #FFFFFF;
	border-radius: 6px;
	padding: 36px 30px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.icon-box2 i { color: var(--b-blue) !important; font-size: 44px; }
.icon-box2 h4 {
	font-family: Poppins, sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--b-ink);
	margin: 14px 0 8px;
}
.icon-box2 p { color: var(--b-muted); font-size: 16px; }

/* ---------- Missa inte detta! (evenemangslistan på startsidan) ---------- */
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-list-standard {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-list-standard .mec-month-divider { display: none; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-article {
	background: #FFFFFF;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 22px;
	margin: 0;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-topsec {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 18px;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-image-wrap,
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-description,
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-footer { display: none; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-col-table-c {
	display: block;
	width: auto;
	float: none;
	padding: 0;
	border: 0;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-content-wrap { flex: 1 1 auto; min-width: 0; min-height: 0 !important; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-content { padding: 0; text-align: left; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-article,
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-topsec { min-height: 0 !important; height: auto !important; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-meta-wrap { flex: 0 0 auto; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-meta { padding: 0; border: 0; text-align: left; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-meta:before { display: none; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-date-details {
	background: var(--b-blue);
	color: #FFFFFF;
	border-radius: 4px;
	text-align: center;
	padding: 8px 10px;
	min-width: 64px;
	margin: 0;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-date-details:before { display: none; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-d {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.3;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-time-details {
	color: var(--b-muted);
	font-size: 15px;
	margin-top: 6px;
	text-align: center;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-time-details:before { display: none; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-title {
	font-family: Poppins, sans-serif;
	font-size: 19px;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-title a { color: var(--b-ink); white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-article { overflow: hidden; }
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-title a:hover { color: var(--b-blue); }
.mec-wrap .event-color {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 0;
	flex: 0 0 12px;
}
.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-title .event-color { order: -1; }

/* ---------- Våra Verksamheter (bildrutor) ---------- */
.teaser-box6 {
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	margin-bottom: 18px;
}
.teaser-box6 a { display: block; position: relative; color: #FFFFFF; text-decoration: none; }
.teaser-box6 .teaser-image { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.teaser-box6 a:hover .teaser-image { transform: scale(1.04); }
.teaser-box6 .teaser-title,
.teaser-box6 .teaser-title.has-image {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: auto;
	margin: 0;
	padding: 12px 16px;
	background: rgba(20, 22, 26, 0.74);
	color: #FFFFFF;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 10px;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	transform: none;
}
.teaser-box6 .teaser-title strong { font-weight: 600; }
.teaser-box6 .teaser-subtitle {
	position: absolute;
	right: 16px;
	bottom: 13px;
	top: auto;
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #C9D6FF;
	opacity: 1;
	transform: none;
}
.teaser-box6 .b-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex: 0 0 11px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* ---------- Facebook-inlägg ---------- */
.b-fb {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 8px;
}
.b-fb-card {
	background: #FFFFFF;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(23, 28, 36, 0.06);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.b-fb-card:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 14px 32px rgba(23, 28, 36, 0.1); }
.b-fb-link { display: flex; flex-direction: column; height: 100%; color: var(--b-text); text-decoration: none; }
.b-fb-link:hover { color: var(--b-text); }
.b-fb-img {
	display: block;
	aspect-ratio: 1 / 1;
	background: #E9EEF1;
	overflow: hidden;
}
.b-fb-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.b-fb-img-empty { aspect-ratio: 3 / 1; }
.b-fb-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.b-fb-date { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--b-blue); }
.b-fb-text { font-size: 15px; line-height: 1.6; color: var(--b-text); }
.b-fb-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--b-ink); }
.b-fb-card:hover .b-fb-more { color: var(--b-blue); }
.b-fb-all { text-align: center; margin: 28px 0 0; }
.b-fb-all a, .b-fb-empty a {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #FFFFFF;
	background: var(--b-blue);
	border-radius: 4px;
	padding: 13px 26px;
	text-decoration: none;
}
.b-fb-all a:hover, .b-fb-empty a:hover { background: var(--b-blue-dark); color: #FFFFFF; }
.b-fb-empty { text-align: center; }

/* ---------- Sidfot ---------- */
#footer { background: var(--b-darker); color: #C4C9CF; }
#footer, #footer p, #footer .textwidget { color: #C4C9CF; font-size: 15px; font-weight: 400; }
#footer .widget h5.subtitle {
	color: #FFFFFF;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
#footer strong { color: #FFFFFF; font-weight: 600; }
#footer a { color: #8FB1FF; }
#footer a:hover { color: #FFFFFF; }
#footer .socialfollow a { color: #C4C9CF; }
#footer .footbot, #footer .footer-navi { color: #A3A9B0; font-size: 14px; }

/* Value cards: same height in a row. */
@media (min-width: 768px) {
	.vc_row:has(> .wpb_column > .vc_column-inner > .wpb_wrapper > .icon-box2) { display: flex; flex-wrap: wrap; }
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .icon-box2) > .vc_column-inner,
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .icon-box2) > .vc_column-inner > .wpb_wrapper { height: 100%; }
	.icon-box2 { height: 100%; box-sizing: border-box; }
}

/* Activity tiles: no "Läs mer här" button (the whole tile is the link); two per row on tablets and phones. */
.teaser-box6 .teaser-subtitle { display: none !important; }
@media (max-width: 1023px) {
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .teaser-box6) { width: 50% !important; float: left; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
	body { font-size: 16px; }
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .teaser-box6) { padding-left: 5px; padding-right: 5px; }
	.teaser-box6 { margin-bottom: 10px; }
	.teaser-box6 .teaser-title, .teaser-box6 .teaser-title.has-image { font-size: 12px; padding: 8px 10px; letter-spacing: 0.04em; }
	.icon-box2 { padding: 26px 22px; margin-bottom: 16px; }
	.mec-wrap.mec-skin-list-container:not(.mec-widget) .mec-event-article { padding: 14px; }
}
