/* ===== COMPLETE BLOG DETAIL CSS FILE ===== */

/* Core Styles & Hero Section */
.blog-detail-hero {
    position: relative;
    padding: 100px 0 70px;
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    overflow: hidden;
    z-index: 1;
}

/* Animated Grid Background */
.blog-detail-hero .animated-grid {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(var(--hrv-orange-rgb, 239, 114, 31), 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--hrv-orange-rgb, 239, 114, 31), 0.05) 1px, transparent 1px);
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Brand Accent Shape */
.blog-detail-hero .brand-accent {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 19%;
    height: 60%;
    background: linear-gradient(135deg, rgba(68, 173, 142, 0.1) 0%, rgba(0, 160, 221, 0.1) 100%);
    border-radius: 0 0 0 90%;
    z-index: -1;
}

.blog-detail-hero .logo-accent {
    position: absolute;
    top: 12px;
    left: -10%;
    transform: translateX(-50%);
    opacity: 0.08;
}

.blog-detail-hero .logo-accent .hrv-icon {
    width: 200px;
    height: auto;
}

.blog-detail-hero .content-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-detail-hero .blog-category {
    display: inline-block;
    background: var(--hrv-orange);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.blog-detail-hero h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.blog-detail-hero .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 16px;
    color: var(--text-muted);
}

.blog-detail-hero .post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-hero .post-meta i {
    font-size: 18px;
    color: var(--hrv-orange);
}

/* Reading Progress Indicator */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: var(--theme-gradient);
    width: 0%;
}

/* Remove sidebar toggle completely - not needed anymore */
.sidebar-toggle {
    display: none !important;
}

/* Blog Detail Content */
.blog-detail-content {
    padding: 60px 0 80px;
    position: relative;
    background-color: var(--background-primary);
    color: var(--text-primary);
}

/* New sharing dropdown */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-primary);
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 10px 0;
    margin-top: 10px;
    z-index: 100;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--background-primary);
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.dropdown-item:hover {
    background: var(--background-tertiary);
    color: var(--hrv-orange);
}

.dropdown-item i.fa-twitter, 
.dropdown-item i.fa-facebook-f, 
.dropdown-item i.fa-linkedin-in, 
.dropdown-item i.fa-whatsapp {
    color: var(--hrv-orange);
}

/* Action buttons */
.article-actions {
    padding: 20px 30px;
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.action-btn {
    background: var(--background-tertiary);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--background-accent);
}

.action-btn i {
    font-size: 16px;
    color: var(--hrv-orange);
}

/* Content layout */
.content-area {
    background: var(--background-primary);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-image:hover img {
    transform: scale(1.03);
}

/* Table of Contents */
.toc-container {
    margin: 30px 30px 20px;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--background-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
    font-size: 18px;
    margin: 0;
    color: var(--text-primary);
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: var(--hrv-orange);
}

.toc-content {
    padding: 15px 20px;
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content ul li {
    margin-bottom: 12px;
}

.toc-content ul li:last-child {
    margin-bottom: 0;
}

.toc-content ul li a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.toc-content ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--hrv-orange);
    border-radius: 50%;
}

.toc-content ul li a:hover {
    color: var(--hrv-orange);
}

/* ===== BLOG CONTENT STYLING - CKEDITOR COMPATIBLE ===== */

/* Main Article Content Container */
.article-content {
    padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px);
    font-family: var(--text-font);
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== TYPOGRAPHY ELEMENTS ===== */

/* Paragraphs */
.article-content p {
    font-size: var(--font-size-sm);
    margin: 0 0 clamp(16px, 3vw, 24px) 0;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Headings */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--title-font);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    margin-top: 10px;
    scroll-margin-top: 100px; /* For anchor links */
}

.article-content h1 {
    font-size: clamp(28px, 5vw, 36px);
    border-bottom: 3px solid var(--hrv-orange);
    padding-bottom: 12px;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.article-content h2 {
    font-size: clamp(24px, 4.5vw, 32px);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: clamp(18px, 3.5vw, 25px);
    position: relative;
}
.article-content h3 {
    font-size: clamp(20px, 4vw, 26px);
    color: var(--hrv-blue-dark);
    margin-bottom: clamp(15px, 3vw, 20px);
}

.article-content h4 {
    font-size: clamp(18px, 3.5vw, 22px);
    color: var(--text-primary);
    margin-bottom: clamp(12px, 2.5vw, 18px);
    font-weight: var(--font-weight-semibold);
}

.article-content h5 {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: clamp(10px, 2vw, 15px);
}

.article-content h6 {
    font-size: clamp(14px, 2.5vw, 18px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    font-weight: var(--font-weight-medium);
}

/* ===== TEXT FORMATTING ===== */

/* Bold Text */
.article-content strong,
.article-content b {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* Italic Text */
.article-content em,
.article-content i {
    font-style: italic;
    color: var(--text-secondary);
}

/* Underlined Text */
.article-content u {
    text-decoration: underline;
    text-decoration-color: var(--hrv-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Strikethrough Text */
.article-content s,
.article-content del {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Small Text */
.article-content small {
    font-size: 0.875em;
    color: var(--text-muted);
}

/* ===== LINKS ===== */
.article-content a {
    color: var(--hrv-orange);
    text-decoration: none;
    border-bottom: 1px dashed var(--hrv-orange-light);
    transition: all var(--transition-base);
    word-break: break-word;
}

.article-content a:hover {
    color: var(--hrv-orange-dark);
    border-bottom: 2px solid var(--hrv-orange-dark);
    background: rgba(239, 114, 31, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.article-content a:focus {
    outline: 2px solid var(--hrv-orange);
    outline-offset: 2px;
}

/* External link indicator */
.article-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    color: var(--hrv-orange-light);
    margin-left: 2px;
}

/* ===== LISTS ===== */
.article-content ul,
.article-content ol {
    margin: 0 0 clamp(20px, 3vw, 28px) 0;
    padding-left: clamp(20px, 4vw, 30px);
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin: clamp(8px, 1.5vw, 12px) 0;
}

.article-content li {
    margin-bottom: clamp(8px, 1.5vw, 12px);
    line-height: var(--line-height-relaxed);
}

.article-content li:last-child {
    margin-bottom: 0;
}

/* Unordered List Styling */
.article-content ul {
    list-style: none;
}

.article-content ul > li {
    font-size: var(--font-size-sm);
    position: relative;
    padding-left: clamp(15px, 2.5vw, 20px);
}

.article-content ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--hrv-orange);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Nested list bullets */
.article-content ul ul > li::before {
    background: var(--hrv-blue);
    width: 6px;
    height: 6px;
}

.article-content ul ul ul > li::before {
    background: var(--hrv-green);
    width: 4px;
    height: 4px;
}

/* Ordered List Styling */
.article-content ol {
    counter-reset: list-counter;
}

.article-content ol > li {
    font-size: var(--font-size-sm);
    position: relative;
    counter-increment: list-counter;
    padding-left: clamp(25px, 4vw, 35px);
}

.article-content ol > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--hrv-orange);
    color: white;
    font-weight: var(--font-weight-bold);
    font-size: 0.85em;
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== BLOCKQUOTES ===== */
.article-content blockquote {
    margin: clamp(25px, 4vw, 35px) 0;
    padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(50px, 6vw, 70px);
    background: var(--background-secondary);
    border-left: 5px solid var(--hrv-orange);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    position: relative;
    font-style: italic;
    font-size: clamp(16px, 2.8vw, 19px);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    left: clamp(15px, 2.5vw, 20px);
    top: clamp(10px, 2vw, 15px);
    font-size: clamp(40px, 6vw, 60px);
    color: var(--hrv-orange);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.7;
}

.article-content blockquote p {
    margin-bottom: clamp(10px, 2vw, 15px);
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Citation in blockquote */
.article-content blockquote cite {
    display: block;
    text-align: right;
    margin-top: clamp(12px, 2vw, 18px);
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: normal;
}

.article-content blockquote cite::before {
    content: "— ";
}

/* ===== HORIZONTAL RULES ===== */
.article-content hr {
    margin: clamp(20px, 4vw, 30px) 0;
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hrv-orange), transparent);
    border-radius: 2px;
    position: relative;
}

.article-content hr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--background-primary);
    border: 3px solid var(--hrv-orange);
    border-radius: 50%;
}

/* ===== IMAGES ===== */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    margin: clamp(20px, 3vw, 30px) auto;
    display: block;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-base);
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

/* Figure and Caption */
.article-content figure {
    margin: clamp(25px, 4vw, 35px) 0;
    text-align: center;
}

.article-content figure img {
    margin: 0 auto clamp(10px, 2vw, 15px) auto;
}

.article-content figcaption {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 0 clamp(10px, 2vw, 20px);
}

/* ===== TABLES ===== */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: clamp(25px, 4vw, 35px) 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    font-size: clamp(14px, 2.2vw, 16px);
}

.article-content table thead {
    background: var(--hrv-orange);
    color: white;
}

.article-content table th {
    padding: clamp(12px, 2.5vw, 18px) clamp(10px, 2vw, 15px);
    text-align: left;
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.article-content table td {
    padding: clamp(10px, 2vw, 15px);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.article-content table tr:nth-child(even) {
    background-color: var(--background-secondary);
}

.article-content table tr:hover {
    background-color: var(--background-accent);
}

.article-content table tr:last-child td {
    border-bottom: none;
}

/* ===== CODE BLOCKS ===== */
.article-content pre {
    background: var(--background-tertiary);
    padding: clamp(15px, 3vw, 25px);
    border-radius: var(--border-radius-lg);
    overflow-x: auto;
    margin: clamp(20px, 3vw, 30px) 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: clamp(13px, 2vw, 15px);
    line-height: var(--line-height-normal);
    border: 1px solid var(--border-color);
    position: relative;
}

.article-content pre::before {
    content: 'CODE';
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
}

.article-content code {
    background: var(--background-tertiary);
    padding: 3px 6px;
    border-radius: var(--border-radius-base);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--hrv-orange-dark);
    border: 1px solid var(--border-color);
}

.article-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
}

/* ===== DEFINITION LISTS ===== */
.article-content dl {
    margin: clamp(20px, 3vw, 30px) 0;
}

.article-content dt {
    font-weight: var(--font-weight-bold);
    color: var(--hrv-orange);
    margin-bottom: clamp(5px, 1vw, 8px);
}

.article-content dd {
    margin-left: clamp(15px, 3vw, 25px);
    margin-bottom: clamp(12px, 2vw, 18px);
    color: var(--text-secondary);
}

/* ===== ABBREVIATIONS ===== */
.article-content abbr {
    text-decoration: underline dotted;
    cursor: help;
    color: var(--hrv-orange);
}

/* ===== MARKS AND HIGHLIGHTS ===== */
.article-content mark {
    background: linear-gradient(120deg, rgba(239, 114, 31, 0.3) 0%, rgba(255, 174, 47, 0.3) 100%);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--text-primary);
}

/* ===== KEYBOARD INPUT ===== */
.article-content kbd {
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
    box-shadow: 0 1px 2px var(--shadow-color);
}

/* Blog Tags */
.blog-tags {
    padding: 0 30px 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-title {
    font-weight: 600;
    color: var(--text-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--background-tertiary);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: var(--hrv-orange);
    color: #fff;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--background-primary);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.widget-title-heading {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title-heading h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
    color: var(--text-primary);
}

.widget-title-heading h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--hrv-orange);
}

.widget-inside {
    padding: 25px;
}

/* Author Widget */
.author-widget .widget-inside {
    text-align: center;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 5px solid var(--background-secondary);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-widget h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.author-position {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 14px;
}

.author-bio {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--hrv-blue);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--hrv-orange);
    transform: translateY(-3px);
}

/* Related Posts Widget */
.related-posts-widget .post {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-posts-widget .post:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.related-posts-widget .post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

.related-posts-widget .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-posts-widget .post:hover .post-thumb img {
    transform: scale(1.08);
}

.related-posts-widget .post-info {
    flex: 1;
}

.related-posts-widget .post-info h4 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-posts-widget .post-info h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts-widget .post-info h4 a:hover {
    color: var(--hrv-orange);
}

.related-posts-widget .post-date {
    font-size: 14px;
    color: var(--text-muted);
}

/* Subscribe Widget */
.subscribe-widget p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.subscribe-widget .form-group {
    position: relative;
}

.subscribe-widget .form-group input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 10px 120px 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    font-size: 15px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.subscribe-widget .form-group input[type="email"]::placeholder {
    color: var(--text-muted);
}

.subscribe-widget .form-group input[type="email"]:focus {
    border-color: var(--hrv-orange);
    background: var(--background-tertiary);
    box-shadow: 0 5px 15px var(--shadow-color);
    outline: none;
}

.subscribe-widget .form-group .subscribe-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--hrv-orange);
    color: #fff;
    border: none;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-widget .form-group .subscribe-btn:hover {
    background: var(--hrv-orange-dark);
}

.subscribe-widget .success-message {
    color: var(--success-color);
    padding: 10px 15px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-widget .success-message i {
    font-size: 18px;
}

/* Categories Widget */
.category-widget .widget-content {
    padding: 0 25px 25px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.category-list li {
    margin-bottom: 1px;
    position: relative;
}

.category-list li:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li:last-child:after {
    display: none;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-weight: 500;
    padding: 14px 20px;
    background: var(--background-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-list li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--hrv-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.category-list li a:hover:before {
    transform: scaleY(1);
}

.category-list li a:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--background-accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.category-list li a:hover:after {
    width: 100%;
}

.category-list li a .cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list li a .cat-title:before {
    content: '\f196';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: var(--hrv-orange);
    opacity: 0.8;
}

.category-list li a:hover {
    color: var(--hrv-orange);
    transform: translateX(5px);
}

.category-list li a .cat-meta {
    display: flex;
    align-items: center;
}

.category-list li a .count {
    background: var(--background-tertiary);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.category-list li a:hover .count {
    background: var(--background-accent);
    color: var(--hrv-orange);
}

.category-list li a i {
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.category-list li a:hover i {
    color: var(--hrv-orange);
    transform: translateX(3px);
}

/* Blog Navigation */
.blog-navigation {
    padding: 40px 0;
    background: var(--background-secondary);
}

.navigation-inner {
    padding: 0 15px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.prev-link, .next-link {
    display: block;
    padding: 25px;
    background: var(--background-primary);
    border-radius: 10px;
    text-decoration: none;
    flex: 1;
    max-width: 48%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.prev-link {
    text-align: left;
}

.next-link {
    text-align: right;
}

.nav-label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.nav-links h4 {
    font-size: 18px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.prev-link:hover, .next-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.prev-link:hover h4, .next-link:hover h4 {
    color: var(--hrv-orange);
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .blog-detail-hero {
    background-color: var(--background-secondary);
}

[data-theme="dark"] .blog-detail-hero .animated-grid {
    background-image: 
        linear-gradient(to right, rgba(239, 114, 31, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(239, 114, 31, 0.1) 1px, transparent 1px);
}

[data-theme="dark"] .blog-detail-hero .brand-accent {
    background: linear-gradient(135deg, rgba(68, 173, 142, 0.15) 0%, rgba(0, 160, 221, 0.15) 100%);
}

[data-theme="dark"] .blog-category {
    background: var(--hrv-orange-dark);
}

[data-theme="dark"] .article-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .article-content blockquote {
    background: var(--background-tertiary);
    border-left-color: var(--hrv-orange-light);
}

[data-theme="dark"] .article-content blockquote::before {
    color: var(--hrv-orange-light);
}

[data-theme="dark"] .article-content pre,
[data-theme="dark"] .article-content code {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #404040;
}

[data-theme="dark"] .article-content table thead {
    background: var(--hrv-orange-dark);
}

[data-theme="dark"] .article-content mark {
    background: linear-gradient(120deg, rgba(255, 174, 47, 0.3) 0%, rgba(239, 114, 31, 0.3) 100%);
}

/* RESPONSIVE STYLES - MOBILE FIRST APPROACH */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .auto-container {
        max-width: 1320px;
    }
    
    .blog-detail-hero h1 {
        font-size: 48px;
    }
}

/* Large Screens (1200px to 1399px) */
@media (max-width: 1399px) {
    .blog-sidebar {
        top: 80px;
    }
    
    .sidebar-widget {
        margin-bottom: 25px;
    }
}

/* Medium-Large Screens (992px to 1199px) */
@media (max-width: 1199px) {
    .blog-detail-hero h1 {
        font-size: 36px;
    }
    
    .widget-inside {
        padding: 20px;
    }
}

/* Tablets and Small Desktops (768px to 991px) - HIDE SIDEBAR */
@media (max-width: 991px) {
    /* Hide sidebar completely on tablets and mobile */
    .auto-container {
        padding: 2px !important;
    }

    .sidebar-column {
        display: none !important;
    }
    
    /* Content takes full width when sidebar is hidden */
    .content-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .blog-detail-hero {
        padding: 80px 0 60px;
    }
    
    .blog-detail-hero h1 {
        font-size: 32px;
    }
    
    .blog-detail-hero .logo-accent .hrv-icon {
        width: 140px;
    }
    
    .blog-detail-content {
        padding: 40px 0 60px;
    }
    
    .content-area {
        margin: 0 15px;
    }
    
    /* Improve navigation on tablets */
    .nav-links {
        gap: 15px;
    }
    
    .prev-link, .next-link {
        padding: 20px;
    }
}

/* Small Tablets and Large Phones (576px to 767px) */
@media (max-width: 767px) {

    .auto-container {
        padding: 2px !important;
    }

    .blog-detail-hero {
        padding: 60px 0 40px;
    }
    
    .blog-detail-hero h1 {
        font-size: 24px;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .blog-detail-hero .post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
    }
    
    .blog-detail-hero .logo-accent .hrv-icon {
        width: 100px;
    }
    
    .blog-detail-content {
        padding: 20px 0 40px;
    }
    
    .content-area {
        border-radius: 8px;
        margin: 0 10px;
        box-shadow: 0 2px 10px var(--shadow-color);
    }
    
    .toc-container {
        margin: 15px 10px;
    }
    
    .toc-header {
        padding: 12px 15px;
    }
    
    .toc-content {
        padding: 15px;
    }
    
    .blog-tags {
        padding: 0 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tags-list {
        gap: 6px;
    }
    
    .tags-list a {
        font-size: 13px;
        padding: 5px 12px;
    }
    
    .article-actions {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Navigation improvements for mobile */
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-link, .next-link {
        max-width: 100%;
        padding: 20px 15px;
        text-align: center;
    }
    
    .nav-links h4 {
        font-size: 16px;
        line-height: 1.4;
    }
}

/* Small Mobile Devices (up to 575px) */
@media (max-width: 575px) {

    .auto-container {
        padding: 2px !important;
    }

    .blog-detail-hero {
        padding: 50px 0 30px;
    }
    
    .blog-detail-hero h1 {
        font-size: 20px;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    .blog-detail-hero .blog-category {
        font-size: 14px;
        padding: 6px 15px;
    }
    
    .blog-detail-hero .logo-accent .hrv-icon {
        width: 80px;
    }
    
    .blog-detail-content {
        padding: 15px 0 30px;
    }
    
    .content-area {
        margin: 0 5px;
        border-radius: 6px;
    }
    
    .toc-container {
        margin: 10px 5px;
    }
    
    .toc-header h3 {
        font-size: 16px;
    }
    
    .blog-tags {
        padding: 0 10px 15px;
    }
    
    .article-actions {
        padding: 10px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
    }
    
    /* Improve dropdown on small screens */
    .dropdown-menu {
        min-width: 160px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dropdown-menu::before {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }
    
    /* Navigation for small mobile */
    .prev-link, .next-link {
        padding: 15px 10px;
    }
    
    .nav-links h4 {
        font-size: 14px;
    }
    
    .nav-label {
        font-size: 12px;
    }
}

/* Extra Small Devices (up to 480px) */
@media (max-width: 480px) {
    .blog-detail-hero .content-box {
        padding-top: 40px;
    }
    
    /* Improve form elements on small screens */
    .subscribe-widget .form-group input[type="email"] {
        height: 45px;
        padding: 10px 100px 10px 15px;
        font-size: 14px;
    }
    
    .subscribe-widget .form-group .subscribe-btn {
        height: 35px;
        padding: 0 15px;
        font-size: 12px;
    }
}

/* Additional custom styles for dark theme */
:root {
    --hrv-orange-rgb: 239, 114, 31;
}

[data-theme="dark"] {
    --hrv-orange-rgb: 255, 174, 47;
}

/* Ensure proper spacing and container behavior */
.auto-container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .auto-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .auto-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .auto-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .auto-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .auto-container {
        max-width: 1320px;
    }
}

/* Improve CKEditor content display */
.article-content figure {
    margin: 25px 0;
    max-width: 100%;
    text-align: center;
}

.article-content figure img {
    margin: 0 auto;
}

.article-content figure figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Style for embedded content */
.article-content iframe,
.article-content video,
.article-content embed {
    max-width: 100%;
    margin: 25px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Focus states for better accessibility */
.action-btn:focus,
.toggle-btn:focus,
.subscribe-btn:focus {
    outline: 2px solid var(--hrv-orange);
    outline-offset: 2px;
}

/* Smooth scrolling for TOC links */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.article-content img {
    background: var(--background-secondary);
    transition: opacity 0.3s ease;
}

.article-content img:not([src]) {
    opacity: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .article-content {
        padding: 0;
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .article-content blockquote {
        page-break-inside: avoid;
        background: #f5f5f5;
        border-left: 4px solid #333;
    }
    
    .article-content pre,
    .article-content table {
        page-break-inside: avoid;
    }
    
    .article-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .article-content a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}