/* Grote afbeelding met tekst */

.hero-image{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../../images/EHBO_ver_weg.jpg);
    height: 70vh;
    background-position: center;
    background-repeat:  no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    margin-top: 20px;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 14px 32px;

    background-color: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);

    /* Semi-transparante overlay */
    /*background-color: rgba(0, 128, 255, 0.35);  /* Blauw, maar subtiel en modern */

    /* Witte tekst past bovenop foto */
    color: white;
    text-decoration: none;

    /* Stijl */
    /*border: 1px solid rgba(255, 255, 255, 0.4); /* subtiel randje */
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;

    /* Animatie */
    transition: all 0.25s ease;
}

.hero-btn:hover {
    background-color: rgba(0, 128, 255, 0.55); /* iets minder transparant */
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Grid */
.home-content {
    display: grid;
    grid-template-columns: 3fr 2fr; 
    width: 100%;
    padding: 10px;
    text-align: left;
}

.intro-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.news-section{
    background-color: #f2f2f2;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.news-section h2{
    margin-top: 0;
}

.news-list {
    overflow-y: auto; /* Maakt het scrollable */
    padding-right: 10px;
}

.news-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.news-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.news-item h4{
    color: #0080ff;
}

.news-item p {
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-size: 0.95em;
}

.news-item ul {
    margin: 10px 20px 10px 16px;
    padding: 0;
    font-size: 0.9em;
}

.news-item li {
    margin: 0 10px 0 0;
    margin-bottom: 4px;
}

.news-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
    display: block;
    object-fit: cover;
}

.news-item a {
    color: #0080ff;
    font-weight: 500;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-date {
    font-size: 0.8em;
    color: #666
}

/* The wrapper allows us to position the overlay relative to the image */
.news-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden; /* important so the overlay clips nicely */
    margin-bottom: 5px;
}

/* The image stays normally */
.news-image-wrapper img {
    width: 100%;
    height: 180px;       /* Compact card height */
    object-fit: cover;   /* Prevents distortion */
    display: block;
}

/* The overlay text banner */
.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    /* background that sits 'in front' of the image */
    background: rgba(0, 0, 0, 0.55);

    padding: 10px;
    box-sizing: border-box;
}

.news-overlay p {
    color: white;
    margin: 0;
    font-size: 0.9em;
}

/* RESPONSIVENESS VOOR OP MOBIEL */
/* Mobile breakpoint */
@media (max-width: 768px) {
    

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 90%;
        margin: 0 auto;
        text-align: center;
        font-size: 1rem;
        padding: 12px 20px;
    }

    .footer-cont {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .news-section {
        height: auto; /* vaste 500px eraf op mobiel */
    }
}

@media (max-width: 500px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
}