/*
 Theme Name:   Under Kevlaret (Bricks child theme)
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Under Kevlaret
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.2
 Text Domain:  underkevlaret
*/

/* ============================================
   GLOBAL OVERFLOW-SKYDD
   Förhindrar horisontell scroll orsakad av
   100vw-sektioner eller element som flödar över.
   ============================================ */
html {
    overflow-x: hidden;
}

body {
	background-color:#292929;
}

/* ============================================
   CONTAINER — width: 100%
   Bricks sätter max-width på containrar men
   inte alltid width, vilket gör att de inte
   krymper under max-width på smalare skärmar.
   ============================================ */
.brxe-container {
    width: 100%;
}

/* ============================================
   TYPSNITT
   ============================================ */
@font-face {
  font-family: 'RockebyCd';
  src: url('https://underkevlaret.se/wp-content/themes/bricks-child/fonts/RockebyCd-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RockebyCd';
  src: url('https://underkevlaret.se/wp-content/themes/bricks-child/fonts/RockebyCd-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansPro';
  src: url('https://underkevlaret.se/wp-content/themes/bricks-child/fonts/SourceSansPro-Regular.ttf.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansProBold';
  src: url('https://underkevlaret.se/wp-content/themes/bricks-child/fonts/SourceSansPro-Bold.ttf.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   VARIABLER
   ============================================ */
:root {
    --font-display: 'RockebyCd', sans-serif;
    --font-body: 'SourceSansPro', sans-serif;
    --font-bold: 'SourceSansProBold', sans-serif;

    --bg-section-light: linear-gradient(155deg, #4F4F4F 0%, #373737 100%);
    --bg-section-dark:  linear-gradient(140deg, #333333 0%, #1A1A1A 93%);
    --bg-box-light:     linear-gradient(155deg, #4F4F4F 0%, #373737 100%);
    --bg-box-dark:      linear-gradient(140deg, #333333 0%, #1A1A1A 93%);
    --color-black: #000000;
    --gradient-white: linear-gradient(145deg, #ffffff 0%, #c1c1c1 100%);
}

/* ============================================
   TYPOGRAFI — Globala regler
   ============================================ */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
}
p {
    margin-bottom: var(--space-s);
}
ul, ol {
    margin-top: 0;
    margin-bottom: var(--space-s);
}
strong, b {
    font-family: var(--font-bold);
    font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-xs);
    font-family: var(--font-display);
}
h1, h2, h3 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
h2 {
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h4, h5, h6 {
    font-weight: 700;
}
h3 {
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h4, h5, h6 {
    line-height: 1.3;
    letter-spacing: 0;
}
p a {
    text-decoration: underline;
}
.sub-heading {
    font-size: var(--text-h4);
	font-family: "rockebycd";
  	font-weight: 700;
}

/******* Blockquote *******/
[class*="theme-"] blockquote {
    font-family: var(--font-display);
    font-weight: 400;
    border-left: solid 6px;
    border-image: var(--t-heading) 1;
    padding-left: var(--space-s);
    margin: var(--space-s) 0;
}

/* ============================================
   FÄRGTEMAN
   ============================================ */

/* Under Kevlaret */
.theme-uk,
.theme-uk-light,
.theme-uk-dark {
    --t-heading:     #FFDE58;
    --t-text:        #ffffff;
    --t-element:     linear-gradient(125deg, #fff5b7 0%, #ffde58 47%);
    --t-border:      #8E7202;
}

/* DeepTalk */
.theme-dt,
.theme-dt-light,
.theme-dt-dark {
    --t-heading:     linear-gradient(-50deg, #597DFF 0%, #FF7EE3 100%);
    --t-text:        #ffffff;
    --t-element:     linear-gradient(165deg, #FF7EE3 0%, #597DFF 100%);
    --t-border:      #FF7EE3;
}

/* ComfortZone */
.theme-cz,
.theme-cz-light,
.theme-cz-dark {
    --t-heading:     linear-gradient(-50deg, #FFD118 0%, #FF8718 100%);
    --t-text:        #ffffff;
    --t-element:     linear-gradient(-10deg, #FF8718 0%, #FFD118 100%);
    --t-border:      #FF8718;
}

/* GoodGame */
.theme-gg,
.theme-gg-light,
.theme-gg-dark {
    --t-heading:     linear-gradient(-50deg, #FFD600 0%, #00FF66 100%);
    --t-text:        #ffffff;
    --t-element:     linear-gradient(-15deg, #00FF66 0%, #FFD600 100%);
    --t-border:      #00FF66;
}

/* ============================================
   BAKGRUNDER — Light / Dark
   ============================================ */
[class*="theme-"][class*="-light"] {
    --t-bg-section: var(--bg-section-light);
    --t-box-border: rgba(220, 220, 220, 0.3);
    background: var(--t-bg-section);
}

[class*="theme-"][class*="-dark"] {
    --t-bg-section: var(--bg-section-dark);
    --t-box-border: rgba(255, 255, 255, 0.1);
    background: var(--t-bg-section);
}

/* ============================================
   BOX-BAKGRUNDER — Inverterade mot sektionen
   !important behövs för att slå Bricks inline-styles
   ============================================ */
[class*="theme-"][class*="-light"] .box-bg,
[class*="theme-"][class*="-light"].box-bg {
    background: var(--bg-box-dark) !important;
}

[class*="theme-"][class*="-dark"] .box-bg,
[class*="theme-"][class*="-dark"].box-bg {
    background: var(--bg-box-light) !important;
}

.theme-uk .box-bg,
.theme-dt .box-bg,
.theme-cz .box-bg,
.theme-gg .box-bg {
    background: var(--bg-box-dark) !important;
}

/* ============================================
   TYPOGRAFI — Temad
   Explicit element-lista istället för * (prestanda)
   ============================================ */
[class*="theme-"] {
    color: var(--t-text);
}

[class*="theme-"] p,
[class*="theme-"] span,
[class*="theme-"] li,
[class*="theme-"] a:not(.brxe-button),
[class*="theme-"] blockquote,
[class*="theme-"] figcaption,
[class*="theme-"] label,
[class*="theme-"] td,
[class*="theme-"] th,
[class*="theme-"] small,
[class*="theme-"] .brxe-text-basic {
    color: var(--t-text);
}

/* Rubriker — alltid block så de inte smälter ihop */
[class*="theme-"] :is(h1, h2, h3, h4, h5, h6) {
    display: block;
    background: var(--t-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Bricks rubrik-element */
[class*="theme-"] .brxe-heading {
    display: block;
}

[class*="theme-"] .brxe-heading > * {
    background: var(--t-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}
/* ============================================
   IKONER — Alltid vit gradient
   ============================================ */
[class*="theme-"] .brxe-icon {
    background: var(--gradient-white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ============================================
   BOX-BORDER
   ============================================ */
[class*="theme-"] .box-border {
    border: 1px solid #5e5954;
}

/* ============================================
   KNAPPAR
   ============================================ */

/* --- Vit gradient-klass (global) ----------- */
.btn-gradient-white {
    background: var(--gradient-white);
}

/* --- Primary ------------------------------- */
.btn-primary.brxe-button,
.btn-primary a.brxe-button {
    display: inline-block;
    padding: var(--space-2xs) var(--space-s);
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
    border: none;
    box-shadow: none;
    background: var(--t-element);
    -webkit-text-fill-color: var(--color-black) !important;
    color: var(--color-black) !important;
}

.btn-primary.brxe-button:hover,
.btn-primary a.brxe-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* --- Secondary ----------------------------- */
.btn-secondary.brxe-button,
.btn-secondary a.brxe-button {
    display: inline-block;
    padding: calc(var(--space-2xs) - 3px) calc(var(--space-s) - 3px);
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
    background: transparent;
    border: 3px solid var(--t-border);
    box-shadow: none;
    -webkit-text-fill-color: var(--t-text) !important;
    color: var(--t-text) !important;
}

.btn-secondary.brxe-button:hover,
.btn-secondary a.brxe-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    background: transparent;
}

/* --- Knapp-spacing ------------------------- */
.btn-primary.brxe-button:not(:last-child),
.btn-secondary.brxe-button:not(:last-child) {
    margin-inline-end: var(--space-s);
}

/* ============================================
   BILDER
   ============================================ */
.brxe-image:not(.splitbox-box .brxe-image) {
    border-radius: var(--radius-m);
}

/* ============================================
   MAIN
   ============================================ */
main#brx-content {
	padding-top:80px;
}

/* ============================================
   HEADER — Navigering
   ============================================ */
#brx-header {
    #brxe-zxuvns {
        position: relative;
        z-index: unset;
        border-bottom: solid 1px var(--t-box-border);
    }
}

.bricks-nav-menu,
.bricks-mobile-menu {
    a {
        font-family: var(--font-display);
        font-weight: 900;
        color: #FFDE58 !important;
        transition: opacity 0.2s ease;
    }
    a:hover {
        opacity: 0.7;
    }
}

.bricks-nav-menu .current-menu-item a,
.sub-menu .current-menu-item a {
    color:white !important;
}

#menu-huvudmeny {
    margin-bottom: 0 !important;
}

/* Submeny — desktop */
.bricks-nav-menu .sub-menu,
.bricks-mobile-menu .sub-menu {
    background: var(--bg-box-dark);
    border: solid 1px var(--t-box-border);
    border-radius: var(--radius-s);
    padding: var(--space-2xs) 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bricks-nav-menu .sub-menu a,
.bricks-mobile-menu .sub-menu a {
    padding: var(--space-2xs) var(--space-s);
    display: block;
}

.bricks-nav-menu .sub-menu a:hover,
.bricks-mobile-menu .sub-menu a:hover {
    opacity: 0.7;
}

.bricks-nav-menu .sub-menu {
    line-height: 1.2 !important;
    padding-top: var(--space-s);
    padding-bottom: var(--space-s);
}

/* Mobilmeny — wrapper */
.bricks-mobile-menu-wrapper {
    background: linear-gradient(155deg, #4F4F4F 0%, #373737 100%) !important;
    padding: var(--space-m) !important;
}

.bricks-mobile-menu-wrapper::before {
    display: none !important;
}

/* Mobilmeny — separatorer */
.bricks-mobile-menu > li {
    border-bottom: solid 1px rgba(255, 255, 255, 0.08);
}

.bricks-mobile-menu > li:last-child {
    border-bottom: none;
}

/* Mobilmeny — länkar */
.bricks-mobile-menu a {
    line-height: 1.2;
    padding: var(--space-xs) 0;
}

/* Mobilmeny — submeny: ingen box, bara indent */
.bricks-mobile-menu .sub-menu {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 var(--space-xs) var(--space-s) !important;
}

.bricks-mobile-menu .sub-menu a {
    padding: var(--space-2xs) 0 var(--space-2xs) var(--space-s);
}

/* ============================================
   BOXAR
   ============================================ */
.box-bg {
    border-radius: var(--radius-l);
    overflow: hidden;
    border: solid 1px var(--t-box-border);
    &:not(.splitbox-box) {
        padding: var(--space-m);
    }
}

/* ============================================
   FOOTER
   ============================================ */
#brx-footer .brxe-social-icons {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: flex-start !important;
    gap: var(--space-xs);
}

.footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
    & .footer-col {
        width: 25%;
    }
}

/* ============================================
   SPLITBOX
   ============================================ */
.splitbox-box {
    min-height: 400px;
    &.box-bg {
        column-gap: 0 !important;
    }
    & > .brxe-block.image-column {
        display: flex;
        align-self: stretch;
        flex: 0 0 40%;

        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    & > .brxe-block.text-column {
        flex: 1 1 60%;
        padding: var(--space-m);
    }
}

/* Växlande riktning */
.splitbox-section {
    & > .brxe-container.splitbox-box:nth-child(odd)  { flex-direction: row !important; }
    & > .brxe-container.splitbox-box:nth-child(even) { flex-direction: row-reverse !important; }
}

/* ============================================
   50/50 SEKTION & SUBPAGE HERO
   ============================================ */
.sektion-50-50 {
    align-items: stretch;
    padding: 0px !important;
}

.sektion-50-50-content {
    max-width: 600px;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.sektion-50-50-content.content-right {
    margin-inline-end: auto;
    padding-left: var(--space-xl);
}

.sektion-50-50-content.content-left {
    margin-inline-start: auto;
    padding-right: var(--space-xl);
}

.half-bg-image {
    align-self: stretch;
    min-height: 100%;
}

/* ============================================
   STARTSIDAN
   ============================================ */
.frontpage-hero {
    & .frontpage-hero-textbox {
        min-height: 300px;
		font-size:20px;
    }
}


/* ============================================
   UNDERSIDOR
   ============================================ */
section.subpage-hero {
	padding:0px;
	& .hero-text-col {
		padding:var(--space-2xl) var(--space-l);
	}
	& p {
		font-size: 20px !important;
	}
}
.om-sektion .half-bg-image .current-menu-item a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ============================================
   TEAMET
   ============================================ */
.personal-roll {
    font-size: 20px;
}

/* ============================================
   TAB-TITLAR — Gemensam styling
   ============================================ */
.box-bg .tab-menu .tab-title .brxe-text-basic,
.tabs-section .tab-menu .tab-title .brxe-text-basic {
    font-size: var(--text-h4);
    font-family: 'RockebyCd', sans-serif;
    font-weight: 900;
    transition: opacity 0.2s ease;
}

.box-bg .tab-menu .tab-title.brx-open .brxe-text-basic,
.tabs-section .tab-menu .tab-title.brx-open .brxe-text-basic {
    background: var(--t-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}

.box-bg .tab-menu .tab-title:not(.brx-open) .brxe-text-basic,
.tabs-section .tab-menu .tab-title:not(.brx-open) .brxe-text-basic {
    background: none;
    -webkit-text-fill-color: white;
    opacity: 0.6;
}

/* ============================================
   FLIKBOX (inuti .box-bg) — Desktop layout
   ============================================ */
.box-bg {
    & .brxe-tabs-nested {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    & .tab-menu {
        width: 30%;
        flex-shrink: 0;
        border-right: solid 1px rgba(255, 255, 255, 0.2);
        border-bottom: none;
        margin-right: 20px;
        margin-bottom: 0;
        padding-bottom: 0;

        & .tab-title {
            width: auto !important;
            &.brx-open {
                background-color: unset !important;
            }
            &:not(:last-child) {
                margin-bottom: var(--space-2xs);
            }
        }
    }

    & .tab-content {
        width: 70%;
		& .tabs-col-img {
			margin-bottom: var(--space-m);
		}
        & .tab-pane {
            color: var(--t-text) !important;
            &.brx-open {
                display: flex !important;
            }
        }
    }
}

.brxe-tabs-nested .tab-content {
    border: none !important;
}

/* ============================================
   FLIK-SEKTION (utan box) — Desktop layout
   ============================================ */
.tabs-section {
    & .brxe-tabs-nested {
        display: flex;
        flex-direction: row;
        gap: 3em;
    }
    & .tab-menu {
        width: 25%;
        border-right: solid 1px rgba(255,255,255,0.2);
        padding-right: var(--space-m);
        position: sticky;
        top: 80px;
        align-self: flex-start;
        & .tab-title.brx-open {
            background-color: unset !important;
        }
        & .tab-title:not(:last-child) {
            margin-bottom: var(--space-2xs);
        }
    }
    & .tab-content {
        width: 75%;
        border: none !important;
        & .tab-pane {
            color: var(--t-text) !important;
        }
    }
}

/* ============================================
   TABS: BILD + TEXT SIDA VID SIDA
   ============================================ */
.tabs-content-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    width: 100%;
}

.tabs-content-row:not(:last-child) {
    margin-bottom: var(--space-l);
}

.tabs-col-img {
    flex: 0 0 35%;
    min-width: 0;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-m);
    background-size: cover;
    background-position: center;
	margin-bottom:var(--space-m);
}

.tabs-col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: unset !important;
}

.tabs-col-text {
    flex: 1;
    min-width: 0;
}

/* ============================================
   ACCORDIONS
   ============================================ */
.brxe-accordion {
    & .accordion-title {
        & .title {
            margin-bottom: 0px;
            font-size: var(--text-h5);
        }
    }
}
.brxe-accordion-nested .brxe-heading {
  margin-bottom: 0 !important;
}
/* ============================================
   STATISTIK-SEKTION
   ============================================ */
.statistics-section {
	& h3 {
		font-weight:700;
	}
}

/* ============================================
   CONTACT FORM 7
   ============================================ */
.wpcf7 label {
    display: block;
    margin-bottom: 4px;
	font-weight:bold;
}

.wpcf7 label:has(+ .wpcf7-form-control-wrap input[type="text"]),
.wpcf7 label:has(+ .wpcf7-form-control-wrap input[type="email"]),
.wpcf7 label:has(+ .wpcf7-form-control-wrap input[type="tel"]),
.wpcf7 label:has(+ .wpcf7-form-control-wrap textarea) {
    display: none;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full, 999px);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-bottom: var(--space-s);
}

.wpcf7 textarea {
    border-radius: var(--radius-s, 12px);
    min-height: 140px;
    resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: rgba(255, 222, 88, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Checkboxes */
.wpcf7-checkbox,
.wpcf7-acceptance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: var(--space-xs, 12px);
}

.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-acceptance .wpcf7-list-item {
    margin: 0 !important;
}

.wpcf7-checkbox input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
    accent-color: #FFDE58;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.wpcf7-list-item-label {
    font-family: var(--font-body);
    font-weight: 500;
    opacity: 0.85;
}

/* Submit */
.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: var(--space-2xs, 8px) var(--space-s, 20px);
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-full, 999px);
    background: linear-gradient(125deg, #fff5b7 0%, #ffde58 47%);
    color: #000;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Validation */
.wpcf7-not-valid {
    border-color: #ff6b6b !important;
}

.wpcf7-not-valid-tip {
	margin-top: -18px;
  margin-bottom: var(--space-xs, 12px);
  color: #ff6b6b !important;
}


.wpcf7 .wpcf7-response-output {
    border-radius: var(--radius-m, 12px);
    padding: 12px 16px;
    margin-top: var(--space-s, 16px);
}

.wpcf7-spinner {
    display: none;
}

.wpcf7 .half,
.wpcf7 .half-first,
.wpcf7 .full {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

.wpcf7 .full {
    width: 100%;
}

.wpcf7 .half {
    width: calc(50% - var(--space-xs) / 2);
}

.wpcf7 .half-first {
	width: calc(49% - var(--space-xs) / 2);
    margin-right: var(--space-xs);
}

/* ============================================
   KÄNSLOR & BEHOV
   ============================================ */
.feelings-accordion {
	h2 {
		font-size:var(--text-h4);
	}
}

/* ============================================
   RESPONSIV — 768px
   ETT ENDA SAMLAT MEDIA-BLOCK
   ============================================ */
@media (max-width: 768px) {

    /* --- Säkring: inga element bredare än skärmen --- */
    .brxe-section,
    .brxe-container,
    .brxe-block,
    .brxe-div {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* --- Splitbox --------------------------- */
    .splitbox-section > .brxe-container.splitbox-box:nth-child(odd),
    .splitbox-section > .brxe-container.splitbox-box:nth-child(even) {
        flex-direction: column !important;
    }

    .splitbox-box {
        min-height: auto;

        & > .brxe-block.image-column {
            flex: 0 0 100%;
            min-height: 250px;
        }

        & > .brxe-block.text-column {
            flex: 0 0 100%;
        }
    }

    /* --- Subpage hero (50/50-variant) ------- */
    .subpage-hero {
        flex-direction: column !important;
        padding: 0px !important;
        row-gap: 0px !important;
    }

    .subpage-hero > .brxe-container {
        width: 100% !important;
        flex: none !important;
    }

    .subpage-hero > .brxe-container.half-bg-image {
        min-height: 300px;
    }

    .subpage-hero > .brxe-container:not(.half-bg-image) {
        padding: var(--space-l) var(--space-m) var(--space-xl) !important;
    }

    /* --- Flikbox (inuti .box-bg) ------------ */
    .box-bg.brxe-tabs-nested {
        overflow: visible !important;
        flex-direction: column !important;
        padding: 0px;
    }

    .box-bg .brxe-tabs-nested {
        flex-direction: column;
        padding: 0 !important;
    }

    .box-bg .tab-menu {
        width: 100%;
        border-right: none;
        margin-right: 0;
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        gap: var(--space-m);
        padding: var(--space-s);
        margin-bottom: var(--space-m);
        border-bottom: solid 1px rgba(255, 255, 255, 0.2);
        position: sticky;
        top: 80px;
        z-index: 10;
        background: linear-gradient(155deg, #4F4F4F 0%, #373737 100%);
        border-radius: var(--radius-l) var(--radius-l) 0 0;
    }

    .box-bg .tab-menu .tab-title {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0 !important;
    }

    .box-bg .tab-menu .tab-title:not(:last-child) {
        margin-bottom: 0;
    }

    .box-bg .tab-content {
        width: 100%;
    }

    /* --- Flik-sektion (utan box) ------------ */
    .tabs-section {
        overflow: visible !important;
    }

    .tabs-section .brxe-tabs-nested {
        flex-direction: column !important;
        gap: 0;
    }

    .tabs-section .brxe-container {
        width: 100% !important;
        padding-inline: 0px !important;
    }

    .tabs-section .tab-menu {
        border-right: none;
        position: sticky;
        top: 80px;
        z-index: 10;
        background: linear-gradient(140deg, #333333 0%, #1A1A1A 93%);
        border-bottom: solid 1px rgba(255, 255, 255, 0.2);
        margin-bottom: var(--space-m);
        display: block !important;
        text-align: left;
        line-height: 1.8;
        padding: var(--space-xs) var(--space-m);
        border-radius: 0px 0px var(--radius-s) var(--radius-s);
        max-width: none !important;
        width: auto;
    }

    .tabs-section .tab-menu .tab-title {
        padding: 0 !important;
        display: inline !important;
        width: auto !important;
        flex: none;
        line-height: 1.8;
		display: flex !important;
 		 margin-bottom: 0 !important;
    }

    .tabs-section .tab-menu .tab-title:last-child::after {
        display: none;
    }

    .tabs-section .tab-menu .tab-title .brxe-text-basic {
        font-size: var(--text-body);
        font-family: var(--font-body) !important;
        font-weight: 400 !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
        background: none !important;
        display: inline !important;
    }

    .tabs-section .tab-menu .tab-title.brx-open .brxe-text-basic {
        font-weight: 700 !important;
        font-family: var(--font-bold) !important;
        -webkit-text-fill-color: #fff !important;
    }

    .tabs-section .tab-content {
        width: 100%;
    }

    /* --- Tabs: bild + text ------------------ */
    .tabs-content-row {
        flex-direction: column;
        gap: var(--space-m);
    }

    .tabs-col-img {
        flex: none;
        width: 100%;
        min-height: 220px;
        max-height: 300px;
    }

    /* Bild nestad inuti textkolumn (7-stegs-sektionen) */
    .tabs-col-text .tabs-col-img {
        width: 100%;
        margin-bottom: var(--space-m);
        border-radius: var(--radius-m);
        overflow: hidden;
    }

    .tabs-col-text .tabs-col-img img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* --- Statistik ------------------------- */
    .statistics-section .brxe-container {
        flex-direction: column !important;
        gap: var(--space-m);
        align-items: center !important;
    }

    .statistics-section .brxe-container > .brxe-block {
        width: auto !important;
        flex: none !important;
        align-items: stretch !important;
    }

    .statistics-section-box {
        flex-direction: row !important;
        align-items: center;
        text-align: left;
        gap: var(--space-s);
    }

    .statistics-section-box .icon {
        flex: 0 0 56px !important;
        width: 56px !important;
        min-width: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .statistics-section-box .icon svg {
        width: 40px !important;
        height: 40px !important;
    }

    .statistics-section-box .content h3 {
        text-align: left !important;
        font-size: var(--text-h5, 1.1rem);
		
    }

    /* --- Volontärer / bildgrid -------------- */

    .brx-grid .brxe-image {
        width: 100% !important;
        height: auto !important;
        border-radius: 50%;
        aspect-ratio: 1;
        object-fit: cover;
    }

    .brxe-container:has(> .brx-grid) {
        flex-direction: column !important;
        width: 100% !important;
        padding-inline: var(--space-m) !important;
    }

    .brxe-container:has(> .brx-grid) > .brxe-block {
        width: 100% !important;
    }

    /* --- Knappar: stacka vertikalt --------- */
    .btn-primary.brxe-button:not(:last-child),
    .btn-secondary.brxe-button:not(:last-child) {
        margin-inline-end: 0;
        margin-bottom: var(--space-2xs);
    }

    .brxe-div:has(> .brxe-button) {
        flex-direction: column;
        display: flex;
    }

    /* --- Frontpage hero -------------------- */
    .frontpage-hero .frontpage-hero-textbox {
        min-height: 200px;
    }

    /* --- Footer ---------------------------- */
    #brx-footer .footer-container {
        flex-direction: column !important;
        & .footer-col {
            width: 100%;
            & .brxe-social-icons {
                display: flex;
            }
        }
    }
}