/*
Theme Name: HV-EDITORIAL
Theme URI: https://www.hostingvirtuale.com
Author: Hosting Virtuale
Author URI: https://www.hostingvirtuale.com
Description: Tema editoriale WordPress moderno, ultra-veloce e proprietario per magazine e blog di approfondimento.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: hv-editorial
*/

:root {
    --hv-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --hv-font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --hv-font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    
    --hv-color-bg: #f8fafc;
    --hv-color-surface: #ffffff;
    --hv-color-surface-alt: #f1f5f9;
    --hv-color-text: #1e293b;
    --hv-color-text-muted: #64748b;
    --hv-color-heading: #0f172a;
    
    --hv-color-primary: #0284c7;
    --hv-color-primary-dark: #0369a1;
    --hv-color-primary-light: #e0f2fe;
    --hv-color-accent: #e11d48;
    --hv-color-accent-dark: #be123c;
    --hv-color-accent-light: rgba(225, 29, 72, 0.12);
    
    --hv-color-border: #e2e8f0;
    --hv-color-border-light: #f1f5f9;
    
    --hv-container-width: 1200px;
    --hv-reading-width: 760px;
    --hv-radius: 8px;
    --hv-radius-sm: 4px;
    --hv-radius-lg: 12px;
    
    --hv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --hv-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --hv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    
    --hv-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--hv-font-sans);
    color: var(--hv-color-text);
    background-color: var(--hv-color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.hv-site-title,
.hv-hero-title,
.hv-article-title,
.hv-card-title,
.hv-widget-title,
.hv-section-title,
.hv-ad-title {
    font-family: var(--hv-font-heading);
    color: var(--hv-color-heading);
}

a {
    color: var(--hv-color-primary-dark);
    text-decoration: none;
    transition: var(--hv-transition);
}

a:hover {
    color: var(--hv-color-primary);
}

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

/* Container */
.hv-container {
    width: 100%;
    max-width: var(--hv-container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Site Header (Compact & Horizontal) */
.hv-header {
    background-color: var(--hv-color-surface);
    border-bottom: 1px solid var(--hv-color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.hv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}

.hv-site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Custom Logo Scaling */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.custom-logo-link img.custom-logo {
    max-height: 46px;
    max-width: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hv-site-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--hv-color-heading);
}

.hv-site-title a {
    color: inherit;
}

.hv-site-title span.dot {
    color: var(--hv-color-primary);
}

.hv-site-description {
    font-size: 0.8125rem;
    color: var(--hv-color-text-muted);
    font-weight: 500;
    line-height: 1.3;
    padding-left: 1rem;
    border-left: 1px solid var(--hv-color-border);
    max-width: 240px;
}

/* ==========================================================================
   Navigation & Menu Systems (Navbar, Drawer 2-Col & Fullscreen Modal)
   ========================================================================== */

/* 1. Horizontal Navbar Mode (Desktop <= 5 items) */
.hv-main-navigation {
    margin-left: auto;
}

.hv-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-nav-menu > li {
    position: relative;
}

.hv-nav-menu > li > a {
    display: inline-block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hv-color-heading);
    text-decoration: none;
    position: relative;
    transition: color var(--hv-transition);
}

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

.hv-nav-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hv-color-primary);
    transition: width 0.2s ease;
}

.hv-nav-menu > li > a:hover::after,
.hv-nav-menu > li.current-menu-item > a::after,
.hv-nav-menu > li.current-cat > a::after {
    width: 100%;
}

/* 2. Drawer / Toggle Button */
.hv-drawer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hv-color-heading);
    background-color: var(--hv-color-surface-alt);
    border: 1px solid var(--hv-color-border);
    border-radius: var(--hv-radius);
    cursor: pointer;
    transition: var(--hv-transition);
}

.hv-drawer-toggle:hover {
    background-color: var(--hv-color-primary-light);
    color: var(--hv-color-primary-dark);
    border-color: #bae6fd;
}

.hv-drawer-toggle svg {
    color: inherit;
}

/* In Navbar mode: Toggle is strictly hidden on desktop (>860px) and visible only on mobile (<=860px) */
.hv-menu-mode-navbar .hv-drawer-toggle,
.hv-drawer-toggle.hv-mobile-toggle {
    display: none;
}

@media (max-width: 860px) {
    .hv-menu-mode-navbar .hv-main-navigation {
        display: none;
    }
    .hv-menu-mode-navbar .hv-drawer-toggle,
    .hv-drawer-toggle.hv-mobile-toggle {
        display: inline-flex;
    }
}

/* Off-Canvas Backdrop */
.hv-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hv-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

body.hv-drawer-open {
    overflow: hidden;
}

/* Off-Canvas Drawer (Default & Drawer Mode) */
.hv-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 92vw;
    height: 100%;
    background-color: var(--hv-color-surface);
    z-index: 1001;
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hv-drawer.is-open {
    transform: translateX(0);
}

.hv-drawer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.hv-drawer-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hv-color-border);
    background-color: var(--hv-color-surface);
}

.hv-drawer-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.hv-drawer-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--hv-color-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hv-drawer-subtitle {
    display: none;
}

.hv-drawer-close {
    background: none;
    border: 1px solid var(--hv-color-border);
    border-radius: var(--hv-radius-sm);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hv-color-text-muted);
    transition: var(--hv-transition);
}

.hv-drawer-close:hover {
    background-color: var(--hv-color-surface-alt);
    color: var(--hv-color-heading);
    border-color: #cbd5e1;
}

.hv-drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.hv-drawer-section-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hv-color-heading);
    margin-bottom: 0.875rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hv-color-primary-light);
}

.hv-drawer-section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--hv-color-primary);
}

/* Category Grid in 2 Columns (Drawer Mode & Navbar Mobile) */
.hv-drawer.hv-mode-drawer .hv-drawer-categories,
.hv-drawer.hv-mode-navbar .hv-drawer-categories {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.hv-drawer-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: var(--hv-radius-sm);
    background-color: var(--hv-color-surface-alt);
    border: 1px solid var(--hv-color-border-light);
    color: var(--hv-color-heading);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--hv-transition);
    text-decoration: none;
    overflow: hidden;
}

.hv-drawer-cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.35rem;
}

.hv-drawer-cat-link:hover {
    background-color: #fff;
    border-color: #bae6fd;
    color: var(--hv-color-primary-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hv-drawer-cat-count {
    font-size: 0.75rem;
    background-color: #e2e8f0;
    color: var(--hv-color-text-muted);
    padding: 0.125rem 0.45rem;
    border-radius: 9999px;
    font-weight: 700;
    flex-shrink: 0;
}

.hv-drawer-cat-link:hover .hv-drawer-cat-count {
    background-color: var(--hv-color-primary-light);
    color: var(--hv-color-primary-dark);
}

.hv-drawer-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.hv-drawer-section-header .hv-drawer-section-title {
    margin-bottom: 0;
    flex: 1;
}

.hv-tags-refresh-btn {
    background: none;
    border: 1px solid var(--hv-color-border-light);
    border-radius: var(--hv-radius-sm);
    cursor: pointer;
    color: var(--hv-color-text-muted);
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hv-transition);
}

.hv-tags-refresh-btn:hover {
    color: var(--hv-color-primary);
    background-color: var(--hv-color-surface-alt);
    border-color: #cbd5e1;
}

.hv-drawer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 3. Fullscreen Modal Mode (>12 Categories / Mode Modal) */
.hv-drawer.hv-mode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-shadow: none;
}

.hv-drawer.hv-mode-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.hv-drawer.hv-mode-modal .hv-drawer-container {
    background-color: var(--hv-color-surface);
    width: 100%;
    max-width: 980px;
    max-height: 86vh;
    border-radius: var(--hv-radius-lg);
    border: 1px solid var(--hv-color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hv-drawer.hv-mode-modal.is-open .hv-drawer-container {
    transform: scale(1) translateY(0);
}

.hv-drawer.hv-mode-modal .hv-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--hv-color-border);
}

.hv-drawer.hv-mode-modal .hv-drawer-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hv-drawer.hv-mode-modal .hv-drawer-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--hv-color-text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.hv-drawer.hv-mode-modal .hv-drawer-body {
    padding: 2rem;
    gap: 2.25rem;
}

.hv-drawer.hv-mode-modal .hv-drawer-categories {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.hv-drawer.hv-mode-modal .hv-drawer-cat-link {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border-radius: var(--hv-radius);
    background-color: var(--hv-color-surface-alt);
    border: 1px solid var(--hv-color-border);
}

.hv-drawer.hv-mode-modal .hv-drawer-cat-link:hover {
    background-color: #fff;
    border-color: var(--hv-color-primary);
    color: var(--hv-color-primary-dark);
    box-shadow: var(--hv-shadow-sm);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .hv-drawer.hv-mode-modal {
        padding: 0;
    }
    .hv-drawer.hv-mode-modal .hv-drawer-container {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    .hv-drawer.hv-mode-modal .hv-drawer-body {
        padding: 1.25rem;
        gap: 1.75rem;
    }
    .hv-drawer.hv-mode-modal .hv-drawer-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Main Content Area */
.hv-main-wrapper {
    flex: 1;
    padding: 2.5rem 0;
}

/* Magazine Layout - Home & Archive */
.hv-magazine-hero {
    margin-bottom: 3rem;
}

.hv-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--hv-color-surface);
    border-radius: var(--hv-radius-lg);
    overflow: hidden;
    border: 1px solid var(--hv-color-border);
    box-shadow: var(--hv-shadow);
    transition: var(--hv-transition);
}

.hv-hero-card:hover {
    box-shadow: var(--hv-shadow-lg);
    border-color: #cbd5e1;
}

.hv-hero-media {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    background-color: var(--hv-color-surface-alt);
}

.hv-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hv-hero-card:hover .hv-hero-media img {
    transform: scale(1.03);
}

.hv-hero-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hv-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: var(--hv-radius-sm);
    background-color: var(--hv-color-primary-light);
    color: var(--hv-color-primary-dark);
    margin-bottom: 1rem;
    width: fit-content;
    transition: var(--hv-transition);
}

.hv-badge:hover {
    background-color: var(--hv-color-primary);
    color: #ffffff;
}

.hv-badge.accent {
    background-color: var(--hv-color-accent-light);
    color: var(--hv-color-accent);
}

.hv-badge.accent:hover {
    background-color: var(--hv-color-accent);
    color: #ffffff;
}

.hv-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--hv-color-heading);
}

.hv-hero-title a {
    color: inherit;
}

.hv-hero-title a:hover {
    color: var(--hv-color-primary-dark);
}

.hv-hero-excerpt {
    font-size: 1.0625rem;
    color: var(--hv-color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hv-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--hv-color-text-muted);
}

.hv-meta-dot {
    font-size: 0.5rem;
    opacity: 0.6;
}

.hv-meta-author {
    font-weight: 600;
    color: var(--hv-color-heading);
}

.hv-meta-author a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hv-meta-author a:hover {
    color: var(--hv-color-primary);
    text-decoration: underline;
}

/* Secondary Section - Magazine Asymmetric Flow */
.hv-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hv-color-heading);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hv-section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--hv-color-border);
}

.hv-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hv-card {
    background: var(--hv-color-surface);
    border-radius: var(--hv-radius);
    border: 1px solid var(--hv-color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--hv-transition);
}

.hv-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hv-shadow);
    border-color: #cbd5e1;
}

.hv-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--hv-color-surface-alt);
}

.hv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hv-card:hover .hv-card-media img {
    transform: scale(1.04);
}

.hv-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hv-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--hv-color-heading);
}

.hv-card-title a {
    color: inherit;
}

.hv-card-title a:hover {
    color: var(--hv-color-primary-dark);
}

.hv-card-excerpt {
    font-size: 0.875rem;
    color: var(--hv-color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

/* Editorial Stream - Asymmetric Feed */
.hv-stream-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.hv-stream-item {
    background: var(--hv-color-surface);
    border-radius: var(--hv-radius);
    border: 1px solid var(--hv-color-border);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: var(--hv-transition);
}

.hv-stream-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--hv-shadow-sm);
}

.hv-stream-media {
    border-radius: var(--hv-radius-sm);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hv-stream-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hv-stream-content {
    display: flex;
    flex-direction: column;
}

.hv-stream-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--hv-color-heading);
}

.hv-stream-title a {
    color: inherit;
}

.hv-stream-title a:hover {
    color: var(--hv-color-primary-dark);
}

.hv-stream-excerpt {
    font-size: 0.9375rem;
    color: var(--hv-color-text-muted);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

/* Archive Header & SEO Description */
.hv-archive-header {
    margin-bottom: 2.5rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--hv-color-border);
}

.hv-archive-description {
    font-size: 1.125rem;
    color: var(--hv-color-text-muted);
    max-width: 840px;
    line-height: 1.7;
    margin-top: 0.75rem;
}

.hv-archive-description p {
    margin: 0;
}

/* Single Article Layout with Sidebar */
.hv-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.hv-article-main {
    background: var(--hv-color-surface);
    border-radius: var(--hv-radius-lg);
    border: 1px solid var(--hv-color-border);
    padding: 2.5rem 3rem;
    box-shadow: var(--hv-shadow-sm);
}

.hv-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--hv-color-text-muted);
    margin-bottom: 1.25rem;
}

.hv-breadcrumbs a {
    color: var(--hv-color-text-muted);
}

.hv-breadcrumbs a:hover {
    color: var(--hv-color-primary-dark);
}

.hv-article-header {
    margin-bottom: 2rem;
}

.hv-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--hv-color-heading);
    margin: 0.75rem 0 1.25rem;
}

.hv-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hv-color-border);
}

.hv-featured-image-wrapper {
    margin: 2rem 0;
    border-radius: var(--hv-radius);
    overflow: hidden;
    background-color: var(--hv-color-surface-alt);
}

.hv-featured-image-wrapper img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Article Typography (Rich Long-Form Reading Experience) */
.hv-entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.hv-entry-content p {
    margin-bottom: 1.6rem;
}

.hv-entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hv-color-heading);
    margin: 2.5rem 0 1.25rem;
    line-height: 1.3;
    padding-left: 0.75rem;
    border-left: 4px solid var(--hv-color-primary);
}

.hv-entry-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--hv-color-heading);
    margin: 2rem 0 1rem;
    line-height: 1.35;
}

.hv-entry-content ul,
.hv-entry-content ol {
    margin: 1.25rem 0 1.75rem 1.75rem;
}

.hv-entry-content li {
    margin-bottom: 0.5rem;
}

.hv-entry-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    background-color: var(--hv-color-surface-alt);
    border-left: 4px solid var(--hv-color-accent);
    border-radius: 0 var(--hv-radius) var(--hv-radius) 0;
    font-style: italic;
    color: #475569;
}

.hv-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.hv-entry-content th,
.hv-entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--hv-color-border);
    text-align: left;
}

.hv-entry-content th {
    background-color: var(--hv-color-surface-alt);
    font-weight: 700;
    color: var(--hv-color-heading);
}

.hv-entry-content tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* Post Tags */
.hv-article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hv-color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.hv-tag-pill {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--hv-color-surface-alt);
    color: var(--hv-color-text-muted);
    border-radius: 9999px;
    font-weight: 500;
}

.hv-tag-pill:hover {
    background-color: var(--hv-color-primary-light);
    color: var(--hv-color-primary-dark);
}

/* Author Box (Editorial Magazine Style) */
.hv-author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 2.5rem 0 0 0;
    padding: 1.5rem;
    background: var(--hv-color-surface);
    border: 1px solid var(--hv-color-border);
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow-sm);
}

.hv-author-avatar-link {
    flex-shrink: 0;
    display: block;
}

.hv-author-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    background: var(--hv-color-surface-alt);
}

.hv-author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hv-author-info {
    flex: 1;
    min-width: 0;
}

.hv-author-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hv-color-primary);
    margin-bottom: 0.2rem;
}

.hv-author-name {
    margin: 0 0 0.35rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.hv-author-name a {
    color: var(--hv-color-heading);
    text-decoration: none;
    transition: color 0.15s ease;
}

.hv-author-name a:hover {
    color: var(--hv-color-primary);
}

.hv-author-bio {
    margin: 0;
    font-size: 0.875rem;
    color: var(--hv-color-text-muted);
    line-height: 1.5;
}

/* Post Navigation */
.hv-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hv-color-border);
}

.hv-post-nav-card {
    padding: 1rem 1.25rem;
    background: var(--hv-color-surface-alt);
    border-radius: var(--hv-radius);
    border: 1px solid var(--hv-color-border-light);
}

.hv-post-nav-card.next {
    text-align: right;
}

.hv-post-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hv-color-text-muted);
    margin-bottom: 0.25rem;
}

.hv-post-nav-title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.35;
}

/* Sidebar (Natural Scrolling) */
.hv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: static;
}

.hv-widget {
    background: var(--hv-color-surface);
    border-radius: var(--hv-radius);
    border: 1px solid var(--hv-color-border);
    padding: 1.5rem;
    box-shadow: var(--hv-shadow-sm);
}

.hv-widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hv-color-heading);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--hv-color-primary-light);
}

.hv-widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--hv-color-primary);
}

/* Search widget */
.hv-search-form {
    display: flex;
    gap: 0.5rem;
}

.hv-search-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--hv-color-border);
    border-radius: var(--hv-radius-sm);
    font-size: 0.875rem;
    background-color: var(--hv-color-surface-alt);
    outline: none;
    transition: var(--hv-transition);
}

.hv-search-input:focus {
    border-color: var(--hv-color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hv-search-submit {
    background-color: var(--hv-color-primary);
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: var(--hv-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--hv-transition);
}

.hv-search-submit:hover {
    background-color: var(--hv-color-primary-dark);
}

/* Recent Posts widget */
.hv-recent-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hv-recent-item {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 0.875rem;
    align-items: center;
}

.hv-recent-thumb {
    aspect-ratio: 1;
    border-radius: var(--hv-radius-sm);
    overflow: hidden;
    background-color: var(--hv-color-surface-alt);
}

.hv-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hv-recent-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hv-color-heading);
    margin-bottom: 0.25rem;
}

.hv-recent-title a {
    color: inherit;
}

.hv-recent-title a:hover {
    color: var(--hv-color-primary-dark);
}

.hv-recent-date {
    font-size: 0.75rem;
    color: var(--hv-color-text-muted);
}

/* Categories widget */
.hv-categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.hv-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--hv-color-border-light);
    color: var(--hv-color-heading);
    font-weight: 600;
    font-size: 0.9375rem;
}

.hv-category-item:last-child a {
    border-bottom: none;
}

.hv-category-item a:hover {
    color: var(--hv-color-primary-dark);
    padding-left: 0.25rem;
}

.hv-category-count {
    font-size: 0.75rem;
    background-color: var(--hv-color-surface-alt);
    color: var(--hv-color-text-muted);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
}

/* 4. Promotional Ad Box Widget */
.hv-widget-ad-banner {
    background: linear-gradient(180deg, var(--hv-color-surface) 0%, var(--hv-color-surface-alt) 100%);
    border: 1px solid var(--hv-color-border);
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    transition: var(--hv-transition);
}

.hv-widget-ad-banner:hover {
    border-color: var(--hv-color-primary);
    box-shadow: var(--hv-shadow);
}

.hv-ad-banner-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.hv-ad-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hv-color-text-muted);
    background-color: var(--hv-color-surface);
    padding: 0.2rem 0.5rem;
    border-radius: var(--hv-radius-sm);
    border: 1px solid var(--hv-color-border);
}

.hv-ad-media {
    border-radius: var(--hv-radius);
    overflow: hidden;
    margin-bottom: 0.875rem;
    background-color: var(--hv-color-surface-alt);
    aspect-ratio: 3 / 2;
}

.hv-ad-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.hv-ad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hv-widget-ad-banner:hover .hv-ad-media img {
    transform: scale(1.03);
}

.hv-ad-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.hv-ad-title a {
    color: var(--hv-color-heading);
}

.hv-ad-title a:hover {
    color: var(--hv-color-primary);
}

.hv-ad-text {
    font-size: 0.875rem;
    color: var(--hv-color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hv-ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: var(--hv-color-primary);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--hv-radius-sm);
    text-align: center;
    transition: var(--hv-transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hv-ad-button:hover {
    background-color: var(--hv-color-primary-dark);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
    transform: translateY(-1px);
}

/* Pagination */
.hv-pagination {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
}

.hv-pagination .nav-links {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.hv-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--hv-radius-sm);
    background: var(--hv-color-surface);
    border: 1px solid var(--hv-color-border);
    color: var(--hv-color-heading);
}

.hv-pagination .page-numbers.current {
    background-color: var(--hv-color-primary);
    color: white;
    border-color: var(--hv-color-primary);
}

.hv-pagination .page-numbers:hover:not(.current) {
    background-color: var(--hv-color-primary-light);
    color: var(--hv-color-primary-dark);
}

/* Site Footer */
.hv-footer {
    background-color: var(--hv-color-heading);
    color: #94a3b8;
    margin-top: auto;
    border-top: 3px solid var(--hv-color-primary);
}

.hv-footer-main {
    padding: 3.5rem 0 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.hv-footer-brand h3 {
    font-size: 1.625rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hv-footer-brand h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--hv-transition);
}

.hv-footer-brand h3 a:hover {
    color: #f8fafc;
}

.hv-footer-brand h3 span.dot,
.hv-footer-brand h3 span.dot-blue {
    color: #38bdf8;
}

.hv-footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 520px;
}

.hv-footer-col h4 {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.hv-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hv-footer-links a {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.hv-footer-links a:hover {
    color: #ffffff;
    padding-left: 0.25rem;
}

.hv-footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hv-footer-bottom a {
    color: #cbd5e1;
    transition: var(--hv-transition);
}

.hv-footer-bottom a:hover {
    color: #ffffff;
}

.hv-footer-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.hv-privacy-link,
.hv-cookie-policy-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hv-footer-cookie-pref-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: #cbd5e1;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-flex;
    align-items: center;
    transition: var(--hv-transition);
}

.hv-footer-cookie-pref-btn:hover {
    color: #ffffff;
}

.hv-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hv-external-link svg {
    transition: transform 0.2s ease;
}

.hv-external-link:hover svg {
    transform: translate(1px, -1px);
    color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hv-hero-card {
        grid-template-columns: 1fr;
    }
    .hv-hero-media {
        min-height: 280px;
    }
    .hv-hero-content {
        padding: 1.75rem;
    }
    .hv-secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hv-single-layout {
        grid-template-columns: 1fr;
    }
    .hv-sidebar {
        position: static;
        margin-top: 2.5rem;
    }
    .hv-footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hv-site-description {
        display: none;
    }
}

@media (max-width: 768px) {
    .hv-header-inner {
        height: 64px;
    }
    .hv-drawer {
        width: 100vw;
        max-width: 100vw;
    }
    .hv-drawer-toggle span {
        display: inline;
    }
    .hv-hero-title {
        font-size: 1.5rem;
    }
    .hv-secondary-grid {
        grid-template-columns: 1fr;
    }
    .hv-stream-item {
        grid-template-columns: 1fr;
    }
    .hv-stream-media {
        aspect-ratio: 16 / 9;
    }
    .hv-article-main {
        padding: 1.5rem;
    }
    .hv-article-title {
        font-size: 1.75rem;
    }
    .hv-post-nav {
        grid-template-columns: 1fr;
    }
    .hv-post-nav-card.next {
        text-align: left;
    }
    .hv-author-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .hv-footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hv-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
