/*----------------------------*/
/*  DENNA CSS ÄR DENSAMMA I BÅDA FILER
/*----------------------------*/

.mariko-area-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.mariko-area-heading {
    font-family: "Source Sans 3", sans-serif;
    font-weight: bold;
    font-size: 34px;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 10px;
}

.mariko-area-description {
    font-family: "Source Sans 3", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.typ-b-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid #58ad6e;
    background-color: transparent;
    color: #58ad6e;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    font-family: "Source Sans 3", sans-serif;
    border-radius: 4px;
}

.typ-b-button:not(.active)::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    content: "\f111";
    margin-right: 8px;
    color: #58ad6e;
    display: inline-block;
}

.typ-b-button:not(.active):hover::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f111";
    color: #58ad6e;
}

.typ-b-button.active {
    background-color: transparent;
    color: #58ad6e;
}

.typ-b-button.active::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f111";
    color: #58ad6e;
    margin-right: 8px;
    display: inline-block;
}

.mariko-tab-underline {
    width: 100%;
    height: 2px;
    background-color: black;
    margin-top: 20px;
    margin-bottom: 20px;
}

#mariko-area-tab-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    margin-top: 20px;
}

.mariko-area-card {
    display: none;
    width: 100%;
    padding: 0;
    margin: 10px 0;
    text-align: left;
    background-color: transparent !important;
    border: none !important;
}

.mariko-area-card.active {
    display: block;
}

/*----------------------------*/
/*  DENNA CSS ÄR SPECIFIK FÖR DEN KOD SOM FUNGERAR PÅ STOR SKÄRM
/*----------------------------*/

.mariko-area-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mariko-area-intro-text {
    width: 50%;
    display: flex;
    flex-direction: column;
}

#mariko-lottie-animation {
    width: 50%;
    height: 300px;
}

.mariko-area-card-title {
    font-family: "Source Sans 3", sans-serif;
    font-weight: bold;
    font-size: 26px;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 10px;
    width: 50%;
    display: inline-block;
}

.mariko-area-card-content {
    display: flex;
    gap: 25px; /* Tillräckligt avstånd mellan kort */
    width: 100%;
}

.mariko-area-card-desc {
    width: 50%;
    font-family: "Source Sans 3", sans-serif;
    font-weight: normal;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* Avstånd mellan knappar */
.mariko-area-tabs {
    display: flex;
    gap: 15px; /* Återställ avståndet till original */
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

/*----------------------------*/
/*  DENNA CSS ÄR SPECIFIK FÖR DEN KOD SOM FUNGERAR PÅ LITEN SKÄRM
/*----------------------------*/

@media screen and (max-width: 768px) {
    .mariko-area-intro {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .mariko-area-intro-text,
    .mariko-area-heading,
    .mariko-area-description {
        width: 100%;
    }

    #mariko-lottie-animation {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .mariko-area-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Fyller hela bredden */
        gap: 10px;
    }

    .typ-b-button {
        flex: 0 0 calc(50% - 10px); /* Två knappar per rad */
        margin-bottom: 10px;
    }

    .mariko-area-card-title {
        width: 100%;
    }

    .mariko-area-card-content {
        display: block; /* Ändrar från flex till block för att tillåta fullbredd */
    }

    .mariko-area-card-desc {
        width: 100%; /* Fullbredd för liten skärm */
        margin-bottom: 20px; /* Lägger till vertikalt avstånd mellan desc 1 och 2 */
    }

    .mariko-area-card-desc:last-child {
        margin-bottom: 0; /* Ingen margin för sista desc */
    }
}
