/* ========== SHARED STYLES FOR ALL SUBPAGES ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #9B8EC4;
  --purple-deep: #7B6BA4;
  --purple-light: #C8BDE0;
  --blue: #7DAFD8;
  --blue-light: #A8CDE8;
  --teal: #6DC8C8;
  --teal-light: #8DD8D8;
  --mint: #8ED8B8;
  --mint-light: #B0E8D0;
  --white: #FFFFFF;
  --off-white: #F8F7FC;
  --light-gray: #F0EEF5;
  --gray: #6B7280;
  --dark: #2D2845;
  --dark-soft: #3D3660;
  --gradient-brand: linear-gradient(135deg, var(--purple) 0%, var(--blue) 50%, var(--teal) 100%);
  --gradient-soft: linear-gradient(135deg, var(--purple-light) 0%, var(--blue-light) 50%, var(--mint-light) 100%);
  --gradient-hero: linear-gradient(160deg, #2D2845 0%, #3D3660 40%, #2D4560 100%);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --section-pad: 80px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); line-height: 1.7; overflow-x: hidden; background: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.text-center { text-align: center; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
  border-radius: 50px; font-family: var(--font-body); font-size: 1rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease;
}
.btn-primary { background: var(--gradient-brand); color: var(--white); box-shadow: 0 4px 20px rgba(123,107,164,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123,107,164,0.5); }
.btn-outline { background: transparent; color: var(--purple-deep); border: 2px solid var(--purple-light); }
.btn-outline:hover { background: var(--purple-deep); color: var(--white); border-color: var(--purple-deep); }

/* ========== NAVIGATION (subpage variant - always solid bg) ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 0; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray); transition: color 0.3s; }
.nav-links a:hover { color: var(--purple-deep); }
.nav-cta { padding: 10px 24px !important; font-size: 0.85rem !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); transition: all 0.3s; }

/* ========== PAGE HERO (shorter than home) ========== */
.page-hero {
  background: var(--gradient-hero); padding: 140px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(155,142,196,0.12) 0%, transparent 70%); border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 640px; }
.page-hero .breadcrumb { margin-bottom: 20px; font-size: 0.85rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb a:hover { color: var(--teal-light); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); margin: 0 8px; }
.page-hero .breadcrumb .current { color: rgba(255,255,255,0.8); }

/* ========== CONTENT SECTIONS ========== */
.content-section { padding: var(--section-pad) 0; }
.content-section:nth-child(even) { background: var(--off-white); }
.content-section h2 { margin-bottom: 20px; }
.content-section p { color: var(--gray); margin-bottom: 20px; font-size: 1.05rem; max-width: 800px; }

.content-narrow { max-width: 800px; margin: 0 auto; }

/* Article content styling */
.article-content h2 { margin-top: 48px; margin-bottom: 16px; color: var(--dark); }
.article-content h3 { margin-top: 32px; margin-bottom: 12px; color: var(--dark-soft); }
.article-content p { color: var(--dark-soft); margin-bottom: 18px; font-size: 1rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 16px 0 24px 24px; color: var(--dark-soft); }
.article-content li { margin-bottom: 8px; font-size: 1rem; line-height: 1.7; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content blockquote {
  border-left: 4px solid var(--purple-light); padding: 16px 24px; margin: 24px 0;
  background: var(--off-white); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--dark-soft);
}
.article-content .highlight-box {
  background: var(--gradient-soft); border-radius: 16px; padding: 32px;
  margin: 32px 0; color: var(--dark);
}
.article-content .highlight-box h3 { margin-top: 0; }

/* ========== RELATED CONTENT CARDS ========== */
.related-section { padding: var(--section-pad) 0; background: var(--off-white); }
.related-section h2 { text-align: center; margin-bottom: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.related-card {
  background: var(--white); border-radius: 16px; padding: 32px; border: 1px solid rgba(155,142,196,0.1);
  transition: all 0.3s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(155,142,196,0.12); }
.related-card h3 { margin-bottom: 12px; }
.related-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }
.related-card .read-more { color: var(--purple-deep); font-weight: 600; font-size: 0.9rem; }
.related-card .read-more:hover { color: var(--teal); }

/* ========== CTA BANNER ========== */
.cta-banner {
  padding: 80px 0; background: var(--gradient-hero); text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: radial-gradient(circle, rgba(155,142,196,0.12) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 540px; margin: 0 auto 32px; }
.cta-banner .btn-primary { background: var(--white); color: var(--dark); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ========== FOOTER ========== */
.footer { background: var(--dark); padding: 60px 0 30px; color: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.88rem; transition: color 0.3s; }
.footer ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem;
}

/* ========== LEGAL PAGE STYLES ========== */
.legal-content h2 { margin-top: 40px; margin-bottom: 12px; font-size: 1.4rem; }
.legal-content h3 { margin-top: 28px; margin-bottom: 10px; font-size: 1.15rem; }
.legal-content p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; color: var(--dark-soft); }
.legal-content ul { margin: 12px 0 20px 24px; }
.legal-content li { margin-bottom: 6px; font-size: 0.95rem; line-height: 1.7; list-style: disc; color: var(--dark-soft); }

/* ========== ARTICLE INDEX ========== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 40px; }
.article-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(155,142,196,0.1); transition: all 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(155,142,196,0.12); }
.article-card-header {
  height: 8px; background: var(--gradient-brand);
}
.article-card-body { padding: 28px; }
.article-card .tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--light-gray); font-size: 0.75rem; font-weight: 600;
  color: var(--purple-deep); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.article-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.article-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 16px; }
.article-card .read-more { color: var(--purple-deep); font-weight: 600; font-size: 0.88rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 56px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%;
    left: 0; right: 0; background: var(--white); padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1); border-radius: 0 0 16px 16px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 100px 0 48px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}
