/* ============================================================
   blog.css — Article pages for CipleOnline.pt
   Matches Danish indfodsretsprove.dk article template styling
   ============================================================ */

/* ============================================================
   ARTICLES HUB PAGE STYLES
   ============================================================ */

/* --- Articles Hero Section --- */
.articles-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.articles-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.articles-hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.articles-hero .cta-purple {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #7c3aed;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.articles-hero .cta-purple:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

/* --- Featured Article Section --- */
.featured-article {
  max-width: 900px;
  margin: 3rem auto 3.5rem;
  padding: 0 1.5rem;
}

.featured-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s;
}

.featured-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.featured-card-image {
  overflow: hidden;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card-content {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.featured-card-content p {
  font-size: 1rem;
  color: #555;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.featured-read-more {
  font-size: 0.95rem;
  font-weight: 600;
  color: #7c3aed;
}

/* --- Articles Grid Section --- */
.articles-grid-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.articles-grid-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

/* --- Responsive: Hub Page --- */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-card-image img {
    height: 250px;
  }
  
  .featured-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .articles-hero h1 {
    font-size: 1.8rem;
  }
  
  .articles-hero-subtitle {
    font-size: 1rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-card-content h3 {
    font-size: 1.25rem;
  }
}

/* ============================================================
   INDIVIDUAL ARTICLE PAGE STYLES
   ============================================================ */

/* --- Article Hero --- */
.article-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.article-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}

.article-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* --- CTA Box (top + bottom) --- */
.article-cta-box {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  padding: 2rem 2.5rem;
  background: #fff;
  border: 1px solid #e5e2db;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.article-cta-box strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.article-cta-box p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.btn-purple {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: #7c3aed;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-purple:hover {
  background: #6d28d9;
}

/* --- Article Body --- */
.article-body {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  font-size: 1.02rem;
  color: #333;
  line-height: 1.75;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2.5rem 0 0.75rem;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2rem 0 0.5rem;
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body a {
  color: #7c3aed;
  text-decoration: underline;
}

.article-body a:hover {
  color: #6d28d9;
}

.article-body strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* --- Mini Quiz --- */
.article-mini-quiz {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.article-mini-quiz h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1.5rem;
}

.mini-q-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mini-q-card {
  background: #fff;
  border: 1px solid #e5e2db;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.mini-q-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.mini-q-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.5rem;
  background: #f9f8f5;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.mini-q-option:hover {
  background: #eee;
  border-color: #ccc;
}

.mini-q-option.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.mini-q-option.wrong {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* --- Related Articles --- */
.related-articles {
  max-width: 780px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

.related-articles h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 1rem;
}

.related-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.related-card-body p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.45;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-hero h1 {
    font-size: 1.65rem;
  }

  .article-cta-box {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.5rem 1.25rem;
  }

  .mini-q-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
