.dream-hero {
  padding: 2rem 0;
}

.dream-hero__inner {
  max-width: 760px;
}

.dream-hero .section-title {
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.dream-hero .section-subtitle {
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dream-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  color: #334155;
}

.dream-hero__meta strong {
  color: #0f172a;
}

.dream-search {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dream-search input[type="search"] {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  background: #fff;
}

.dream-search button {
  background: #facc15;
  color: #1f2937;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.dream-search button:hover {
  transform: translateY(-1px);
}

.dream-search input[type="search"]:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.dream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dream-pill--brand {
  background: rgba(250, 204, 21, 0.25);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.dream-pill--light {
  background: #eef2ff;
  color: #312e81;
}

.dream-pill--ghost {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.25);
  text-decoration: none;
}

.dream-pill--ghost:hover {
  background: rgba(99, 102, 241, 0.18);
}

.dream-categories {
  padding: 1.5rem 0;
}

.dream-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dream-category-list a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dream-category-list a.is-active,
.dream-category-list a:hover {
  background: #1d4ed8;
  color: #fff;
}


.dream-grid-section {
  padding: 1.5rem 0 0;
}

.dream-layout {
  display: grid;
  gap: 2.2rem;
}

.dream-featured {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 2rem;
}

.dream-featured__thumb {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.dream-featured__thumb img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.dream-featured__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.dream-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #64748b;
  align-items: center;
}

.dream-featured__date i {
  margin-right: 0.35rem;
}

.dream-featured__title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.25;
  color: #0f172a;
}

.dream-featured__title a {
  color: inherit;
  text-decoration: none;
}

.dream-featured__title a:hover {
  color: #1d4ed8;
}

.dream-featured__summary {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  max-width: 760px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .dream-featured {
    gap: 1.1rem;
  }

  .dream-featured__title {
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .dream-featured {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 980px) {
  .dream-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.dream-grid {
  display: grid;
  gap: 1.5rem;
}

.dream-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.dream-card--no-thumb {
  background: none;
}

@media (min-width: 700px) {
  .dream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1140px) {
  .dream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.dream-card {
  background: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.dream-card:first-child {
  padding-top: 0;
}

.dream-card:last-child {
  border-bottom: none;
}

.dream-card--row {
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
}

.dream-card--row.dream-card--no-thumb {
  background: none;
}

.dream-card--no-thumb .dream-card__body {
  padding-left: 0;
}

.dream-card--row .dream-card__body {
  padding: 0;
  gap: 0.7rem;
}

.dream-card--row .dream-card__thumb {
  flex: 0 0 160px;
  border-radius: 14px;
  overflow: hidden;
  align-self: stretch;
}

.dream-card--row .dream-card__thumb img {
  height: 100%;
  min-height: 140px;
}

@media (max-width: 640px) {
  .dream-card--row {
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
  }

  .dream-card--row .dream-card__thumb {
    flex: none;
    width: 100%;
    border-radius: 12px;
  }

  .dream-card--row .dream-card__thumb img {
    height: 200px;
  }
}

.dream-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}


.dream-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dream-card__meta {
  display: flex;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #6b7280;
  flex-wrap: wrap;
  align-items: center;
}

.dream-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.dream-card__body h3 a {
  color: #1f2937;
  text-decoration: none;
}

.dream-card__body h3 a:hover {
  color: #1d4ed8;
}

.dream-card__body p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.dream-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.6;
}

.dream-card__date i {
  margin-right: 0.35rem;
}

.dream-card__footer {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  justify-content: flex-start;
}

.dream-featured__cta,
.dream-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dream-featured__cta:hover,
.dream-card__cta:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}

.dream-featured__cta {
  align-self: flex-start;
}

.dream-card__tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.dream-card__tags span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.75rem;
}

.dream-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.dream-pagination a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.dream-pagination .is-disabled {
  color: #9ca3af;
}

.dream-sidebar .dream-widget {
  background: none;
  border-radius: 0;
  padding: 0 0 1.75rem;
  box-shadow: none;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.dream-sidebar .dream-widget:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.dream-widget h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.dream-widget__note {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.dream-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dream-widget__list li {
  list-style: none;
}

.dream-widget__list li a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
}

.dream-widget__list li a:hover {
  color: #1d4ed8;
}

.dream-widget__list time {
  display: block;
  color: #9ca3af;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.dream-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dream-widget--highlight {
  background: none;
  border: none;
}

.dream-widget--categories ul {
  gap: 0.4rem;
}

.dream-category-widget {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dream-category-widget__link {
  display: block;
  padding: 0.45rem 0;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dream-category-widget li:last-child .dream-category-widget__link {
  border-bottom: none;
}

.dream-category-widget__link:hover {
  color: #1d4ed8;
}

.dream-category-widget__link.is-active {
  color: #1d4ed8;
  font-weight: 600;
}

.dream-widget li a {
  color: #1f2937;
  text-decoration: none;
}

.dream-widget time {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
}

.dream-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dream-tag-cloud a {
  background: #f3f4f6;
  color: #1f2937;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.dream-article-shell {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.dream-article__head {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 1.75rem;
}

@media (min-width: 1100px) {
  .dream-article-shell {
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    align-items: start;
  }

  .dream-aside {
    position: sticky;
    top: 7rem;
  }
}

.dream-article__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.dream-breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.dream-breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
}

.dream-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.dream-article__meta i {
  margin-right: 0.4rem;
  color: #4338ca;
}

.dream-article__hero img {
  width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
}

.dream-article__summary {
  background: none;
  padding: 0 0 1.5rem;
  border-radius: 0;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-left: 4px solid #facc15;
  padding-left: 1rem;
}

.dream-article__summary i {
  font-size: 1.2rem;
  color: #facc15;
  margin-top: 0.15rem;
}

.dream-article__summary p {
  margin: 0;
}

.dream-article__body {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.dream-article__body p {
  line-height: 1.75;
  margin: 0 0 1rem;
  color: #1f2937;
}

.dream-article__body h2,
.dream-article__body h3 {
  margin-top: 2rem;
}

.dream-article__symbols-note {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.dream-symbol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dream-symbol-list span {
  background: #fef3c7;
  color: #92400e;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 500;
}

.dream-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dream-section-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.dream-related .dream-grid {
  margin-top: 1.25rem;
}

.dream-empty {
  background: #fff7ed;
  border-radius: 16px;
  padding: 1.5rem;
  color: #92400e;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dream-empty i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.dream-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.dream-grid--compact .dream-card__body {
  gap: 0.5rem;
}

.dream-grid--compact .dream-card__body p {
  font-size: 0.9rem;
}

.dream-grid--compact .dream-card__thumb img {
  height: 140px;
}
