/* ============================================
   Blog Post Page Styles
   Advanced, Professional, Fully Responsive
   ============================================ */

/* Reading Progress Bar - Only on Blog Post Page */
.reading-progress-bar {
    position: fixed;
    top: 65px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 0%;
    z-index: 999;
    transition: width 0.1s ease;
}

/* ============================================
   HERO SECTION - SPLIT LAYOUT (Content Left, Image Right)
   ============================================ */

/* Hero Wrapper - Split Layout */
.blog-post-hero-wrapper {
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
}

.blog-post-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 111, 29, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.blog-post-hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 111, 29, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* Hero Content - Two Column Layout */
.blog-post-hero {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 140px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Left Column - Content */
.hero-text-content {
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb-item {
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-lighter);
    padding: 0 8px;
}

/* Category Badge */
.post-category {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.12) 0%, rgba(227, 111, 29, 0.08) 100%);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid rgba(227, 111, 29, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.post-category:hover::before {
    left: 100%;
}

.post-category:hover {
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.15) 0%, rgba(227, 111, 29, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 111, 29, 0.2);
}

/* Post Title */
.post-title {
    font-family: 'Outlier', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    gap: 12px;
}

.author-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0;
}

.author-avatar:hover {
    transform: scale(1.05);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.post-meta-items {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-separator {
    color: var(--text-lighter);
}

/* Right Column - Featured Image */
.hero-image-content {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.featured-image-section {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-image-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.15) 0%, rgba(227, 111, 29, 0.05) 100%);
    border-radius: 24px;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
}

.featured-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.featured-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.08) 0%, transparent 50%, rgba(227, 111, 29, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.featured-image-wrapper:hover::before {
    opacity: 1;
}

.featured-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.featured-image-wrapper:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.featured-image-wrapper:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.2), 0 15px 35px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image-wrapper:hover .featured-image {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
    }
    
    .blog-post-hero {
        padding: 90px 0 60px;
    }
    
    .hero-text-content {
        max-width: 100%;
    }
    
    .featured-image-wrapper {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    
    .post-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .blog-post-hero-wrapper::before,
    .blog-post-hero-wrapper::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 0 20px;
        gap: 30px;
    }
    
    .blog-post-hero {
        padding: 80px 0 50px;
    }
    
    .featured-image-wrapper {
        aspect-ratio: 16 / 9;
        max-height: 300px;
        border-radius: 20px;
    }
    
    .featured-image-section::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }
    
    .post-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .post-category {
        padding: 8px 16px;
        font-size: 10px;
    }
    
    .author-avatar {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 0 !important;
    }
}

/* Content Layout (3-column) */
.blog-post-content-section {
    padding: 60px 0 80px;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 60px;
    align-items: flex-start;
}

/* Table of Contents (Left Sidebar) - Enhanced with Progress */
.toc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: visible;
    padding-right: 10px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.toc-sticky {
    background: white;
    border-radius: 16px;
    padding: 28px;
    padding-left: 36px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar but keep functionality */
.toc-sticky::-webkit-scrollbar {
    width: 0;
    display: none;
}

.toc-sticky {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* TOC Header with Vertical Progress Bar */
.toc-header {
    margin-bottom: 20px;
    position: relative;
}

.toc-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* TOC Navigation */
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-top: 20px;
}

.toc-link {
    display: block;
    padding: 10px 16px;
    padding-left: 16px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* Main Headings (H2) - Bold and prominent */
.toc-link.level-2 {
    font-weight: 700;
    color: var(--text-dark);
    padding-left: 16px;
    font-size: 14px;
    background: transparent;
    margin-top: 8px;
    margin-bottom: 6px;
}

.toc-link.level-2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-dark);
    border-radius: 50%;
    opacity: 0.4;
}

/* Sub Headings (H3) - Lighter and indented */
.toc-link.level-3 {
    padding-left: 32px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    background: rgba(0, 0, 0, 0.02);
    margin-left: 12px;
    margin-bottom: 2px;
}

.toc-link.level-3::before {
    content: '—';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 12px;
    font-weight: 400;
}

/* Hover States */
.toc-link:hover {
    color: var(--primary);
    background: rgba(227, 111, 29, 0.08);
    border-left-color: var(--primary);
    padding-left: 20px;
}

.toc-link.level-2:hover {
    padding-left: 20px;
}

.toc-link.level-2:hover::before {
    background: var(--primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.toc-link.level-3:hover {
    padding-left: 36px;
    background: rgba(227, 111, 29, 0.06);
}

.toc-link.level-3:hover::before {
    color: var(--primary);
    left: 20px;
}

/* Active States */
.toc-link.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(227, 111, 29, 0.12);
    border-left-color: var(--primary);
    padding-left: 20px;
}

.toc-link.level-2.active {
    background: linear-gradient(90deg, rgba(227, 111, 29, 0.15) 0%, rgba(227, 111, 29, 0.05) 100%);
    box-shadow: 0 2px 8px rgba(227, 111, 29, 0.1);
}

.toc-link.level-2.active::before {
    background: var(--primary);
    opacity: 1;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(227, 111, 29, 0.2);
}

.toc-link.level-3.active {
    padding-left: 36px;
    font-weight: 600;
    background: rgba(227, 111, 29, 0.08);
    color: var(--primary);
}

.toc-link.level-3.active::before {
    color: var(--primary);
    font-weight: 700;
    left: 20px;
}

/* Achievement Badge */
.toc-achievement {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    visibility: hidden;
}

.toc-achievement.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-5px) scale(1.02);
    }
}

.achievement-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
    }
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-size: 15px;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 13px;
    color: #0369a1;
    margin: 0;
    line-height: 1.4;
}

/* Responsive TOC Styles */
@media (max-width: 991px) {
    .toc-sidebar {
        display: none; /* Hide TOC completely on tablets and mobile */
    }
    
    .achievement-icon {
        width: 40px;
        height: 40px;
    }
    
    .achievement-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .toc-sticky {
        padding: 20px;
    }
    
    .toc-title {
        font-size: 0.9rem;
    }
    
    .toc-link {
        font-size: 13px;
        padding: 8px 12px;
        padding-left: 18px;
    }
    
    .toc-link.level-3 {
        padding-left: 32px;
        font-size: 12px;
    }
    
    .toc-achievement {
        padding: 16px;
        gap: 12px;
    }
    
    .achievement-icon {
        width: 36px;
        height: 36px;
    }
    
    .achievement-title {
        font-size: 14px;
    }
    
    .achievement-desc {
        font-size: 12px;
    }
}

/* Right Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-left: 10px;
}

.post-sidebar::-webkit-scrollbar {
    width: 4px;
}

.post-sidebar::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
    border-radius: 4px;
}

.post-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Main Article Content */
.post-content {
    max-width: 800px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-medium);
}

.content-loading {
    text-align: center;
    padding: 80px 20px;
}

.content-loading .loading-spinner {
    margin: 0 auto 24px;
}

/* Article Typography */
.post-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-dark);
    scroll-margin-top: 100px;
}

.post-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-dark);
    scroll-margin-top: 100px;
}

.post-content h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 24px;
    color: var(--text-medium);
}

/* ============================================
   LINKS IN CONTENT - Orange Professional Style
   ============================================ */

.post-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(227, 111, 29, 0.3);
    padding-bottom: 2px;
}

.post-content a:hover {
    color: #d65d0f;
    border-bottom-color: var(--primary);
    padding-bottom: 3px;
}

/* External link icon (optional) */
.post-content a[href^="http"]:not([href*="ifieldsmart.com"]):not(.in-content-ad-button)::after {
    content: '↗';
    display: inline-block;
    margin-left: 4px;
    font-size: 0.85em;
    opacity: 0.7;
}

/* Link in headings - special styling */
.post-content h2 a,
.post-content h3 a,
.post-content h4 a {
    color: var(--primary);
    border-bottom: 3px solid rgba(227, 111, 29, 0.2);
    text-decoration: none;
}

.post-content h2 a:hover,
.post-content h3 a:hover,
.post-content h4 a:hover {
    border-bottom-color: var(--primary);
    background: linear-gradient(90deg, rgba(227, 111, 29, 0.1) 0%, transparent 100%);
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.post-content li {
    margin-bottom: 12px;
    color: var(--text-medium);
}

.post-content li::marker {
    color: var(--primary);
    font-weight: 700;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--bg-gray-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.1em;
    font-style: italic;
    color: var(--text-dark);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ============================================
   IMAGES IN CONTENT - Professional WebP Support
   ============================================ */

/* Basic image styling */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.post-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* WordPress figure element (image with caption) */
.post-content figure {
    margin: 40px 0;
    text-align: center;
}

.post-content figure img {
    margin: 0 auto 16px;
}

.post-content figcaption {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* Image alignment options */
.post-content .alignleft {
    float: left;
    margin: 8px 32px 24px 0;
    max-width: 45%;
}

.post-content .alignright {
    float: right;
    margin: 8px 0 24px 32px;
    max-width: 45%;
}

.post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content .alignfull,
.post-content .alignwide {
    width: 100%;
    max-width: 100%;
}

/* Image sizes */
.post-content .size-thumbnail {
    max-width: 150px;
}

.post-content .size-medium {
    max-width: 300px;
}

.post-content .size-large {
    max-width: 800px;
}

/* Image gallery (WordPress native) */
.post-content .wp-block-gallery,
.post-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.post-content .wp-block-gallery figure,
.post-content .gallery .gallery-item {
    margin: 0;
}

.post-content .wp-block-gallery img,
.post-content .gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

/* Responsive images */
@media (max-width: 768px) {
    .post-content .alignleft,
    .post-content .alignright {
        float: none;
        max-width: 100%;
        margin: 24px 0;
    }
    
    .post-content .wp-block-gallery,
    .post-content .gallery {
        grid-template-columns: 1fr;
    }
}

.post-content pre {
    background: var(--text-dark);
    color: #f8f8f2;
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.6;
}

.post-content code {
    background: var(--bg-gray-100);
    color: var(--primary-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 16px;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content table th {
    background: var(--bg-gray-50);
    font-weight: 700;
    color: var(--text-dark);
}

.post-content hr {
    border: none;
    height: 2px;
    background: var(--border-color);
    margin: 48px 0;
}

/* Right Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: start;
}

.post-sidebar::-webkit-scrollbar {
    width: 4px;
}

.post-sidebar::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
    border-radius: 4px;
}

.post-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Author Bio */
.author-bio {
    text-align: center;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
}

.author-bio-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.author-bio-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:hover {
    transform: translateX(4px);
}

.recent-post-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Newsletter Card */
.newsletter-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-newsletter-form .newsletter-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all var(--transition-base);
}

.sidebar-newsletter-form .newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(227, 111, 29, 0.1);
}

.sidebar-newsletter-form .btn-primary {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
}

/* ============================================
   Related Articles Section - Professional Design
   ============================================ */

.related-articles-section {
    padding: 15px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Breadcrumb Inside Related Articles - Simple Style */
.breadcrumb-nav-inline {
    margin-bottom: 30px;
}

.breadcrumb-nav-inline .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-nav-inline .breadcrumb-item {
    color: var(--text-light);
}

.breadcrumb-nav-inline .breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav-inline .breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-nav-inline .breadcrumb-item.active {
    color: var(--text-dark);
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-nav-inline .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-lighter);
    padding: 0 8px;
}

.related-articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.1) 0%, rgba(227, 111, 29, 0.05) 100%);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(227, 111, 29, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Grid - 4 Columns */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Article Image */
.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray-100);
}

.article-image {
    width: 100%;
    height: 100%;
    #object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

/* Category Badge */
.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(227, 111, 29, 0.3);
}

/* Article Content */
.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Article Title */
.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary);
}

/* Article Excerpt */
.article-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Article Footer */
.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.article-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.article-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.article-read-more:hover {
    gap: 8px;
}

.article-read-more svg {
    width: 14px;
    height: 14px;
}

/* Loading State */
.articles-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-gray-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.articles-loading p {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .related-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .related-articles-section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .article-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .breadcrumb-nav-inline {
        margin-bottom: 25px;
    }
    
    .breadcrumb-nav-inline .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-nav-inline .breadcrumb-item.active {
        max-width: 200px;
    }
    
    .breadcrumb-nav-inline .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
    }
    
    .related-articles-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-image-wrapper {
        height: 200px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1rem;
        min-height: auto;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 200px 1fr 280px;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .blog-post-hero {
        padding: 90px 0 40px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .toc-sidebar {
        order: 3;
    }
    
    .post-content {
        order: 1;
    }
    
    .post-sidebar {
        order: 2;
    }
    
    .toc-sticky,
    .sidebar-card {
        position: static;
    }
    
    .toc-sidebar {
        background: var(--bg-gray-50);
        padding: 24px;
        border-radius: var(--radius-lg);
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        padding: 85px 0 50px;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .featured-image-wrapper {
        aspect-ratio: 16 / 9;
        max-height: 450px;
    }
    
    .featured-image {
        max-height: 500px;
    }
    
    .blog-post-content-section {
        padding: 40px 0 60px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .social-share {
        width: 100%;
        justify-content: flex-start;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        margin-top: 32px;
    }
    
    .post-content h3 {
        margin-top: 24px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .related-posts-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .author-avatar {
        width: 48px;
        height: 48px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .post-meta-items {
        font-size: 13px;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
    
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content ul,
    .post-content ol {
        padding-left: 24px;
    }
    
    .post-content blockquote {
        padding: 16px 20px;
        margin: 24px 0;
    }
    
    .post-content pre {
        padding: 16px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .blog-header,
    .mobile-menu,
    .back-to-top,
    .reading-progress-bar,
    .social-share,
    .toc-sidebar,
    .post-sidebar,
    .related-posts-section,
    .blog-footer {
        display: none !important;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        max-width: 100%;
    }
}

/* ============================================
   Related Articles - 3 Column Grid Design
   ============================================ */

/* Grid layout for 3 columns */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Override blog-card styles for related section */
.related-posts-section .blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.related-posts-section .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(227, 111, 29, 0.2);
}

.related-posts-section .blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-gray-100);
}

.related-posts-section .blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-posts-section .blog-card:hover .blog-card-image {
    transform: scale(1.08);
}

.related-posts-section .blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.related-posts-section .blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-posts-section .blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-lighter);
}

.related-posts-section .blog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-posts-section .blog-card-meta-item svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.related-posts-section .blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    min-height: 3.25rem;
}

.related-posts-section .blog-card:hover .blog-card-title {
    color: var(--primary);
}

.related-posts-section .blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.related-posts-section .blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.related-posts-section .blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-posts-section .blog-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.related-posts-section .blog-card-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
}

.related-posts-section .blog-card-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.related-posts-section .blog-card-read-more:hover {
    gap: 8px;
}

.related-posts-section .blog-card-read-more svg {
    width: 14px;
    height: 14px;
}

/* Responsive adjustments for related articles */
@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-posts-section .blog-card-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-posts-section .blog-card-image-wrapper {
        height: 220px;
    }
    
    .related-posts-section .blog-card-content {
        padding: 20px;
    }
    
    .related-posts-section .blog-card-title {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .related-posts-section .blog-card-excerpt {
        font-size: 0.85rem;
    }
}

/* ============================================
   Social Share Card - Sidebar
   ============================================ */

.social-share-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Social Share Card in Left Sidebar - Compact Style */
.toc-sidebar .social-share-card {
    margin-top: 0;
    padding: 20px;
}

.toc-sidebar .social-share-card .sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-sidebar .social-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
}

.social-share-card .sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray-50);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(227, 111, 29, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-share-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 111, 29, 0.3);
}

.social-share-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(227, 111, 29, 0.3);
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-share-btn:hover svg {
    transform: scale(1.1);
}

/* Individual button colors on hover */
#shareXSidebar:hover,
#shareTwitter:hover {
    background: #000000;
    border-color: #000000;
}

#shareLinkedInSidebar:hover,
#shareLinkedIn:hover {
    background: #0077b5;
    border-color: #0077b5;
}

#shareFacebookSidebar:hover,
#shareFacebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

#shareGenericSidebar:hover,
#shareGeneric:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   AI Products Carousel - Compact & Professional
   ============================================ */

/* ==========================================
   NEWSLETTER SUBSCRIBE CARD - Sidebar
   ========================================== */

.newsletter-subscribe-card {
    background: linear-gradient(135deg, #fff5ed 0%, #ffe8d9 100%);
    border: 2px solid rgba(234, 109, 19, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.newsletter-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.newsletter-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    background: white;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 109, 19, 0.1);
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-submit-btn {
    width: 100%;
    padding: 11px 20px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-privacy {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.newsletter-privacy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* Responsive Design for Newsletter */
@media (max-width: 991px) {
    .newsletter-subscribe-card {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .newsletter-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .newsletter-subscribe-card {
        padding: 16px;
    }
    
    .newsletter-title {
        font-size: 1.05rem;
    }
    
    .newsletter-desc {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }
    
    .newsletter-input,
    .newsletter-submit-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

.product-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 111, 29, 0.1);
    border-radius: 12px;
    color: var(--primary);
}

.product-content {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 8px;
    color: var(--primary-dark);
}


/* ============================================
   MOBILE STICKY WAITLIST BANNER - Beautiful Glassmorphism
   ============================================ */

.mobile-waitlist-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 251, 247, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(234, 109, 19, 0.15);
    padding: 14px 20px;
    box-shadow: 0 -8px 32px rgba(234, 109, 19, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04);
    z-index: 998;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.mobile-waitlist-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 109, 19, 0.3), transparent);
}

.mobile-waitlist-banner.visible {
    transform: translateY(0);
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-waitlist-banner {
        display: block;
    }
}

.mobile-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 100%;
}

.mobile-banner-text {
    flex: 1;
    min-width: 0;
}

.mobile-banner-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.mobile-banner-title .highlight {
    color: var(--primary);
}

.mobile-banner-description {
    font-size: 0.75rem;
    color: var(--text-medium);
    line-height: 1.3;
    margin: 0;
}

.mobile-banner-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8534 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(234, 109, 19, 0.3);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 109, 19, 0.4);
}

.mobile-banner-button svg {
    width: 14px;
    height: 14px;
}

/* Shift mini player when banner is visible */
@media (max-width: 768px) {
    .mobile-waitlist-banner.visible ~ .read-aloud-mini-player {
        bottom: 90px !important;
    }
}

/* Shift back-to-top button to left side when banner is visible on mobile */
@media (max-width: 768px) {
    .back-to-top {
        right: 24px;
        bottom: 24px;
        transition: all 0.3s ease;
    }
    
    .mobile-waitlist-banner.visible ~ .back-to-top {
        bottom: 100px !important;
        right: 24px !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .mobile-waitlist-banner {
        padding: 12px 16px;
    }
    
    .mobile-banner-content {
        gap: 12px;
    }
    
    .mobile-banner-title {
        font-size: 0.9rem;
    }
    
    .mobile-banner-description {
        font-size: 0.72rem;
    }
    
    .mobile-banner-button {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
    
    .mobile-waitlist-banner.visible ~ .back-to-top {
        bottom: 90px !important;
        right: 20px !important;
    }
}

/* ============================================
   IN-CONTENT ADVERTISEMENT - Compact Join Waitlist CTA
   ============================================ */

.in-content-ad {
    margin: 28px 0;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.in-content-ad.visible {
    opacity: 1;
    transform: translateY(0);
}

.in-content-ad-wrapper {
    position: relative;
    background: linear-gradient(90deg, #fff5ed 0%, #fffbf7 100%);
    border-radius: 10px;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(234, 109, 19, 0.08);
    transition: all 0.3s ease;
}

.in-content-ad-wrapper:hover {
    box-shadow: 0 4px 16px rgba(234, 109, 19, 0.14);
    border-left-width: 5px;
}

/* Ad badge - visible and clear */
.in-content-ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(234, 109, 19, 0.12);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Ad content - single row layout */
.in-content-ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.in-content-ad-text {
    flex: 1;
    min-width: 0;
}

.in-content-ad-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.in-content-ad-title .highlight {
    color: var(--primary);
}

.in-content-ad-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-medium);
    margin-bottom: 0;
}

.in-content-ad-cta {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.in-content-ad-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8534 100%);
    color: white !important;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(234, 109, 19, 0.25);
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    min-height: 48px;
}

.in-content-ad-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 109, 19, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.in-content-ad-button:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(234, 109, 19, 0.4), 0 0 0 3px rgba(234, 109, 19, 0.2);
}

.in-content-ad-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: white !important;
    stroke-width: 2.5;
    display: block;
}

.in-content-ad-button:hover svg {
    transform: translateX(4px);
}

/* Override post-content link styles for button */
.post-content .in-content-ad-button,
.post-content .in-content-ad-button:hover {
    color: #ffffff !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-weight: 700 !important;
}

.button-text {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .in-content-ad {
        margin: 24px 0;
    }
    
    .in-content-ad-wrapper {
        padding: 18px 20px;
    }
    
    .in-content-ad-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    
    .in-content-ad-title {
        font-size: 1.05rem;
    }
    
    .in-content-ad-description {
        font-size: 0.85rem;
    }
    
    .in-content-ad-button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 24px;
        font-size: 15px;
        min-height: 48px;
    }
}

@media (max-width: 576px) {
    .in-content-ad {
        margin: 20px 0;
    }
    
    .in-content-ad-wrapper {
        padding: 16px 18px;
        border-radius: 8px;
    }
    
    .in-content-ad-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .in-content-ad-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .in-content-ad-description {
        font-size: 0.8rem;
    }
    
    .in-content-ad-button {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   READ ALOUD MINI PLAYER - Advanced with Hover Expansion
   ============================================ */

.read-aloud-mini-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

/* Mini Button (Default State) - Improved UI */
.mini-player-button {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, #f59e42 100%);
    border-radius: 50%;
    box-shadow: 0 10px 32px rgba(227, 111, 29, 0.5), 0 6px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.mini-player-button:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(227, 111, 29, 0.6), 0 8px 20px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.mini-player-button::after {
    content: 'Click to open player';
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mini-player-button::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mini-player-button:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.mini-player-button:hover::before {
    opacity: 1;
}

.mini-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-icon {
    color: white;
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.mini-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.mini-label {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Expanded Player (Hidden by Default, Shows on Click) */
.expanded-player {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 40px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 14px 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.92);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: auto;
    width: fit-content;
    backdrop-filter: blur(20px);
}

/* Show expanded player when player is expanded (click-based) */
.read-aloud-mini-player.expanded .expanded-player {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

/* Hide mini button when expanded */
.read-aloud-mini-player.expanded .mini-player-button {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Active state indicator (when playing) */
.read-aloud-mini-player.playing .mini-player-button {
    animation: playingPulse 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(227, 111, 29, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(227, 111, 29, 0.6), 0 0 0 8px rgba(227, 111, 29, 0.1);
    }
}

.player-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Player Buttons */
.player-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg-gray-50);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.player-btn:hover {
    background: var(--bg-gray-100);
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.96);
}

/* Play/Pause Button */
.play-pause-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #f59e42 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(227, 111, 29, 0.35);
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, #d65d0f 0%, var(--primary) 100%);
    box-shadow: 0 7px 20px rgba(227, 111, 29, 0.45);
}

.play-pause-btn .pause-icon {
    display: none !important;
}

.play-pause-btn.playing .play-icon {
    display: none !important;
}

.play-pause-btn.playing .pause-icon {
    display: block !important;
}

/* Skip Buttons */
.skip-btn {
    width: 38px;
    height: 38px;
    position: relative;
    overflow: visible;
}

.skip-btn:active {
    transform: scale(0.92);
}

.skip-btn.skipping {
    animation: skipPulse 0.3s ease;
}

@keyframes skipPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        background: rgba(227, 111, 29, 0.15);
    }
}

.skip-label {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    font-weight: 800;
    color: var(--text-medium);
}

/* Speed Control */
.speed-control-wrapper {
    position: relative;
}

.speed-btn {
    width: 46px;
    height: 38px;
    border-radius: 19px;
}

.speed-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.speed-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.speed-dropdown.active {
    display: flex;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.speed-option {
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.speed-option:hover {
    background: var(--bg-gray-50);
    color: var(--text-dark);
}

.speed-option.active {
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.12) 0%, rgba(227, 111, 29, 0.06) 100%);
    color: var(--primary);
}

/* Voice Control */
.voice-control-wrapper {
    position: relative;
}

.voice-btn {
    width: 42px;
    height: 38px;
    border-radius: 19px;
}

.voice-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
    z-index: 1000;
}

.voice-dropdown.active {
    display: flex;
    animation: dropdownFadeIn 0.2s ease;
}

.voice-option {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-option svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.voice-option:hover {
    background: var(--bg-gray-50);
    color: var(--text-dark);
}

.voice-option:hover svg {
    opacity: 1;
}

.voice-option.active {
    background: linear-gradient(135deg, rgba(227, 111, 29, 0.12) 0%, rgba(227, 111, 29, 0.06) 100%);
    color: var(--primary);
}

.voice-option.active svg {
    opacity: 1;
    fill: var(--primary);
}

/* Close Button - Visible and Functional */
.close-player-btn {
    width: 38px;
    height: 38px;
    background: var(--bg-gray-50);
    color: var(--text-medium);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
}

.close-player-btn:hover {
    background: rgba(227, 111, 29, 0.1);
    color: var(--primary);
    transform: scale(1.1) rotate(90deg);
}

.close-player-btn:active {
    transform: scale(0.95) rotate(90deg);
}

.close-player-btn svg {
    transition: transform 0.3s ease;
}

/* Hidden State */
.read-aloud-mini-player.hidden {
    display: none;
}

/* Text Highlighting - Real-Time Sentence Highlighting */
.reading-highlight {
    background: linear-gradient(120deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 152, 0, 0.35) 100%);
    padding: 2px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    animation: highlightPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
    position: relative;
}

@keyframes highlightPulse {
    0%, 100% {
        background: linear-gradient(120deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 152, 0, 0.35) 100%);
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
    }
    50% {
        background: linear-gradient(120deg, rgba(255, 193, 7, 0.45) 0%, rgba(255, 152, 0, 0.45) 100%);
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.35);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .read-aloud-mini-player {
        bottom: 20px;
        right: 20px;
    }

    .mini-player-button {
        width: 64px;
        height: 64px;
    }

    .mini-icon {
        width: 24px;
        height: 24px;
    }

    .mini-label {
        font-size: 10px;
    }

    .expanded-player {
        min-width: calc(100vw - 80px);
        max-width: 380px;
        right: -20px;
        padding: 12px 18px;
        border-radius: 36px;
    }

    .player-content {
        gap: 10px;
    }

    .player-btn {
        width: 38px;
        height: 38px;
    }

    .player-btn svg {
        width: 17px;
        height: 17px;
    }

    .play-pause-btn {
        width: 46px;
        height: 46px;
    }

    .play-pause-btn svg {
        width: 19px;
        height: 19px;
    }

    .skip-btn {
        width: 34px;
        height: 34px;
    }

    .skip-btn svg {
        width: 15px;
        height: 15px;
    }

    .skip-label {
        font-size: 7px;
    }

    .player-progress-wrapper {
        min-width: 90px;
        max-width: 130px;
    }

    .player-progress-bar {
        height: 5px;
    }

    .progress-handle {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .speed-btn {
        width: 42px;
        height: 34px;
    }

    .speed-value {
        font-size: 11px;
    }

    .voice-btn {
        width: 38px;
        height: 34px;
    }

    .voice-btn svg {
        width: 15px;
        height: 15px;
    }

    .close-player-btn {
        width: 34px;
        height: 34px;
    }

    .close-player-btn svg {
        width: 18px;
        height: 18px;
    }

    .speed-dropdown {
        min-width: 75px;
    }

    .speed-option {
        padding: 7px 11px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .read-aloud-mini-player {
        bottom: 16px;
        right: 16px;
    }

    .mini-player-button {
        width: 60px;
        height: 60px;
    }

    .mini-icon {
        width: 22px;
        height: 22px;
    }

    .mini-label {
        font-size: 9px;
    }

    .expanded-player {
        min-width: calc(100vw - 64px);
        max-width: 340px;
        padding: 12px 16px;
        border-radius: 32px;
        right: -16px;
    }

    .player-content {
        gap: 8px;
    }

    .player-btn {
        width: 34px;
        height: 34px;
    }

    .player-btn svg {
        width: 15px;
        height: 15px;
    }

    .play-pause-btn {
        width: 42px;
        height: 42px;
    }

    .play-pause-btn svg {
        width: 17px;
        height: 17px;
    }

    .skip-btn {
        width: 30px;
        height: 30px;
    }

    .skip-btn svg {
        width: 13px;
        height: 13px;
    }

    .skip-label {
        font-size: 6px;
        bottom: 1px;
        right: 1px;
    }

    .player-progress-wrapper {
        min-width: 70px;
        max-width: 110px;
    }

    .player-progress-bar {
        height: 5px;
    }

    .progress-handle {
        width: 11px;
        height: 11px;
        border-width: 2px;
    }

    .speed-btn {
        width: 38px;
        height: 32px;
    }

    .speed-value {
        font-size: 10px;
    }

    .voice-btn {
        width: 34px;
        height: 32px;
    }

    .voice-btn svg {
        width: 13px;
        height: 13px;
    }

    .close-player-btn {
        width: 32px;
        height: 32px;
    }

    .close-player-btn svg {
        width: 16px;
        height: 16px;
    }

    .speed-dropdown {
        min-width: 68px;
    }

    .speed-option {
        padding: 6px 9px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .mini-player-button {
        width: 48px;
        height: 48px;
    }

    .mini-icon {
        width: 18px;
        height: 18px;
    }

    .mini-label {
        font-size: 8px;
    }

    .expanded-player {
        min-width: calc(100vw - 56px);
        padding: 8px 12px;
        border-radius: 28px;
    }

    .player-content {
        gap: 5px;
    }

    .player-btn {
        width: 28px;
        height: 28px;
    }

    .play-pause-btn {
        width: 36px;
        height: 36px;
    }

    .skip-btn {
        width: 26px;
        height: 26px;
    }

    .player-progress-wrapper {
        min-width: 50px;
        max-width: 80px;
    }

    .speed-btn {
        width: 32px;
        height: 26px;
    }

    .voice-btn {
        width: 28px;
        height: 26px;
    }

    .voice-btn svg {
        width: 11px;
        height: 11px;
    }

    .close-btn {
        width: 22px;
        height: 22px;
    }
}

/* Smooth scroll for highlighted text */
.post-content {
    scroll-behavior: smooth;
}

/* ============================================
   SIMPLE WHITE FOOTER
   ============================================ */

.simple-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 60px;
}

.simple-footer-content {
    text-align: center;
}

.simple-footer-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.simple-footer-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.simple-footer-content a:hover {
    color: #d65d0f;
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 640px) {
    .simple-footer {
        padding: 24px 0;
        margin-top: 40px;
    }
    
    .simple-footer-content p {
        font-size: 13px;
        line-height: 1.5;
    }
}




/* ==========================================
   AI SUMMARIZE SECTION - Inline with Meta Items
   ========================================== */

.post-meta-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-meta-items .summarize-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 4px;
}

.post-meta-items .ai-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 6px;
    position: relative;
}

.post-meta-items .ai-tool-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.25s ease;
}

.post-meta-items .ai-tool-btn:hover {
    transform: translateY(-2px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    border-color: var(--primary);
}

.post-meta-items .ai-tool-btn:active {
    transform: translateY(0) scale(1.05);
}

/* Specific hover colors for each AI tool - Keep icons visible */
.post-meta-items .ai-tool-btn#summarizeChatGPT:hover {
    background: rgba(16, 163, 127, 0.15);
    border-color: #10a37f;
}

.post-meta-items .ai-tool-btn#summarizeClaude:hover {
    background: rgba(217, 119, 87, 0.15);
    border-color: #d97757;
}

.post-meta-items .ai-tool-btn#summarizePerplexity:hover {
    background: rgba(32, 128, 141, 0.15);
    border-color: #20808d;
}

/* Don't invert icon on hover - keep it visible */
.post-meta-items .ai-tool-btn:hover img {
    filter: none;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .post-meta-items {
        gap: 6px;
    }
    
    .post-meta-items .summarize-label {
        font-size: 0.85rem;
        width: 100%;
        margin-top: 4px;
        margin-bottom: 2px;
    }
    
    .post-meta-items .ai-tool-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .post-meta-items .ai-tool-btn {
        width: 26px;
        height: 26px;
    }
	.rewind-btn, .forward-btn {
    position: relative;
}

.rewind-btn .btn-label,
.forward-btn .btn-label {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.voice-btn, .scroll-top-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.voice-btn:hover, .scroll-top-btn:hover {
    opacity: 1;
}
}


/* ============================================
   BLOG POST FIXES — All 12 issues from Excel
   Add this to the END of blog-post.css
   ============================================ */

/* ──────────────────────────────────────────────
   FIX #10: Author logo + "iFieldSmart Team" layout
   FIX #11: Date & reading time next to team name
   FIX #12: Summarize logos inline, bigger, visible on mobile
   ────────────────────────────────────────────── */

/* Author section: logo + name + meta all inline */
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Meta items: date, time, summarize - all in one row */
.post-meta-items {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 8px;
}

/* Summarize label and AI buttons inline */
.summarize-label {
    white-space: nowrap;
}

.ai-tool-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ai-tool-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(227,111,29,0.15);
    transform: translateY(-1px);
}

.ai-tool-btn img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

/* ──────────────────────────────────────────────
   FIX #4: Mobile sharing buttons (show after AI buttons)
   ────────────────────────────────────────────── */

/* Mobile share row - shown below meta on mobile */
.mobile-share-row {
    display: none;
}

@media (max-width: 991px) {
    .mobile-share-row {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .mobile-share-row .share-label {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--text-light);
        white-space: nowrap;
    }

    .mobile-share-row .mobile-share-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(0,0,0,0.08);
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--text-medium);
    }

    .mobile-share-row .mobile-share-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .mobile-share-row .mobile-share-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Also ensure AI buttons visible on mobile */
    .post-meta-items {
        gap: 6px !important;
    }

    .ai-tool-btn {
        width: 26px !important;
        height: 26px !important;
    }

    .ai-tool-btn img {
        width: 18px !important;
        height: 18px !important;
    }

    .summarize-label {
        font-size: 0.75rem !important;
    }
}

/* ──────────────────────────────────────────────
   FIX #1: Voice icon → Speaker icon (CSS only swap)
   The HTML SVG is replaced in single.php
   ────────────────────────────────────────────── */

/* ──────────────────────────────────────────────
   FIX #9: Clear highlight on pause/stop/close
   Already handled in JS - this ensures the CSS transition
   ────────────────────────────────────────────── */
.reading-highlight {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ──────────────────────────────────────────────
   FIX #14/#15: Mobile player - rewind/forward buttons
   Style them same as speed button (rounded pill with text)
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .expanded-player {
        min-width: calc(100vw - 40px) !important;
        padding: 10px 14px !important;
    }

    .player-content {
        gap: 6px !important;
        justify-content: center;
    }

    /* Rewind and Forward buttons - match speed btn style */
    .rewind-btn,
    .forward-btn {
        width: auto !important;
        min-width: 38px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 17px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        font-size: 0;
    }

    .rewind-btn svg,
    .forward-btn svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0;
    }

    .rewind-btn .btn-label,
    .forward-btn .btn-label {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--text-dark);
        position: static !important;
        display: inline !important;
    }

    /* Speed button consistency */
    .speed-btn {
        min-width: 38px !important;
        height: 34px !important;
        border-radius: 17px !important;
        font-size: 12px !important;
    }

    /* Voice & scroll-top smaller on mobile */
    .voice-btn,
    .scroll-top-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .close-player-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .play-pause-btn {
        width: 42px !important;
        height: 42px !important;
    }
}

@media (max-width: 480px) {
    .rewind-btn,
    .forward-btn {
        min-width: 34px !important;
        height: 30px !important;
    }

    .speed-btn {
        min-width: 34px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .play-pause-btn {
        width: 38px !important;
        height: 38px !important;
    }
}
/* ============================================
   REPLACE everything from line 3664 to end of blog-post.css
   This matches the NEW single.php HTML structure
   ============================================ */

/* ── Desktop: Summarize row (inline after author) ── */
.post-summarize-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-summarize-row .summarize-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
}

.post-summarize-row .ai-tool-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 5px;
}

.post-summarize-row .ai-tool-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-summarize-row .ai-tool-btn:hover {
    transform: translateY(-2px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    border-color: var(--primary);
}

.post-summarize-row .ai-tool-btn#summarizeChatGPT:hover { background: rgba(16,163,127,.15); border-color: #10a37f; }
.post-summarize-row .ai-tool-btn#summarizeClaude:hover { background: rgba(217,119,87,.15); border-color: #d97757; }
.post-summarize-row .ai-tool-btn#summarizePerplexity:hover { background: rgba(32,128,141,.15); border-color: #20808d; }

/* ── Desktop: Share row hidden (sidebar shows share) ── */
.post-share-row {
    display: none;
}

/* ── Author avatar as brand logo ── */
.post-author .author-avatar {
    object-fit: contain !important;
    padding: 4px !important;
    background: #fff !important;
    border: 1.5px solid rgba(0,0,0,0.06) !important;
}

/* Reading highlight */
.reading-highlight {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── Player buttons on mobile ── */
@media (max-width: 768px) {
    .expanded-player { min-width: calc(100vw - 40px) !important; padding: 10px 14px !important; }
    .player-content { gap: 6px !important; justify-content: center; }
    .rewind-btn, .forward-btn { width: auto !important; min-width: 38px !important; height: 34px !important; padding: 0 8px !important; border-radius: 17px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 2px !important; font-size: 0; }
    .rewind-btn svg, .forward-btn svg { width: 14px !important; height: 14px !important; flex-shrink: 0; }
    .rewind-btn .btn-label, .forward-btn .btn-label { font-size: 11px !important; font-weight: 700 !important; color: var(--text-dark); position: static !important; display: inline !important; }
    .speed-btn { min-width: 38px !important; height: 34px !important; border-radius: 17px !important; font-size: 12px !important; }
    .voice-btn, .scroll-top-btn { width: 34px !important; height: 34px !important; }
    .close-player-btn { width: 34px !important; height: 34px !important; }
    .play-pause-btn { width: 42px !important; height: 42px !important; }
}

/* ══════════════════════════════════════════════════
   MOBILE: Match reference image EXACTLY
   Avatar top-left, name right, date below name
   Summarize = own row, large icons
   Share = own row, large circle buttons, bold black label
   ══════════════════════════════════════════════════ */

@media (max-width: 991px) {

    /* Stack all 3 rows vertically */
    .post-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    /* ── Row 1: Avatar + name/date ── */
    .post-author {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }

    .post-author .author-avatar {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(0,0,0,0.06) !important;
        padding: 8px !important;
    }

    .post-author .author-name {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
    }

    .post-meta-items {
        font-size: 1rem !important;
        gap: 6px !important;
        margin-top: 2px !important;
    }

    .post-meta-items .meta-item {
        font-size: 1rem !important;
    }

    .post-meta-items .meta-separator {
        font-size: 1rem !important;
    }

    /* ── Row 2: Summarize ── */
    .post-summarize-row {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        margin-bottom: 16px !important;
    }

    .post-summarize-row .summarize-label {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--text-dark) !important;
    }

    .post-summarize-row .ai-tool-btn {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        border: 2px solid rgba(0,0,0,0.06) !important;
        padding: 8px !important;
    }

    /* ── Row 3: Share ── */
    .post-share-row {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .post-share-row .share-label {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    .share-circle-btn {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(0,0,0,0.06) !important;
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--text-dark);
    }

    .share-circle-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .share-circle-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
}

/* ── Smaller phones ── */
@media (max-width: 576px) {
    .post-author .author-avatar {
        width: 68px !important;
        height: 68px !important;
        min-width: 68px !important;
        padding: 6px !important;
    }
    .post-author .author-name { font-size: 1.15rem !important; }
    .post-meta-items .meta-item, .post-meta-items .meta-separator { font-size: 0.9rem !important; }
    .post-summarize-row .summarize-label { font-size: 0.9rem !important; }
    .post-summarize-row .ai-tool-btn { width: 42px !important; height: 42px !important; }
    .post-share-row .share-label { font-size: 0.9rem !important; }
    .share-circle-btn { width: 42px !important; height: 42px !important; }
    .share-circle-btn svg { width: 18px !important; height: 18px !important; }
}