/* Joint Health Affiliate Site - scientific theme */
:root {
  --primary: #1A9E8F;
  --primary-dark: #2D7D7B;
  --accent: #1A9E8F;
  --highlight: #008B8B;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --text: #333333;
  --text-dark: #000000;
  --gray: #888888;
  --header-bg: #1a3a4a;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wide-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--header-bg);
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
header .container { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; }
.logo { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
nav a { color: rgba(255,255,255,0.85); margin-left: 24px; font-size: 0.92rem; font-family: Arial, sans-serif; }
nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 16px; line-height: 1.3; max-width: 750px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 24px; font-family: Arial, sans-serif; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--header-bg);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Content */
article { padding: 50px 0; }
article h2 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
article h2:first-of-type { margin-top: 0; }
article h3 { font-size: 1.2rem; color: var(--primary-dark); margin: 24px 0 10px; }
article p { margin-bottom: 18px; }
article ul, article ol { margin: 0 0 18px 24px; }
article li { margin-bottom: 8px; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}
.cta-box h3 { color: var(--accent); margin-bottom: 12px; font-size: 1.4rem; }
.cta-box p { opacity: 0.95; margin-bottom: 20px; font-family: Arial, sans-serif; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--header-bg);
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); color: var(--header-bg); }

/* Pricing Table */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 30px 0; }
.price-card {
  background: var(--bg);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--header-bg);
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
}
.price-card h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 8px; }
.price-card .price { font-size: 2rem; color: var(--primary); font-weight: 700; }
.price-card .price small { font-size: 0.9rem; color: var(--gray); }
.price-card .details { font-size: 0.85rem; color: var(--gray); margin: 8px 0 16px; font-family: Arial, sans-serif; }
.price-card .cta-btn { font-size: 0.9rem; padding: 10px 24px; }

/* Info Cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 30px 0; }
.info-card {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.info-card h4 { color: var(--primary-dark); margin-bottom: 8px; font-size: 1rem; }
.info-card p { font-size: 0.92rem; margin-bottom: 0; font-family: Arial, sans-serif; }

/* Rating */
.rating { color: var(--accent); font-size: 1.3rem; letter-spacing: 2px; margin: 8px 0; }

/* Sidebar Links */
.related-articles {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
}
.related-articles h3 { color: var(--primary-dark); margin-bottom: 12px; font-size: 1.1rem; }
.related-articles ul { list-style: none; margin: 0; padding: 0; }
.related-articles li { padding: 8px 0; border-bottom: 1px solid #eee; }
.related-articles li:last-child { border-bottom: none; }
.related-articles a { font-family: Arial, sans-serif; font-size: 0.92rem; }

/* Disclaimer */
.disclaimer {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 30px 0;
  font-size: 0.82rem;
  color: var(--gray);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  border: 1px solid #e0e0e0;
}

/* Footer */
footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 30px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}
footer .container { max-width: 1100px; text-align: center; }
footer a { color: var(--accent); }
footer .footer-links { margin: 16px 0; }
footer .footer-links a { margin: 0 12px; color: rgba(255,255,255,0.6); }
footer .footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 40px 0 35px; }
  header .container { flex-direction: column; gap: 10px; }
  nav a { margin: 0 10px; font-size: 0.85rem; }
  .pricing { grid-template-columns: 1fr; }
  article { padding: 30px 0; }
  .cta-box { padding: 28px 20px; }
}
