/* ==========================================================================
   EcomHolistic Ecommerce Guides Hub Stylesheet
   Styles for: Hero, Guide Grid, CTA, Newsletter
   ========================================================================== */

/* --------------------------------------------------------------------------
   Artistic Botanical Section Dividers — matches homepage
   -------------------------------------------------------------------------- */
.eh-guides-trusted::before,
.eh-guides-grid-section::before,
.eh-guides-cta::before,
.eh-guides-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 3;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTIwMCAzMicgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMCAxNiBRNTAgMTQgMTAwIDE2IFExNTAgMTggMjAwIDE2IFEyNTAgMTMgMzAwIDE2IFEzNTAgMTkgNDAwIDE2IFE0NTAgMTMgNTAwIDE1IFE1NTAgMTcgNjAwIDE2IFE2NTAgMTUgNzAwIDE3IFE3NTAgMTkgODAwIDE2IFE4NTAgMTMgOTAwIDE2IFE5NTAgMTkgMTAwMCAxNiBRMTA1MCAxMyAxMTAwIDE2IFExMTUwIDE5IDEyMDAgMTYnIHN0cm9rZT0nIzZCOEY3MScgc3Ryb2tlLXdpZHRoPScxJyBvcGFjaXR5PScwLjIyJyBmaWxsPSdub25lJy8+PHBhdGggZD0nTTE4MCAxNiBRMTc1IDEwIDE4MiA3JyBzdHJva2U9JyM2QjhGNzEnIHN0cm9rZS13aWR0aD0nMC44JyBvcGFjaXR5PScwLjE4JyBmaWxsPSdub25lJyBzdHJva2UtbGluZWNhcD0ncm91bmQnLz48ZWxsaXBzZSBjeD0nMTg0JyBjeT0nNicgcng9JzQnIHJ5PScyJyBmaWxsPScjNkI4RjcxJyBvcGFjaXR5PScwLjE0JyB0cmFuc2Zvcm09J3JvdGF0ZSgzMCAxODQgNiknLz48ZWxsaXBzZSBjeD0nMzQwJyBjeT0nMTMnIHJ4PSc2JyByeT0nMi44Jy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ggNycgc3Ryb2tlPScjNkI4RjcxJyBzdHJva2Utd2lkdGg9JzAuOCcgb3BhY2l0eT0nMC4xNicgZmlsbD0nbm9uZScgc3Ryb2tlLWxpbmVjYXA9J3JvdW5kJy8+PGVsbGlwc2UgY3g9JzEwMTYnIGN5PSc2JyByeD0nNCcgcnk9JzInIGZpbGw9JyM2QjhGNzEnIG9wYWNpdHk9JzAuMTMnIHRyYW5zZm9ybT0ncm90YXRlKC0zMCAxMDE2IDYpJy8+PGNpcmNsZSBjeD0nNDYwJyBjeT0nMTQnIHI9JzInIGZpbGw9JyNGMkE2OTUnIG9wYWNpdHk9JzAuMTgnLz48Y2lyY2xlIGN4PSc3NDAnIGN5PScxNCcgcj0nMS44JyBmaWxsPScjRjJBNjk1JyBvcGFjaXR5PScwLjE1Jy8+PGNpcmNsZSBjeD0nMTEwMCcgY3k9JzE1JyByPScxLjUnIGZpbGw9JyNGMkE2OTUnIG9wYWNpdHk9JzAuMTInLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 32px;
  pointer-events: none;
}

.eh-guides-trusted,
.eh-guides-grid-section,
.eh-guides-cta,
.eh-guides-newsletter {
  position: relative;
}

/* --------------------------------------------------------------------------
   Section 1: Hero / Entity Definition
   -------------------------------------------------------------------------- */
.eh-guides-hero {
  padding: 160px 40px 60px;
  background-color: var(--eh-drip-cream);
}

.eh-guides-hero-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eh-guides-hero-content {
  text-align: left;
}

.eh-guides-hero h1 {
  font-family: var(--eh-font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.eh-guides-hero p {
  font-family: var(--eh-font-body);
  font-size: 17px;
  color: var(--eh-folk-mid);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 16px;
}

.eh-guides-hero p:last-child {
  margin-bottom: 0;
}

.eh-guides-hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.eh-guides-hero-illustration svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  animation: eh-hue-cycle 20s infinite linear;
}

/* --------------------------------------------------------------------------
   Trusted By Logo Strip — before blog grid
   -------------------------------------------------------------------------- */
.eh-guides-trusted {
  padding: 56px 40px;
  background-color: var(--eh-drip-cream);
}

.eh-guides-trusted-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.eh-guides-trusted-label {
  font-family: var(--eh-font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eh-folk-dark);
  opacity: 0.18;
  white-space: nowrap;
  flex-shrink: 0;
}

.eh-guides-trusted-sep {
  width: 1px;
  height: 20px;
  background: rgba(168, 162, 158, 0.2);
  flex-shrink: 0;
}

.eh-guides-trusted-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}

.eh-guides-trusted-logo {
  height: 18px;
  width: auto;
  color: var(--eh-folk-dark);
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

.eh-guides-trusted-logo:hover {
  opacity: 0.38;
}

.eh-guides-trusted-logo-nyt {
  height: 16px;
}

.eh-guides-trusted-logo-inc {
  height: 20px;
}

.eh-guides-trusted-logo-moz {
  height: 18px;
}

/* --------------------------------------------------------------------------
   Section 2: Guides Grid
   -------------------------------------------------------------------------- */
.eh-guides-grid-section {
  padding: 60px 40px 80px;
  background-color: var(--eh-drip-cream);
}

.eh-guides-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.eh-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* -- Guide Card -- */
.eh-guides-card {
  display: block;
  background: var(--eh-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eh-guides-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

/* -- Card Image -- */
.eh-guides-card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.eh-guides-card-image svg,
.eh-guides-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.eh-guides-card:hover .eh-guides-card-image svg,
.eh-guides-card:hover .eh-guides-card-image img {
  transform: scale(1.03);
}

/* -- Card Content -- */
.eh-guides-card-content {
  padding: 24px;
}

.eh-guides-card-date {
  display: block;
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  margin-bottom: 8px;
}

.eh-guides-card-title {
  font-family: var(--eh-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.eh-guides-card:hover .eh-guides-card-title {
  color: var(--eh-sage);
}

.eh-guides-card-excerpt {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: var(--eh-folk-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eh-guides-card-read {
  display: inline-block;
  font-family: var(--eh-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--eh-sage);
}

.eh-guides-card-read span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.eh-guides-card:hover .eh-guides-card-read span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.eh-guides-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.eh-guides-page-num,
.eh-guides-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--eh-folk-mid);
  text-decoration: none;
  background-color: transparent;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.eh-guides-page-num:hover,
.eh-guides-page-btn:hover {
  background-color: var(--eh-white);
  border-color: rgba(168, 162, 158, 0.2);
  color: var(--eh-folk-dark);
  text-decoration: none;
}

.eh-guides-page-active {
  background-color: var(--eh-sage);
  color: var(--eh-white);
  border-color: var(--eh-sage);
  font-weight: 600;
}

.eh-guides-page-active:hover {
  background-color: var(--eh-sage-hover);
  border-color: var(--eh-sage-hover);
  color: var(--eh-white);
}

.eh-guides-page-btn {
  color: var(--eh-folk-mid);
}

.eh-guides-page-btn[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

.eh-guides-page-btn svg {
  width: 16px;
  height: 16px;
}

.eh-guides-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  color: var(--eh-folk-mid);
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   Section 3: CTA — cream bg, matches homepage final-cta
   -------------------------------------------------------------------------- */
.eh-guides-cta {
  padding: 100px 40px;
  background-color: var(--eh-drip-cream);
  text-align: center;
  overflow: hidden;
}

.eh-guides-cta-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
}

.eh-guides-cta h2 {
  font-family: var(--eh-font-heading);
  font-size: 31px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.25;
  max-width: 600px;
  margin: 0 auto 20px;
}

.eh-guides-cta p {
  font-family: var(--eh-font-body);
  font-size: 17px;
  color: var(--eh-folk-mid);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 32px;
}

.eh-guides-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Section 4: Newsletter — cream bg, matches homepage newsletter
   -------------------------------------------------------------------------- */
.eh-guides-newsletter {
  padding: 100px 40px;
  background-color: var(--eh-drip-cream);
}

.eh-guides-newsletter-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  text-align: center;
}

.eh-guides-newsletter-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.eh-guides-newsletter-icon svg {
  width: 72px;
  height: 72px;
  animation: eh-hue-cycle 20s infinite linear;
  animation-delay: -5s;
}

.eh-guides-newsletter h2 {
  font-family: var(--eh-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto 16px;
}

.eh-guides-newsletter-inner > p {
  font-family: var(--eh-font-body);
  font-size: 16px;
  color: var(--eh-folk-mid);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* -- Newsletter Form -- */
.eh-guides-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
  align-items: stretch;
}

.eh-guides-newsletter-input {
  flex: 1;
  min-width: 0;
  background-color: var(--eh-white);
  border: 1.5px solid rgba(168, 162, 158, 0.3);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  color: var(--eh-folk-dark);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.eh-guides-newsletter-input::placeholder {
  color: var(--eh-folk-mid);
}

.eh-guides-newsletter-input:focus {
  border-color: var(--eh-sage);
}

.eh-guides-newsletter-btn {
  flex-shrink: 0;
  background-color: var(--eh-cta-primary);
  color: var(--eh-white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.eh-guides-newsletter-btn:hover {
  background-color: var(--eh-cta-primary-hover);
}

.eh-guides-newsletter-note {
  font-family: var(--eh-font-body);
  font-size: 12px;
  color: var(--eh-folk-mid);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.eh-guides-animate {
  opacity: 1;
  transform: none;
}

html.eh-js:not(.eh-inapp) .eh-guides-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.eh-guides-animate.eh-guides-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .eh-guides-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eh-guides-card-image svg,
  .eh-guides-card-image img,
  .eh-guides-card-read span,
  .eh-guides-card {
    transition: none;
  }

  .eh-guides-hero-illustration svg,
  .eh-guides-newsletter-icon svg {
    animation: none;
  }
}

/* ==========================================================================
   Responsive: Tablet (768-1199px)
   ========================================================================== */
@media (max-width: 1199px) {
  .eh-guides-hero {
    padding: 130px 24px 48px;
  }

  .eh-guides-hero-inner {
    gap: 40px;
  }

  .eh-guides-hero h1 {
    font-size: 36px;
  }

  .eh-guides-trusted {
    padding: 48px 24px;
  }

  .eh-guides-trusted-inner {
    flex-direction: column;
    gap: 16px;
  }

  .eh-guides-trusted-sep {
    display: none;
  }

  .eh-guides-trusted-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 24px;
  }

  .eh-guides-grid-section {
    padding: 48px 24px 64px;
  }

  .eh-guides-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .eh-guides-pagination {
    margin-top: 40px;
  }

  .eh-guides-cta {
    padding: 80px 24px;
  }

  .eh-guides-newsletter {
    padding: 80px 24px;
  }
}

/* ==========================================================================
   Responsive: Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .eh-guides-hero {
    padding: 110px 24px 40px;
  }

  .eh-guides-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .eh-guides-hero-content {
    text-align: center;
  }

  .eh-guides-hero p {
    max-width: none;
  }

  .eh-guides-hero-illustration svg {
    max-width: 360px;
  }

  .eh-guides-hero h1 {
    font-size: 30px;
  }

  .eh-guides-hero p {
    font-size: 16px;
  }

  .eh-guides-trusted {
    padding: 40px 24px;
  }

  .eh-guides-trusted-logos {
    gap: 20px 24px;
  }

  .eh-guides-trusted-logo {
    height: 16px;
  }

  .eh-guides-trusted-logo-nyt {
    height: 16px;
  }

  .eh-guides-trusted-logo-inc {
    height: 22px;
  }

  .eh-guides-trusted-logo-moz {
    height: 20px;
  }

  .eh-guides-grid-section {
    padding: 40px 24px 56px;
  }

  .eh-guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eh-guides-pagination {
    margin-top: 36px;
  }

  .eh-guides-page-num,
  .eh-guides-page-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .eh-guides-cta {
    padding: 56px 24px;
  }

  .eh-guides-cta h2 {
    font-size: 24px;
  }

  .eh-guides-cta p {
    font-size: 16px;
  }

  .eh-guides-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .eh-guides-newsletter {
    padding: 56px 24px;
  }

  .eh-guides-newsletter h2 {
    font-size: 24px;
  }

  .eh-guides-newsletter-form {
    flex-direction: column;
  }

  .eh-guides-newsletter-input,
  .eh-guides-newsletter-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Responsive: Small Mobile (< 480px)
   ========================================================================== */
@media (max-width: 479px) {
  .eh-guides-hero {
    padding: 100px 20px 32px;
  }

  .eh-guides-hero h1 {
    font-size: 26px;
  }

  .eh-guides-grid-section {
    padding: 32px 20px 48px;
  }

  .eh-guides-card-content {
    padding: 20px;
  }

  .eh-guides-card-image {
    height: 170px;
  }

  .eh-guides-cta {
    padding: 48px 20px;
  }

  .eh-guides-newsletter {
    padding: 48px 20px;
  }

  .eh-guides-newsletter h2 {
    font-size: 22px;
  }
}
