/* ==========================================================================
   HealthRovia - Main Theme Stylesheet (Pixel-Perfect Matching Reference)
   ========================================================================== */

:root {
  --brand-primary: #0d9488;
  --brand-primary-hover: #0f766e;
  --brand-primary-dark: #115e59;
  --brand-accent: #14b8a6;
  --brand-light: #f0fdf4;
  --brand-mint-border: #ccfbf1;
  --brand-mint-bg: #ecfdf5;
  --brand-dark: #0f172a;
  --brand-gray-900: #0f172a;
  --brand-gray-800: #1e293b;
  --brand-gray-700: #334155;
  --brand-gray-600: #475569;
  --brand-gray-500: #64748b;
  --brand-gray-400: #94a3b8;
  --brand-gray-200: #e2e8f0;
  --brand-gray-100: #f1f5f9;
  --brand-gray-50: #f8fafc;
  --brand-white: #ffffff;

  --color-underweight: #38bdf8;
  --color-normal: #10b981;
  --color-overweight: #f59e0b;
  --color-obese: #ef4444;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(13, 148, 136, 0.08);

  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--brand-gray-700);
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-gray-900);
  font-weight: 700;
  line-height: 1.25;
}

.hr-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.hr-site-header {
  background-color: var(--brand-white);
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.hr-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.hr-logo-icon {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--brand-primary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hr-brand-logo span.brand-dark {
  color: #0f172a;
  font-weight: 800;
}
.hr-brand-logo span.brand-teal {
  color: var(--brand-primary);
  font-weight: 800;
  margin-left: 2px;
}

/* Navigation Links */
.hr-primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.hr-primary-nav li a {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  position: relative;
}

.hr-primary-nav li a:hover,
.hr-primary-nav li.current-menu-item > a {
  color: var(--brand-primary);
}

.hr-primary-nav li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  border-radius: 2px;
}

/* Dropdown */
.hr-has-dropdown {
  position: relative;
}

.hr-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--brand-white);
  border: 1px solid var(--brand-gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.hr-has-dropdown:hover .hr-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hr-dropdown-menu li a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--brand-gray-700);
}

.hr-dropdown-menu li a:hover {
  background-color: var(--brand-mint-bg);
  color: var(--brand-primary);
}

/* Header Actions */
.hr-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hr-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--brand-gray-600);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hr-search-btn:hover {
  background: var(--brand-gray-100);
  color: var(--brand-primary);
}

.hr-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--brand-gray-200);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  color: var(--brand-gray-800);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hr-mobile-toggle:hover {
  background: var(--brand-gray-100);
  color: var(--brand-primary);
}

/* ==========================================================================
   Hero Section (Tightened & Pixel-Perfect)
   ========================================================================== */
.hr-hero-section {
  padding: 16px 0 22px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf9 50%, #ffffff 100%);
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.hr-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1fr;
  gap: 24px;
  align-items: center;
}

/* Hero Content (Left) */
.hr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #d1fae5;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid #a7f3d0;
}

.hr-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hr-hero-title span.text-highlight {
  color: var(--brand-primary);
  display: block;
}

.hr-hero-desc {
  font-size: 14.5px;
  color: var(--brand-gray-500);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 440px;
}

.hr-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hr-btn-primary {
  background-color: var(--brand-primary);
  color: var(--brand-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.hr-btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.hr-btn-secondary {
  background-color: var(--brand-white);
  color: var(--brand-gray-700);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--brand-gray-200);
  cursor: pointer;
}

.hr-btn-secondary:hover {
  background-color: var(--brand-gray-50);
  border-color: var(--brand-gray-400);
  color: var(--brand-gray-900);
}

/* Hero Center (Woman Image Cutout with Organic Mint Circle Backdrop & Badge) */
.hr-hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  height: 100%;
  overflow: visible;
}

.hr-hero-blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 40% 40%, #99f6e4 0%, #a7f3d0 50%, #ccfbf1 100%);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.95;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.12);
}

.hr-hero-woman-img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 280px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(15, 118, 110, 0.09));
}

.hr-hero-floating-pill {
  position: absolute;
  bottom: 20px;
  left: -10px;
  z-index: 3;
  background: var(--brand-white);
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f1f5f9;
  white-space: nowrap;
}

.hr-floating-heart-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-floating-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hr-float-line1 {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.hr-float-line2 {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
}

/* Hero Right: Live Interactive Card */
.hr-hero-calc-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   Homepage Main Layout (Latest Articles + Popular Topics Sidebar)
   ========================================================================== */
.hr-home-content-section {
  padding: 16px 0 36px;
}

.hr-main-sidebar-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 28px;
}

/* Section Titles */
.hr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hr-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-gray-900);
  letter-spacing: -0.01em;
}

.hr-view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hr-view-all-link:hover {
  text-decoration: underline;
  color: var(--brand-primary-dark);
}

/* Articles Cards Grid */
.hr-articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hr-article-card {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.hr-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-mint-border);
}

.hr-article-card:hover .hr-article-title,
.hr-article-card:hover .hr-article-title a {
  color: var(--brand-primary);
}

.hr-article-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: var(--brand-gray-100);
}

.hr-article-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hr-article-card:hover .hr-article-thumb-wrap img {
  transform: scale(1.05);
}

.hr-article-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hr-card-category-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  background-color: #ecfdf5;
  color: var(--brand-primary);
  border: 1px solid var(--brand-mint-border);
}

.hr-card-category-pill.cat-wellness {
  background-color: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.hr-card-category-pill.cat-fitness {
  background-color: #ecfeff;
  color: #0891b2;
  border-color: #a5f3fc;
}

.hr-article-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-gray-900);
  margin-bottom: 10px;
}

.hr-article-title a:hover {
  color: var(--brand-primary);
}

.hr-article-excerpt {
  font-size: 13.5px;
  color: var(--brand-gray-500);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hr-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--brand-gray-400);
  border-top: 1px solid #f8fafc;
  padding-top: 12px;
}

.hr-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Popular Topics Sidebar (Right) */
.hr-topics-sidebar-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  border: 1px solid #f1f5f9;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.hr-topics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hr-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #f8fafc;
  background: #fdfefe;
  transition: var(--transition);
}

.hr-topic-item:hover {
  background: #f0fdf4;
  border-color: var(--brand-mint-border);
  transform: translateX(3px);
}

.hr-topic-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hr-topic-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-topic-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-gray-900);
}

.hr-topic-desc {
  font-size: 12px;
  color: var(--brand-gray-500);
}

.hr-topic-arrow {
  color: var(--brand-gray-400);
  font-size: 18px;
  transition: var(--transition);
}

.hr-topic-item:hover .hr-topic-arrow {
  color: var(--brand-primary);
  transform: translateX(3px);
}

/* ==========================================================================
   Newsletter Bar (Fully Optimized for Mobile & Desktop)
   ========================================================================== */
.hr-newsletter-section {
  padding-bottom: 50px;
}

.hr-newsletter-banner {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.22);
}

.hr-news-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hr-news-icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hr-news-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.hr-news-subtitle {
  font-size: 13.5px;
  color: #ccfbf1;
}

.hr-news-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 360px;
}

.hr-news-input {
  flex-grow: 1;
  background: var(--brand-white);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--brand-gray-900);
  outline: none;
  font-family: var(--font-body);
}

.hr-news-input:focus {
  border-color: #14b8a6;
}

.hr-news-btn {
  background: var(--brand-white);
  color: #0f766e;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hr-news-btn:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}

/* ==========================================================================
   Tools Hub Section
   ========================================================================== */
.hr-tools-grid-section {
  padding: 45px 0;
  background-color: var(--brand-white);
  border-top: 1px solid #f1f5f9;
}

.hr-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.hr-tool-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.hr-tool-card:hover {
  background: var(--brand-white);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.hr-tool-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hr-tool-badge {
  font-size: 11px;
  background: #ecfdf5;
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-left: auto;
}

.hr-tool-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brand-gray-900);
  margin-bottom: 6px;
}

.hr-tool-card-desc {
  font-size: 13px;
  color: var(--brand-gray-500);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* ==========================================================================
   Single Post, Calculator Page & Blog Layout
   ========================================================================== */
.hr-page-header {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  padding: 36px 0 28px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.hr-page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 10px;
}

.hr-page-subtitle {
  font-size: 15.5px;
  color: var(--brand-gray-600);
  max-width: 680px;
  margin: 0 auto;
}

.hr-content-wrapper {
  padding: 40px 0 70px;
}

.hr-single-article {
  max-width: 840px;
  margin: 0 auto;
  background: var(--brand-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
}

.hr-single-article h2 {
  font-size: 24px;
  margin: 28px 0 14px;
  color: var(--brand-gray-900);
}

.hr-single-article h3 {
  font-size: 19px;
  margin: 22px 0 10px;
  color: var(--brand-gray-800);
}

.hr-single-article p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--brand-gray-700);
  margin-bottom: 18px;
}

/* FAQ Accordion */
.hr-faq-accordion {
  margin-top: 30px;
}

.hr-faq-item {
  border: 1px solid var(--brand-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--brand-white);
}

.hr-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brand-gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
}

.hr-faq-answer {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--brand-gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hr-site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 50px 0 26px;
  font-size: 14px;
}

.hr-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.hr-footer-col h4 {
  color: #ffffff;
  font-size: 15.5px;
  margin-bottom: 16px;
}

.hr-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hr-footer-links a:hover {
  color: var(--brand-accent);
}

.hr-disclaimer-box {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 26px;
  border-left: 3px solid var(--brand-primary);
}

.hr-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  font-size: 13px;
}

/* ==========================================================================
   Author Profile Box (Responsive, E-E-A-T Optimized, Mobile-Contained)
   ========================================================================== */
.hr-author-box {
  margin-top: 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hr-author-avatar-wrap {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--brand-mint-border);
}

.hr-author-details {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hr-author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hr-author-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-gray-900);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hr-author-role-badge {
  font-size: 12px;
  font-weight: 700;
  background: #ecfdf5;
  color: var(--brand-primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-mint-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hr-author-bio {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--brand-gray-600);
  line-height: 1.6;
}

.hr-author-contact-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 600;
  flex-wrap: wrap;
}

.hr-author-contact-links a {
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hr-author-contact-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Google AdSense Units & Containers (100% Policy Compliant)
   ========================================================================== */
.hr-ad-container {
  margin: 24px auto;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
}

.hr-ad-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  text-align: center;
}

.hr-ad-slot {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.hr-ad-slot-header {
  max-width: 728px;
  min-height: 90px;
}

.hr-ad-slot-incontent {
  max-width: 600px;
  min-height: 250px;
}

.hr-ad-slot-sidebar {
  max-width: 300px;
  min-height: 250px;
}

.hr-ad-slot-footer {
  max-width: 728px;
  min-height: 90px;
}

/* ==========================================================================
   Cookie Consent Banner (GDPR & CCPA Compliant)
   ========================================================================== */
.hr-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 780px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: hrSlideUp 0.35s ease;
  box-sizing: border-box;
}

@keyframes hrSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hr-cookie-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.hr-cookie-text a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
}

.hr-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hr-cookie-btn-accept {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.hr-cookie-btn-accept:hover {
  background: var(--brand-primary-hover);
}

.hr-cookie-btn-decline {
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.hr-cookie-btn-decline:hover {
  background: #e2e8f0;
}

/* Toast Notification */
.hr-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: hrToastIn 0.3s ease;
}

@keyframes hrToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Search Modal Overlay (Hidden by Default, Pops Up on Search Button Click)
   ========================================================================== */
.hr-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hr-search-modal.active {
  opacity: 1;
}

.hr-search-modal-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  position: relative;
  box-sizing: border-box;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hr-search-modal.active .hr-search-modal-box {
  transform: scale(1) translateY(0);
}

.hr-search-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hr-search-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 1120px) {
  .hr-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hr-hero-image-wrap {
    grid-column: span 2;
    margin: 15px 0;
  }
  .hr-main-sidebar-grid {
    grid-template-columns: 1fr;
  }
  .hr-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hr-site-header {
    height: auto;
  }
  
  .hr-header-inner {
    height: 64px;
  }

  .hr-mobile-toggle {
    display: flex;
  }

  /* Mobile Drawer Menu */
  .hr-nav-wrapper {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--brand-primary);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 999;
  }

  .hr-nav-wrapper.mobile-active {
    max-height: 520px;
    overflow-y: auto;
  }

  .hr-primary-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 20px;
    width: 100%;
  }

  .hr-primary-nav li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .hr-primary-nav li a {
    padding: 12px 0;
    width: 100%;
    font-size: 15.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hr-chevron-icon {
    transition: transform 0.25s ease;
  }

  .hr-has-dropdown.dropdown-open .hr-chevron-icon {
    transform: rotate(180deg);
  }

  .hr-has-dropdown .hr-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: none;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
  }

  .hr-has-dropdown.dropdown-open .hr-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .hr-has-dropdown .hr-dropdown-menu li {
    border-bottom: 1px solid #f1f5f9;
  }

  .hr-has-dropdown .hr-dropdown-menu li:last-child {
    border-bottom: none;
  }

  .hr-has-dropdown .hr-dropdown-menu li a {
    padding: 9px 4px;
    font-size: 14px;
  }

  /* Hero Section Mobile Optimization: Image completely hidden on mobile */
  .hr-hero-section {
    padding: 16px 0 24px;
  }

  .hr-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hr-hero-title {
    font-size: 30px;
  }

  .hr-hero-desc {
    font-size: 14.5px;
    margin-bottom: 18px;
  }

  .hr-hero-image-wrap {
    display: none !important;
  }

  .hr-articles-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Newsletter Box Mobile Optimization */
  .hr-newsletter-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    gap: 18px;
  }

  .hr-news-left {
    flex-direction: column;
    gap: 10px;
  }

  .hr-news-form {
    width: 100%;
    min-width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hr-news-input {
    width: 100%;
  }

  .hr-news-btn {
    width: 100%;
    padding: 12px;
  }

  .hr-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hr-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Single Article & Author Box on Mobile (Guaranteed Zero-Overflow) */
  .hr-single-article {
    padding: 20px 14px;
    border-radius: 14px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hr-author-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 14px !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hr-author-avatar-wrap {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .hr-author-details {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .hr-author-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .hr-author-name {
    font-size: 16px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }

  .hr-author-bio {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .hr-author-contact-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: 12.5px !important;
    width: 100% !important;
  }

  .hr-author-contact-links span {
    display: none !important;
  }

  .hr-author-contact-links a {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .hr-cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 18px;
    gap: 14px;
    bottom: 12px;
  }

  .hr-cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .hr-cookie-btn-accept,
  .hr-cookie-btn-decline {
    flex: 1;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .hr-page-title {
    font-size: 26px;
  }
  
  .hr-hero-title {
    font-size: 26px;
  }

  .hr-page-header {
    padding: 28px 0 20px;
  }

  .hr-content-wrapper {
    padding: 24px 0 50px;
  }
}
