/* Section Headers */
.main-category-sec-subtitle {
    color: #f5a623;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-category-sec-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    /* Increased margin to give room for buttons */
}

/* Card Container */
.main-category-sec-card {
    position: relative;
    /* Removed overflow: hidden so the button can hang off the edge */
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    /* Extra space for the floating label */
}

/* Image Styling */
.main-category-sec-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    /* Added radius here since card overflow is gone */
    transition: transform 0.4s ease;
}

/* .main-category-sec-card:hover .main-category-sec-img {
        transform: scale(1.02);
    } */

/* Button/Label Styling (Modified for image_4d1883.jpg style) */
.main-category-sec-label {
    position: absolute;
    bottom: -15px;
    /* Positions it partially overlapping the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    /* Centers the button horizontally */
    width: 85%;
    /* Narrower than the image */
    background-color: #f58220;
    /* Vibrant orange from image */
    color: #000;
    /* Black text as seen in reference */
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 10px;
    text-transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
}

.main-category-sec-card:hover .main-category-sec-label {
    background-color: #e67610;
    bottom: -12px;
    /* Subtle lift effect on hover */
}

/* Responsive image heights & button adjustments */
@media (max-width: 575px) {
    .main-category-sec-img {
        height: 200px;
    }

    .main-category-sec-title {
        font-size: 1.5rem;
    }

    .main-category-sec-label {
        width: 90%;
        font-size: 13px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .main-category-sec-img {
        height: 180px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .main-category-sec-img {
        height: 200px;
    }
}

@media (min-width: 992px) {
    .main-category-sec-img {
        height: 230px;
    }
}
