/* ---------- FEATURE CARDS BLOCK ---------- */
.fc-block {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

/* Background Handling */
.fc-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.fc-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244, 245, 247, 0.85); /* Light overlay so text remains readable */
    z-index: 2;
}

.fc-container {
    position: relative;
    z-index: 3;
}

/* Header Area */
.fc-header-area {
    text-align: center;
    margin-bottom: 50px;
}

.fc-eyebrow {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 24px;
    margin-bottom: 20px;
    /* Slanted badge effect */
    transform: skewX(-15deg);
    border-radius: 2px;
}

/* Un-skew the text inside the slanted badge */
.fc-eyebrow::before {
    content: '';
    display: inline-block;
}

.fc-main-heading {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    margin: 0;
}

/* ---------- DYNAMIC GRID SYSTEM ---------- */
.fc-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

/* The Grid will automatically wrap to the next row based on these columns */
.fc-grid.cols-1 { grid-template-columns: 1fr; }
.fc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.fc-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.fc-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- CARD STYLING ---------- */
.fc-card {
    /* Background is now applied directly via inline style */
    border-radius: 8px;
    padding: 0; /* Padding moved to inner wrapper for hero images */
    text-align: center;
    text-decoration: none;
    color: inherit; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Clips the hero image to the card's border radius */
}

/* New Hero Image container */
.fc-card-hero {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Inner padding wrapper */
.fc-card-inner {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.fc-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit; 
}

.fc-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
}

.fc-card-desc p { margin-bottom: 10px; }
.fc-card-desc p:last-child { margin-bottom: 0; }

.fc-card:hover {
    /* Switched from background-color to background */
    background: var(--card-hover) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Responsive Grid Adjustments */
@media (max-width: 960px) {
    /* Step down to 2 columns for tablets if 3 or more */
    .fc-grid.cols-3, .fc-grid.cols-4, .fc-grid.cols-5, .fc-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* Single column on mobile */
    .fc-grid {
        grid-template-columns: 1fr !important;
    }
}