/* Global stil */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #222222;
}

p {
    margin: 0 0 1rem;
}

/* Container / innehållsbredder */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Bilder med samma storlek */
img.same-size {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Kortsektion eller hero-block */
.hero-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Text-overlay över bild */
.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: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    padding: 3rem;
    box-sizing: border-box;
}

.hero-block .text-overlay h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero-block .text-overlay p {
    font-size: 1.25rem;
    max-width: 800px;
}

/* Responsiv för mindre skärmar */
@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: 1rem;
    }
}

/* Sektioner för kurs, medlem, prova-på etc */
.section-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-card .section-image {
    flex: 1;
}

.section-card .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-card .section-content h3 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

.section-card .section-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.section-card .section-content a.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0056b3;          /* Anpassa färg */
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

.section-card .section-content a.btn:hover {
    background: #004494;
}

/* Gör så att bilderna i sektionerna får samma höjd (t.ex. 400px) */
.section-card .section-image img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Lista med nyheter */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-list li h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-list li p.meta {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 0.75rem;
}
