.joyful-cook-container {
    width: 100%; /* Fill the container width */
    max-width: 100%; /* Prevent overflow */
    text-align: center;
    padding: 15px;
    box-sizing: border-box; /* Include padding in width calculations */
}

.joyful-cook-image {
    position: relative;
    margin-bottom: 15px;
    width: 100%; /* Ensure the image takes full width */
    cursor:pointer;
}

.joyful-cook-image:hover{
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
    transform: translateY(-3px); /* Move the button up */
}

.joyful-cook-image .cook-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover; /* Ensures the image scales correctly */
}

.joyful-cook-image .image-tooltip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    display: none; /* Hidden by default */
}

.joyful-cook-image:hover .image-tooltip {
    display: block;

}

.joyful-cook-text {
    margin-bottom: 20px;
    width: 100%; /* Fill container */
}

.joyful-cook-text h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    word-wrap: break-word; /* Prevent overflow of long words */
}

.joyful-cook-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-sec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px; /* Adds space between buttons */
    width: 100%; /* Fill container */
}

.btn-sec div {
    flex: 1;
}

.learn-more-link {
    background-color: #f7b733;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    display: block;
    width: 100%; /* Ensure full width inside the button section */
    box-sizing: border-box;
}

.subscribe-btn {
    background-color: #06311a;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 100%; /* Ensure full width inside the button section */
    box-sizing: border-box;
}

/* Hover effects */
.learn-more-link:hover, .subscribe-btn:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
    transform: translateY(-3px); /* Move the button up */
    background-color: #ffad33; /* Slightly change the color for better feedback */
}


.subscribe-btn:hover {
    background-color: #021a0d;
}

/* Sidebar-specific responsiveness */
@media (min-width: 768px) {
    .joyful-cook-container {
        padding: 20px;
    }

    .btn-sec {
        gap: 20px; /* Slightly larger gap on larger screens */
    }

    .joyful-cook-text h2 {
        font-size: 24px;
    }

    .joyful-cook-text p {
        font-size: 16px;
    }
}
