/* This is carousel-styles.css */

/* This is the carousel card.
   We're making it look like your 'service2-inner' boxes. */
.carousel-item {
    padding: 10px; /* This is for the carousel's spacing */
    height: 100%; /* Make .carousel-item fill its wrapper */
}

.carousel-item a {
    display: block;
    text-decoration: none;
    background-color: #fff;
    /* This mimics your 'service2-inner' box shadow */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;

    /* --- Fix: Make card a flex column --- */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-item a:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* This is the image box */
.image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* This is the text area below the image */
.title-container {
    /* This padding mimics your 'service2-details' */
    padding: 25px 20px 20px;

    /* --- Fix: Make title area expand to fill empty space --- */
    flex-grow: 1;
}

/* This styles the title to match your 'service2-details h2' */
.carousel-item h3 {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif; /* Your site uses this font */
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.carousel-item a:hover h3 {
    /* You'll want to change this to your site's main hover color */
    color: #c00;
}

/* --- NEW: Full card fallback for no-image items --- */

/* 1. Style the new container */
.full-title-container {
    padding: 25px 20px;
    text-align: center;

    /* Make it fill the whole card */
    flex-grow: 1;

    /* Center the title vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Style the card link itself when it has no image */
.carousel-item a.no-image-card {
    /* Use your site's dark color */
    background-color: #333;
    /* The hover animation will be on the background */
    transition: all 0.3s ease-in-out;
}

/* 3. Style the title text inside the new card */
.carousel-item a.no-image-card h3 {
    color: #fff; /* White text */
    font-size: 18px; /* Make it a bit bigger */
}

/* 4. Add the hover animation */
.carousel-item a.no-image-card:hover {
    background-color: #c00; /* Your site's main hover color */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* The hover color change on the h3 is no longer needed for this card,
   but we'll override it just in case */
.carousel-item a.no-image-card:hover h3 {
    color: #fff;
}


/* --- Fix for equal height carousel cards (Slick container) --- */
/* This targets the carousel track from the Slick library */
.post-carousel .slick-track {
    display: flex;
}

/* This targets the slide wrapper from the Slick library */
.post-carousel .slick-slide {
    height: auto;
}

/* This targets the div inside the slide wrapper */
.post-carousel .slick-slide > div {
    height: 100%;
}