/* DailyRecipeFeed category page polish */
.recipe-category-container {
  padding-bottom: 42px;
}

.recipe-hero-category {
  background: #fff8f0;
  padding-bottom: 34px;
}

.recipe-hero-category .recipe-hero-panel {
  min-height: 430px;
  border: 1px solid #f0ded0;
  box-shadow: 0 18px 52px rgba(80, 48, 20, 0.10);
}

.recipe-hero-category .recipe-hero-copy h1,
.recipe-hero-category h1 {
  max-width: 520px;
  font-size: 48px;
}

.recipe-hero-category .recipe-hero-copy p {
  max-width: 500px;
}

.recipe-hero-category .recipe-hero-media img {
  object-fit: cover;
}

.recipe-category-page {
  color: #3a2418;
}

.recipe-category-share {
  margin: 18px 0 26px;
}

.recipe-category-share .recipe-share {
  justify-content: center;
  margin-top: 0;
}

.recipe-category-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 30px;
  padding: 30px;
  border: 1px solid #eee1d8;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf4 0%, #fff 58%, #fff7ed 100%);
  box-shadow: 0 14px 36px rgba(80, 48, 20, 0.07);
}

.recipe-category-intro h2,
.recipe-category-faq h2 {
  margin: 8px 0 12px;
  color: #2f1c12;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.recipe-category-intro p {
  margin: 0;
  color: #64564d;
  font-size: 16px;
  line-height: 1.72;
}

.recipe-category-intro ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-category-intro li {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #f0e2d8;
  border-radius: 999px;
  background: #fff;
  color: #55463e;
  font-size: 14px;
}

.recipe-category-intro li:last-child {
  margin-bottom: 0;
}

.recipe-category-intro li i {
  margin-right: 7px;
  color: #ff6b21;
}

.recipe-category-header {
  margin-top: 8px;
}

.recipe-category-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.recipe-category-main-column {
  min-width: 0;
}

.recipe-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.recipe-category-card-post {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.recipe-category-card-post:hover {
  transform: translateY(-3px);
  border-color: #ffb48c;
  box-shadow: 0 18px 38px rgba(80, 48, 20, 0.12);
}

.recipe-category-card-post .recipe-card-image {
  aspect-ratio: 1.18 / 1;
}

.recipe-category-card-post .recipe-card-image span {
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-category-card-post .recipe-card-body {
  padding: 18px;
}

.recipe-category-card-post .recipe-card-description {
  min-height: 72px;
  -webkit-line-clamp: 3;
}

.recipe-category-card-post .recipe-card-footer {
  flex-wrap: wrap;
  gap: 10px 14px;
}

.recipe-category-card-post .recipe-card-author {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #f2e4da;
}

.recipe-category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.recipe-category-sidebar .recipe-side-card {
  margin: 0;
  padding: 26px;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(80, 48, 20, 0.075);
}

.recipe-category-sidebar .recipe-welcome-card {
  background: linear-gradient(135deg, #fff9ee 0%, #fffdf7 100%);
}

.recipe-category-sidebar .recipe-side-card h3 {
  margin: 0 0 12px;
  color: #2f1c12;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.recipe-category-sidebar .recipe-side-card p {
  margin: 0 0 16px;
  color: #68584d;
  font-size: 14px;
  line-height: 1.62;
}

.recipe-category-sidebar .recipe-standards-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #5f5149;
  font-size: 14px;
  line-height: 1.75;
}

.recipe-category-sidebar .recipe-solid-btn,
.recipe-category-sidebar .recipe-full-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 8px;
  background: #72ad35;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.recipe-category-sidebar .recipe-full-btn {
  display: flex;
  width: 100%;
}

.recipe-category-sidebar .recipe-solid-btn:hover {
  background: #5f9829;
  text-decoration: none;
}

.recipe-category-sidebar .recipe-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-category-sidebar .recipe-popular-item {
  display: grid;
  grid-template-columns: 30px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #2f1c12;
  text-decoration: none;
}

.recipe-category-sidebar .recipe-popular-item span {
  color: #ff5b0f;
  font-size: 13px;
  font-weight: 800;
}

.recipe-category-sidebar .recipe-popular-item img {
  width: 62px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
}

.recipe-category-sidebar .recipe-popular-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #2f1c12;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recipe-category-sidebar .recipe-popular-item:hover strong {
  color: #ff5b0f;
}

.recipe-category-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 34px 0 8px;
}

.recipe-category-pagination .recipe-outline-btn {
  min-width: 138px;
}

.recipe-category-related {
  margin: 38px 0 14px;
  padding-top: 28px;
  border-top: 1px solid #eee1d8;
}

.recipe-category-related h3 {
  margin: 0 0 14px;
  color: #2f1c12;
  font-size: 30px;
  font-weight: 800;
}

.recipe-category-related div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-category-related a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #eadbd0;
  border-radius: 999px;
  background: #fff;
  color: #62554d;
  font-size: 13px;
  text-decoration: none;
}

.recipe-category-related a:hover {
  border-color: #ffb48c;
  color: #ff5b0f;
  text-decoration: none;
}

.recipe-category-faq {
  margin-top: 36px;
}

.recipe-category-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.recipe-category-faq-grid article,
.recipe-category-empty {
  padding: 24px;
  border: 1px solid #eee1d8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(80, 48, 20, 0.055);
}

.recipe-category-faq-grid h3,
.recipe-category-empty h3 {
  margin: 0 0 10px;
  color: #2f1c12;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.recipe-category-faq-grid p,
.recipe-category-empty p {
  margin: 0;
  color: #62554d;
  line-height: 1.68;
}

.recipe-category-empty {
  text-align: center;
}

.recipe-category-empty .recipe-solid-btn {
  margin-top: 18px;
}

@media (max-width: 1199px) {
  .recipe-category-main-layout {
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 24px;
  }

  .recipe-category-grid {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .recipe-category-intro,
  .recipe-category-main-layout,
  .recipe-category-faq-grid {
    grid-template-columns: 1fr;
  }

  .recipe-category-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .recipe-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .recipe-hero-category .recipe-hero-copy h1,
  .recipe-hero-category h1 {
    font-size: 34px;
  }

  .recipe-category-share .recipe-share {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .recipe-category-intro {
    padding: 22px;
  }

  .recipe-category-intro h2,
  .recipe-category-faq h2 {
    font-size: 28px;
  }

  .recipe-category-grid,
  .recipe-category-sidebar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .recipe-category-sidebar .recipe-side-card {
    padding: 22px;
  }

  .recipe-category-card-post .recipe-card-image {
    aspect-ratio: 1.25 / 1;
  }

  .recipe-category-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}
