﻿body.index-page {
    background-image: url('/images/wielrennen.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.hero {
    height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem 3rem;
    border-radius: 10px;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.hero a.btn {
    padding: 0.6rem 1.5rem;
}

/* Tile grid */
.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 10px 20px 20px 20px;
    overflow: auto;
    align-content: flex-start;
    box-sizing: border-box;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

.tile, .tile-news {
    position: relative;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tile-header {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.tile-body {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .tile-body p {
        margin: 0 0 0.5rem 0;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.4;
        flex-shrink: 0;
    }

    .tile-body .btn {
        margin-top: auto;
        flex-shrink: 0;
    }
    .tile:hover {
        transform: scale(1.05);
    }
    .tile-footer {
        margin-top: auto;
    }

.participant-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0 0.5rem 0;
}

    .participant-count .bi {
        font-size: 1.4rem;
        color: #333;
    }

    .participant-count .label {
        font-size: 0.8rem;
        font-weight: 400;
        color: #333;
        margin-left: 0.25rem;
    }
    .news-message {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

.news-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* max 1 regel */
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.news-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #666;
}

/* Vlaggen in tiles */
.flag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}
.tile-news {
    background-color: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none; /* optioneel */
}

    .flag img {
        width: 100%;
        height: auto;
        display: block;
    }

.toggle-message {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}