/* ============================
   RDB Home – basis layout
   ============================ */

.rdb-home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* HERO */

.rdb-hero {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: #faf5ef;
  border: 1px solid rgba(74,53,35,0.12);
  margin-bottom: 2.5rem;
}

.rdb-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
  color: #4A3523;
}

.rdb-hero-text {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48rem;
  margin-bottom: 1.3rem;
}

/* SECTIES */

.rdb-section {
  margin-bottom: 3rem;
}

.rdb-section-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: #4A3523;
}

.rdb-section-intro {
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

/* GRID / CARDS */

.rdb-grid {
  display: grid;
  gap: 1.4rem;
}

.rdb-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .rdb-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .rdb-grid-3 {
    grid-template-columns: 1fr;
  }
}

.rdb-card {
  padding: 1.2rem 1.2rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(74,53,35,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.rdb-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #4A3523;
}

.rdb-card-text {
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

/* POSTS GRID */

.rdb-grid-posts {
  display: grid;
  gap: 1.4rem;
}

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

.rdb-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(74,53,35,0.12);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.rdb-post-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.rdb-post-body {
  padding: 0.9rem 1rem 1rem;
}

.rdb-post-title {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.rdb-post-title a {
  text-decoration: none;
  color: #4A3523;
}

.rdb-post-title a:hover {
  color: #2F6F82;
}

.rdb-post-date {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.45rem;
}

.rdb-post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

/* BUTTONS */

.rdb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.rdb-btn-primary {
  padding: 0.7rem 1.6rem;
  background: #E4ECEE;
  color: #8c8c32;
  border: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rdb-btn-primary:hover {
  background: #C87A4A;
  color: #FAF5EF;
}

.rdb-btn-link {
  padding: 0;
  color: #2F6F82;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rdb-btn-link:hover {
  color: #C87A4A;
}

.rdb-btn-ghost {
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(47,111,130,0.4);
  background: #ffffff;
  color: #2F6F82;
}

.rdb-btn-ghost:hover {
  background: #2F6F82;
  color: #FAF5EF;
}

/* RESPONSIVE HERO */

@media (max-width: 640px) {
  .rdb-home {
    padding-inline: 1rem;
  }
  .rdb-hero {
    padding: 1.6rem 1.2rem;
  }
}
