/* Universal Page Margins */
.recipe-split-row, 
.grid-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 40px; /* Side Gaps */
}

.section-title-main {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px;
}
.section-title-main,
.grid-section h2 {
    font-size: 22px; /* cleaner than default big h2 */
}

.recipes-hero {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
}

.hero-title {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 16px;
    color: #333;
}

.hero-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 30px;
}

.recipe-search-bar input {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.recipe-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.recipe-cat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    transition: 0.2s ease;
}

.recipe-cat-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.recipe-cat-card .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.recipe-cat-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}
.recipe-card h4 {
    font-size: 14px !important;
}
.recipe-grid .roundup-card h4 {
    font-size: 14px !important;
    line-height: 1.3;
}
.split-col-img img {
    height: 400px; /* was 500px */
}
.recipe-cat-card .recipe-icon {
    width: 28px;
    height: 28px;
    display: block;
    margin: 0 auto;
    color: #111; /* controls icon color */
}
.recipe-cat-card .recipe-icon {
    width: 28px;
    height: 28px;
    display: block;
    margin: 0 auto 10px;
    fill: #111; /* controls icon color */
    opacity: 0.9;
}

.recipe-cat-card:hover .recipe-icon {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.2s ease;
}
.recipe-cat-card:hover .recipe-icon {
    color: #000;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.recipe-cat-card p {
    font-size: 12px;
    color: #777;
}
.recipe-cat-card .icon svg {
    stroke: #111;
    opacity: 0.85;
}

.recipe-cat-card:hover .icon svg {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.2s ease;
}
.recipe-split-row, 
.grid-section {
    margin: 40px auto; /* was 50px */
}

.section-title-main {
    margin: 30px auto 0;
}
/* Responsive */
@media (max-width: 1024px) {
    .recipe-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .recipe-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Requirement 8: 2x2 Square Collage */
.collage-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px; /* Little gap between images */
    aspect-ratio: 1/1;
    margin-bottom: 15px;
}

.collage-2x2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Requirement 3: Block Buttons */
.btn-block-action {
    display: block;
    width: 100%;
    background: #000;
    color: #fff !important;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.btn-outer-container {
    max-width: 350px;
    margin: 20px auto 0;
}

/* Split Column Layouts */
.recipe-split-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.split-col-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* Grid Logic */
.recipe-grid { display: grid; gap: 25px; }
.three-col { grid-template-columns: repeat(3, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }
.six-col { grid-template-columns: repeat(6, 1fr); }

.recipe-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.card-desc { font-size: 0.9rem; color: #666; margin: 5px 0; }
.recipe-count-label { font-weight: bold; font-size: 0.85rem; color: #333; }

/* Meta Info Icons */
.meta-row { display: flex; gap: 20px; margin: 15px 0; font-weight: 600; }
.meta-row i { margin-right: 5px; color: #000; }

/* Mobile View */
@media (max-width: 768px) {
    .recipe-split-row, .four-col, .six-col, .three-col { grid-template-columns: 1fr; }
    .recipe-split-row { gap: 20px; }
    .split-col-img img { height: 300px; }
}