/* ═══════════════════════════════════════════════════════════════════
   CURE ARTICLES & HEALTH ENCYCLOPEDIA STYLESHEET
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 01. ARTICLES HUB & ARCHIVE ────────────────────────────── */
/* Scoped Styles for Articles Page */
    .hero-articles {
      padding: 60px 0 40px;
      text-align: center;
    }
    .search-box {
      position: relative;
      max-width: 600px;
      margin: 0 auto 50px;
      width: 100%;
    }
    .search-box input {
      width: 100%;
      padding: 18px 54px 18px 24px;
      border-radius: var(--r-pill);
      background: var(--c-bg-soft);
      border: 1px solid var(--c-border);
      color: var(--c-heading);
      font-family: var(--ff-body);
      font-size: 16px;
      outline: none;
      transition: all 0.3s;
      box-shadow: var(--shadow-sm);
    }
    .search-box input:focus {
      border-color: var(--c-brand);
      background: #ffffff;
      box-shadow: 0 0 0 4px rgba(109, 115, 255, 0.16);
    }
    .search-box i {
      position: absolute;
      right: 22px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--c-brand);
      font-size: 18px;
    }
    .articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 32px;
      margin-bottom: 70px;
    }
    .art-card {
      background: #ffffff;
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: all 0.35s var(--ease-spring);
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      box-shadow: var(--shadow-sm);
    }
    .art-card:hover {
      transform: translateY(-8px);
      border-color: var(--c-brand);
      box-shadow: var(--shadow-hover);
    }
    .art-img {
      position: relative;
      width: 100%;
      height: 220px;
      overflow: hidden;
      background: var(--c-brand-5);
    }
    .art-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s var(--ease-out);
    }
    .art-card:hover .art-img img {
      transform: scale(1.06);
    }
    .art-body {
      padding: 26px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .art-body h3 {
      font-family: var(--ff-head);
      font-size: 19px;
      font-weight: 800;
      margin-bottom: 12px;
      line-height: 1.4;
      color: var(--c-heading);
      transition: color 0.25s;
    }
    .art-card:hover h3 {
      color: var(--c-brand);
    }
    .art-body p {
      font-size: 14px;
      color: var(--c-muted);
      margin-bottom: 20px;
      flex-grow: 1;
      line-height: 1.75;
    }
    .art-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 16px;
      border-top: 1px solid var(--c-border-light);
    }
    .read-more {
      color: var(--c-brand-deep);
      font-weight: 800;
      font-family: var(--ff-head);
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      transition: all 0.3s;
    }
    .art-card:hover .read-more {
      gap: 12px;
      color: var(--c-brand);
    }
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      display: none;
    }
    .empty-state i {
      font-size: 48px;
      color: var(--c-muted);
      margin-bottom: 16px;
    }

    /* In-Article App Banner */
    .article-cta-box {
      background: linear-gradient(135deg, rgba(109, 115, 255, 0.08) 0%, rgba(174, 250, 124, 0.12) 100%);
      border: 2px solid rgba(109, 115, 255, 0.25);
      border-radius: var(--r-lg);
      padding: 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 30px;
      margin-bottom: 80px;
      flex-wrap: wrap;
    }
    .cta-box-text h3 {
      font-size: 22px;
      font-weight: 900;
      color: var(--c-heading);
      margin-bottom: 8px;
    }
    .cta-box-text p {
      color: var(--c-body);
      font-size: 15px;
      margin: 0;
      max-width: 580px;
      line-height: 1.7;
    }

/* ─── 02. SINGLE ARTICLE READING & CLINICAL CONTENT ─────────── */
.article-container {
      max-width: 880px;
      margin: 0 auto;
      padding: 40px 20px 80px;
    }
    .article-hero {
      text-align: center;
      margin-bottom: 36px;
    }
    .article-hero h1 {
      font-size: clamp(24px, 4vw, 36px);
      font-weight: 900;
      color: var(--c-heading);
      line-height: 1.35;
      margin: 18px 0;
    }
    .meta-info {
      color: var(--c-muted);
      font-size: 14px;
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }
    .featured-image-container {
      margin-bottom: 40px;
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      border: 1px solid var(--c-border);
    }
    .featured-image {
      width: 100%;
      height: auto;
      max-height: 440px;
      object-fit: cover;
      display: block;
    }
    .content {
      background: #ffffff;
      padding: 40px;
      border-radius: var(--r-lg);
      border: 1px solid var(--c-border);
      box-shadow: var(--shadow-sm);
      margin-bottom: 50px;
      font-size: 16.5px;
      line-height: 1.85;
      color: var(--c-body);
    }
    .content p { margin-bottom: 22px; }
    .content h2 {
      font-size: 24px;
      font-weight: 800;
      color: var(--c-heading);
      margin: 40px 0 20px;
      border-right: 4px solid var(--c-brand);
      padding-right: 14px;
    }
    .content h3 {
      font-size: 19px;
      font-weight: 700;
      color: var(--c-brand-deep);
      margin: 30px 0 16px;
    }
    .content ul, .content ol { padding-right: 24px; margin-bottom: 24px; }
    .content li { margin-bottom: 10px; }
    .table-wrapper {
      overflow-x: auto;
      margin: 28px 0;
      border-radius: var(--r-sm);
      border: 1px solid var(--c-border);
    }
    table { width: 100%; border-collapse: collapse; text-align: right; }
    th { background: var(--c-brand-5); color: var(--c-heading); font-weight: 800; padding: 14px 18px; border-bottom: 2px solid var(--c-border); }
    td { padding: 14px 18px; border-bottom: 1px solid var(--c-border-light); }
    tr:nth-child(even) { background: #fafbff; }
    blockquote {
      background: rgba(109, 115, 255, 0.05);
      border-right: 4px solid var(--c-brand);
      padding: 20px;
      margin: 30px 0;
      border-radius: var(--r-sm);
      font-weight: 600;
      color: var(--c-heading);
    }
    .cta-card {
      background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-deep) 100%);
      color: #ffffff;
      padding: 40px 30px;
      border-radius: var(--r-lg);
      text-align: center;
      margin-bottom: 50px;
      box-shadow: 0 12px 30px rgba(109, 115, 255, 0.3);
    }
    .cta-card h2 { color: #ffffff; font-size: 24px; font-weight: 900; margin-bottom: 12px; border: none; padding: 0; }
    .cta-card p { color: rgba(255, 255, 255, 0.9); font-size: 15px; max-width: 580px; margin: 0 auto 28px; line-height: 1.7; }
    .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
    .btn-green-cta {
      background: #22c55e;
      color: #ffffff;
      padding: 14px 28px;
      border-radius: var(--r-pill);
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      transition: all 0.25s;
    }
    .btn-green-cta:hover { background: #16a34a; transform: translateY(-3px); }
    .btn-white-cta {
      background: #ffffff;
      color: var(--c-brand-deep);
      padding: 14px 28px;
      border-radius: var(--r-pill);
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      transition: all 0.25s;
    }
    .btn-white-cta:hover { background: #f1f3ff; transform: translateY(-3px); }

/* ─────────────────────────────────────────────────────────────────
   ARTICLES MOBILE RESPONSIVENESS
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .article-container {
    padding: 24px 16px 60px !important;
  }
  .article-hero h1 {
    font-size: clamp(20px, 5.5vw, 28px) !important;
    margin: 12px 0 !important;
  }
  .meta-info {
    gap: 10px !important;
    font-size: 12.5px !important;
    flex-wrap: wrap !important;
  }
  .featured-image-container {
    margin-bottom: 24px !important;
    border-radius: var(--r-md) !important;
  }
  .featured-image {
    max-height: 250px !important;
  }
  .content {
    padding: 20px 16px !important;
    font-size: 15px !important;
    border-radius: var(--r-md) !important;
    margin-bottom: 30px !important;
  }
  .content p {
    margin-bottom: 16px !important;
  }
  .content h2 {
    font-size: 19px !important;
    margin: 28px 0 14px !important;
    padding-right: 10px !important;
  }
  .content h3 {
    font-size: 16px !important;
    margin: 22px 0 10px !important;
  }
  .content ul, .content ol {
    padding-right: 20px !important;
    margin-bottom: 18px !important;
  }
  .cta-card {
    padding: 26px 16px !important;
    border-radius: var(--r-md) !important;
    margin-bottom: 35px !important;
  }
  .cta-card h2 {
    font-size: 20px !important;
  }
  .cta-card p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
  .cta-btns {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .btn-green-cta, .btn-white-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
