/* =========================================
   TradeBase — Shared Inner Page Styles
   Used by: feature pages, blog pages
   ========================================= */

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding: 130px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  max-width: 780px;
  margin: 0 auto 18px;
}

.page-hero-sub {
  font-size: 20px;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

/* ---- Inner Page Content ---- */
.page-body {
  padding: 72px 0;
  background: var(--bg);
}

.page-body .container {
  max-width: 860px;
}

.page-body h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin: 52px 0 16px;
  line-height: 1.25;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}

.page-body p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 22px;
}

.page-body ul {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.page-body ul li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  padding: 6px 0 6px 28px;
  position: relative;
}

.page-body ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 13px;
}

/* ---- Feature Cards (inner pages) ---- */
.page-features {
  padding: 72px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.page-feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.page-feature-card .icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--accent);
}

.page-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.page-feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

/* ---- Inline CTA Box ---- */
.inline-cta {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-radius: 20px;
  padding: 52px 48px;
  text-align: center;
  margin: 60px 0;
}

.inline-cta h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.inline-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin: 0 0 28px;
}

.inline-cta .btn-white {
  background: #fff;
  color: #1e40af;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.inline-cta .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---- FAQ (inner pages) ---- */
.page-faq {
  padding: 72px 0;
}

.page-faq h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}

/* ---- Blog Grid ---- */
.blog-index {
  padding: 72px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
}

.blog-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
  margin: 0 0 18px;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* ---- Blog Article ---- */
.blog-article {
  padding: 72px 0;
}

.blog-article .container {
  max-width: 760px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.article-tag {
  background: #eff6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.blog-article h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.blog-article h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 14px;
  line-height: 1.3;
}

.blog-article h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 10px;
}

.blog-article p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 22px;
}

.blog-article ul,
.blog-article ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.blog-article ul li,
.blog-article ol li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 8px;
}

.blog-article blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: #f8faff;
  border-radius: 0 10px 10px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}

.article-cta {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  margin: 56px 0;
}

.article-cta h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
}

.article-cta p {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  margin: 0 0 22px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-hero {
    padding: 110px 24px 50px;
  }

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

  .page-hero-sub {
    font-size: 17px;
  }

  .page-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .inline-cta {
    padding: 36px 24px;
  }

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

  .blog-article h1 {
    font-size: 28px;
  }

  .blog-article h2 {
    font-size: 22px;
  }

  .page-body {
    padding: 48px 0;
  }

  .page-body h2 {
    font-size: 24px;
    margin-top: 36px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
