/* Article Page Styles */

/* ===== Article Hero Section ===== */
.article-hero {
    background: #0a0a0a;
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Geometric diamond pattern */
.article-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,107,0,0.07)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
    pointer-events: none;
}

/* Orange glow effect - bottom left */
.article-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

/* Orange glow effect - top right */
.hero-glow-top {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.article-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #C4C4C4;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ff6b00;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
}

.breadcrumb-current {
    color: #ff6b00;
    font-weight: 500;
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: -0.5px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #d1d1d1;
    margin-top: 1rem;
}

/* Author Row - centered with avatar */
.meta-author-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.meta-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.meta-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.meta-author-name {
    color: #fff;
    font-weight: 600;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.meta-reviewer {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Info Row - date and reading time */
.meta-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.meta-date,
.meta-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-info-row svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Legacy classes for backward compatibility */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.meta-item:not(:last-child)::after {
    content: '|';
    margin-right: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.meta-label {
    color: #C4C4C4;
}

.meta-value {
    color: #fff;
    font-weight: 500;
}

.article-hero-illustration {
    display: none;
}

/* ===== Article Section ===== */
.article-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: stretch;
}

/* ===== Sidebar ===== */
.article-sidebar {
    display: block;
    order: 2;
}

.article-content {
    order: 1;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Table of Contents */
.toc-card {
    background: transparent;
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease;
}

.toc-list.show-all {
    max-height: 220px;
    overflow-y: auto;
}

.toc-list li {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toc-list li.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.toc-list li a {
    display: block;
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.toc-list li a:hover {
    color: #1a1a2e;
}

.toc-list li a.active {
    color: #1a1a1a;
    font-weight: 600;
}

.toc-show-all {
    display: block;
    margin-top: 1rem;
    color: var(--primary-color, #ff6b35);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.toc-show-all:hover {
    text-decoration: underline;
}

/* TOC Toggle Button (hidden on desktop, visible on mobile) */
.toc-toggle {
    display: none;
}

.toc-toggle-icon {
    display: none;
}

/* Hide mobile TOC on desktop */
.mobile-toc-wrap {
    display: none;
}

/* Author Card */
.author-card {
    background: transparent;
    padding: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.author-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
}

.author-card-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* Sidebar Share */
.sidebar-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.share-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.sidebar-share .share-buttons {
    display: flex;
    gap: 0.5rem;
}

.sidebar-share .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5 !important;
    border: 1px solid #e5e5e5;
    color: #1a1a2e !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sidebar-share .share-btn:hover {
    background: #e8eaee !important;
}

/* Sidebar CTA */
.sidebar-cta {
    padding: 2rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #e05a00 0%, #ff6b00 50%, #ff8c4d 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
    pointer-events: none;
}

.sidebar-cta h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    color: #fff;
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
}

.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #e05a00;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
}

.sidebar-cta-btn:hover {
    background: #fff5f0;
    gap: 0.8rem;
}

.sidebar-cta-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-cta-btn:hover i {
    transform: translateX(-5px);
}

/* OmniSEO Widget */
.omniseo-widget {
    margin-top: 3rem;
    max-width: 300px;
    width: 100%;
    position: relative;
}

.omniseo-top-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: -30px;
    position: relative;
    z-index: 10;
}

.omniseo-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 107, 0, 0.1);
    position: relative;
    animation: omniseoIconFloat 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: transform, box-shadow;
}

.omniseo-icon:nth-child(1) {
    animation-delay: 0s;
}

.omniseo-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.omniseo-icon:nth-child(3) {
    animation-delay: 0.6s;
}

.omniseo-icon:nth-child(4) {
    animation-delay: 0.9s;
}

/* Optimized: Removed box-shadow from keyframes for GPU-accelerated animation */
@keyframes omniseoIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.omniseo-icon:not(:first-child) {
    margin-right: -15px;
}

.omniseo-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.omniseo-icon:nth-child(1) img,
.omniseo-icon:nth-child(2) img {
    filter: brightness(0) invert(1);
}

.widget-cta {
    border-radius: 16px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    position: relative;
    padding-top: 50px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.widget-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
    pointer-events: none;
    z-index: 1;
}

.omniseo-content {
    padding: 20px;
    padding-top: 10px;
    position: relative;
    z-index: 5;
}

.omniseo-heading {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.8;
    color: #fff;
    margin: 0 0 1rem 0;
    text-align: center;
}

.omniseo-highlight {
    color: #ff6b00;
    font-weight: 700;
}

.omniseo-description {
    margin-bottom: 1.25rem;
}

.omniseo-description p {
    color: #fff !important;
    font-size: 0.906rem !important;
    font-weight: 400;
    line-height: 1.5rem !important;
    letter-spacing: 0.073px;
    margin-bottom: 0 !important;
    text-align: center;
}

.omniseo-description em {
    font-style: italic;
    color: #fff;
}

.omniseo-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    background-color: #ff6b00;
    color: #fff;
    border: 4px solid #ff6b00;
    border-radius: 8px;
    font-size: 0.906rem;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.073px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0;
}

.omniseo-btn:hover {
    background-color: #e05a00;
    color: #fff;
    border-color: #e05a00;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.omniseo-heading sup,
.omniseo-btn sup {
    font-size: 65%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
}

/* ===== Article Content ===== */
.article-content-wrapper {
    --content-padding: 3rem;
    background: #fff;
    border-radius: 12px;
    padding: var(--content-padding);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-content {
    order: 1;
}

.article-intro {
    font-size: 1.2rem !important;
    color: #666 !important;
    font-style: italic;
}

/* Legacy article-list class */
.article-list {
    margin: 1.5rem 0;
    padding-right: 1.5rem;
}

.article-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.8rem;
    position: relative;
    padding-right: 1rem;
}

.article-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Code copy button (content block styles in content-blocks.css) */
.code-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    z-index: 10;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.code-copy-btn.copied {
    color: #27c93f;
}

/* AI Prompt Box */
.ai-prompt-box {
    background: #1a1a1a;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid #333;
}

.ai-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #333;
}

.ai-prompt-label {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e1e1e1;
}

.ai-prompt-label i,
.ai-prompt-label .ai-prompt-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    object-fit: contain;
    aspect-ratio: 1 / 1 !important;
    max-width: 18px !important;
}

.ai-prompt-copy {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.ai-prompt-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ai-prompt-copy.copied {
    color: #27c93f;
}

.ai-prompt-content {
    padding: 24px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 2;
    color: #d4d4d4;
    min-height: 80px;
}

/* Direction classes for frontend */
.ai-prompt-content.dir-ltr {
    direction: ltr;
    text-align: left;
}

.ai-prompt-content.dir-rtl {
    direction: rtl;
    text-align: right;
}

.ai-prompt-content p {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0 0 1rem 0;
}

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

/* ===== FAQ Block ===== */
.faq-block {
    margin: 2.5rem 0;
}

.faq-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ff6b00;
    display: inline-block;
}

.faq-container {
    display: block;
    width: 100%;
}

.faq-item {
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.faq-item:last-child {
    border-bottom: none;
}

h2.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2.faq-question:hover {
    color: #ff6b00;
}

h2.faq-question::after {
    content: '●';
    color: #ffb380;
    font-size: 3em;
    line-height: 0;
    transition: color 0.3s ease;
    flex-shrink: 0;
    order: -1;
}

.faq-item.is-open h2.faq-question::after {
    color: #ff6b00;
}


.faq-answer {
    display: none;
    padding: 0;
    margin-top: 1rem;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* First FAQ open by default */
.faq-item:first-child.is-open .faq-answer {
    display: block;
}

.faq-answer-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

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

.faq-answer-content a {
    color: #ff6b00;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 0.75rem 0;
    padding-right: 1.5rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

/* FAQ Mobile Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 1.2rem;
    }
    
    .faq-item {
        padding: 0.85rem 0;
    }
    
    h2.faq-question {
        font-size: 1.05rem;
    }
    
    h2.faq-question::before {
        width: 8px;
        height: 8px;
        margin-left: 8px;
    }
    
    .faq-answer-content {
        font-size: 0.95rem;
    }
}

/* ===== References Section - Integrated Style ===== */
.references-section {
    margin: 2.5rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.references-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.references-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.references-toggle {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color, #ff6b00);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Collapsed by default */
.references-content {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.references-content.expanded {
    max-height: 2000px;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

.references-list {
    list-style: decimal;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.references-list li {
    font-size: 0.8rem;
    line-height: 1.65;
    color: #666;
    margin-bottom: 0.4rem;
}

.references-list li::marker {
    color: #999;
    font-weight: 500;
    font-size: 0.8rem;
}

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

.references-list li a.reference-link {
    color: var(--primary-color, #ff6b00);
    text-decoration: none;
    font-weight: 500;
}

.references-list li a.reference-link:hover {
    text-decoration: underline;
}

.references-list li em {
    font-style: italic;
    color: #888;
}

.references-list li span {
    color: #888;
}

/* References Mobile */
@media (max-width: 768px) {
    .references-section {
        margin: 2rem 0 1rem;
        padding: 0.875rem 1rem;
    }
    
    .references-title {
        font-size: 0.85rem;
    }
    
    .references-list li {
        font-size: 0.75rem;
    }
}

/* Quote Box */
.quote-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.quote-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.quote-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-author {
    flex: 1;
}

.quote-name {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.quote-name i {
    color: #1d9bf0;
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.quote-handle {
    font-size: 0.85rem;
    color: #888;
}

.quote-icon {
    font-size: 1.2rem;
    color: #000;
}

.quote-content p {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.quote-content ul {
    margin: 0.5rem 0 1rem;
    padding-right: 1.2rem;
}

.quote-content ul li {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #444;
}

/* Article CTA Box - Full Width Banner */
.article-cta-box {
    background: linear-gradient(135deg, #e05a00 0%, #ff6b00 50%, #ff8c4d 100%);
    padding: 3rem 2.5rem;
    margin: 3rem -3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.article-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
    pointer-events: none;
}

.article-cta-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    margin-top: 0;
    color: #fff;
    position: relative;
}

.article-cta-box p {
    font-size: 1.05rem !important;
    opacity: 0.9;
    margin-bottom: 1.5rem !important;
    color: #fff !important;
    position: relative;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #e05a00;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none !important;
}

/* CTA Box Color Variants */

/* Teal/Mint Variant */
.article-cta-box.cta-teal {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.article-cta-box.cta-teal::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
}

.article-cta-box.cta-teal .article-cta-btn {
    color: #0d9488;
    background: #fff;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.article-cta-box.cta-teal .article-cta-btn:hover {
    background: #f0fdfa;
    color: #0f766e;
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

/* Blue/Purple (Indigo) Variant */
.article-cta-box.cta-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-cta-box.cta-blue::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
}

.article-cta-box.cta-blue .article-cta-btn {
    color: #6366f1;
    background: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.article-cta-box.cta-blue .article-cta-btn:hover {
    background: #eef2ff;
    color: #4f46e5;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Dark/Black Variant */
.article-cta-box.cta-dark {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.article-cta-box.cta-dark::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
}

.article-cta-box.cta-dark .article-cta-title {
    color: #fff !important;
}

.article-cta-box.cta-dark p {
    color: rgba(255,255,255,0.8) !important;
}

.article-cta-box.cta-dark .article-cta-btn {
    color: #fff;
    background: linear-gradient(135deg, #e05a00 0%, #ff6b00 50%, #ff8c4d 100%);
    box-shadow: 0 4px 15px rgba(212, 85, 0, 0.4);
}

.article-cta-box.cta-dark .article-cta-btn:hover {
    background: linear-gradient(135deg, #ff8c4d 0%, #ff6b00 50%, #e05a00 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(212, 85, 0, 0.5);
}

/* Purple Variant */
.article-cta-box.cta-purple {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #c084fc 100%);
}

.article-cta-box.cta-purple::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3C/svg%3E") center/80px repeat;
}

.article-cta-box.cta-purple .article-cta-btn {
    color: #7c3aed;
    background: #fff;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.article-cta-box.cta-purple .article-cta-btn:hover {
    background: #faf5ff;
    color: #6d28d9;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.article-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #fff5f0;
    text-decoration: none !important;
}

.article-cta-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.article-cta-btn:hover i {
    transform: translateX(-5px);
}

/* Share Section */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.article-share span {
    font-weight: 600;
    color: #1a1a2e;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ===== Author Box (Below Article Content) ===== */
.author-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    grid-column: 1;
    order: 3;
}

.author-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-box-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.author-box-social {
    display: flex;
    gap: 0.8rem;
}

.author-box-social a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #1a1a2e;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.author-box-social a:hover {
    background: #e8eaee;
}

.author-box-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0 0 0.8rem 0;
}

.author-box-bio:last-child {
    margin-bottom: 0;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5 !important;
    border: 1px solid #e5e5e5;
    color: #1a1a2e !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #e8eaee !important;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 0 0 4rem;
    background: #f8f9fa;
}

.newsletter-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: stretch;
}

.newsletter-spacer {
    display: block;
}

/* ===== Newsletter Box ===== */
.newsletter-box {
    background: linear-gradient(135deg, #FFF8F2 0%, #FFEFE5 50%, #FFE8D9 100%);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    margin: 0;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-box::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.newsletter-text {
    flex-shrink: 0;
    min-width: 220px;
}

.newsletter-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.7;
}

.newsletter-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 1.1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Match service hero .sh-input-wrapper.sh-error */
.newsletter-input.newsletter-email--error {
    border-color: #e53935;
}

.newsletter-input.newsletter-email--error:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 2.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e05d00 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #e05d00 0%, #cc5200 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45);
}

.newsletter-btn:hover i {
    transform: translateX(-4px) rotate(-15deg);
}

.newsletter-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

.newsletter-disclaimer {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.8;
}

.newsletter-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.newsletter-disclaimer a:hover {
    color: #e05d00;
    border-bottom-style: solid;
}

.newsletter-form-wrapper .newsletter-feedback {
    display: none;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Below field — match .service-hero-form-card .sh-field-error */
.newsletter-form-wrapper .newsletter-feedback.newsletter-feedback--error {
    font-weight: 500;
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0;
    text-align: right;
    color: #e53935;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.newsletter-box.linkawy-newsletter-success .newsletter-text {
    display: none;
}

.newsletter-box.linkawy-newsletter-success .newsletter-form {
    display: none;
}

.newsletter-box.linkawy-newsletter-success .newsletter-disclaimer {
    display: none;
}

.newsletter-box.linkawy-newsletter-success .newsletter-content {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 200px;
}

.newsletter-box.linkawy-newsletter-success .newsletter-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.newsletter-box.linkawy-newsletter-success .newsletter-feedback {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 28rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.newsletter-box.linkawy-newsletter-success .newsletter-feedback__title {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.6;
    color: #1a1a2e;
}

.newsletter-box.linkawy-newsletter-success .newsletter-feedback__subtitle {
    display: block;
    margin-top: 0.65rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75;
    color: #5c6370;
}

.newsletter-box.linkawy-newsletter-success .newsletter-feedback::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
    font-size: 1.65rem;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #ff8c4d);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.28);
    flex-shrink: 0;
}

/* ===== You May Also Like Section ===== */
.also-like-section {
    padding: 5rem 0;
    background: #fafbfc;
}

.also-like-section .container-wide {
    max-width: 1280px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.also-like-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f5f7 100%);
    border-radius: 28px;
    padding: 4rem 4.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.also-like-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.also-like-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 3rem;
    position: relative;
}

.also-like-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.also-like-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 5rem;
}

.also-like-card {
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.also-like-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.also-like-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.15);
}

.also-like-card:hover::before {
    opacity: 1;
}

.also-like-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.65;
    margin-bottom: 1rem;
    color: #1a1a2e;
    position: relative;
}

.also-like-card h3 a {
    color: #1a1a2e;
    transition: color 0.3s ease;
    position: relative;
}

.also-like-card h3 a:hover {
    color: var(--primary-color);
}

.also-like-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    position: relative;
}

.also-like-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

.also-like-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 107, 0, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
}

.also-like-time {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* ===== Pre-Footer CTA Section ===== */
.pre-footer-cta {
    background: linear-gradient(180deg, #4f24a0 0%, #421983 100%);
    padding: 3.5rem 0 3.5rem;
    position: relative;
    overflow: visible;
    margin-top: 0;
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='rgba(0,0,0,0.04)' stroke-width='1.5'/%3E%3C/svg%3E") center/100px repeat;
    pointer-events: none;
}

.pre-footer-cta-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 100%;
    right: 10px;
    margin-bottom: 35px;
    z-index: 10;
}

.cta-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(66, 25, 131, 0.82);
    border: 3px solid rgba(90, 43, 181, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 15px rgba(90, 43, 181, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: iconFloatSmooth 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: transform, box-shadow;
}

/* تأثير تموج متتالي - كل أيقونة تبدأ بتأخير مختلف */
.cta-icon-circle:nth-child(1) {
    animation-delay: 0s;
}

.cta-icon-circle:nth-child(2) {
    animation-delay: 0.3s;
}

.cta-icon-circle:nth-child(3) {
    animation-delay: 0.6s;
}

.cta-icon-circle:nth-child(4) {
    animation-delay: 0.9s;
}

/* Optimized: Removed box-shadow from keyframes for GPU-accelerated animation */
@keyframes iconFloatSmooth {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.cta-icon-circle img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.pre-footer-cta .container {
    position: relative;
    z-index: 2;
}

.pre-footer-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.pre-footer-cta-right {
    text-align: right;
    position: relative;
}

.pre-footer-cta-title {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.55;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}


.pre-footer-cta-left {
    text-align: right;
}

.pre-footer-cta-left p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    letter-spacing: 0.2px;
    margin: 1.5rem 0;
}

.pre-footer-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00 0%, #ff7a22 100%);
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.pre-footer-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pre-footer-cta-btn:hover::before {
    left: 100%;
}

.pre-footer-cta-btn:hover {
    background: linear-gradient(135deg, #e05a00 0%, #ff6b00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
    
    .newsletter-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .article-content {
        order: 1;
    }
    
    .newsletter-layout {
        grid-template-columns: 1fr;
    }
    
    .newsletter-spacer {
        display: none;
    }
    
    .also-like-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 3rem;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow — use clip (not hidden) to preserve position:sticky on header */
    body {
        overflow-x: clip;
    }
    
    .article-section,
    .also-like-section,
    .pre-footer-cta,
    .newsletter-section {
        overflow-x: clip;
    }
    
    /* Fix container width on mobile */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    /* Lists on mobile */
    .article-content ul,
    .article-content ol {
        padding-right: 1.25rem;
    }
    
    .article-content ul li,
    .article-content ol li {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    /* Prevent grid item from expanding beyond its track width (min-width: auto fix) */
    .content-inner {
        min-width: 0;
    }
    
    /* Constrain wrapper so table min-width can't expand it */
    .article-content-wrapper {
        overflow-x: clip;
    }
    
    /* Tables on mobile - horizontal scroll + sticky first column */
    .article-content .wp-block-table,
    .article-content figure.wp-block-table {
        margin: 1.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
        padding: 0;
        position: relative;
        max-width: calc(100vw - 3rem);
        box-sizing: border-box;
    }
    
    .article-content .wp-block-table::-webkit-scrollbar {
        height: 5px;
    }
    
    .article-content .wp-block-table::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .article-content .wp-block-table::-webkit-scrollbar-thumb {
        background: rgba(255, 107, 0, 0.3);
        border-radius: 3px;
    }
    
    .article-content .wp-block-table table,
    .article-content table {
        font-size: 0.9rem;
        min-width: 650px;
        border-radius: 0;
        overflow: visible;
    }
    
    .article-content .wp-block-table thead th,
    .article-content table thead th {
        padding: 0.7rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .article-content .wp-block-table tbody td,
    .article-content table tbody td {
        padding: 0.7rem 0.85rem;
        font-size: 0.88rem;
    }
    
    /* Sticky first column - rightmost in RTL (usually the row identifier) */
    .article-content .wp-block-table th:first-child,
    .article-content .wp-block-table td:first-child,
    .article-content table th:first-child,
    .article-content table td:first-child {
        position: sticky;
        right: 0;
        z-index: 2;
    }
    
    .article-content .wp-block-table thead th:first-child,
    .article-content table thead th:first-child {
        z-index: 3;
        background: #1a1a2e;
    }
    
    .article-content .wp-block-table tbody tr:nth-child(odd) td:first-child,
    .article-content table tbody tr:nth-child(odd) td:first-child {
        background: #fff;
    }
    
    .article-content .wp-block-table tbody tr:nth-child(even) td:first-child,
    .article-content table tbody tr:nth-child(even) td:first-child {
        background: #fafbfc;
    }
    
    .article-content .wp-block-table tbody tr:hover td:first-child,
    .article-content table tbody tr:hover td:first-child {
        background: #fef4ec;
    }
    
    /* Shadow to indicate the column is floating */
    .article-content .wp-block-table td:first-child,
    .article-content table td:first-child {
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.06);
    }
    
    .article-content .wp-block-table figcaption,
    .article-content figure.wp-block-table figcaption {
        font-size: 0.8rem;
        padding: 0.5rem 0 0;
        min-width: auto;
    }
    
    /* Hide desktop TOC on mobile */
    .toc-card {
        display: none;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .article-sidebar {
        display: none;
    }
    
    /* ===== Mobile TOC ===== */
    .mobile-toc-wrap {
        display: block;
        margin-bottom: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-toc {
        position: relative;
        z-index: 100;
    }
    
    .mobile-toc__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0.85rem 1rem;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 10px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
        will-change: transform, opacity;
        box-sizing: border-box;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    }
    
    .mobile-toc__icon {
        width: 18px;
        height: 16px;
        flex-shrink: 0;
    }
    
    .mobile-toc__title {
        font-size: 0.9rem;
        font-weight: 600;
        color: #1a1a2e;
    }
    
    .mobile-toc__panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        z-index: 101;
        max-height: 280px;
        overflow-y: auto;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .mobile-toc__panel[hidden] { display: none; }
    
    .mobile-toc__list {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
    }
    
    .mobile-toc__item {
        border-bottom: 1px solid #f0f1f3;
    }
    
    .mobile-toc__item:last-child { border-bottom: none; }
    
    .mobile-toc__item a {
        display: block;
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        color: #444;
        line-height: 1.5;
        transition: all 0.2s ease;
    }
    
    .mobile-toc__item a:hover {
        background: #f8f9fa;
        color: var(--primary-color);
    }
    
    .mobile-toc__item a.active {
        color: var(--primary-color);
        font-weight: 600;
        background: #fff5f2;
    }
    
    .mobile-toc__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.25);
        z-index: 99;
    }
    
    .mobile-toc__overlay[hidden] { display: none; }
    
    /* Sticky */
    .mobile-toc.is-sticky .mobile-toc__toggle {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: calc(100% - 2rem);
        z-index: 100;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        animation: tocStickyIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }
    
    .mobile-toc.is-sticky .mobile-toc__panel {
        position: fixed;
        top: 140px; /* Below sticky toggle (80px) + toggle height (~52px) + gap (8px) */
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    
    @keyframes tocStickyIn {
        from {
            opacity: 0;
            transform: translateY(-12px) scale(0.97);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .article-hero {
        padding: 2.5rem 0 3rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        gap: 0.4rem;
    }
    
    .article-title {
        font-size: 1.5rem;
        line-height: 1.7;
        margin-bottom: 1.75rem;
        letter-spacing: 0;
    }
    
    .article-meta {
        font-size: 0.85rem;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .meta-author-row {
        gap: 0.5rem;
    }
    
    .meta-author-avatar {
        width: 36px;
        height: 36px;
    }
    
    .meta-author-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .meta-info-row {
        gap: 1.5rem;
        font-size: 0.8rem;
    }
    
    .meta-info-row svg {
        width: 16px;
        height: 16px;
    }
    
    /* Legacy support */
    .meta-item {
        justify-content: center;
    }
    
    .meta-item:not(:last-child)::after {
        display: none;
    }
    
    .article-hero-illustration {
        display: none;
    }
    
    .hero-glow-top {
        display: none;
    }
    
    .article-section {
        padding: 2rem 0;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-content-wrapper {
        --content-padding: 1.5rem;
        padding: var(--content-padding);
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-cta-box {
        margin: 2.5rem -1.5rem;
        padding: 2.5rem 1.5rem;
    }
    
    .article-cta-title {
        font-size: 1.5rem;
    }
    
    .omniseo-widget {
        max-width: 100%;
    }
    
    .omniseo-top-icons {
        gap: 0;
    }
    
    .omniseo-icon {
        width: 60px;
        height: 60px;
    }
    
    .omniseo-icon:not(:first-child) {
        margin-right: -12px;
    }
    
    .omniseo-icon img {
        width: 30px;
        height: 30px;
    }
    
    .omniseo-heading {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    .omniseo-description p {
        font-size: 0.875rem;
    }
    
    .also-like-section {
        padding: 3rem 0;
    }
    
    .also-like-wrapper {
        padding: 2rem 1.25rem;
        border-radius: 20px;
        background: linear-gradient(135deg, #f9fafb 0%, #f4f5f7 100%);
    }
    
    .also-like-wrapper::before {
        display: none;
    }
    
    .also-like-title {
        font-size: 1.5rem;
        margin-bottom: 1.75rem;
        text-align: center;
    }
    
    .also-like-title::after {
        right: 50%;
        transform: translateX(50%);
        width: 60px;
    }
    
    .also-like-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .also-like-card {
        padding: 1.25rem;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .also-like-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .also-like-card h3 {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
    
    .also-like-card p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        color: #6b7280;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .also-like-meta {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .also-like-category {
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
        background: rgba(255, 107, 0, 0.08);
        border-radius: 20px;
    }
    
    .also-like-time {
        font-size: 0.8rem;
        color: #9ca3af;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pre-footer-cta {
        padding: 4rem 0 3rem;
        margin-top: 3rem;
    }
    
    .pre-footer-cta-icons {
        position: relative;
        bottom: auto;
        right: auto;
        margin-bottom: 1rem;
        justify-content: center;
        gap: 0.4rem;
        transform: none;
    }
    
    .cta-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .cta-icon-circle img {
        width: 30px;
        height: 30px;
    }
    
    .pre-footer-cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .pre-footer-cta-right {
        text-align: center;
    }
    
    .pre-footer-cta-title {
        font-size: 2rem;
    }
    
    .pre-footer-cta-left {
        text-align: center;
    }
    
    .pre-footer-cta-left p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .pre-footer-cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .newsletter-section {
        padding: 0 0 2rem;
    }
    
    .newsletter-box {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .newsletter-box::before,
    .newsletter-box::after {
        display: none;
    }
    
    .newsletter-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .newsletter-text {
        text-align: center;
        min-width: auto;
    }
    
    .newsletter-title {
        font-size: 1.3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .newsletter-input {
        padding: 1rem 1.25rem;
        text-align: center;
    }
    
    .newsletter-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .newsletter-disclaimer {
        text-align: center;
        font-size: 0.78rem;
    }

    .newsletter-form-wrapper .newsletter-feedback.newsletter-feedback--error {
        text-align: center;
    }
    
    .author-box {
        padding: 1.5rem;
    }
    
    .author-box-avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-box-name {
        font-size: 1.1rem;
    }
    
    .author-box-bio {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 1.5rem 0 2rem;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
        margin-bottom: 1.2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
        line-height: 1.6;
        margin: 2rem 0;
    }
    
    .article-meta {
        font-size: 0.8rem;
        gap: 0.6rem;
    }
    
    .meta-author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .meta-info-row {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .meta-info-row svg {
        width: 14px;
        height: 14px;
    }
    
    .article-cta-box {
        margin: 2rem -1.5rem;
        padding: 2rem 1.2rem;
    }
    
    .article-cta-title {
        font-size: 1.3rem;
    }
    
    .article-cta-box p {
        font-size: 0.95rem !important;
    }
    
    .article-cta-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .pre-footer-cta {
        padding: 3.5rem 0 2.5rem;
        margin-top: 2.5rem;
    }
    
    .pre-footer-cta-icons {
        position: relative;
        bottom: auto;
        right: auto;
        margin-bottom: 0.8rem;
        justify-content: center;
        gap: 0.3rem;
        transform: none;
    }
    
    .cta-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .cta-icon-circle img {
        width: 25px;
        height: 25px;
    }
    
    .pre-footer-cta-title {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .pre-footer-cta-left p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .pre-footer-cta-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    /* Also Like - Extra Small Screens */
    .also-like-section {
        padding: 2.5rem 0;
    }
    
    .also-like-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .also-like-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    
    .also-like-grid {
        gap: 0.875rem;
    }
    
    .also-like-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .also-like-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .also-like-card p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .also-like-meta {
        gap: 0.75rem;
    }
    
    .also-like-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .also-like-time {
        font-size: 0.75rem;
    }
}
