/* Visual Categories Section */
.visual-categories-section {
    padding: 60px 5%;
    background-color: #f9f9f9; /* Light grey background */
}

.visual-categories-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.visual-categories-section .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.visual-categories-section .section-heading h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
}

.visual-categories-section .section-heading p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.visual-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.visual-category-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.visual-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.visual-category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure link takes full card height */
}

.visual-category-image {
    width: 100%;
    height: 200px; /* Fixed height for images */
    overflow: hidden;
    background-color: #e9ecef; /* Placeholder background */
}

.visual-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures the image fills the space, cropping if necessary */
    transition: transform 0.3s ease;
}

.visual-category-card:hover .visual-category-image img {
    transform: scale(1.05);
}

.visual-category-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
}

.visual-category-image .image-placeholder i {
    font-size: 3rem;
    color: var(--text-color-light); /* Use theme variable */
}

.visual-category-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
}

.visual-category-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color); /* Brover dark blue */
    margin-top: 0;
    margin-bottom: 5px; /* Reduced margin-bottom */
}

.visual-category-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px; /* Existing margin */
    flex-grow: 1; /* Pushes button/badge to the bottom */
}

/* New styles for title wrapper and subtle count */
.title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 8px; /* Space below title and count */
}

.title-wrapper h3 {
    margin-bottom: 0; /* Remove bottom margin from h3 if it's inside wrapper */
    line-height: 1.2; /* Adjust line height if needed */
}

.vacancy-count-subtle {
    font-size: 0.8rem;
    color: #777;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px; /* Space from title */
    white-space: nowrap;
}

/* Styles for the new 'Bekijk vakgebied' button-like span */
.btn-view-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: auto; /* Pushes to bottom */
    transition: background-color 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-view-category i {
    margin-left: 5px;
}

.visual-category-card:hover .btn-view-category {
    background-color: var(--secondary-color); /* Darken on hover, or use a different theme color */
    border-color: var(--secondary-color);
}

/* Responsive adjustments for visual category cards */
@media (max-width: 768px) {
    .visual-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .visual-categories-section .section-heading h2 {
        font-size: 1.8rem;
    }
    .visual-categories-section .section-heading p {
        font-size: 1rem;
    }
    .visual-category-image {
        height: 180px;
    }
    .visual-category-content h3 {
        font-size: 1.2rem;
    }
    .visual-category-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .visual-categories-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }
    .visual-category-image {
        height: 160px;
    }
}
