/* مرجع برنج ایرانی — هاب راهنما */

.page-rice-hub #main > .container:first-child {
  display: none;
}

/* Hero */
.page-rice-hub .rice-hub-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 0.35rem;
  background: var(--brand-bright, #81B061);
}

.page-rice-hub .rice-hub-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 44%),
    radial-gradient(circle at 88% 78%, rgba(0, 0, 0, 0.1) 0%, transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.page-rice-hub .rice-hub-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0 1.85rem;
  color: #fff;
}

.page-rice-hub .rice-hub-hero-badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-rice-hub .rice-hub-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  color: #fff;
  line-height: 1.28;
}

.page-rice-hub .rice-hub-hero-lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  line-height: 1.85;
  opacity: 0.94;
}

.page-rice-hub .rice-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.page-rice-hub .rice-hub-hero-actions .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.page-rice-hub .rice-hub-hero-actions .btn-outline-light:hover {
  color: var(--brand-bright, #81B061);
  background: #fff;
  border-color: #fff;
}

/* Body */
.page-rice-hub .rice-hub-body {
  padding: 0 0 3rem;
}

/* Stats strip */
.page-rice-hub .rice-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -1.1rem 0 1.35rem;
  position: relative;
  z-index: 2;
}

.page-rice-hub .rice-hub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 78px;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line, #dfe8e2);
  background: var(--surface-strong, #fff);
  box-shadow: 0 8px 22px rgba(32, 40, 34, 0.06);
  text-align: center;
}

.page-rice-hub .rice-hub-stat strong {
  font-size: 1.15rem;
  color: var(--brand, #81B061);
  line-height: 1;
}

.page-rice-hub .rice-hub-stat strong .deliche-icon {
  color: var(--brand, #81B061);
}

.page-rice-hub .rice-hub-stat span {
  font-size: 0.78rem;
  color: var(--text-muted, #5c6560);
}

/* Intro card */
.page-rice-hub .rice-hub-intro-card {
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line, #dfe8e2);
  background: linear-gradient(135deg, #f4f9f1 0%, #fff 60%);
  box-shadow: 0 8px 24px rgba(32, 40, 34, 0.04);
}

.page-rice-hub .rice-hub-intro {
  margin: 0;
  line-height: 1.9;
  font-size: 0.95rem;
  color: var(--text, #1a1f1c);
}

/* Cluster nav pills */
.page-rice-hub .rice-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-rice-hub .rice-hub-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line, #dfe8e2);
  background: var(--surface-strong, #fff);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #1a1f1c);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.page-rice-hub .rice-hub-nav-link:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line) 55%);
  color: var(--brand, #81B061);
  box-shadow: 0 6px 18px rgba(32, 40, 34, 0.07);
}

.page-rice-hub .rice-hub-nav-link .deliche-icon {
  opacity: 0.85;
}

/* Cluster grid */
.page-rice-hub .rice-hub-clusters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.15rem;
  margin-bottom: 2.75rem;
}

.page-rice-hub .rice-hub-cluster {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line, #dfe8e2);
  background: var(--surface-strong, #fff);
  box-shadow: 0 10px 28px rgba(32, 40, 34, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-rice-hub .rice-hub-cluster:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line) 70%);
  box-shadow: 0 16px 36px rgba(32, 40, 34, 0.08);
}

.page-rice-hub .rice-hub-cluster-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.page-rice-hub .rice-hub-cluster-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8f2ea, #dce9df);
  color: var(--brand, #81B061);
}

.page-rice-hub .rice-hub-cluster-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.page-rice-hub .rice-hub-cluster-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted, #5c6560);
}

.page-rice-hub .rice-hub-links {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.page-rice-hub .rice-hub-links a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text, #1a1f1c);
  text-decoration: none;
  background: var(--surface, #f7faf8);
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-rice-hub .rice-hub-links a:hover {
  background: #eef5ef;
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line) 75%);
  color: var(--brand, #81B061);
}

.page-rice-hub .rice-hub-link-text {
  flex: 1;
}

.page-rice-hub .rice-hub-link-arrow {
  flex-shrink: 0;
  opacity: 0.45;
  font-size: 0.9rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-rice-hub .rice-hub-links a:hover .rice-hub-link-arrow {
  opacity: 1;
  transform: translateX(-2px);
}

.page-rice-hub .rice-hub-cluster-foot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line, #dfe8e2);
}

.page-rice-hub .rice-hub-kw {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.page-rice-hub .rice-hub-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted, #5c6560);
  background: #f3f6f4;
  border: 1px solid var(--line, #dfe8e2);
}

.page-rice-hub .rice-hub-cluster-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Section headings */
.page-rice-hub .rice-hub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.page-rice-hub .rice-hub-section-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.page-rice-hub .rice-hub-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand, #81B061);
  text-decoration: none;
}

.page-rice-hub .rice-hub-section-link:hover {
  text-decoration: underline;
}

/* Latest posts grid */
.page-rice-hub .rice-hub-latest {
  margin-bottom: 2.5rem;
}

.page-rice-hub .rice-hub-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.page-rice-hub .blog-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--line, #dfe8e2);
  background: var(--surface-strong, #fff);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(32, 40, 34, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-rice-hub .blog-post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line) 65%);
  box-shadow: 0 14px 32px rgba(32, 40, 34, 0.09);
}

.page-rice-hub .blog-post-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eef5ef, #dce9df);
}

.page-rice-hub .blog-post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.page-rice-hub .blog-post-card:hover .blog-post-card-img {
  transform: scale(1.04);
}

.page-rice-hub .blog-post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
  padding: 1rem 1rem 1.1rem;
}

.page-rice-hub .blog-post-card-date {
  font-size: 0.78rem;
  color: var(--text-muted, #5c6560);
}

.page-rice-hub .blog-post-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.page-rice-hub .blog-post-card-title a {
  color: var(--text, #1a1f1c);
  text-decoration: none;
}

.page-rice-hub .blog-post-card-title a:hover {
  color: var(--brand, #81B061);
}

.page-rice-hub .blog-post-card-excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted, #5c6560);
}

.page-rice-hub .blog-post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand, #81B061);
  text-decoration: none;
}

.page-rice-hub .blog-post-card-link:hover {
  text-decoration: underline;
}

/* FAQ */
.page-rice-hub .rice-hub-faq {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.page-rice-hub .rice-hub-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-rice-hub .rice-hub-faq-item {
  border: 1px solid var(--line, #dfe8e2);
  border-radius: 14px;
  background: var(--surface-strong, #fff);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(32, 40, 34, 0.03);
}

.page-rice-hub .rice-hub-faq-item summary {
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}

.page-rice-hub .rice-hub-faq-item summary::-webkit-details-marker {
  display: none;
}

.page-rice-hub .rice-hub-faq-item summary::after {
  content: "+";
  float: left;
  font-weight: 400;
  color: var(--brand, #81B061);
}

.page-rice-hub .rice-hub-faq-item[open] summary::after {
  content: "−";
}

.page-rice-hub .rice-hub-faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted, #5c6560);
}

/* Bottom CTA */
.page-rice-hub .rice-hub-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line) 75%);
  background: linear-gradient(135deg, #e8f2ea 0%, #fff 55%);
  box-shadow: 0 12px 32px rgba(32, 40, 34, 0.06);
}

.page-rice-hub .rice-hub-cta-body h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.page-rice-hub .rice-hub-cta-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted, #5c6560);
  max-width: 36rem;
}

.page-rice-hub .rice-hub-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 720px) {
  .page-rice-hub .rice-hub-stats {
    grid-template-columns: 1fr;
  }

  .page-rice-hub .rice-hub-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .page-rice-hub .rice-hub-nav-link {
    flex-shrink: 0;
  }

  .page-rice-hub .rice-hub-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .page-rice-hub .rice-hub-cta-actions {
    flex-direction: column;
  }

  .page-rice-hub .rice-hub-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.page-rice-hub .rice-hub-pillar {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-subtle, #e2ebe6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.page-rice-hub .rice-hub-pillar-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.page-rice-hub .rice-hub-pillar-head p {
  margin: 0 0 0.75rem;
  color: var(--text-muted, #5c6b62);
  font-size: 0.9rem;
}

.page-rice-hub .rice-hub-pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-rice-hub .rice-hub-pillar-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--surface-soft, #f4f7f5);
}

.page-rice-hub .rice-hub-pillar-index {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--brand-bright, #81b061);
  color: #fff;
}

@media (max-width: 480px) {
  .page-rice-hub .rice-hub-hero-inner {
    padding: 1.65rem 0 1.5rem;
  }

  .page-rice-hub .rice-hub-cluster {
    padding: 1rem;
  }
}
