﻿    /* ═══════════════════════════════════════════════
       DESIGN TOKENS (mirrors home.php & patient palette)
    ═══════════════════════════════════════════════ */
    :root {
      --primary:       #0a899a;
      --primary-light: #e7f2fc;
      --primary-dark:  #065f6b;
      --secondary:     #00cec9;
      --accent:        #00b1bd;
      --bg:            #f8f9fa;
      --card-bg:       #ffffff;
      --border:        rgba(15,15,26,.10);
      --text:          #0f0f1a;
      --text-sec:      rgba(15,15,26,.65);
      --section-color: #2d3436;
      --see-all-color: #0984e3;
      --modal-bg:      #ffffff;
      --shadow:        0 2px 12px rgba(0,0,0,.08);
      --shadow-md:     0 6px 24px rgba(0,0,0,.13);
      --radius:        14px;
      --dark-bg:       #121212;
      --dark-card:     #181932;
      --dark-card-box: #201f43;
      --dark-card-faq: #12112f;
      --dark-text:     #9193a8;
      --dark-border:   #374151;
      --dark-footer:   #1a1b2e;
      --transition:    all .25s cubic-bezier(.23,1.08,.77,1.01);
      --font:          'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    body.dark, html.dark, .dark, .dark-mode {
      --bg:            #121212;
      --card-bg:       #181932;
      --border:        rgba(255,255,255,.10);
      --text:          #ffffff;
      --text-sec:      #9193a8;
      --section-color: #dfe6e9;
      --see-all-color: #74b9ff;
      --modal-bg:      #1e272e;
      --shadow:        0 2px 12px rgba(0,0,0,.35);
      --shadow-md:     0 6px 24px rgba(0,0,0,.45);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font);
      background-color: var(--bg);
      color: var(--text);
      width: 100%;
      min-height: 100vh;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      transition: background-color .25s, color .25s;
    }
    a { color: inherit; text-decoration: none; }
    a:hover { color: inherit; }

    /* ── HEADER NAVBAR (mirrors home.php & header.php) ── */
    header {
      background: var(--primary-light);
    }
    body.dark header, html.dark header, .dark header {
      background: var(--dark-card) !important;
    }
    .navbar {
      padding: 0.7rem 0;
    }
    .navbar-brand {
      font-size: 1.5rem;
      font-weight: bold;
    }
    .navbar-nav .nav-link {
      font-weight: 500;
      color: #222;
      display: flex;
      align-items: center;
      transition: color .2s;
    }
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
      color: var(--primary) !important;
    }
    body.dark .navbar-nav .nav-link,
    html.dark .navbar-nav .nav-link {
      color: var(--dark-text);
    }
    body.dark .navbar-nav .nav-link.active,
    html.dark .navbar-nav .nav-link.active {
      color: #7fb1fa !important;
    }
    @media (max-width: 991px) {
      .navbar-brand {
        order: 1;
        margin-right: auto;
      }
      .theme-toggle-mobile {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
      }
      .drawer-toggle-mobile {
        order: 3;
      }
    }

    /* ── SUB-HEADER BAR (Page Title, Search & Languages) ── */
    .ht-subnav-section {
      background: linear-gradient(135deg, rgba(10,137,154,0.08) 0%, rgba(0,206,201,0.05) 100%);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(8px);
    }
    body.dark .ht-subnav-section,
    html.dark .ht-subnav-section {
      background: linear-gradient(135deg, rgba(10,137,154,0.18) 0%, rgba(24,25,50,0.6) 100%);
      border-bottom-color: rgba(255,255,255,.08);
    }
    .ht-subnav-badge {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, #0a899a, #00cec9);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      box-shadow: 0 4px 12px rgba(10,137,154,0.25);
      flex-shrink: 0;
    }
    .ht-subnav-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
    }
    .ht-subnav-desc {
      font-size: 0.82rem;
      color: var(--text-sec);
    }
    .ht-search-form {
      display: flex;
      align-items: center;
      background: var(--card-bg);
      border: 1.5px solid var(--border);
      border-radius: 50px;
      overflow: hidden;
      padding: 2px 4px 2px 14px;
      transition: border-color .2s, box-shadow .2s;
      min-width: 260px;
      max-width: 380px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .ht-search-form:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(10,137,154,0.15);
    }
    .ht-search-form i { color: var(--text-sec); font-size: .85rem; flex-shrink: 0; }
    .ht-search-form input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      font-size: .85rem;
      color: var(--text);
      padding: 7px 8px;
      font-family: var(--font);
      min-width: 0;
    }
    .ht-search-form input::placeholder { color: var(--text-sec); opacity: 0.8; }
    .ht-search-form button {
      background: var(--primary);
      border: none;
      color: #fff;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: .8rem;
      flex-shrink: 0;
      transition: background .2s, transform .15s;
    }
    .ht-search-form button:hover { background: var(--primary-dark); transform: scale(1.05); }

    /* Language pills */
    .ht-lang-bar {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .ht-lang-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 14px;
      border-radius: 50px;
      font-size: .78rem;
      font-weight: 600;
      cursor: pointer;
      border: 1.5px solid var(--border);
      background: var(--card-bg);
      color: var(--text-sec);
      transition: all .2s;
      white-space: nowrap;
      font-family: var(--font);
    }
    .ht-lang-pill.active,
    .ht-lang-pill:hover {
      border-color: var(--primary);
      color: #fff;
      background: var(--primary);
    }

    /* ── MAIN CONTENT ─────────────────────────────── */
    .ht-main-wrap {
      max-width: 1280px;
      margin: 0 auto;
      padding: 24px 20px 48px;
    }
    @media (max-width: 768px) {
      .ht-main-wrap {
        padding: 16px 14px 40px;
      }
    }

    /* ── SECTION TITLE ───────────────────────────── */
    .ht-section-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--section-color);
    }
    body.dark .ht-section-title,
    html.dark .ht-section-title {
      color: #e2e8f0;
    }
    .ht-see-all {
      font-size: 13px;
      color: var(--see-all-color);
      font-weight: 500;
      cursor: pointer;
      transition: all .25s;
    }
    .ht-see-all:hover { transform: translateX(3px); }

    /* ── CATEGORY HORIZONTAL SCROLL ─────────────── */
    .ht-cats {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding: 6px 2px 14px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(10,137,154,0.3) transparent;
    }
    .ht-cats::-webkit-scrollbar {
      height: 5px;
    }
    .ht-cats::-webkit-scrollbar-thumb {
      background: rgba(10,137,154,0.25);
      border-radius: 10px;
    }
    .ht-cat-item {
      --accent: #3aaeb3;
      --accent-rgb: 58, 174, 179;
      width: 86px;
      height: 84px;
      flex-shrink: 0;
      border: 1px solid rgba(var(--accent-rgb), .22);
      border-radius: 14px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: transform .2s, box-shadow .2s;
      padding: 8px 6px;
      position: relative;
      overflow: hidden;
      background: var(--card-bg);
      text-align: center;
    }
    .ht-cat-item::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 4px;
      background: var(--accent);
    }
    .ht-cat-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 18px rgba(var(--accent-rgb), .25);
    }
    .ht-cat-item.active {
      background: rgba(var(--accent-rgb), .12);
      border-color: rgba(var(--accent-rgb), .6);
      box-shadow: 0 4px 14px rgba(var(--accent-rgb), .2);
    }
    .ht-cat-item i { font-size: 1.25rem; color: var(--accent); flex-shrink: 0; }
    .ht-cat-item span {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-sec);
      line-height: 1.2;
      width: 100%;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .ht-cat-all { --accent: #0a899a; --accent-rgb: 10,137,154; }
    body.dark .ht-cat-item,
    html.dark .ht-cat-item {
      background: var(--dark-card-box);
      border-color: rgba(255,255,255,.09);
    }

    /* ── TIP CARDS GRID ───────────────────────────── */
    .ht-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 20px;
    }
    @media (max-width: 576px) {
      .ht-list {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }
    .ht-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      animation: fadeInUp .45s ease-out both;
      transition: transform .22s, box-shadow .22s;
    }
    .ht-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
    }

    /* Card image */
    .ht-card-img {
      position: relative;
      height: 180px;
      overflow: hidden;
      background: linear-gradient(135deg, #0a899a, #076b79);
    }
    .ht-card-img img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform .4s ease;
    }
    .ht-card:hover .ht-card-img img { transform: scale(1.05); }
    .ht-card-img-ph {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
    }
    .ht-card-img-ph i { font-size: 2.8rem; color: rgba(255,255,255,.38); }

    /* Badges */
    .ht-cat-badge {
      position: absolute; top: 10px; left: 10px;
      padding: 3px 10px; border-radius: 50px;
      font-size: .68rem; font-weight: 700;
      color: #fff;
      background: rgba(0,0,0,.45);
      backdrop-filter: blur(4px);
      display: flex; align-items: center; gap: 4px;
    }
    .ht-feat-badge {
      position: absolute; top: 10px; right: 10px;
      background: linear-gradient(135deg,#f59e0b,#d97706);
      color: #fff; padding: 3px 9px; border-radius: 50px;
      font-size: .63rem; font-weight: 700;
    }

    /* Video Play */
    .ht-play-btn {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,.22);
    }
    .ht-play-btn-inner {
      width: 46px; height: 46px; border-radius: 50%;
      background: rgba(255,255,255,.90);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem;
      box-shadow: 0 4px 18px rgba(0,0,0,.35);
      transition: transform .2s;
    }
    .ht-card:hover .ht-play-btn-inner { transform: scale(1.1); }

    /* Card body */
    .ht-card-body {
      padding: 14px 16px 16px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .ht-card-title {
      font-size: .98rem;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 7px;
      color: var(--text);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: color .2s;
    }
    .ht-card:hover .ht-card-title { color: var(--primary); }
    .ht-card-excerpt {
      font-size: .8rem;
      color: var(--text-sec);
      line-height: 1.55;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* Meta row */
    .ht-card-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: .74rem;
      color: var(--text-sec);
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .ht-card-meta span { display: flex; align-items: center; gap: 4px; }

    /* Footer: author + read btn */
    .ht-card-footer {
      margin-top: auto;
      display: flex;
      align-items: center;
      gap: 9px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }
    .ht-author-photo {
      width: 30px; height: 30px; border-radius: 50%;
      object-fit: cover; flex-shrink: 0;
      border: 2px solid var(--primary-dark);
    }
    .ht-author-ph {
      width: 30px; height: 30px; border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: .68rem; font-weight: 700;
      flex-shrink: 0;
      border: 2px solid var(--primary-dark);
    }
    .ht-author-name {
      font-size: .78rem;
      font-weight: 600;
      color: var(--text);
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ht-read-btn {
      position: relative;
      overflow: hidden;
      isolation: isolate;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 50px;
      padding: 6px 14px;
      font-size: .76rem;
      font-weight: 600;
      cursor: pointer;
      font-family: var(--font);
      white-space: nowrap;
      flex-shrink: 0;
      transition: background .2s, transform .15s;
    }
    .ht-read-btn:hover {
      background: var(--primary-dark);
      transform: translateX(2px);
    }

    /* ── PAGINATION ───────────────────────────────── */
    .ht-pagination {
      display: flex;
      gap: 8px;
      justify-content: center;
      padding: 24px 0 8px;
      flex-wrap: wrap;
    }
    .ht-page-btn {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 7px 14px;
      cursor: pointer;
      color: var(--text);
      font-size: .84rem;
      font-weight: 600;
      font-family: var(--font);
      box-shadow: 0 1px 3px rgba(0,0,0,.06);
      transition: background .2s, color .2s, border-color .2s;
    }
    .ht-page-btn.active, .ht-page-btn:hover {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }
    .ht-page-btn.disabled { opacity: .4; pointer-events: none; }

    /* ── EMPTY STATE ──────────────────────────────── */
    .ht-empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-sec);
    }
    .ht-empty i { font-size: 3.5rem; color: var(--accent); margin-bottom: 14px; }
    .ht-empty h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }

    /* ── ANIMATIONS ───────────────────────────────── */
    @keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
