/**
 * Resources article pages — mattshore.co.uk
 * Shared styles for /resources/articles/ pages
 * Consistent alignment and spacing across all articles
 */

.resource-article-section {
  padding: 3rem 0;
}

.resource-article-section h2 {
  color: var(--ah-dark);
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-article-section h2:first-child {
  margin-top: 0;
}

.resource-article-section h2 .section-icon {
  color: var(--ah-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.resource-article-section p,
.resource-article-section li {
  line-height: 1.7;
  color: var(--ah-dark);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.resource-article-section p:last-child {
  margin-bottom: 0;
}

.resource-article-section .lead {
  font-size: 1.1rem;
}

/* Blocks: consistent margins, aligned padding */
.resource-article-section .article-block,
.resource-article-section .article-list-block,
.resource-article-section .honest-answer,
.resource-article-section .compare-card {
  margin: 1.25rem 0;
}

.resource-article-section .article-block {
  background: linear-gradient(135deg, rgba(255, 0, 230, 0.06) 0%, rgba(0, 191, 255, 0.06) 100%);
  border-left: 4px solid var(--ah-primary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.25rem;
}

.resource-article-section .article-list-block {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1.25rem 1.25rem;
  border-left: 4px solid var(--ah-primary);
}

.resource-article-section .article-list-block ul {
  margin: 0;
  padding-left: 1.25rem;
}

.resource-article-section .article-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-article-section .article-cta .btn-primary {
  background-color: var(--ah-primary);
  border-color: var(--ah-primary);
}

.resource-article-section .article-cta .btn-primary:hover {
  background-color: var(--ah-secondary);
  border-color: var(--ah-secondary);
}

.resource-article-section .compare-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 4px solid var(--ah-primary);
}

.resource-article-section .compare-card.pros {
  border-left-color: #2d8a3e;
}

.resource-article-section .compare-card.pros ul {
  list-style: none;
  padding-left: 0;
}

.resource-article-section .compare-card.pros li::before {
  content: "✓ ";
  color: #2d8a3e;
  font-weight: 700;
}

.resource-article-section .compare-card.cons {
  border-left-color: #c0392b;
}

.resource-article-section .compare-card.cons ul {
  list-style: none;
  padding-left: 0;
}

.resource-article-section .compare-card.cons li::before {
  content: "✗ ";
  color: #c0392b;
  font-weight: 700;
}

.resource-article-section .honest-answer {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 191, 255, 0.03) 100%);
  border-left: 4px solid var(--ah-secondary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.25rem;
}

.resource-article-section .roi-calculator {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.resource-article-section .roi-calculator h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--ah-dark);
}

.resource-article-section .roi-result {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ah-dark);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.resource-article-section .roi-result .positive {
  color: #2d8a3e;
}

.resource-article-section .roi-result .negative {
  color: #c0392b;
}

.resource-article-section .table-responsive {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin: 1.25rem 0;
}

.resource-article-section .table th {
  background: rgba(255, 0, 230, 0.1);
}

.resource-article-section .diagram-placeholder img {
  max-width: 100%;
  height: auto;
}
