.recipes-container {
    width: calc(100% - 80px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.recipe-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    width: 100%;
}

.recipe-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.recipe-image {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 10px;
}

.recipe-name {
    font-size: 1.4rem;
    padding: 0px;
    margin: 0px;
    text-align: center;
}

.recipe-description {
    padding: 10px;
    text-align: center;
    background-color: #fff;
    /* Continue the white background for the description */
    margin: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Recipe Details Styling */
.recipe-details-header {
    text-align: center;
    background-color: rgb(213 1 18);
}

.recipe-details-image {
    width: 100%;
    max-height: 280px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
}

.recipe-details-name {
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
}

.recipe-details-info {
    display: flex;
    justify-content: space-around;
}

.recipe-details-info p {
    font-size: 1rem;
    color: #333;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.recipe-details-ingredients {
    margin-bottom: 20px;
    background-color: #3048d8;
}

.recipe-details-steps {
    margin-bottom: 20px;
    background-color: #ff9e1a;
}

.recipe-details-ingredients h2,
.recipe-details-steps h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.recipe-details-ingredients ul,
.recipe-details-steps ol {
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.recipe-details-ingredients li,
.recipe-details-steps li {
    margin-bottom: 5px;
    display: block;
}


/* Optional: If you want numbers in the steps to be within circles */
.recipe-details-steps ol {
    list-style-type: none;
    counter-reset: step-counter;
}

.recipe-details-steps ol li {
    counter-increment: step-counter;
    position: relative;
    margin: 30px;
}

.recipe-details-steps ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: -35px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border: 1px solid #003366;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
}

.recipe-details-info i {
    font-size: 1.2rem;
    /* Adjust the size as needed */
    margin-right: 5px;
    /* Adds spacing between icon and text */
    vertical-align: -0.125em;
    /* Adjusts the alignment with the text */
    color: #003366;
    /* Sets the color; change as needed */
}
