/* Container styling */
.category-features-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.category-features-container .widget-title {
    margin-bottom: 20px;
    text-align: center;
}

/* Features container als flex/grid */
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Layout voor 1, 2 en 3 blokken */
.features-container.layout-1 .feature-box {
    flex: 0 0 600px;  /* Vaste breedte voor 1 blok */
    max-width: 100%;
    margin: 0 auto;
}
.features-container.layout-2 .feature-box {
    flex: 1 1 calc(50% - 20px);
}
.features-container.layout-3 .feature-box {
    flex: 1 1 calc(33.333% - 20px);
}

/* Feature box styling */
.feature-box {
    background: #f8f8f8;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
}

/* "Beste Score" badge */
.best-performance-badge {
    display: inline-block;
    background: gold;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Performance tabel styling */
.performance-table {
    width: 100%;
    margin-top: 10px;
}

/* Performance row: icon, label, sterren */
.performance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.performance-row .icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.performance-row .label {
    flex: 1;
    text-align: left;
    font-weight: bold;
}

/* Sterren styling met data-tooltip */
.stars {
    display: flex;
    gap: 2px;
    position: relative;
}

.star {
    display: inline-block;
    position: relative;
    cursor: pointer;
    color: #ddd;
    font-size: 18px;
    transition: color 0.2s;
}

.star.filled {
    color: gold;
}

/* Tooltip styling via ::after op basis van data-tooltip */
.star:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
}

/* Approved By & Tested By secties */
.approved-logos,
.tested-by-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.brand-logo img,
.tester-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.tester-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-size {
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 13px;
    color: #444;
    margin-top: 5px;
}

.test-year {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

/* Responsieve aanpassingen */
@media (max-width: 1024px) {
    /* Bij 3 blokken → 2 kolommen op tablet */
    .features-container.layout-3 .feature-box {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    /* Op mobiel: alle blokken full width */
    .features-container.layout-3 .feature-box,
    .features-container.layout-2 .feature-box,
    .features-container.layout-1 .feature-box {
        flex: 1 1 100%;
    }
    .brand-logo img,
    .tester-logo img {
        width: 50px;
        height: 50px;
    }
    .test-size, .test-year {
        font-size: 11px;
    }
}
