/*
Theme Name: HealthyNoteBook Child
Template: hello-elementor
Description: Child theme for HealthyNoteBook - Google Algorithm 2025+ | YMYL + E-E-A-T | AdSense Ready
Version: 1.0.0
Author: HealthyNoteBook Team
Text Domain: healthynotebook-child
*/

:root {
  --hn-primary: #0B5ED7;
  --hn-primary-dark: #0a4fc4;
  --hn-primary-light: #e8f0fe;
  --hn-green: #28A745;
  --hn-green-dark: #1e7e34;
  --hn-green-light: #d4edda;
  --hn-text: #1a1a2e;
  --hn-text-muted: #6c757d;
  --hn-bg: #ffffff;
  --hn-bg-gray: #f8f9fa;
  --hn-border: #e9ecef;
  --hn-shadow: 0 2px 12px rgba(11,94,215,0.08);
  --hn-shadow-hover: 0 6px 24px rgba(11,94,215,0.15);
  --hn-radius: 10px;
  --hn-radius-lg: 16px;
  --hn-font-heading: 'Poppins', sans-serif;
  --hn-font-body: 'Inter', sans-serif;
  --hn-line-height: 1.7;
  --hn-max-width: 1200px;
  --hn-transition: all 0.25s ease;
  --hn-header-h: 68px;
}
/*
Theme Name: HealthyNoteBook Child
Template: hello-elementor
Description: Child theme for HealthyNoteBook
Version: 1.0.0
Author: HealthyNoteBook Team
Text Domain: healthynotebook-child
*/

/* =============================================
   BASE RESET & BOX SIZING
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =============================================
   BODY & TYPOGRAPHY
   ============================================= */

body {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #ffffff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a2e;
  margin-top: 0;
  margin-bottom: .75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

a {
  color: #0b5ed7;
  text-decoration: none;
  transition: color .25s ease;
}

a:hover {
  color: #0a4fc4;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #0b5ed7;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-top: 0;
}

/* =============================================
   PROGRESS BAR
   ============================================= */

#hn-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #0b5ed7;
  z-index: 10000;
  transition: width .1s linear;
  pointer-events: none;
}

/* =============================================
   HEADER
   ============================================= */

#hn-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 2px solid #0b5ed7;
  box-shadow: 0 2px 12px rgba(11, 94, 215, 0.1);
}

#hn-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

#hn-header .site-logo {
  flex-shrink: 0;
}

#hn-header .site-logo img {
  height: 44px;
  width: auto;
}

.text-logo {
  font-family: Poppins, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0b5ed7;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.text-logo span {
  color: #28a745;
}

/* =============================================
   NAVIGATION
   ============================================= */

#hn-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#hn-nav li a {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
  display: block;
}

#hn-nav li a:hover {
  background: #e8f0fe;
  color: #0b5ed7;
}

.current-menu-item > a {
  background: #e8f0fe;
  color: #0b5ed7;
}

/* =============================================
   HEADER BUTTONS
   ============================================= */

#hn-search-btn {
  background: none;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
  font-family: Poppins, sans-serif;
  transition: border-color .25s ease, color .25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#hn-search-btn:hover {
  border-color: #0b5ed7;
  color: #0b5ed7;
}

#hn-dark-toggle {
  background: none;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: border-color .25s ease;
  color: #1a1a2e;
  flex-shrink: 0;
}

#hn-dark-toggle:hover {
  border-color: #0b5ed7;
}

/* =============================================
   MOBILE TOGGLE
   ============================================= */

#hn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

#hn-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */

#hn-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

#hn-search-overlay.open {
  display: flex;
}

.search-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  width: 92%;
  max-width: 540px;
}

.search-box .search-field {
  width: 100%;
  border: 2px solid #0b5ed7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 17px;
  font-family: Poppins, sans-serif;
  outline: none;
  color: #1a1a2e;
}

.close-search {
  float: right;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #6c757d;
  margin-bottom: 14px;
  line-height: 1;
  padding: 0;
  transition: color .25s ease;
}

.close-search:hover {
  color: #1a1a2e;
}

.search-form {
  display: flex;
  gap: 8px;
  clear: both;
}

.search-field {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: Poppins, sans-serif;
  outline: none;
  transition: border-color .25s ease;
  color: #1a1a2e;
}

.search-field:focus {
  border-color: #0b5ed7;
}

.search-submit {
  background: #0b5ed7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  transition: background .25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.search-submit:hover {
  background: #0a4fc4;
}

/* =============================================
   AD ZONES
   ============================================= */

.hn-ad-header {
  background: #fff;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #e9ecef;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hn-ad-placeholder {
  color: #6c757d;
  font-size: 12px;
  border: 2px dashed #e9ecef;
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.hn-ad-incontent {
  text-align: center;
  padding: 10px;
  margin: 28px 0;
  background: #f8f9fa;
  border: 2px dashed #e9ecef;
  border-radius: 10px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6c757d;
}

.hn-ad-sidebar {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border: 2px dashed #e9ecef;
  border-radius: 10px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 20px;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.hn-breadcrumb {
  background: #f8f9fa;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.hn-breadcrumb .bc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: #6c757d;
}

.hn-breadcrumb a {
  color: #0b5ed7;
}

.hn-breadcrumb a:hover {
  text-decoration: underline;
}

.hn-breadcrumb span {
  margin: 0 6px;
}

/* =============================================
   HOME WRAPPER & HERO
   ============================================= */

.hn-home-wrapper {
  max-width: 100%;
}

.hn-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}

.hn-hero-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.hn-hero-main .post-card {
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 12px rgba(220, 232, 250, 0.8);
  transition: box-shadow .25s ease;
  overflow: hidden;
}

.hn-hero-main .post-card:hover {
  box-shadow: 0 6px 24px rgba(195, 212, 243, 0.9);
}

.hn-hero-main .post-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hn-hero-main .card-body {
  padding: 20px 22px;
}

.hn-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hn-hero-side .mini-card {
  display: flex;
  gap: 12px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: box-shadow .25s ease, border-color .25s ease;
  background: #fff;
  overflow: hidden;
}

.hn-hero-side .mini-card:hover {
  box-shadow: 0 2px 12px rgba(220, 232, 250, 0.8);
  border-color: #0b5ed7;
}

.hn-hero-side .mini-card img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.hn-hero-side .mini-card .mc-body {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =============================================
   POST META & BADGES
   ============================================= */

.hn-cat-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #0b5ed7;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hn-post-meta {
  font-size: 13px;
  color: #6c757d;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.hn-post-meta .reading-time {
  background: #d4edda;
  color: #1e7e34;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* FIX: Removed conflicting display:flex + max-height on post title */
.hn-post-title {
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hn-post-title a {
  color: #1a1a2e;
}

.hn-post-title a:hover {
  color: #0b5ed7;
}

.hn-post-title.large {
  font-size: 24px;
  -webkit-line-clamp: 4;
}

.hn-post-excerpt {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.hn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0b5ed7;
  font-weight: 600;
  font-size: 14px;
  transition: gap .25s ease;
}

.hn-read-more:hover {
  gap: 8px;
  color: #0a4fc4;
}

/* =============================================
   SECTIONS
   ============================================= */

.hn-section {
  padding: 32px 0;
}

.hn-section .hn-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hn-section-title {
  font-family: Poppins, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 5px solid #0b5ed7;
  padding-left: 12px;
  margin-bottom: 0;
}

.hn-view-all {
  color: #0b5ed7;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #0b5ed7;
  padding: 5px 14px;
  border-radius: 20px;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}

.hn-view-all:hover {
  background: #0b5ed7;
  color: #fff;
}

/* =============================================
   POSTS GRID
   ============================================= */

.hn-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hn-post-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hn-post-card:hover {
  box-shadow: 0 6px 24px rgba(195, 212, 243, 0.9);
  border-color: transparent;
}

.hn-post-card .card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f8f9fa;
}

.hn-post-card .card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hn-post-card .card-body .hn-read-more {
  margin-top: auto;
}

/* =============================================
   CATEGORY TABS
   ============================================= */

.hn-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  max-width: 1200px;
  margin: 0 auto;
}

.hn-cat-tab {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  border: 2px solid #e9ecef;
  color: #6c757d;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
  text-decoration: none;
  display: inline-block;
}

.hn-cat-tab:hover,
.hn-cat-tab.active {
  border-color: #0b5ed7;
  color: #0b5ed7;
  background: #e8f0fe;
}

/* =============================================
   CONTENT + SIDEBAR LAYOUT
   ============================================= */

.hn-content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   SIDEBAR
   ============================================= */

.hn-sidebar {
  position: sticky;
  top: 88px; /* header height + buffer */
}

.hn-widget {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}

.hn-widget-title {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0b5ed7;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hn-popular-post {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  align-items: center;
}

.hn-popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hn-popular-post img {
  width: 68px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f8f9fa;
}

.hn-popular-post .pp-title {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.45;
}

.hn-popular-post .pp-title a {
  color: #1a1a2e;
}

.hn-popular-post .pp-title a:hover {
  color: #0b5ed7;
}

.hn-popular-post .pp-meta {
  font-size: 11px;
  color: #6c757d;
  margin-top: 3px;
}

/* =============================================
   CATEGORY LIST (WIDGET)
   ============================================= */

.hn-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hn-cat-list li {
  border-bottom: 1px solid #e9ecef;
}

.hn-cat-list li:last-child {
  border-bottom: none;
}

.hn-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px;
  color: #1a1a2e;
  font-size: 14px;
  transition: color .25s ease, padding-left .25s ease;
}

.hn-cat-list a:hover {
  color: #0b5ed7;
  padding-left: 8px;
}

.hn-cat-list .count {
  background: #e8f0fe;
  color: #0b5ed7;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* =============================================
   NEWSLETTER WIDGET
   ============================================= */

.hn-newsletter-widget {
  background: #0b5ed7;
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.hn-newsletter-widget h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}

.hn-newsletter-widget p {
  font-size: 13px;
  opacity: .88;
  margin-bottom: 14px;
}

.hn-newsletter-widget input[type="email"],
.hn-newsletter-widget input[type="text"] {
  width: 100%;
  border: none;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: Poppins, sans-serif;
  margin-bottom: 8px;
  outline: none;
  color: #1a1a2e;
}

.hn-newsletter-widget button {
  width: 100%;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  cursor: pointer;
  transition: background .25s ease;
}

.hn-newsletter-widget button:hover {
  background: #1e7e34;
}

/* =============================================
   SINGLE POST LAYOUT
   ============================================= */

.hn-single-wrapper {
  max-width: 100%;
}

.hn-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: flex-start;
  padding: 28px 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   ARTICLE HEADER
   ============================================= */

.hn-article-header {
  margin-bottom: 24px;
}

.hn-article-header h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 14px;
  color: #1a1a2e;
}

.hn-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 18px;
  font-size: 13px;
  color: #6c757d;
}

.hn-article-meta-bar .author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hn-article-meta-bar .author-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8f0fe;
}

.hn-article-meta-bar .author-name {
  font-weight: 600;
  color: #0b5ed7;
}

.hn-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hn-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}

.hn-share-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

.hn-share-btn.whatsapp:hover {
  background: #128c7e;
  color: #fff;
}

.hn-share-btn.twitter {
  background: #1da1f2;
  color: #fff;
}

.hn-share-btn.twitter:hover {
  background: #0d8fd1;
  color: #fff;
}

/* =============================================
   FEATURED IMAGE
   ============================================= */

.hn-featured-img {
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.hn-featured-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* =============================================
   TABLE OF CONTENTS
   ============================================= */

.hn-toc {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-left: 4px solid #0b5ed7;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.hn-toc-title {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.hn-toc ol {
  margin: 0;
  padding-left: 20px;
}

.hn-toc ol li {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.hn-toc ol li a {
  color: #0b5ed7;
}

.hn-toc ol li a:hover {
  text-decoration: underline;
}

/* =============================================
   ARTICLE CONTENT
   ============================================= */

.hn-article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a2e;
}

.hn-article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fe;
  color: #1a1a2e;
}

.hn-article-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 10px;
  color: #0a4fc4;
}

.hn-article-content ul,
.hn-article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.hn-article-content li {
  margin-bottom: 7px;
  line-height: 1.7;
}

.hn-article-content blockquote {
  border-left: 4px solid #0b5ed7;
  background: #e8f0fe;
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #0a4fc4;
}

.hn-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.hn-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.hn-article-content th {
  background: #0b5ed7;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.hn-article-content td {
  border: 1px solid #e9ecef;
  padding: 9px 14px;
}

.hn-article-content tr:nth-child(even) td {
  background: #f8f9fa;
}

/* =============================================
   MEDICAL WARNING & DISCLAIMER
   ============================================= */

.hn-medical-warning {
  background: #fff3e0;
  border: 2px solid #ffb74d;
  border-left: 5px solid #ff8f00;
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 28px 0;
  font-size: 14px;
  color: #6d4c00;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hn-medical-warning .icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.hn-disclaimer {
  background: #f3e5f5;
  border: 1px solid #ce93d8;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 13px;
  color: #4a148c;
  line-height: 1.6;
}

/* =============================================
   SOURCES
   ============================================= */

.hn-sources {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 18px;
  margin: 24px 0;
}

.hn-sources h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.hn-sources ul {
  margin: 0;
  padding-left: 18px;
}

.hn-sources li {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 5px;
}

.hn-sources a {
  color: #0b5ed7;
}

.hn-sources a:hover {
  text-decoration: underline;
}

/* =============================================
   FAQ
   ============================================= */

.hn-faq {
  margin: 28px 0;
}

.hn-faq-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.hn-faq-item {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.hn-faq-q {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a1a2e;
  transition: background .25s ease, color .25s ease;
  font-family: Poppins, sans-serif;
  user-select: none;
}

.hn-faq-q:hover,
.hn-faq-item.open .hn-faq-q {
  background: #e8f0fe;
  color: #0b5ed7;
}

.hn-faq-q .faq-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s ease;
}

/* FIX: Added smooth transition for FAQ answer */
.hn-faq-a {
  display: none;
  padding: 14px 16px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.7;
  border-top: 1px solid #e9ecef;
}

.hn-faq-item.open .hn-faq-a {
  display: block;
}

.hn-faq-item.open .hn-faq-q .faq-icon {
  transform: rotate(45deg);
}

/* =============================================
   AUTHOR BIO
   ============================================= */

.hn-author-bio {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 22px;
  margin: 28px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hn-author-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0b5ed7;
  flex-shrink: 0;
}

.hn-author-bio .bio-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #1a1a2e;
}

.hn-author-bio .bio-cred {
  font-size: 13px;
  color: #0b5ed7;
  font-weight: 600;
  margin-bottom: 8px;
}

.hn-author-bio .bio-text {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 10px;
}

.hn-author-bio .bio-social a {
  color: #6c757d;
  font-size: 13px;
  margin-right: 12px;
  font-weight: 500;
  transition: color .25s ease;
}

.hn-author-bio .bio-social a:hover {
  color: #0b5ed7;
}

/* =============================================
   RELATED POSTS
   ============================================= */

.hn-related {
  margin: 28px 0;
}

.hn-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a2e;
}

.hn-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* =============================================
   PAGINATION
   ============================================= */

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 20px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */

#hn-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 48px 0 0;
  margin-top: 40px;
}

.hn-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hn-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #262645;
}

.hn-footer-logo {
  font-family: Poppins, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}

.hn-footer-logo span {
  color: #28a745;
}

.hn-footer-tagline {
  font-size: 13px;
  color: #aaa;
  line-height: 1.65;
  margin-bottom: 18px;
}

.hn-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hn-footer-social a {
  width: 36px;
  height: 36px;
  background: #242440;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ccc;
  transition: background .25s ease, color .25s ease;
  text-decoration: none;
}

.hn-footer-social a:hover {
  background: #0b5ed7;
  color: #fff;
}

.hn-footer-col h5 {
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #262645;
}

.hn-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hn-footer-col ul li {
  margin-bottom: 9px;
}

.hn-footer-col ul a {
  color: #aaa;
  font-size: 13px;
  transition: color .25s ease, padding-left .25s ease;
  display: inline-block;
}

.hn-footer-col ul a:hover {
  color: #fff;
  padding-left: 4px;
}

.hn-footer-ad {
  text-align: center;
  background: #1f1f38;
  border: 2px dashed #262645;
  border-radius: 8px;
  padding: 10px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5e5e8a;
  font-size: 12px;
  margin-bottom: 24px;
}

.hn-footer-bottom {
  padding: 16px 0;
  border-top: 1px solid #222242;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

.hn-footer-bottom a {
  color: #aaa;
  transition: color .25s ease;
}

.hn-footer-bottom a:hover {
  color: #fff;
}

/* =============================================
   BACK TO TOP
   ============================================= */

#hn-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: #0b5ed7;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(147, 188, 239, 0.6);
  z-index: 999;
  transition: background .25s ease, transform .25s ease;
}

#hn-back-top.show {
  display: flex;
}

#hn-back-top:hover {
  background: #0a4fc4;
  transform: translateY(-2px);
}

/* =============================================
   DARK MODE
   ============================================= */

body.dark-mode {
  background: #1a1a2e;
  color: #e8eaed;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #e8eaed;
}

body.dark-mode #hn-header {
  background: #22223a;
  border-bottom-color: #0b5ed7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* FIX: Mobile nav dark mode background added */
body.dark-mode #hn-nav {
  background: #22223a;
}

body.dark-mode #hn-nav li a {
  color: #e8eaed;
}

body.dark-mode #hn-nav li a:hover,
body.dark-mode .current-menu-item > a {
  background: #2d2d50;
  color: #7aadff;
}

body.dark-mode #hn-search-btn,
body.dark-mode #hn-dark-toggle {
  border-color: #2d2d4a;
  color: #e8eaed;
}

body.dark-mode #hn-mobile-toggle span {
  background: #e8eaed;
}

body.dark-mode .search-box {
  background: #242438;
  color: #e8eaed;
}

body.dark-mode .search-box .search-field,
body.dark-mode .search-field {
  background: #1a1a2e;
  color: #e8eaed;
  border-color: #2d2d4a;
}

body.dark-mode .hn-breadcrumb {
  background: #22223a;
  border-bottom-color: #2d2d4a;
}

body.dark-mode .hn-breadcrumb .bc-inner {
  color: #aaa;
}

body.dark-mode .hn-hero-main .post-card {
  background: #242438;
  border-color: #2d2d4a;
}

body.dark-mode .hn-hero-side .mini-card {
  background: #242438;
  border-color: #2d2d4a;
}

body.dark-mode .hn-post-card {
  background: #242438;
  border-color: #2d2d4a;
}

body.dark-mode .hn-post-title,
body.dark-mode .hn-post-title a {
  color: #e8eaed;
}

body.dark-mode .hn-cat-tab {
  background: #242438;
  border-color: #2d2d4a;
  color: #aaa;
}

body.dark-mode .hn-cat-tab:hover,
body.dark-mode .hn-cat-tab.active {
  background: #1e2d52;
  color: #7aadff;
  border-color: #0b5ed7;
}

body.dark-mode .hn-widget {
  background: #242438;
  border-color: #2d2d4a;
}

body.dark-mode .hn-widget-title {
  color: #e8eaed;
}

body.dark-mode .hn-popular-post {
  border-bottom-color: #2d2d4a;
}

body.dark-mode .hn-popular-post .pp-title,
body.dark-mode .hn-popular-post .pp-title a {
  color: #e8eaed;
}

body.dark-mode .hn-cat-list li {
  border-bottom-color: #2d2d4a;
}

body.dark-mode .hn-cat-list a {
  color: #e8eaed;
}

body.dark-mode .hn-article-header h1 {
  color: #e8eaed;
}

body.dark-mode .hn-article-meta-bar {
  border-color: #2d2d4a;
  color: #aaa;
}

body.dark-mode .hn-article-content {
  color: #d8dadd;
}

body.dark-mode .hn-article-content h2 {
  color: #e8eaed;
  border-bottom-color: #2d2d4a;
}

body.dark-mode .hn-article-content h3 {
  color: #7aadff;
}

body.dark-mode .hn-article-content td {
  border-color: #2d2d4a;
}

body.dark-mode .hn-article-content tr:nth-child(even) td {
  background: #22223a;
}

body.dark-mode .hn-toc {
  background: #242438;
  border-color: #2d2d4a;
}

body.dark-mode .hn-toc-title {
  color: #e8eaed;
}

body.dark-mode .hn-sources {
  background: #242438;
  border-color: #2d2d4a;
}

body.dark-mode .hn-sources h4 {
  color: #e8eaed;
}

body.dark-mode .hn-faq-item {
  border-color: #2d2d4a;
}

body.dark-mode .hn-faq-q {
  background: #22223a;
  color: #e8eaed;
}

body.dark-mode .hn-faq-item.open .hn-faq-q,
body.dark-mode .hn-faq-q:hover {
  background: #1e2d52;
  color: #7aadff;
}

body.dark-mode .hn-faq-a {
  color: #aaa;
  border-top-color: #2d2d4a;
}

body.dark-mode .hn-author-bio {
  background: #22223a;
  border-color: #2d2d4a;
}

body.dark-mode .hn-author-bio .bio-name {
  color: #e8eaed;
}

body.dark-mode .hn-ad-incontent,
body.dark-mode .hn-ad-sidebar {
  background: #22223a;
  border-color: #2d2d4a;
}

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */

@media (max-width: 1024px) {
  .hn-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hn-hero-inner {
    grid-template-columns: 1fr;
  }

  .hn-hero-side {
    display: none;
  }

  .hn-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hn-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   RESPONSIVE — MOBILE NAV (≤900px)
   ============================================= */

@media (max-width: 900px) {
  /* FIX: header stays sticky on mobile; nav drops below */
  #hn-header {
    position: sticky;
  }

  #hn-mobile-toggle {
    display: flex;
  }

  #hn-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    border-bottom: 2px solid #0b5ed7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    gap: 2px;
    z-index: 9998;
  }

  #hn-nav.open {
    display: flex;
  }

  #hn-nav li a {
    display: block;
    padding: 10px 14px;
  }

  .hn-sidebar {
    top: 10px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */

@media (max-width: 768px) {
  .hn-content-sidebar,
  .hn-single-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hn-sidebar {
    position: static;
  }

  .hn-posts-grid {
    grid-template-columns: 1fr;
  }

  .hn-article-header h1 {
    font-size: 24px;
  }

  .hn-featured-img img {
    height: 240px;
  }

  .hn-author-bio {
    flex-direction: column;
  }

  .hn-author-bio img {
    width: 64px;
    height: 64px;
  }

  .hn-related-grid {
    grid-template-columns: 1fr;
  }

  .hn-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hn-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hn-share-bar {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hn-content-sidebar {
    padding: 16px 14px 32px;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */

@media (max-width: 480px) {
  .hn-section-title {
    font-size: 18px;
  }

  .hn-hero {
    padding: 20px 14px 16px;
  }

  #hn-header .header-inner {
    padding: 0 12px;
  }

  .hn-cat-tabs {
    padding: 12px 14px;
  }

  .hn-article-header h1 {
    font-size: 20px;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
  #hn-header,
  #hn-footer,
  .hn-sidebar,
  .hn-ad-incontent,
  .hn-ad-header,
  .hn-ad-sidebar,
  #hn-progress-bar,
  #hn-back-top,
  .hn-share-bar,
  .hn-cat-tabs {
    display: none !important;
  }

  .hn-single-layout,
  .hn-content-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body {
    font-size: 14pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hn-article-content h2,
  .hn-article-content h3 {
    color: #000;
  }
}