/* Main Section Container */
.int-recipes-section {
    width: 100%;
    padding: 0;
    text-align: center;
}


/* Recipe Cards Container */
.int-recipes-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Individual Card Wrapper */
.int-recipe-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 570px;
    margin-bottom: 30px;
}

/* The Tilted Image Container */
.int-card-image-wrapper {
    position: relative;
    z-index: 2;
    /* Sits on top of the text box */
    flex-shrink: 0;
    width: 240px;
    height: 240px;
    transform: rotate(-3deg);
    /* The slight tilt */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    /* White border like a photo */
    overflow: hidden;
    background-color: #ddd;
    transition: transform 0.3s ease;
}

.int-card-image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.int-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The Text Content Box */
.int-card-content {
    background-color: #faebd7;
    /* Slightly darker beige/antique white */
    padding: 30px 30px 30px 85px;
    /* Extra left padding to accommodate overlap */
    margin-left: -50px;
    /* Pulls the box behind the image */
    position: relative;
    z-index: 1;
    flex-grow: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Creating the serrated/jagged edge on the right */
    --tooth-width: 10px;
    --tooth-height: 10px;

    /* We use a mask or simple radial gradient trick for the jagged edge. 
       Here is a radial gradient approach for a scalloped edge, 
       or linear gradient for jagged. Let's do jagged. */
    background-image:
        linear-gradient(135deg, transparent 75%, #faebd7 75%),
        linear-gradient(45deg, #faebd7 25%, transparent 25%);
    /* This is complex to do purely with bg gradients on the main element content-box.
       Let's stick to a clean solid box for compatibility and use a pseudo-element for the edge. */
    background: #faebd7;
}

/* Serrated Edge using pseudo-element */
.int-card-content::after {
    content: "";
    position: absolute;
    right: -10px;
    /* Push it outside the box */
    top: 0;
    width: 10px;
    height: 100%;
    background-image:
        linear-gradient(45deg, #faebd7 50%, transparent 50%),
        linear-gradient(135deg, #faebd7 50%, transparent 50%);
    background-size: 10px 20px;
    /* Width 10px, Height 20px (10px up, 10px down) */
    background-repeat: repeat-y;
}

.int-card-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: #d32f2f;
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.int-card-link:hover {
    color: #b71c1c;
}

.int-card-content a.view-collection-btn {
    font-size: 20px;
    text-decoration: underline;
    display: inline-block;
    font-family: 'Bayon';
    letter-spacing: 1px;
    font-weight: 700;
}

h3.int-card-title.category-title {
    margin: 0;
    padding-bottom: 8px;
    font-size: 32px;
}

a.view-collection-btn:hover {
    color: #b01f21;
    border-bottom-color: transparent;
}

h3.category-title.has-subtitle {
    margin-bottom: 0;
}

span.category-subtitle {
    display: inline-flex !important;
    padding-bottom: 4%;
    font-size: 14px;
    color: #525252;
}

h3.category-title.has-subtitle {color: #d73135 !important;}

.int-card-content.has-subtitle p.category-description {
    -webkit-box-orient: unset;
}

.int-card-content.has-subtitle {
    padding: 20px 10px 20px 75px;
}

article.int-recipe-card.has-subtitle {
    max-width: 650px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .int-card-image-wrapper {
        width: 180px;
        height: 180px;
    }

    h3.int-card-title.category-title {
        margin: 0;
        padding-bottom: 8px;
        font-size: 20px;
    }

    .int-recipes-grid {
        gap: 30px;
    }

    .int-card-content a.view-collection-btn {
        font-size: 18px;
    }

    .int-card-content {
        min-height: 150px;
        padding: 15px 30px 15px 85px;
    }
    .int-recipe-card {
        margin-bottom: 30px;
    }
    .int-card-content .category-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 450px) {
    .int-card-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .int-recipes-grid {
        gap: 20px;
    }

    .category-description {
        font-size: 12px;
        margin-bottom: 15px;
    }

    h3.int-card-title.category-title {
        margin: 0;
        padding-bottom: 4px;
        font-size: 18px;
    }

    .int-card-content a.view-collection-btn {
        font-size: 16px;
    }

    .int-card-content {
        min-height: 130px;
        padding: 15px 20px 15px 80px;
    }
}