/* Shared guide/article layout for Amrev product guides */

.guides-hero-modern {
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-10);
}

.guides-hero-content {
  max-width: 940px;
}

.guides-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.guides-breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
}

.guides-breadcrumb span {
  color: var(--color-text-light);
}

.guides-hero-modern h1 {
  color: var(--color-text-base);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  max-width: 880px;
  margin-bottom: var(--space-5);
}

.guides-hero-modern p,
.small-text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin: 0 0 var(--space-4);
}

.guides-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.guides-meta span:not(.dot) {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  box-shadow: var(--shadow-sm);
}

.guides-meta .dot {
  display: none;
}

.guides-wrapper {
  background: var(--color-surface);
  padding: var(--space-12) 0;
}

.guides-wrapper .row {
  justify-content: flex-start;
}

.guides-wrapper .col-md-9 {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.guides-wrapper p,
.guides-wrapper li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

.guides-wrapper p {
  margin-bottom: var(--space-4);
}

.guides-wrapper h1 {
  color: var(--color-text-base);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.25;
}

.guides-wrapper h2 {
  color: var(--color-text-base) !important;
  font-size: var(--text-2xl) !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  margin: var(--space-8) 0 var(--space-4) !important;
}

.guides-wrapper h3 {
  color: var(--color-text-base) !important;
  font-size: var(--text-xl) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: var(--space-6) 0 var(--space-3) !important;
}

.guides-wrapper hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-7) 0;
  opacity: 1;
}

.guides-wrapper ul,
.guides-wrapper ol {
  margin: 0 0 var(--space-5);
}

.guides-wrapper ul {
  list-style: none;
  padding-left: 0;
}

.guides-wrapper ul li {
  position: relative;
  padding-left: var(--space-6);
}

.guides-wrapper ul li::before {
  content: '\f00c';
  position: absolute;
  left: 0;
  top: 0.18rem;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-success);
  font-size: var(--text-xs);
}

.guides-wrapper ol {
  padding-left: var(--space-8) !important;
}

.guides-wrapper ol li {
  padding-left: var(--space-1);
}

.guides-wrapper li {
  margin-bottom: var(--space-2);
}

.guides-wrapper a {
  color: var(--color-primary);
  font-weight: 600;
}

.guides-wrapper a:hover {
  color: var(--color-primary-dark);
}

.guides-wrapper img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.guides-cta {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-7) 0;
  box-shadow: var(--shadow-sm);
}

.guides-cta p,
.cta-heading {
  color: var(--color-text-base);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.cta-note,
.cta-trust {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.cta-urgency {
  color: #b45309;
  font-weight: 700;
}

.guides-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.btn-guides-download,
.btn-guides-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.btn-guides-download {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff !important;
  box-shadow: var(--shadow-md);
}

.btn-guides-download:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-guides-buy {
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  color: var(--color-primary) !important;
}

.btn-guides-buy:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  text-decoration: none;
}

.download-cta {
  text-align: center;
}

.download-cta .guides-cta-buttons {
  justify-content: center;
}

.guides-wrapper h2 + ul,
.guides-wrapper h2 + ol,
.guides-wrapper p + ul,
.guides-wrapper p + ol {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}

.guides-wrapper h2 + ul,
.guides-wrapper p + ul {
  padding-left: var(--space-6);
}

.guides-wrapper h2 + ol,
.guides-wrapper p + ol {
  padding-left: var(--space-8);
}

@media (max-width: 991.98px) {
  .guides-hero-modern h1 {
    font-size: var(--text-3xl);
  }

  .guides-wrapper .col-md-9 {
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .guides-hero-modern {
    padding: var(--space-9) 0 var(--space-8);
  }

  .guides-hero-modern h1 {
    font-size: var(--text-2xl);
  }

  .guides-wrapper {
    padding: var(--space-8) 0;
  }

  .guides-wrapper .col-md-9 {
    padding: 0;
    border-radius: 0;
  }

  .guides-cta-buttons {
    flex-direction: column;
  }

  .btn-guides-download,
  .btn-guides-buy {
    width: 100%;
  }
}
