/* ============================================================
   PreserveHarvest.com — Custom Styles
   Untuk affiliate box, disclosure, comparison table, verdict
   ============================================================ */

/* ---------- Affiliate Disclosure ---------- */
.affiliate-disclosure {
  background: #fff8e1;
  border-left: 4px solid #f0ad4e;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 0.9em;
  border-radius: 4px;
}
.affiliate-disclosure p { margin: 0; }

/* ---------- Affiliate Inline Link ---------- */
.affiliate-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* ---------- Affiliate Product Box ---------- */
.affiliate-box {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  background: #fafafa;
  position: relative;
}
.affiliate-box-title {
  margin: 8px 0 4px;
  font-size: 1.25em;
}
.affiliate-badge {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.affiliate-price {
  color: #555;
  font-size: 0.9em;
  margin: 4px 0;
}
.affiliate-bestfor {
  font-size: 0.95em;
  margin: 8px 0;
}
.affiliate-proscons {
  display: flex;
  gap: 20px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.affiliate-pros, .affiliate-cons {
  flex: 1;
  min-width: 200px;
}
.affiliate-pros ul, .affiliate-cons ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.affiliate-pros li, .affiliate-cons li {
  font-size: 0.9em;
  margin-bottom: 4px;
}
.affiliate-cta {
  display: inline-block;
  background: #ff9900;
  color: #111 !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none !important;
  margin-top: 12px;
  transition: background 0.2s;
}
.affiliate-cta:hover {
  background: #e88a00;
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9em;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}
.comparison-table th {
  background: #2e7d32;
  color: #fff;
  font-weight: 600;
}
.comparison-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* ---------- Verdict Box ---------- */
.verdict-box {
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
}
.verdict-box p { margin: 0; font-size: 1.05em; }

/* ---------- Enhanced Blockquote Styling ---------- */
blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: #f4fbf5;
  border-left: 5px solid #2e7d32;
  border-radius: 0 8px 8px 0;
  color: #243e28;
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.65;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.06);
}
blockquote p {
  margin: 0;
}
blockquote strong {
  color: #1b5e20;
  font-style: normal;
}

/* ---------- Error fallback ---------- */
.affiliate-error {
  color: #c00;
  font-weight: 700;
  background: #ffe6e6;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .affiliate-proscons { flex-direction: column; gap: 12px; }
  .comparison-table { font-size: 0.8em; }
  .comparison-table th, .comparison-table td { padding: 6px 8px; }
}

/* ============================================
   HOME HERO — PreserveHarvest
   ============================================ */

.home-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 40px;
  background-image: url('/images/hero-home.jpeg');
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
  90deg,
  rgba(0, 0, 0, 0.85) 0%,
  rgba(0, 0, 0, 0.60) 50%,
  rgba(0, 0, 0, 0.15) 100%
);
  z-index: 1;
}

/* KUNCI: wrapper konten — paksa block, bukan flex/grid */
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: block;              /* ← penting: paksa block */
  text-align: left;
}

/* Reset semua anak wrapper jadi block, bukan inline */
.home-hero-content > * {
  display: block;
  width: 100%;
  float: none;
}

.home-hero h1 {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
  padding: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.home-hero .hero-tagline {
  color: #e8d9a8 !important;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 18px 0;
  padding: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.home-hero .hero-intro {
  color: #f5f5f0 !important;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Fallback: kalau ada <p> tanpa class di dalam hero
   ============================================ */
.home-hero > p,
.home-hero > div > p:not([class]) {
  display: block;
  color: #f5f5f0 !important;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 14px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  max-width: 620px;
}

/* Mobile */
@media (max-width: 768px) {
  .home-hero {
    min-height: 440px;
    padding: 60px 20px;
    background-position: 65% 75%;
  }
  .home-hero::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.50) 0%,
      rgba(0, 0, 0, 0.82) 100%
    );
  }
  .home-hero h1 {
    font-size: 2rem;
  }
  .home-hero .hero-tagline {
    font-size: 1.05rem;
  }
}

.home-section-title {
  font-size: 1.4em;
  margin: 30px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2e7d32;
  color: #2e7d32;
}

/* Hub Directory */
.home-hubs {
  margin: 30px 0 40px;
}
.home-hubs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hub-card {
  display: block;
  padding: 24px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none !important;
  background: #fafafa;
  transition: all 0.2s ease;
  color: inherit !important;
}
.hub-card:hover {
  border-color: #2e7d32;
  background: #f0f7f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}
.hub-card__title {
  color: #2e7d32;
  margin: 0 0 8px;
  font-size: 1.25em;
}
.hub-card__desc {
  margin: 0;
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Recent Articles */
.home-recent {
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 700px) {
  .home-hubs__grid {
    grid-template-columns: 1fr;
  }
  .home-hero__title {
    font-size: 1.7em;
  }
}