/* ================================
   Treatments Page Styles
   ================================ */

   .treatments-page .navbar{
    position: sticky;        /* solid header on this inner page */
    top: 0;
    background: linear-gradient(180deg, rgba(26,76,158,0.95), rgba(7,44,107,0.95));
    backdrop-filter: blur(8px) saturate(140%);
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(2,6,23,.12);
  }
  .treatments-page .logo-text,
  .treatments-page .nav-links a { color: #fff; }
  .treatments-page .nav-links a:hover { color: #cfe1ff; }
  
  /* ===== Hero ===== */
  .treat-hero{
    position: relative;
    padding: 84px 0 56px;
    background:
      radial-gradient(1200px 400px at 20% -10%, rgba(26,76,158,.18), transparent 60%),
      radial-gradient(1200px 400px at 80% 110%, rgba(7,44,107,.15), transparent 60%),
      var(--soft-bg, #f8fafc);
    border-bottom: 1px solid var(--card-border, #eef2f7);
  }
  .treat-hero-inner{
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
  }
  .treat-title{
    font-size: clamp(28px, 4vw, 40px);
    margin: 8px 0 10px;
    color: var(--brand, #1a4c9e); 
    font-weight: 800;
    letter-spacing: .2px;
  }
  .treat-sub{
    color: var(--muted, #667085);
    max-width: 720px;
    margin: 0 auto 18px;
    line-height: 1.6;
  }
  .treat-cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
  
  /* ===== Controls ===== */
  .treatments-section{ padding: 36px 0 64px; }
  .treat-controls{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; margin-bottom:16px;
  }
  .treat-controls .small{ font-size: 12px; }
  #searchInput{
    width: min(520px, 100%);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border, #eef2f7);
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
  }
  #searchInput:focus{ border-color: var(--brand, #1a4c9e); }
  
  /* ===== Table ===== */
  .table-wrap{
    border: 1px solid var(--card-border, #eef2f7);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(2,6,23,.06);
  }
  
  .treat-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
  }
  .treat-table thead th{
    text-align: left;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border, #eef2f7);
  }
  .treat-table tbody td{
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    line-height: 1.5;
  }
  .treat-table tbody tr:nth-child(odd){ background: #fcfcfd; }
  .treat-table tbody tr:hover{ background: #f6f9ff; }
  
  /* Hindi column: slightly bolder for readability */
  .treat-table td.hi{ font-weight: 600; }
  
  /* ===== Reveal animation for rows ===== */
  .row-anim{
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .row-anim.show{
    opacity: 1;
    transform: translateY(0);
  }
  .row-anim:nth-child(1){ transition-delay: .04s; }
  .row-anim:nth-child(2){ transition-delay: .06s; }
  .row-anim:nth-child(3){ transition-delay: .08s; }
  /* the rest stagger naturally via intersection observer sequencing */
  
  /* ===== No results ===== */
  .no-results{
    text-align: center;
    padding: 16px;
    margin: 0;
  }
  
  /* ===== Back to top ===== */
  .back-to-top{
    position: fixed;
    right: 16px; bottom: 16px;
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 1px solid var(--card-border, #eef2f7);
    background: #fff;
    box-shadow: 0 8px 20px rgba(2,6,23,.12);
    cursor: pointer;
    font-weight: 900;
    display: none;
  }
  .back-to-top.show{ display: grid; place-items: center; }
  
  /* A11y helper (screen-reader only) */
  .sr-only{
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  