/*
 Theme Name:   Astra Child - HYPERVISUAL
 Template:     astra
 Version:      2.0.0
 Description:  Thème enfant Astra pour HYPERVISUAL - Blog multilingue optimisé SEO
*/

/* ========================================
   HYPERVISUAL DESIGN SYSTEM — Hybrid Navy
   Phase 3 Lifting — 22 mars 2026
   ======================================== */
:root {
    /* Colors — Hybrid Navy v2 (DEC-011, corrected 23/03) */
    --hv-primary: #3A4F62;
    --hv-primary-dark: #2C3E50;
    --hv-secondary: #1E293B;
    --hv-navy-darkest: #0F172A;

    /* Cyan — 3 niveaux WCAG (DEC-015 corrected) */
    --hv-cyan-vivid: #0EA5E9;   /* 2.77:1 — décoratif SEULEMENT */
    --hv-cyan-ui: #0284C7;      /* 4.09:1 — boutons, titres ≥24px */
    --hv-cyan-text: #0369A1;    /* 5.2:1  — liens, labels, texte */

    /* Sémantiques */
    --hv-text-heading: #2C3E50;
    --hv-text-body: #1E293B;
    --hv-text-secondary: #475569;
    --hv-text-muted: #94A3B8;
    --hv-bg-light: #F8FAFC;
    --hv-bg-muted: #F1F5F9;
    --hv-bg-card: #FFFFFF;
    --hv-white: #FFFFFF;
    --hv-border: #E2E8F0;
    --hv-success: #10B981;
    --hv-warning: #F59E0B;
    --hv-error: #EF4444;

    /* Spacing — 8px grid (DEC-013) */
    --hv-space-1: 8px;
    --hv-space-2: 16px;
    --hv-space-3: 24px;
    --hv-space-4: 32px;
    --hv-space-5: 40px;
    --hv-space-6: 48px;
    --hv-space-8: 64px;
    --hv-space-10: 80px;
    --hv-space-12: 96px;

    /* Border Radius */
    --hv-radius-sm: 8px;
    --hv-radius-md: 12px;
    --hv-radius-lg: 16px;
    --hv-radius-xl: 24px;

    /* Shadows */
    --hv-shadow-sm: 0 2px 8px rgba(58, 79, 98, 0.08);
    --hv-shadow-md: 0 4px 16px rgba(58, 79, 98, 0.12);
    --hv-shadow-lg: 0 8px 32px rgba(58, 79, 98, 0.16);

    /* Typography — Montserrat + Manrope (Alpine Precision v3.3, validé 26/08/2026)
       DM Sans retiré : géométrique comme Montserrat, contraste insuffisant,
       pas de light exploitable. Ancienne valeur : 'DM Sans', sans-serif. */
    --hv-font-heading: 'Montserrat', sans-serif;
    --hv-font-body: 'Manrope', sans-serif;

    /* Fluid Type Scale — clamp() 375→1440px (DEC-012) */
    --hv-fs-h1: clamp(2.5rem, 1.972rem + 2.254vw, 4rem);
    --hv-fs-h2: clamp(2rem, 1.648rem + 1.502vw, 3rem);
    --hv-fs-h3: clamp(1.75rem, 1.486rem + 1.127vw, 2.5rem);
    --hv-fs-h4: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);
    --hv-fs-h5: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);
    --hv-fs-h6: clamp(1.125rem, 0.993rem + 0.563vw, 1.5rem);
    --hv-fs-body: 1rem;
    --hv-fs-sm: 0.875rem;
    --hv-fs-xs: 0.8rem;

    /* Gradients — Hybrid Navy */
    --hv-gradient-hero: linear-gradient(180deg, #2C3E50 0%, #3A4F62 40%, #1E293B 100%);
    --hv-gradient-hero-accent: linear-gradient(135deg, #2C3E50 0%, #3A4F62 50%, #0284C7 100%);
    --hv-gradient-cta: linear-gradient(135deg, #1E293B 0%, #2C3E50 40%, rgba(14,165,233,0.12) 100%);
    --hv-gradient-footer: linear-gradient(180deg, #2C3E50 0%, #1E293B 40%, #0F172A 100%);
    --hv-gradient-button: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    --hv-gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 40%, #E2E8F0 100%);

    /* Shadows — extended */
    --hv-shadow-xl: 0 20px 60px rgba(58, 79, 98, 0.20);
    --hv-shadow-cyan: 0 4px 15px rgba(14, 165, 233, 0.3);
    --hv-shadow-cyan-hover: 0 6px 20px rgba(14, 165, 233, 0.45);

    /* Transitions */
    --hv-duration-fast: 150ms;
    --hv-duration-normal: 300ms;
    --hv-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Container */
    --hv-container-max: 1200px;
    --hv-container-padding: clamp(16px, 4vw, 24px);
}

/* ========================================
   BUTTON VARIANTS (DEC-011)
   ======================================== */
.btn-accent .elementor-button {
    background: var(--hv-gradient-button) !important;
    color: #FFFFFF !important;
    box-shadow: var(--hv-shadow-cyan);
    border: none !important;
}
.btn-accent .elementor-button:hover {
    box-shadow: var(--hv-shadow-cyan-hover);
    transform: translateY(-2px);
}
.btn-outline .elementor-button {
    background-color: transparent !important;
    color: var(--hv-cyan-text) !important;
    border: 2px solid var(--hv-cyan-ui) !important;
}
.btn-outline .elementor-button:hover {
    background-color: var(--hv-cyan-ui) !important;
    color: #FFFFFF !important;
}
.btn-ghost .elementor-button {
    background: transparent !important;
    color: var(--hv-cyan-text) !important;
    border: none !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    box-shadow: none !important;
}

/* ========================================
   HOVER LIFT & ANIMATIONS
   ======================================== */
.hv-hover-lift {
    transition: transform var(--hv-duration-normal) var(--hv-ease-out),
                box-shadow var(--hv-duration-normal) var(--hv-ease-out);
}
.hv-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--hv-shadow-lg);
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.hv-breadcrumbs {
    font-family: var(--hv-font-body);
    font-size: 13px;
    color: var(--hv-text-light);
    padding: 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hv-breadcrumbs a {
    color: var(--hv-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.hv-breadcrumbs .separator {
    color: var(--hv-text-muted);
    margin: 0 4px;
}

.hv-breadcrumbs .current {
    color: var(--hv-white);
    font-weight: 500;
}

/* Hero breadcrumbs (white text) */
.hv-hero-breadcrumbs {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    z-index: 10;
}

.hv-hero-breadcrumbs .hv-breadcrumbs {
    color: rgba(255,255,255,0.7);
}

.hv-hero-breadcrumbs .hv-breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.hv-hero-breadcrumbs .hv-breadcrumbs a:hover {
    color: #fff;
}


/* ========================================
   BACK TO BLOG BUTTON
   ======================================== */
.hv-back-to-blog {
    margin-bottom: 20px;
}
.hv-back-to-blog .hv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--hv-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--hv-cyan-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--hv-radius-sm);
    background: var(--hv-bg-muted);
    transition: background 0.2s ease, color 0.2s ease;
}
.hv-back-to-blog .hv-back-link:hover {
    background: var(--hv-primary);
    color: #ffffff;
}

/* ========================================
   AUTHOR BOX
   ======================================== */
.hv-author-box {
    background: var(--hv-bg-card);
    border-radius: var(--hv-radius-md);
    padding: 30px;
    margin: 50px 0;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid var(--hv-border);
}

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

.hv-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hv-primary);
}

.hv-author-info {
    flex: 1;
}

.hv-author-label {
    font-family: var(--hv-font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hv-text-light);
    margin-bottom: 5px;
}

.hv-author-name {
    font-family: var(--hv-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--hv-primary);
    margin: 0 0 10px 0;
}

.hv-author-bio {
    font-family: var(--hv-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--hv-text);
    margin: 0;
}

.hv-author-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.hv-author-social a {
    width: 36px;
    height: 36px;
    background: var(--hv-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hv-author-social a:hover {
    background: var(--hv-primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .hv-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 25px 20px;
    }
    .hv-author-social {
        justify-content: center;
    }
}

/* ========================================
   NEWSLETTER CTA
   ======================================== */
.hv-newsletter {
    background: linear-gradient(135deg, var(--hv-primary) 0%, var(--hv-primary-dark) 100%);
    border-radius: var(--hv-radius-md);
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    color: #fff;
}

.hv-newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.hv-newsletter-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.hv-newsletter h3 {
    font-family: var(--hv-font-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.hv-newsletter p {
    font-family: var(--hv-font-body);
    font-size: 15px;
    opacity: 0.9;
    margin: 0 0 25px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.hv-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.hv-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--hv-radius-sm);
    font-family: var(--hv-font-body);
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--hv-text);
}

.hv-newsletter-form input[type="email"]::placeholder {
    color: var(--hv-text-light);
}

.hv-newsletter-form button {
    padding: 14px 28px;
    background: #fff;
    color: var(--hv-primary);
    border: none;
    border-radius: var(--hv-radius-sm);
    font-family: var(--hv-font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hv-newsletter-form button:hover {
    background: var(--hv-bg-light);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .hv-newsletter {
        padding: 30px 20px;
    }
    .hv-newsletter-form {
        flex-direction: column;
    }
    .hv-newsletter-form button {
        width: 100%;
    }
}


/* ========================================
   TAGS / KEYWORDS
   ======================================== */
.hv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid var(--hv-border);
}

.hv-tags-label {
    font-family: var(--hv-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--hv-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hv-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--hv-bg-light);
    color: var(--hv-secondary);
    font-family: var(--hv-font-body);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hv-tag:hover {
    background: var(--hv-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   READING TIME BADGE
   ======================================== */
.hv-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-family: var(--hv-font-body);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.hv-reading-time svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   CATEGORY BADGE (in hero)
   ======================================== */
.hv-category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--hv-primary);
    color: #fff;
    font-family: var(--hv-font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hv-category-badge:hover {
    background: var(--hv-primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

/* ========================================
   SINGLE POST LAYOUT FIXES
   ======================================== */
/* Hide images in Popular Articles sidebar */
#popular_posts .elementor-post__thumbnail,
#popular_posts .elementor-post__thumbnail__link {
    display: none !important;
}

/* Fix: Stop sticky sidebars at Related Articles */
body.single-post #related_section,
body.single-post #cta_section,
body.single-post #nav_section {
    position: relative;
    z-index: 100;
}

body.single-post #related_section {
    background-color: #f8f9fa;
}

body.single-post #cta_section {
    background-color: #2d3748;
}

/* Sticky sidebar max height */
@media (min-width: 1025px) {
    body.single-post .elementor-widget-share-buttons.elementor-sticky--active {
        max-height: calc(100vh - 300px);
    }
    
    body.single-post .elementor-widget-table-of-contents.elementor-sticky--active {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

/* Responsive fixes */
@media (max-width: 1024px) {
    body.single-post .elementor-widget-share-buttons.elementor-sticky--active,
    body.single-post .elementor-widget-table-of-contents.elementor-sticky--active {
        position: relative !important;
    }
}


/* ========================================
   RELATED ARTICLES SECTION
   ======================================== */
.hv-related-title {
    font-family: var(--hv-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--hv-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.hv-related-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--hv-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   POST CONTENT TYPOGRAPHY
   ======================================== */
.elementor-widget-theme-post-content {
    font-family: var(--hv-font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--hv-text);
}

.elementor-widget-theme-post-content h2 {
    font-family: var(--hv-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--hv-primary);
    margin: 45px 0 20px;
    line-height: 1.3;
}

.elementor-widget-theme-post-content h3 {
    font-family: var(--hv-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--hv-primary);
    margin: 35px 0 15px;
    line-height: 1.4;
}

.elementor-widget-theme-post-content h4 {
    font-family: var(--hv-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--hv-secondary);
    margin: 30px 0 12px;
}

.elementor-widget-theme-post-content p {
    margin-bottom: 1.5em;
}

.elementor-widget-theme-post-content a {
    color: var(--hv-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.elementor-widget-theme-post-content a:hover {
    color: var(--hv-primary-dark);
}

.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.elementor-widget-theme-post-content li {
    margin-bottom: 0.75em;
}

.elementor-widget-theme-post-content blockquote {
    border-left: 4px solid var(--hv-primary);
    padding: 20px 25px;
    margin: 30px 0;
    background: var(--hv-bg-light);
    border-radius: 0 var(--hv-radius-sm) var(--hv-radius-sm) 0;
    font-style: italic;
    color: var(--hv-secondary);
}

.elementor-widget-theme-post-content img {
    border-radius: var(--hv-radius-md);
    margin: 25px 0;
}

.elementor-widget-theme-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.elementor-widget-theme-post-content th,
.elementor-widget-theme-post-content td {
    padding: 12px 15px;
    border: 1px solid var(--hv-border);
    text-align: left;
}

.elementor-widget-theme-post-content th {
    background: var(--hv-primary);
    color: #fff;
    font-weight: 600;
}

.elementor-widget-theme-post-content tr:nth-child(even) {
    background: var(--hv-bg-light);
}

/* ========================================
   TABLE OF CONTENTS ENHANCEMENTS
   ======================================== */
.elementor-widget-table-of-contents .elementor-toc__header-title {
    font-family: var(--hv-font-heading) !important;
    font-weight: 700 !important;
    color: var(--hv-primary) !important;
}

.elementor-widget-table-of-contents .elementor-toc__list-item-text {
    font-family: var(--hv-font-body) !important;
    transition: all 0.2s ease !important;
}

.elementor-widget-table-of-contents .elementor-toc__list-item-text:hover {
    color: var(--hv-primary) !important;
    padding-left: 5px !important;
}

/* Active TOC item */
.elementor-toc__list-item--active .elementor-toc__list-item-text {
    color: var(--hv-primary) !important;
    font-weight: 600 !important;
}

/* ========================================
   SHARE BUTTONS STYLING
   ======================================== */
.elementor-widget-share-buttons .elementor-share-btn {
    transition: all 0.2s ease !important;
}

.elementor-widget-share-buttons .elementor-share-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--hv-shadow-md) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes hv-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hv-animate-in {
    animation: hv-fade-in-up 0.5s ease-out forwards;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hv-animate-in,
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================
   SINGLE POST LAYOUT - FULL REDESIGN
   Version 2.1 - December 2025
   ========================================= */

/* Featured Image Hero */
.hv-featured-hero {
    margin: -20px -20px 30px -20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hv-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Post Meta Bar */
.hv-post-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hv-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--hv-primary, #0066cc) 0%, #0052a3 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.hv-category-badge:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.hv-reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.hv-reading-time-badge svg {
    color: var(--hv-primary, #0066cc);
}

/* Table of Contents */
.hv-toc {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
}

.hv-toc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--hv-primary, #0066cc) 0%, #00a86b 100%);
    border-radius: 12px 0 0 12px;
}

.hv-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.hv-toc-header svg {
    color: var(--hv-primary, #0066cc);
}

.hv-toc-header span {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    flex: 1;
}

.hv-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.hv-toc-toggle[aria-expanded="false"] svg {
    transform: rotate(180deg);
}

.hv-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.hv-toc-item {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.hv-toc-item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #475569;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
}

.hv-toc-item a::before {
    content: counter(toc-counter) ".";
    color: var(--hv-primary, #0066cc);
    font-weight: 600;
    min-width: 24px;
}

.hv-toc-item a:hover {
    background: #fff;
    color: var(--hv-primary, #0066cc);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hv-toc-item-sub a {
    padding-left: 36px;
    font-size: 13px;
}

.hv-toc-item-sub a::before {
    content: "•";
    min-width: 16px;
}

/* Sticky Share Buttons */
.hv-share-sticky {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hv-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.hv-share-linkedin {
    background: #0077b5;
    color: #fff !important;
}

.hv-share-linkedin:hover {
    background: #005885;
    transform: scale(1.1);
}

.hv-share-twitter {
    background: #000;
    color: #fff !important;
}

.hv-share-twitter:hover {
    background: #333;
    transform: scale(1.1);
}

.hv-share-facebook {
    background: #1877f2;
    color: #fff !important;
}

.hv-share-facebook:hover {
    background: #0c5dc7;
    transform: scale(1.1);
}

.hv-share-copy {
    background: #f1f5f9;
    color: #475569;
}

.hv-share-copy:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.hv-share-copy.copied {
    background: #10b981;
    color: #fff;
}

/* Tags Section */
.hv-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    margin: 32px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.hv-tags-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.hv-tags-label svg {
    color: var(--hv-primary, #0066cc);
}

.hv-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hv-tag:hover {
    background: var(--hv-primary, #0066cc);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Author Box */
.hv-author-box {
    display: flex;
    gap: 24px;
    padding: 32px;
    margin: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.hv-author-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hv-author-info {
    flex: 1;
}

.hv-author-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hv-primary, #0066cc);
    font-weight: 600;
    margin-bottom: 4px;
}

.hv-author-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
}

.hv-author-name a {
    color: #1e293b;
    text-decoration: none;
}

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

.hv-author-bio {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Newsletter CTA */
.hv-newsletter {
    background: linear-gradient(135deg, var(--hv-primary, #0066cc) 0%, #004d99 100%);
    color: #fff;
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.hv-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hv-newsletter-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.hv-newsletter-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.hv-newsletter h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
}

.hv-newsletter p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 28px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hv-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.hv-newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: #1e293b;
}

.hv-newsletter-form input[type="email"]::placeholder {
    color: #94a3b8;
}

.hv-newsletter-form button {
    padding: 16px 32px;
    background: #fff;
    color: var(--hv-primary, #0066cc);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hv-newsletter-form button:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Related Articles */
.hv-related-articles {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.hv-related-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hv-related-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--hv-primary, #0066cc) 0%, #00a86b 100%);
    border-radius: 2px;
}

.hv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hv-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.hv-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hv-related-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.hv-related-card:hover .hv-related-image img {
    transform: scale(1.05);
}

.hv-related-content {
    padding: 20px;
}

.hv-related-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.hv-related-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.hv-related-card-title a:hover {
    color: var(--hv-primary, #0066cc);
}

.hv-related-date {
    font-size: 13px;
    color: #94a3b8;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hv-share-sticky {
        display: none;
    }
}

@media (max-width: 992px) {
    .hv-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hv-featured-hero {
        margin: -16px -16px 24px -16px;
        border-radius: 0;
    }
    
    .hv-featured-image {
        max-height: 300px;
    }
    
    .hv-toc {
        padding: 20px;
    }
    
    .hv-author-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .hv-author-avatar img {
        margin: 0 auto;
    }
    
    .hv-newsletter {
        padding: 32px 24px;
    }
    
    .hv-newsletter-form {
        flex-direction: column;
    }
    
    .hv-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix Astra default spacing on single posts */
.single-post .entry-content {
    margin-top: 0;
}

.single-post article.ast-article-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Fix FOUC - Hide content during Elementor loading */
.elementor-location-header .elementor-element {
    visibility: visible !important;
}

/* Hide any potential breadcrumb flash */
.ast-breadcrumbs-wrapper,
.breadcrumb,
.trail-items,
.rank-math-breadcrumb,
.aioseo-breadcrumbs {
    display: none !important;
}

/* Ensure header loads smoothly */
header.elementor-location-header {
    opacity: 1 !important;
    visibility: visible !important;
}
