/* ============================================
   DIVERGENT.IE — Blog Styles
   Extends style.css for blog index + articles
============================================ */

/* BLOG INDEX */
.blog-hero { padding: 120px 0 48px; background: linear-gradient(135deg, #064E3B 0%, var(--teal) 100%); color: #fff; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.blog-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.blog-grid-section { padding: 64px 0 80px; background: var(--cream); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #E5E7EB; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.blog-card-body { padding: 24px; }
.blog-card-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--teal); background: rgba(15,118,110,0.1); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.blog-card-body h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-card-body h2 a { color: var(--slate); transition: color 0.2s; }
.blog-card-body h2 a:hover { color: var(--teal); }
.blog-card-body p { font-size: 0.9rem; color: var(--mid-grey); line-height: 1.6; margin-bottom: 14px; }
.blog-card-meta { font-size: 0.8rem; color: #9CA3AF; }

/* ARTICLE PAGE */
.article-content { padding: 120px 0 64px; }
.article-content .container { max-width: 740px; }
.article-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; color: var(--teal); }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; }
.article-content p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 20px; color: #374151; }
.article-content ul, .article-content ol { margin: 16px 0 24px 24px; line-height: 1.8; color: #374151; }
.article-content li { margin-bottom: 8px; font-size: 1rem; }
.article-content a { color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--coral); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--mid-grey); margin-bottom: 24px; padding-top: 100px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Info boxes */
.info-box { background: rgba(15,118,110,0.06); border-left: 4px solid var(--teal); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.info-box p { margin-bottom: 8px; font-size: 0.95rem; }
.info-box p:last-child { margin-bottom: 0; }

.tip-box { background: rgba(232,99,74,0.06); border-left: 4px solid var(--coral); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.tip-box p { margin-bottom: 8px; font-size: 0.95rem; }
.tip-box p:last-child { margin-bottom: 0; }

.warning-box { background: rgba(245,158,11,0.08); border-left: 4px solid #F59E0B; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.warning-box p { margin-bottom: 8px; font-size: 0.95rem; }
.warning-box p:last-child { margin-bottom: 0; }

/* Quick facts table */
.quick-facts { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.quick-facts th { text-align: left; padding: 12px 16px; background: var(--teal); color: #fff; font-weight: 600; }
.quick-facts td { padding: 12px 16px; border-bottom: 1px solid #E5E7EB; }
.quick-facts tr:nth-child(even) td { background: var(--cream); }

/* Article CTA */
.article-cta { background: linear-gradient(135deg, #064E3B, var(--teal)); color: #fff; padding: 32px; border-radius: var(--radius-lg); margin: 40px 0; text-align: center; }
.article-cta h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 0.95rem; }

/* Clinic mention card (for articles) */
.clinic-mention { background: var(--cream); border: 1px solid #E5E7EB; border-radius: var(--radius-lg); padding: 20px 24px; margin: 20px 0; }
.clinic-mention h4 { font-size: 1.05rem; color: var(--teal); margin-bottom: 4px; }
.clinic-mention .mention-location { font-size: 0.85rem; color: var(--mid-grey); margin-bottom: 8px; }
.clinic-mention p { font-size: 0.9rem; margin-bottom: 0; }

/* Medical disclaimer in articles */
.article-disclaimer { background: #FEF3C7; border: 1px solid #FDE68A; border-radius: var(--radius); padding: 16px 20px; margin: 32px 0; font-size: 0.85rem; color: #92400E; line-height: 1.6; }

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-content { padding: 80px 0 48px; }
    .breadcrumb { padding-top: 80px; }
}
