/*
Theme Name: HealthNews
Theme URI: https://healthnews.example.com
Author: HealthNews Team
Author URI: https://healthnews.example.com
Description: A professional health and medical news WordPress theme with extensive customization options including multiple layouts, sidebar options, full-width templates, and a fully customizable navigation and homepage.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthnews
Tags: news, magazine, health, medical, blog, two-columns, three-columns, left-sidebar, right-sidebar, full-width-template, custom-menu, custom-logo, custom-header, custom-background, featured-images, sticky-post, translation-ready, wide-blocks
*/

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
    --hn-primary: #00b8c8;
    --hn-primary-dark: #0097a7;
    --hn-primary-light: #e0f7fa;
    --hn-secondary: #2c3e50;
    --hn-accent: #e74c3c;
    --hn-text: #333333;
    --hn-text-light: #666666;
    --hn-text-muted: #999999;
    --hn-border: #e5e5e5;
    --hn-bg: #f5f5f5;
    --hn-white: #ffffff;
    --hn-black: #111111;
    --hn-nav-bg: #00b8c8;
    --hn-nav-text: #ffffff;
    --hn-nav-hover: #0097a7;
    --hn-font-primary: 'Merriweather', Georgia, serif;
    --hn-font-secondary: 'Source Sans Pro', Arial, sans-serif;
    --hn-font-display: 'Playfair Display', Georgia, serif;
    --hn-container-width: 1200px;
    --hn-sidebar-width: 300px;
    --hn-radius: 3px;
    --hn-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --hn-shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
    --hn-transition: 0.2s ease;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--hn-font-secondary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--hn-text);
    background: var(--hn-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hn-primary); text-decoration: none; transition: color var(--hn-transition); }
a:hover { color: var(--hn-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ===========================
   CONTAINER & LAYOUT
=========================== */
.hn-container {
    max-width: var(--hn-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hn-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.hn-col { padding: 0 12px; }

/* Column Widths */
.hn-col-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
.hn-col-2  { flex: 0 0 16.666%; max-width: 16.666%; }
.hn-col-3  { flex: 0 0 25%;     max-width: 25%; }
.hn-col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.hn-col-5  { flex: 0 0 41.666%; max-width: 41.666%; }
.hn-col-6  { flex: 0 0 50%;     max-width: 50%; }
.hn-col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.hn-col-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.hn-col-9  { flex: 0 0 75%;     max-width: 75%; }
.hn-col-12 { flex: 0 0 100%;    max-width: 100%; }

/* ===========================
   TOP BAR
=========================== */
.hn-topbar {
    background: var(--hn-white);
    border-bottom: 1px solid var(--hn-border);
    padding: 8px 0;
    font-size: 13px;
}
.hn-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hn-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--hn-text-light);
    border-right: 1px solid var(--hn-border);
    transition: color var(--hn-transition);
}
.hn-topbar-social a:first-child { border-left: 1px solid var(--hn-border); }
.hn-topbar-social a:hover { color: var(--hn-primary); }
.hn-topbar-date { color: var(--hn-text-muted); font-size: 12px; }

/* ===========================
   SITE HEADER
=========================== */
.hn-site-header {
    background: var(--hn-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--hn-border);
}
.hn-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hn-site-branding { text-align: center; }
.hn-site-title {
    font-family: var(--hn-font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--hn-black);
    letter-spacing: -1px;
    line-height: 1;
}
.hn-site-title span { color: var(--hn-primary); }
.hn-site-title a { color: inherit; }
.hn-site-description {
    font-size: 12px;
    color: var(--hn-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}
.hn-header-subscribe {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.hn-btn-subscribe {
    background: var(--hn-primary);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: var(--hn-radius);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--hn-transition);
    display: inline-block;
}
.hn-btn-subscribe:hover { background: var(--hn-primary-dark); color: #fff !important; }

/* ===========================
   NAVIGATION
=========================== */
.hn-navigation {
    background: var(--hn-nav-bg);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.hn-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hn-primary-menu {
    display: flex;
    align-items: center;
}
.hn-primary-menu > li { position: relative; }
.hn-primary-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: var(--hn-nav-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--hn-transition);
}
.hn-primary-menu > li > a:hover,
.hn-primary-menu > li.current-menu-item > a,
.hn-primary-menu > li.current_page_item > a {
    background: rgba(0,0,0,0.15);
    color: #fff;
}
.hn-primary-menu > li.active > a,
.hn-primary-menu > li:first-child > a {
    background: rgba(0,0,0,0.2);
}

/* Dropdown */
.hn-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--hn-white);
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border-top: 3px solid var(--hn-primary);
}
.hn-primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hn-primary-menu .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--hn-text);
    font-size: 13px;
    border-bottom: 1px solid var(--hn-border);
    transition: all var(--hn-transition);
}
.hn-primary-menu .sub-menu li a:hover {
    background: var(--hn-primary-light);
    color: var(--hn-primary);
    padding-left: 22px;
}

/* Nav Search */
.hn-nav-search { padding: 0 12px; }
.hn-nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
}
.hn-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.hn-search-overlay.active { display: flex; }
.hn-search-form-wrap {
    width: 600px;
    max-width: 90%;
    position: relative;
}
.hn-search-overlay input[type="search"] {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-size: 20px;
    border: none;
    border-radius: 4px;
    outline: none;
}
.hn-search-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--hn-text-muted);
}

/* Mobile Menu Toggle */
.hn-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    padding: 14px 16px;
}

/* Breaking News Ticker */
.hn-breaking-news {
    background: var(--hn-secondary);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
}
.hn-breaking-inner { display: flex; align-items: center; }
.hn-breaking-label {
    background: var(--hn-accent);
    color: #fff;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 16px;
    flex-shrink: 0;
}
.hn-ticker-wrap { overflow: hidden; flex: 1; }
.hn-ticker {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.hn-ticker a { color: #fff; font-size: 13px; }
.hn-ticker a:hover { color: var(--hn-primary); }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   BREADCRUMB
=========================== */
.hn-breadcrumb {
    background: var(--hn-white);
    border-bottom: 1px solid var(--hn-border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--hn-text-muted);
}
.hn-breadcrumb a { color: var(--hn-text-light); }
.hn-breadcrumb a:hover { color: var(--hn-primary); }
.hn-breadcrumb span { margin: 0 6px; }

/* ===========================
   SECTION HEADERS
=========================== */
.hn-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hn-border);
}
.hn-section-title {
    font-family: var(--hn-font-secondary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hn-white);
    background: var(--hn-primary);
    padding: 5px 14px;
    display: inline-block;
}
.hn-section-line { flex: 1; height: 2px; background: var(--hn-border); margin-left: 0; }
.hn-section-more {
    font-size: 12px;
    color: var(--hn-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

/* ===========================
   CATEGORY BADGES
=========================== */
.hn-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--hn-primary);
    border-radius: 2px;
    margin-right: 4px;
    margin-bottom: 4px;
}
.hn-cat-badge.disease   { background: #e74c3c; }
.hn-cat-badge.fitness   { background: #27ae60; }
.hn-cat-badge.nutrition { background: #f39c12; }
.hn-cat-badge.general   { background: #3498db; }
.hn-cat-badge.health    { background: var(--hn-primary); }
.hn-cat-badge.tips      { background: #9b59b6; }
.hn-cat-badge.public-health { background: #1abc9c; }
.hn-cat-badge.elderly   { background: #e67e22; }

/* ===========================
   CARDS & POSTS
=========================== */
.hn-card {
    background: var(--hn-white);
    border-radius: var(--hn-radius);
    overflow: hidden;
    box-shadow: var(--hn-shadow);
    transition: box-shadow var(--hn-transition), transform var(--hn-transition);
}
.hn-card:hover {
    box-shadow: var(--hn-shadow-hover);
    transform: translateY(-2px);
}
.hn-card-thumb { position: relative; overflow: hidden; }
.hn-card-thumb img {
    width: 100%;
    transition: transform 0.4s ease;
}
.hn-card:hover .hn-card-thumb img { transform: scale(1.04); }
.hn-card-thumb-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
}
.hn-card-body { padding: 14px 16px 16px; }
.hn-card-title {
    font-family: var(--hn-font-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hn-text);
    margin: 8px 0 6px;
}
.hn-card-title a { color: inherit; }
.hn-card-title a:hover { color: var(--hn-primary); }
.hn-card-excerpt {
    font-size: 13px;
    color: var(--hn-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hn-card-meta {
    font-size: 12px;
    color: var(--hn-text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hn-card-meta a { color: var(--hn-text-muted); }
.hn-card-meta a:hover { color: var(--hn-primary); }

/* ===========================
   FEATURED / HERO BLOCK
=========================== */
.hn-hero-block { margin-bottom: 30px; }
.hn-hero-post { position: relative; overflow: hidden; border-radius: var(--hn-radius); }
.hn-hero-post .hn-post-thumb { position: relative; }
.hn-hero-post .hn-post-thumb img { width: 100%; height: 380px; object-fit: cover; }
.hn-hero-content {
    padding: 20px 0 0;
}
.hn-hero-title {
    font-family: var(--hn-font-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 10px;
    color: var(--hn-text);
}
.hn-hero-title a { color: inherit; }
.hn-hero-title a:hover { color: var(--hn-primary); }
.hn-hero-excerpt { font-size: 14px; color: var(--hn-text-light); line-height: 1.7; }

/* ===========================
   BLOCK ONE (Featured + 4 grid)
=========================== */
.hn-block-one { margin-bottom: 30px; }
.hn-block-one-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hn-block-one-small .hn-card-thumb img { height: 120px; object-fit: cover; }
.hn-block-one-small .hn-card-title { font-size: 14px; }
.hn-block-one-small .hn-card-body { padding: 8px 10px 10px; }

/* ===========================
   BLOCK TWO (Three columns)
=========================== */
.hn-block-two { margin-bottom: 30px; }
.hn-block-two-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hn-block-two .hn-card-thumb img { height: 180px; object-fit: cover; }
.hn-block-two .hn-card-title { font-size: 15px; }

/* ===========================
   BLOCK THREE (List style)
=========================== */
.hn-block-three { margin-bottom: 30px; }
.hn-list-post {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hn-border);
}
.hn-list-post:last-child { border-bottom: none; }
.hn-list-thumb { flex-shrink: 0; width: 90px; height: 70px; overflow: hidden; border-radius: 2px; }
.hn-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-list-title {
    font-family: var(--hn-font-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hn-text);
    margin: 4px 0 6px;
}
.hn-list-title a { color: inherit; }
.hn-list-title a:hover { color: var(--hn-primary); }
.hn-list-meta { font-size: 11px; color: var(--hn-text-muted); }

/* ===========================
   HOMEPAGE CONTENT AREA
=========================== */
.hn-content-area { padding: 30px 0; }
.hn-main-content { flex: 1; min-width: 0; }
.hn-sidebar-area { width: var(--hn-sidebar-width); flex-shrink: 0; }

.layout-no-sidebar .hn-main-content { width: 100%; }
.layout-left-sidebar .hn-content-wrap { flex-direction: row-reverse; }
.layout-right-sidebar .hn-content-wrap { flex-direction: row; }
.layout-left-sidebar .hn-main-content,
.layout-right-sidebar .hn-main-content {
    width: calc(100% - var(--hn-sidebar-width) - 30px);
    margin-right: 30px;
}
.layout-left-sidebar .hn-main-content { margin-right: 0; margin-left: 30px; }

.hn-content-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ===========================
   SIDEBAR
=========================== */
.hn-sidebar { width: 100%; }
.hn-widget { background: var(--hn-white); margin-bottom: 24px; box-shadow: var(--hn-shadow); }
.hn-widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hn-white);
    background: var(--hn-primary);
    padding: 10px 16px;
    margin-bottom: 0;
}
.hn-widget-content { padding: 16px; }

/* Widget: Recent Posts */
.hn-widget-post {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hn-border);
}
.hn-widget-post:last-child { border-bottom: none; padding-bottom: 0; }
.hn-widget-post-thumb { flex-shrink: 0; width: 65px; height: 50px; overflow: hidden; }
.hn-widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-widget-post-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--hn-text); }
.hn-widget-post-title a { color: inherit; }
.hn-widget-post-title a:hover { color: var(--hn-primary); }
.hn-widget-post-date { font-size: 11px; color: var(--hn-text-muted); margin-top: 4px; }

/* Widget: Categories */
.hn-widget-categories li {
    border-bottom: 1px solid var(--hn-border);
}
.hn-widget-categories li a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 13px;
    color: var(--hn-text);
}
.hn-widget-categories li a:hover { color: var(--hn-primary); padding-left: 6px; }
.hn-widget-categories .count {
    background: var(--hn-bg);
    color: var(--hn-text-muted);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Widget: Tags */
.hn-widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hn-widget-tags a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--hn-bg);
    color: var(--hn-text);
    font-size: 12px;
    border: 1px solid var(--hn-border);
    border-radius: 2px;
    transition: all var(--hn-transition);
}
.hn-widget-tags a:hover {
    background: var(--hn-primary);
    color: #fff;
    border-color: var(--hn-primary);
}

/* Widget: Social */
.hn-widget-social { display: flex; flex-wrap: wrap; gap: 8px; }
.hn-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
}
.hn-social-btn.facebook  { background: #3b5998; }
.hn-social-btn.twitter   { background: #1da1f2; }
.hn-social-btn.google    { background: #dd4b39; }
.hn-social-btn.youtube   { background: #ff0000; }
.hn-social-btn.instagram { background: #e1306c; }
.hn-social-btn:hover { opacity: 0.85; color: #fff; }

/* Widget: Gallery */
.hn-widget-gallery {
    position: relative;
    overflow: hidden;
}
.hn-gallery-slide { display: none; }
.hn-gallery-slide.active { display: block; }
.hn-gallery-slide img { width: 100%; height: 200px; object-fit: cover; }
.hn-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
}
.hn-gallery-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.hn-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.hn-gallery-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.hn-gallery-dot.active { background: #fff; }

/* ===========================
   CAROUSEL / SLIDER
=========================== */
.hn-carousel { position: relative; overflow: hidden; margin-bottom: 30px; }
.hn-carousel-track { display: flex; transition: transform 0.5s ease; }
.hn-carousel-slide { min-width: 100%; position: relative; }
.hn-carousel-slide img { width: 100%; height: 420px; object-fit: cover; }
.hn-carousel-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 40px 30px 30px;
}
.hn-carousel-cats { margin-bottom: 10px; }
.hn-carousel-title {
    font-family: var(--hn-font-primary);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}
.hn-carousel-title a { color: #fff; }
.hn-carousel-excerpt { color: rgba(255,255,255,0.8); font-size: 14px; }
.hn-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}
.hn-carousel-btn {
    pointer-events: all;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--hn-transition);
}
.hn-carousel-btn:hover { background: var(--hn-primary); }
.hn-carousel-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
}
.hn-carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
}
.hn-carousel-dot.active { background: var(--hn-primary); }

/* ===========================
   HOME SECTIONS
=========================== */
.hn-home-section { margin-bottom: 36px; }
.hn-section-bg { background: var(--hn-white); padding: 20px; box-shadow: var(--hn-shadow); }

/* Row: Community + Senior Care */
.hn-community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Row: Top Stories + Wellness + Recent */
.hn-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ===========================
   SINGLE POST
=========================== */
.hn-single-post { background: var(--hn-white); padding: 30px; box-shadow: var(--hn-shadow); }
.hn-post-header { margin-bottom: 24px; }
.hn-post-cats { margin-bottom: 12px; }
.hn-post-title {
    font-family: var(--hn-font-primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hn-text);
    margin-bottom: 14px;
}
.hn-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--hn-text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hn-border);
    flex-wrap: wrap;
}
.hn-post-meta a { color: var(--hn-text-light); }
.hn-post-meta a:hover { color: var(--hn-primary); }
.hn-post-featured-img { margin: 0 0 24px; }
.hn-post-featured-img img { width: 100%; border-radius: var(--hn-radius); }

/* Post Content */
.hn-post-content {
    font-family: var(--hn-font-secondary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--hn-text);
}
.hn-post-content p { margin-bottom: 20px; }
.hn-post-content h2 {
    font-family: var(--hn-font-primary);
    font-size: 24px;
    color: var(--hn-secondary);
    margin: 30px 0 16px;
}
.hn-post-content h3 {
    font-family: var(--hn-font-primary);
    font-size: 20px;
    color: var(--hn-secondary);
    margin: 24px 0 12px;
}
.hn-post-content img { border-radius: var(--hn-radius); margin: 20px 0; }
.hn-post-content blockquote {
    border-left: 4px solid var(--hn-primary);
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--hn-primary-light);
    font-style: italic;
    font-size: 17px;
}
.hn-post-content ul, .hn-post-content ol { margin: 16px 0 20px 24px; }
.hn-post-content li { margin-bottom: 8px; }
.hn-post-content a { color: var(--hn-primary); text-decoration: underline; }

/* Post Tags & Share */
.hn-post-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--hn-border); }
.hn-post-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 20px; }
.hn-post-tags-label { font-size: 13px; font-weight: 600; color: var(--hn-text); margin-right: 4px; }
.hn-post-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--hn-bg);
    border: 1px solid var(--hn-border);
    color: var(--hn-text);
    font-size: 12px;
    border-radius: 2px;
}
.hn-post-tag:hover { background: var(--hn-primary); color: #fff; border-color: var(--hn-primary); }

.hn-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hn-share-label { font-size: 13px; font-weight: 600; color: var(--hn-text); }
.hn-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.hn-share-btn.fb  { background: #3b5998; }
.hn-share-btn.tw  { background: #1da1f2; }
.hn-share-btn.gp  { background: #dd4b39; }
.hn-share-btn.pi  { background: #bd081c; }
.hn-share-btn:hover { opacity: 0.85; color: #fff; }

/* Author Box */
.hn-author-box {
    background: var(--hn-bg);
    padding: 24px;
    display: flex;
    gap: 20px;
    margin-top: 30px;
    border-radius: var(--hn-radius);
    border: 1px solid var(--hn-border);
}
.hn-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.hn-author-info-name {
    font-family: var(--hn-font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--hn-text);
    margin-bottom: 8px;
}
.hn-author-info-bio { font-size: 14px; color: var(--hn-text-light); line-height: 1.6; }

/* ===========================
   RELATED POSTS
=========================== */
.hn-related { margin-top: 36px; }
.hn-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===========================
   PAGINATION
=========================== */
.hn-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.hn-pagination a,
.hn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--hn-white);
    border: 1px solid var(--hn-border);
    color: var(--hn-text);
    font-size: 14px;
    border-radius: var(--hn-radius);
    transition: all var(--hn-transition);
}
.hn-pagination a:hover,
.hn-pagination .current {
    background: var(--hn-primary);
    border-color: var(--hn-primary);
    color: #fff;
}

/* ===========================
   COMMENTS
=========================== */
.hn-comments { background: var(--hn-white); padding: 30px; margin-top: 24px; box-shadow: var(--hn-shadow); }
.hn-comments-title {
    font-family: var(--hn-font-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hn-border);
}
.hn-comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hn-border);
}
.hn-comment-avatar img { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; }
.hn-comment-author { font-weight: 700; font-size: 14px; color: var(--hn-text); }
.hn-comment-date { font-size: 12px; color: var(--hn-text-muted); margin-left: 10px; }
.hn-comment-content { font-size: 14px; color: var(--hn-text-light); line-height: 1.6; margin-top: 6px; }
.hn-comment-reply { font-size: 12px; color: var(--hn-primary); margin-top: 8px; display: inline-block; }

/* Comment Form */
.hn-comment-form h3 {
    font-family: var(--hn-font-primary);
    font-size: 20px;
    margin: 30px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hn-border);
}
.hn-form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.hn-form-group { flex: 1; }
.hn-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--hn-text); }
.hn-form-group input,
.hn-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--hn-border);
    border-radius: var(--hn-radius);
    font-size: 14px;
    color: var(--hn-text);
    outline: none;
    transition: border-color var(--hn-transition);
    background: var(--hn-white);
}
.hn-form-group input:focus,
.hn-form-group textarea:focus { border-color: var(--hn-primary); }
.hn-form-group textarea { height: 140px; resize: vertical; }
.hn-btn-submit {
    background: var(--hn-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--hn-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--hn-transition);
}
.hn-btn-submit:hover { background: var(--hn-primary-dark); }

/* ===========================
   ARCHIVE / CATEGORY HEADER
=========================== */
.hn-archive-header {
    background: var(--hn-white);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--hn-shadow);
    border-top: 4px solid var(--hn-primary);
}
.hn-archive-title {
    font-family: var(--hn-font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--hn-text);
    margin-bottom: 8px;
}
.hn-archive-desc { font-size: 14px; color: var(--hn-text-light); }

/* ===========================
   SEARCH PAGE
=========================== */
.hn-search-header {
    background: var(--hn-white);
    padding: 24px 30px;
    margin-bottom: 24px;
    box-shadow: var(--hn-shadow);
}
.hn-search-form-large { display: flex; }
.hn-search-form-large input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--hn-primary);
    border-right: none;
    font-size: 16px;
    outline: none;
}
.hn-search-form-large button {
    background: var(--hn-primary);
    color: #fff;
    border: 2px solid var(--hn-primary);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ===========================
   404 PAGE
=========================== */
.hn-404-wrap {
    text-align: center;
    padding: 80px 20px;
    background: var(--hn-white);
    box-shadow: var(--hn-shadow);
}
.hn-404-number {
    font-family: var(--hn-font-display);
    font-size: 160px;
    font-weight: 900;
    color: var(--hn-primary);
    line-height: 1;
    opacity: 0.15;
}
.hn-404-title {
    font-family: var(--hn-font-primary);
    font-size: 32px;
    color: var(--hn-text);
    margin-top: -40px;
}
.hn-404-text { font-size: 16px; color: var(--hn-text-light); margin: 16px 0 30px; }
.hn-btn-home {
    display: inline-block;
    background: var(--hn-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--hn-radius);
    font-weight: 600;
}
.hn-btn-home:hover { background: var(--hn-primary-dark); color: #fff; }

/* ===========================
   PAGE TEMPLATES
=========================== */
/* Full Width */
.page-template-full-width .hn-content-wrap { display: block; }
.page-template-full-width .hn-main-content { width: 100%; max-width: 100%; }

/* Page */
.hn-page-content { background: var(--hn-white); padding: 40px; box-shadow: var(--hn-shadow); }
.hn-page-title {
    font-family: var(--hn-font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--hn-text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--hn-border);
}

/* ===========================
   FOOTER
=========================== */
.hn-footer-widgets {
    background: var(--hn-secondary);
    color: #ccc;
    padding: 50px 0 30px;
}
.hn-footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.hn-footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.hn-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--hn-primary);
}
.hn-footer-widget p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.hn-footer-links { }
.hn-footer-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.hn-footer-links li a {
    display: block;
    padding: 7px 0;
    color: #aaa;
    font-size: 13px;
    transition: all var(--hn-transition);
}
.hn-footer-links li a:hover { color: var(--hn-primary); padding-left: 6px; }
.hn-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.hn-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border-radius: 50%;
    font-size: 14px;
    transition: all var(--hn-transition);
}
.hn-footer-social a:hover { background: var(--hn-primary); color: #fff; }

.hn-footer-post { display: flex; gap: 10px; margin-bottom: 14px; }
.hn-footer-post-img { flex-shrink: 0; width: 60px; height: 46px; overflow: hidden; }
.hn-footer-post-img img { width: 100%; height: 100%; object-fit: cover; }
.hn-footer-post-title { font-size: 13px; color: #ccc; line-height: 1.4; }
.hn-footer-post-title a { color: inherit; }
.hn-footer-post-title a:hover { color: var(--hn-primary); }
.hn-footer-post-date { font-size: 11px; color: #777; margin-top: 4px; }

.hn-footer-bottom {
    background: darken(var(--hn-secondary), 5%);
    background: #1a2530;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hn-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.hn-footer-copy { font-size: 13px; color: #777; }
.hn-footer-copy a { color: var(--hn-primary); }
.hn-footer-bottom-menu { display: flex; gap: 20px; }
.hn-footer-bottom-menu a { font-size: 13px; color: #777; }
.hn-footer-bottom-menu a:hover { color: var(--hn-primary); }
.hn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--hn-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.hn-back-to-top.visible { opacity: 1; visibility: visible; }
.hn-back-to-top:hover { background: var(--hn-primary-dark); transform: translateY(-3px); }

/* ===========================
   UTILITY CLASSES
=========================== */
.hn-hidden { display: none; }
.hn-text-center { text-align: center; }
.hn-mt-20 { margin-top: 20px; }
.hn-mb-20 { margin-bottom: 20px; }
.hn-mb-30 { margin-bottom: 30px; }
.clearfix::after { content: ''; display: table; clear: both; }
.hn-no-posts { background: var(--hn-white); padding: 40px; text-align: center; color: var(--hn-text-muted); }

/* Loading Spinner */
.hn-loading { text-align: center; padding: 40px; }
.hn-spinner {
    display: inline-block;
    width: 36px; height: 36px;
    border: 3px solid var(--hn-border);
    border-top-color: var(--hn-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .hn-footer-widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .hn-related-grid { grid-template-columns: repeat(2, 1fr); }
    .hn-block-two-grid { grid-template-columns: repeat(2, 1fr); }
    .hn-bottom-row { grid-template-columns: repeat(2, 1fr); }
    .hn-community-grid { grid-template-columns: 1fr; }
    :root { --hn-sidebar-width: 260px; }
}

@media (max-width: 768px) {
    .hn-site-title { font-size: 28px; }
    .hn-header-subscribe { display: none; }
    .hn-menu-toggle { display: flex; }
    .hn-primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--hn-nav-bg);
    }
    .hn-primary-menu.open { display: flex; }
    .hn-nav-inner { flex-wrap: wrap; }
    .hn-primary-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hn-primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.15);
    }
    .hn-content-wrap { flex-direction: column !important; }
    .hn-main-content { width: 100% !important; margin: 0 !important; }
    .hn-sidebar-area { width: 100%; }
    .hn-block-two-grid { grid-template-columns: 1fr; }
    .hn-bottom-row { grid-template-columns: 1fr; }
    .hn-footer-widgets-grid { grid-template-columns: 1fr; gap: 24px; }
    .hn-carousel-slide img { height: 250px; }
    .hn-carousel-title { font-size: 18px; }
    .hn-hero-post .hn-post-thumb img { height: 220px; }
    .hn-hero-title { font-size: 20px; }
    .hn-post-title { font-size: 24px; }
    .hn-related-grid { grid-template-columns: 1fr; }
    .hn-form-row { flex-direction: column; }
    .hn-404-number { font-size: 100px; }
    .hn-page-content { padding: 24px; }
    .hn-single-post { padding: 20px; }
    .hn-footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hn-hero-title { font-size: 18px; }
    .hn-block-one-grid { grid-template-columns: 1fr; }
    .hn-bottom-row { grid-template-columns: 1fr; }
}

/* ===========================
   PRINT STYLES
=========================== */
@media print {
    .hn-navigation, .hn-topbar, .hn-sidebar-area,
    .hn-footer-widgets, .hn-footer-bottom,
    .hn-share-bar, .hn-back-to-top { display: none !important; }
    .hn-content-wrap { display: block; }
    .hn-main-content { width: 100%; }
}
