/* ==========================================
   PhysioCare - Shared Article Stylesheet 
   File: article-style.css
   ========================================== */

/* Article Container & Page Layout */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-header {
  text-align: center;
  margin-bottom: 35px;
}

.category-tag {
  background-color: var(--primary-green, #1bb756);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.18;
  color: #000000;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.95rem;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.article-featured-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* AI Takeaway Box */
.ai-takeaway-box {
  background-color: #e2ebd8;
  border-left: 4px solid var(--primary-green, #1bb756);
  padding: 22px 24px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0 40px;
  font-size: 1.05rem;
  color: #000000;
  line-height: 1.6;
}

.ai-takeaway-box strong {
  color: var(--primary-green, #1bb756);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  display: block;
  margin-bottom: 6px;
}

/* Content Typography & Structure */
.article-content {
  font-size: 1.12rem;
  color: #222222;
  line-height: 1.75;
}

.article-content h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #000000;
  margin: 40px 0 16px;
  line-height: 1.25;
  border-bottom: 1px solid var(--border-color, #d3d1cb);
  padding-bottom: 8px;
}

.article-content h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #000000;
  margin: 30px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, 
.article-content ol {
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Comparison & Data Tables */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 30px 0 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color, #d3d1cb);
  font-size: 1rem;
}

.comparison-table th {
  background-color: var(--primary-green, #1bb756);
  color: #ffffff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
}

.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #e8e6e1;
  color: #333333;
}

.comparison-table tr:nth-child(even) {
  background-color: #fdfdfc;
}

/* Warning / Alert Box */
.warning-box {
  background-color: #fcf0f0;
  border-left: 4px solid #d9534f;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 35px 0;
}

.warning-box strong {
  color: #d9534f;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}

/* Promo Call-to-Action Box */
.article-promo-box {
  background-color: #ffffff;
  border: 2px solid var(--primary-green, #1bb756);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  margin: 50px 0 30px;
  box-shadow: 0 8px 24px rgba(27, 183, 86, 0.08);
}

.article-promo-box h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 12px;
}

.article-promo-box p {
  font-size: 1.15rem;
  color: #555555;
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.promo-cta-btn {
  display: inline-block;
  background-color: var(--primary-green, #1bb756);
  color: #ffffff !important;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(27, 183, 86, 0.2);
}

.promo-cta-btn:hover {
  background-color: #159444;
  transform: translateY(-2px);
}

/* Navigation Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-green, #1bb756);
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .article-title {
    font-size: 2.3rem;
  }
  .article-featured-img {
    height: 260px;
  }
  .article-promo-box {
    padding: 30px 20px;
  }
  .article-promo-box h3 {
    font-size: 2rem;
  }
}