/* RecipeNexa Classic Food homepage */
.cf-home {
    --cf-primary: #639b0b;
    --cf-primary-dark: #477606;
    --cf-accent: #f2a12a;
    color: #333;
    background: #fff;
    padding: 24px 0 56px;
}
.cf-home *, .cf-home *::before, .cf-home *::after { box-sizing: border-box; }
.cf-home a { color: var(--cf-primary-dark); }
.cf-home-intro { margin-bottom: 24px; }
.cf-home-intro h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 36px); }
.cf-home-intro p { margin: 0; color: #666; }
.cf-home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; }
.cf-home-primary, .cf-home-sidebar { min-width: 0; }
.cf-section { margin-top: 30px; }
.cf-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 9px; margin-bottom: 16px; border-bottom: 3px solid var(--cf-primary); }
.cf-section-heading h2 { font-size: 22px; margin: 0; color: #333; }
.cf-section-heading > a { font-size: 13px; font-weight: 700; text-decoration: none; }
.cf-featured-card { position: relative; min-height: 270px; overflow: hidden; background: #f7f0e4; display: flex; align-items: end; }
.cf-featured-card > img { width: 100%; height: 330px; object-fit: cover; }
.cf-featured-copy { background: #fff; padding: 17px 20px; width: 100%; }
.cf-featured-card:has(> img) .cf-featured-copy { position: absolute; inset: auto 0 0; background: #fffffff2; }
.cf-featured-copy h3 { font-size: 24px; margin: 0 0 6px; }
.cf-featured-copy p { margin: 0 0 12px; }
.cf-action { display: inline-block; background: var(--cf-primary); color: #fff !important; text-decoration: none; padding: 9px 16px; font-size: 13px; font-weight: 700; border-radius: 3px; }
.cf-recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cf-recipe-card { min-width: 0; }
.cf-recipe-card > a { display: block; text-decoration: none; }
.cf-recipe-card img, .cf-image-placeholder { display: block; width: 100%; height: 138px; object-fit: cover; background: #eee9dd; }
.cf-image-placeholder { display: grid; place-items: center; color: #777; }
.cf-recipe-card h3 { font-size: 16px; line-height: 1.3; margin: 9px 0 6px; }
.cf-recipe-card p { color: #666; font-size: 13px; line-height: 1.55; }
.cf-weekly { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 18px; }
.cf-weekly img { display: block; width: 100%; height: 175px; object-fit: cover; }
.cf-weekly h3 { font-size: 21px; margin: 0 0 10px; }
.cf-weekly h3 a { text-decoration: none; }
.cf-weekly p, .cf-news-teaser { color: #666; line-height: 1.6; }
.cf-sidebar-block { border: 1px solid #e1e1e1; margin-bottom: 20px; }
.cf-sidebar-block h2 { margin: 0; padding: 12px 14px; color: #fff; background: var(--cf-primary); font-size: 17px; }
.cf-sidebar-block form { display: flex; padding: 13px; gap: 5px; }
.cf-sidebar-block input { min-width: 0; flex: 1; padding: 9px 7px; border: 1px solid #ccc; }
.cf-sidebar-block button { border: 0; background: var(--cf-primary); color: #fff; padding: 9px 10px; cursor: pointer; }
.cf-sidebar-block ul { padding: 11px 15px 11px 33px; margin: 0; }
.cf-sidebar-block li { margin: 8px 0; line-height: 1.4; font-size: 14px; }
.cf-sidebar-block li a { text-decoration: none; }
.cf-empty { padding: 18px; background: #f7f7f4; color: #666; }
@media (max-width: 970px) {
    .cf-home-columns { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
    .cf-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .cf-home-columns { grid-template-columns: minmax(0, 1fr); }
    .cf-home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
    .cf-sidebar-block { margin-bottom: 0; }
    .cf-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    .cf-home-sidebar, .cf-recipe-grid, .cf-weekly { grid-template-columns: minmax(0, 1fr); }
    .cf-featured-card > img { height: 245px; }
    .cf-section-heading h2 { font-size: 19px; }
}
