/* ============================================
   Free Personality Test - Design System
   Domain: free-personality-test.com
   Colors: White + Blue (#2563EB) + Green (#059669)
   ============================================ */

:root {
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --green-600: #059669;
  --green-700: #047857;
  --green-50: #ECFDF5;
  --green-100: #D1FAE5;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-700);
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section-sm {
  padding: 32px 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-blue {
  background: var(--blue-50);
}


/* ========== Header ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate-900);
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.logo-text span {
  color: var(--blue-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-600);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--slate-700);
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--slate-100);
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--green-600);
}

/* ========== Quiz Grid ========== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--slate-600);
  font-size: 1.05rem;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.quiz-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quiz-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue-600);
  border-radius: 4px 0 0 4px;
  transition: background 0.25s ease;
}

.quiz-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quiz-card:hover::before {
  background: var(--green-600);
}

.quiz-card-header {
  padding: 22px 22px 14px 26px;
  background: var(--slate-50);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.quiz-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.quiz-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue-600);
}

.quiz-card-body {
  padding: 20px 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.quiz-card p {
  color: var(--slate-600);
  font-size: 0.925rem;
  margin-bottom: 16px;
  flex: 1;
}

.quiz-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 16px;
}

.quiz-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.25);
}

.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 2px 4px rgb(37 99 235 / 0.3);
}

.btn-green {
  background: var(--green-600);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
}

.btn-outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ========== Quiz Page ========== */
.quiz-hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--green-50) 100%);
  padding: 36px 0 28px;
}

.quiz-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.quiz-hero .lead {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 720px;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--slate-500);
}

.breadcrumb a:hover {
  color: var(--blue-600);
}

/* Intro content */
.intro-content {
  max-width: 760px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--slate-900);
}

.intro-content p {
  color: var(--slate-700);
  margin-bottom: 16px;
}

.intro-content ul {
  margin: 12px 0 20px 20px;
  color: var(--slate-700);
}

.intro-content li {
  margin-bottom: 6px;
}

/* Quiz Interface */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quiz-progress {
  background: var(--slate-100);
  height: 6px;
  width: 100%;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--green-600));
  width: 0%;
  transition: width 0.35s ease;
}

.quiz-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
}

.quiz-body {
  padding: 32px 28px;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 28px;
  line-height: 1.4;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  text-align: left;
  width: 100%;
  font-size: 1rem;
  color: var(--slate-800);
}

.option:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.option.selected {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-600);
  flex-shrink: 0;
}

.option.selected .option-letter {
  background: var(--blue-600);
  color: white;
}

.quiz-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Results */
.results-container {
  display: none;
  max-width: 760px;
  margin: 0 auto;
}

.results-container.active {
  display: block;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.result-header {
  background: linear-gradient(135deg, var(--blue-600), var(--green-600));
  color: white;
  padding: 36px 32px;
  text-align: center;
}

.result-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-header p {
  opacity: 0.95;
  font-size: 1.05rem;
}

.result-body {
  padding: 32px;
}

.result-body h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--slate-900);
}

.result-body p {
  color: var(--slate-700);
  margin-bottom: 14px;
}

.result-traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.trait-item {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.trait-item .label {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.trait-item .value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-600);
}

.quiz-hero-img {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 340px;
}
.quiz-hero-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.quiz-card:has(.quiz-card-photo) .quiz-icon { display: none; }
.quiz-card-photo {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  height: 148px;
  flex-shrink: 0;
}
.quiz-card-photo img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}
.result-share {
  margin: 20px 0 28px;
  padding: 20px 22px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}
.result-share-label {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--slate-900);
}
.result-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  font-family: inherit;
}
.share-btn:hover { border-color: var(--blue-600); color: var(--blue-700); }
.share-fb:hover { border-color: #1877F2; color: #1877F2; }
.share-x:hover { border-color: #111; color: #111; }
.share-reddit:hover { border-color: #FF4500; color: #FF4500; }
.share-mail:hover { border-color: #EA4335; color: #EA4335; }
.result-share-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--slate-500);
}

.result-long h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
}
.result-long p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.type-code {
  display: inline-block;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.pref-list { margin: 8px 0 22px; }
.pref-row { margin: 0 0 14px; }
.pref-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--slate-600);
  margin-bottom: 6px;
  font-weight: 600;
}
.pref-track {
  position: relative;
  height: 10px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.pref-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--green-600));
}
.pref-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 4px;
}
.result-disclaimer {
  font-size: 0.88rem;
  color: var(--slate-500);
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 8px;
}

/* FAQ */
.faq-section {
  margin-top: 48px;
}

.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question,
.faq-item summary.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--slate-50);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover,
.faq-item summary.faq-question:hover {
  background: var(--blue-50);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--slate-700);
}

.faq-item.open .faq-answer,
.faq-item[open] .faq-answer {
  padding: 16px 20px 20px;
  max-height: 2000px;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.open .faq-icon,
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

/* Related quizzes */
.related-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--slate-200);
}

.related-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ========== Static pages ========== */
.page-hero {
  background: var(--slate-50);
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--slate-200);
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px;
}

.page-content h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.page-content p, .page-content li {
  color: var(--slate-700);
  margin-bottom: 14px;
}

.page-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--slate-400);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Ad slots */
.ad-slot {
  margin: 16px 0;
  text-align: center;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot.sidebar {
  min-height: 250px;
}

.ad-label {
  font-size: 0.7rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-body, .quiz-header, .quiz-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .result-header, .result-body {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .question-text {
    font-size: 1.1rem;
  }
}


/* ========== Article Pages ========== */
.article-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--slate-100);
}

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

.article-hero .breadcrumb {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 14px;
}

.article-hero .breadcrumb a {
  color: var(--slate-500);
}

.article-hero .breadcrumb a:hover {
  color: var(--blue-600);
}

.article-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--slate-900);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 20px;
}

.article-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 4px;
  max-width: 760px;
  max-height: 300px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
}

.article-featured-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 36px 20px 64px !important;
  width: 100%;
  box-sizing: border-box;
}

.article-content p {
  margin-bottom: 1.35em;
  color: var(--slate-700);
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 2.2em 0 0.85em;
  line-height: 1.35;
  padding-top: 0.4em;
  border-top: 1px solid var(--slate-100);
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 1.7em 0 0.55em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em 0;
  padding-left: 1.35em;
  color: var(--slate-700);
  line-height: 1.75;
}

.article-content li {
  margin-bottom: 0.55em;
  padding-left: 0.15em;
}

.article-content li strong {
  color: var(--slate-900);
}

.article-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--blue-700);
}

/* Buttons inside articles must keep white text */
.article-content a.btn,
.article-content a.btn-primary,
.article-content a.btn-green {
  color: #fff !important;
  text-decoration: none !important;
}

.article-content a.btn:hover,
.article-content a.btn-primary:hover {
  color: #fff !important;
}

.article-cta {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 2.2em 0;
  text-align: center;
}

.article-cta p {
  margin-bottom: 12px !important;
  color: var(--slate-700);
  font-size: 1rem;
}

.article-cta .btn {
  margin-top: 2px;
}

.related-articles {
  border-top: 1px solid var(--slate-200);
  padding-top: 28px;
  margin-top: 36px;
}

.related-articles h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--slate-900);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-list a {
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: none;
}

.related-list a:hover {
  text-decoration: underline;
}

/* Articles index */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-100);
}

.article-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--slate-50);
}

.article-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--slate-900);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 14px;
  flex: 1;
  line-height: 1.55;
}

.article-card .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
}

@media (max-width: 640px) {
  .article-featured-img {
    max-height: 200px;
  }
  .article-featured-img img {
    height: 200px;
  }
  .article-content {
    padding: 28px 16px 48px !important;
  }
  .article-content h2 {
    font-size: 1.25rem;
  }
}
