/* ═══════════════════════════════════════════════════════
   iPredicta — Learn / Article styles
   Loaded only on /learn/ pages, after shared.css
═══════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.learn-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 2rem 80px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  margin-bottom: 24px;
}
.breadcrumb a {
  font-size: .85rem;
  color: var(--blue);
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── Article header ── */
.article-header h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.article-meta {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 4px;
}

/* ── Share row ── */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
}
.share-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.share-btn-twitter {
  background: #000;
  color: #fff;
}
.share-btn-twitter:hover { background: #1a1a1a; }
.share-btn-linkedin {
  background: #0077b5;
  color: #fff;
}
.share-btn-linkedin:hover { background: #006097; }
.share-btn-copy {
  background: var(--off-white);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.share-btn-copy:hover { border-color: var(--blue); color: var(--blue); }

/* ── Article body ── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-top: 36px;
}
.article-body p {
  margin-bottom: 1.4em;
}
.article-body p.lead {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 1.6em;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: #1a63d4; }

.article-body h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 2.2em 0 .7em;
}
.article-body h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8em 0 .55em;
}

.article-body figure {
  margin: 2em 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
}
.article-body figcaption {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-top: 10px;
  padding-left: 4px;
}

/* ── Article footer ── */
.article-footer {
  margin-top: 56px;
}
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
}
.cta-block h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-block p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
}
.cta-button:hover {
  background: #1a63d4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Learn landing page ── */
.learn-landing {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 2rem 80px;
}
.learn-landing h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.learn-landing .lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}
.article-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
  display: block;
  color: var(--text-dark);
}
.article-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.article-card h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-card p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}
.article-card-meta {
  font-size: .78rem;
  color: var(--text-light);
}
.article-card-read {
  font-size: .82rem;
  color: var(--blue);
  font-weight: 600;
  margin-top: 14px;
  display: inline-block;
}

.article-card-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fff3cd;
  color: #7a5400;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .learn-article { padding: 28px 1.25rem 60px; }
  .cta-block { padding: 28px 20px; }
  .learn-landing { padding: 40px 1.25rem 60px; }
}
