:root {
  --primary: #0690FE;
  --primary-light: #DAEFFF;
  --primary-muted: #4885B7;
  --text: #000000;
  --text-secondary: #666666;
  --bg: #FFFFFF;
  --bg-light: #f5f7fa;
}

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

html {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

.site-header {
  background: var(--bg);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0570d6 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 0.5rem;
  font-size: 36px;
}

.hero p {
  font-size: 16px;
  opacity: 0.95;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--primary-light);
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: white;
}

.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.featured-image {
  position: relative;
  height: 380px;
  background: linear-gradient(135deg, var(--primary-muted) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 64px;
  overflow: hidden;
}

.farmeci-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

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

.featured-content .category {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content h2 {
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-content .meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 1rem;
}

.clinician-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f7ff;
  border: 1px solid var(--primary-light);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.clinician-badge::before {
  content: "✓";
  font-weight: bold;
}

.featured-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #0570d6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(6, 144, 254, 0.15);
}

.article-image-wrapper {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  overflow: hidden;
}

.article-image-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.article-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.article-overlay-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  font-family: 'League Spartan', sans-serif;
  line-height: 1.2;
}

.article-content {
  padding: 1.25rem;
}

.article-category {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.article-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.3;
}

.article-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.article-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Article Single Page */
.article-single {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2rem;
}

.article-header .category {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-header h1 {
  margin-bottom: 12px;
}

.article-meta-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text);
}

.article-body h2 {
  margin: 2rem 0 1rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1rem 2rem;
}

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

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.related-articles h3 {
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

.related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.related-link:hover {
  background: var(--primary-light);
}

.related-title {
  color: var(--text);
  font-weight: 600;
}

.related-category {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Clinician CTA */
.clinician-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0570d6 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin: 2.5rem 0;
}

.clinician-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.clinician-cta p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 16px;
  line-height: 1.7;
}

.clinician-cta-button {
  display: inline-block;
  background: white;
  color: #021D33;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.clinician-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.clinician-cta-link {
  display: block;
  margin-top: 1.25rem;
  color: white;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clinician-cta-link:hover {
  opacity: 0.85;
}

/* Newsletter Popup */
.newsletter-overlay[hidden] {
  display: none;
}

.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 29, 51, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.newsletter-modal {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.newsletter-close:hover {
  color: var(--text);
}

.newsletter-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.newsletter-modal h2 {
  margin-bottom: 0.75rem;
}

.newsletter-copy {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

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

.newsletter-form input {
  padding: 12px 16px;
  border: 1px solid #ccd6e0;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.newsletter-consent {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.5;
}

.newsletter-success {
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer Badges */
.footer-badges {
  background: var(--primary-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.badge-icon {
  font-size: 32px;
}

/* Archive */
.archive-header {
  margin-bottom: 2rem;
  text-align: center;
}

.archive-header h1 {
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .featured-section {
    grid-template-columns: 1fr;
  }

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

  .footer-badges {
    gap: 1rem;
    padding: 1rem;
  }

  .featured-image {
    height: 250px;
  }

  .hero h1 {
    font-size: 28px;
  }
}
