.featured-separator {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    margin-top: 100px; /* Adjust the margin to suit your layout */
    margin-bottom: 60px; /* Adjust as needed */
}

.featured-separator::after {
    content: "";
    display: block;
    width: 50%;
    margin: 5px auto 0;
    margin-top: 10px;
    border-bottom: 2px solid black;
}

.featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive layout */
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px; /* Set max width to prevent stretching */
    width: 100%; /* Make container fill available space */
    margin: 0 auto; /* Center container */
}
/* Featured Box Styling */
.featured-box {
    position: relative;
    width: 100%; /* Ensure it takes full width */
    max-width: 350px; /* Prevent it from stretching beyond max size */
    height: 286px;
    background: white;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 0;
    transition: color 0.3s ease-in-out;
}

.featured-box::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: black;
    transition: width 0.5s ease-in-out;
}

.featured-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: red;
    transition: width 0.5s ease-in-out;
}

.featured-box:hover::before {
    width: 0%;
}

.featured-box:hover::after {
    width: 100%;
}

.featured-box:hover {
    color: #e74c3c;
}

.featured-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #27ae60;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.featured-box:hover .discover-btn {
    opacity: 1;
}

.featured-box:hover .image-container img {
    opacity: 0.3;
}

.discover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.featured-content {
    padding: 15px;
}

.featured-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.featured-content p {
    font-size: 14px;
    color: #666;
}

.featured-box:hover .featured-content h3,
.featured-box:hover .featured-content p {
    color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .featured-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive layout */
        gap: 20px;
    }

    .featured-box {
        max-width: 100%; /* Full width */
        height: auto; /* Adjust height based on content */
        padding: 15px; /* Add padding for smaller screens */
    }

    .featured-label {
        font-size: 12px;
    }

    .text-separator {
        font-size: 18px;
    }

    .text-separator::after {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .featured-container {
        grid-template-columns: 1fr; /* Stack items in a single column */
        gap: 15px;
    }

    .featured-box {
        width: 100%; /* Full width */
        height: auto; /* Allow height to adjust */
        padding: 15px; /* More padding for smaller screens */
    }

    .featured-label {
        font-size: 12px;
    }

    .text-separator {
        font-size: 16px;
        margin-top: 20px;
    }

    .text-separator::after {
        width: 80%;
    }
}
