/* Global stil */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

img.same-size {
    width: 100%;
    height: 600px;
    display: block;
    object-fit: cover;
}

.hero-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-block .text-overlay {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: left;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    padding: 3rem;
    box-sizing: border-box;
    letter-spacing: 1px;
    line-height: 30px;
    text-indent: initial;

}

.hero-block .text-overlay .content-wrapper {
    max-width: 600px;           /* control the width of the text area */
    width: 100%;
    margin-right: 5%;           /* create right margin from edge */
}

.hero-block .text-overlay p {
    font-size: 1.25rem;
    max-width: 800px;
}

.hero-buttons {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-member {
    padding: 0.35rem 5rem !important;
}

.btn-login {
    padding: 0.35rem 5rem !important;
}

@media (max-width: 768px) {
    .hero-block .text-overlay {
        padding: 1.5rem;
    }
    .hero-block .text-overlay h2 {
        font-size: 1.75rem;
    }
    .hero-block .text-overlay p {
        font-size: 1.1rem;
        text-align: center;
        line-height: 25px;
    }
    
    .hero-block .hero-buttons{
        height: auto;
        width: auto;
        line-height: 20px;
    }

    .section-card {
        display: flex !important;
        flex-direction: column !important;       
        align-items: center !important;     
    }

    .section-card .section-image,
    .section-card .section-content {
        width: 100%;                  
    }

    .section-card .section-content {
        align-items: center;
        font-size: 1.0rem !important;
        text-align: left;
    }

    .section-card .section-content a.btn {
        width: auto;                 
        max-width: 300px;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .section-card .headline{
        font-size: 1.40rem;
        font-weight: bold;
        text-align: center;
    }

    .section-card .section-image img {
        width: 100%;                 
        height: auto;
        object-fit: cover;
    }
}

.headline{
    font-size: 2.1rem;
    font-weight: bold;
    text-align: start;
}

/* Sektioner för kurs, medlem, prova-på etc */
.section-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 8rem;
}

.section-card .section-image {
    flex: 1;
}

.section-card .section-content {
    flex: 1;
    display: flex;
    gap: 2.2rem;
    flex-direction: column;
    justify-content: center;
    font-size: 1.10rem;
}

.section-card .section-content a.btn {
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    padding: 0.8rem 1.5rem;
    transition: background 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 200px;
}


.section-card .section-image img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    display: block;
}


.containerStart {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

