/**
 * Nasey Blog & Articles Styles
 * World-class design for SEO content
 */

/* ========================================
   Blog Archive / Catalog Page
   ======================================== */

.nasey-blog-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* Blog Hero */
.nasey-blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.nasey-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.nasey-blog-hero .nasey-container {
    position: relative;
    z-index: 1;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.blog-hero-icon i {
    font-size: 36px;
    color: #fff;
}

.blog-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ============================================
   BLOG STATS - World-Class Premium Design
   ============================================ */
.blog-stats-grid {
    display: inline-flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.blog-stats-grid.single-stat {
    border-radius: 50px;
}

.blog-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: transparent;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.blog-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-stat-card:hover::before {
    opacity: 1;
}

.blog-stat-card:hover {
    transform: scale(1.02);
}

/* Divider between cards */
.blog-stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.stat-icon-wrapper i {
    font-size: 22px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.stat-decoration {
    display: none;
}

/* Animation */
.blog-stat-card {
    animation: statSlideIn 0.5s ease-out forwards;
    opacity: 0;
}

.blog-stat-card:nth-child(1) { animation-delay: 0.1s; }
.blog-stat-card:nth-child(2) { animation-delay: 0.2s; }
.blog-stat-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes statSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet */
@media (max-width: 900px) {
    .blog-stats-grid {
        padding: 6px;
        gap: 0;
    }

    .blog-stat-card {
        padding: 12px 18px;
        gap: 10px;
    }

    .stat-icon-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .stat-icon-wrapper i {
        font-size: 18px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 10px;
    }
}

/* Mobile - Keep horizontal */
@media (max-width: 768px) {
    .blog-stats-grid {
        display: inline-flex;
        flex-wrap: nowrap;
        padding: 6px;
        border-radius: 20px;
        gap: 0;
        max-width: 100%;
        overflow-x: auto;
    }

    .blog-stat-card {
        padding: 10px 14px;
        gap: 8px;
        flex-shrink: 0;
    }

    .stat-icon-wrapper {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .stat-icon-wrapper i {
        font-size: 16px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }

    .blog-stat-card:not(:last-child)::after {
        height: 22px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .blog-stats-grid {
        padding: 5px;
    }

    .blog-stat-card {
        padding: 8px 10px;
        gap: 6px;
    }

    .stat-icon-wrapper {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }

    .stat-icon-wrapper i {
        font-size: 14px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 8px;
    }
}

/* Old classes - backward compatibility */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-stat {
    text-align: center;
}

.blog-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    display: block;
}

.blog-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Blog Filters */
.blog-filters-section {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-search {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.blog-search input:focus {
    border-color: #6366f1;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.blog-search i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
}

.blog-filter-select {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.3s ease;
}

.blog-filter-select:focus {
    border-color: #6366f1;
    outline: none;
}

.blog-view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #64748b;
}

.view-btn:hover,
.view-btn.active {
    border-color: #6366f1;
    background: #6366f1;
    color: #fff;
}

/* Blog Content Area */
.blog-content-area {
    padding: 48px 0 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.articles-grid.list-view {
    grid-template-columns: 1fr;
}

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.article-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: block;
    cursor: pointer;
    text-decoration: none;
}

a.article-card-image:hover img {
    transform: scale(1.08);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.article-category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-card-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    font-size: 14px;
    color: #6366f1;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #6366f1;
}

.article-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-read-more:hover {
    gap: 12px;
    color: #4f46e5;
}

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

.article-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #6366f1;
    color: #fff;
}

/* List View Card */
.articles-grid.list-view .article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.articles-grid.list-view .article-card-image {
    height: 100%;
    min-height: 220px;
}

.articles-grid.list-view .article-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles-grid.list-view .article-card-excerpt {
    -webkit-line-clamp: 4;
}

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

.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #6366f1;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: #6366f1;
    color: #fff;
    transform: translateX(-4px);
}

.categories-list .count {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.categories-list a:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    padding: 8px 14px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud a:hover {
    background: #6366f1;
    color: #fff;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

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

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a {
    color: inherit;
    text-decoration: none;
}

.popular-post-title a:hover {
    color: #6366f1;
}

.popular-post-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.blog-pagination a:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.blog-pagination span.current {
    background: #6366f1;
    color: #fff;
    border: 2px solid #6366f1;
}

.blog-pagination .prev,
.blog-pagination .next {
    padding: 0 20px;
}

/* ========================================
   Single Article Page
   ======================================== */

.nasey-single-article {
    background: #f8fafc;
}

/* Article Hero */
.article-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    padding: 100px 0 60px;
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-hero-category {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-hero-category:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.article-hero-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-hero-date i {
    color: #a5b4fc;
}

/* Article Rating Stars */
.article-hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 16px;
}

.rating-stars i.ri-star-line {
    color: rgba(255, 255, 255, 0.3);
}

.rating-value {
    color: #fbbf24;
    font-weight: 700;
    font-size: 15px;
}

.rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Rating in Article Cards */
.article-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.article-card-rating .rating-stars {
    display: flex;
    gap: 1px;
}

.article-card-rating .rating-stars i {
    color: #fbbf24;
    font-size: 12px;
}

.article-card-rating .rating-stars i.ri-star-line {
    color: #e2e8f0;
}

.article-card-rating .rating-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
}

.article-card-rating .rating-count {
    color: #64748b;
    font-size: 12px;
}

/* Rating Widget in Sidebar */
.rating-widget {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.rating-widget-score {
    font-size: 48px;
    font-weight: 800;
    color: #92400e;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-widget-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-widget-stars i {
    color: #f59e0b;
    font-size: 20px;
}

.rating-widget-count {
    color: #92400e;
    font-size: 14px;
}

/* Interactive Article Rating Widget */
.article-rating-widget {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    margin: 48px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.article-rating-widget:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.rating-widget-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rating-widget-header i {
    font-size: 28px;
    color: #f59e0b;
}

.rating-widget-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.rating-widget-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.current-rating-value {
    font-size: 36px;
    font-weight: 800;
    color: #f59e0b;
}

.current-rating-stars {
    display: flex;
    gap: 2px;
}

.current-rating-stars i {
    font-size: 20px;
    color: #f59e0b;
}

.current-rating-stars i.ri-star-line {
    color: #cbd5e1;
}

.current-rating-count {
    color: #64748b;
    font-size: 14px;
}

.rating-widget-input {
    padding: 20px 0;
}

.rating-stars-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.star-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: scale(1.2);
}

.star-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.star-btn i {
    font-size: 32px;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.star-btn i.ri-star-fill {
    color: #f59e0b;
}

.rating-hint {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.rating-submitted {
    color: #10b981;
    font-size: 16px;
    font-weight: 600;
    padding: 20px 0;
    margin: 0;
}

.rating-widget-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px;
    background: #fef2f2;
    border-radius: 8px;
}

.article-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-hero-excerpt {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Article Content */
.article-content-section {
    padding: 60px 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.article-main {
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Featured Image */
.article-featured-image {
    margin: -48px -48px 40px -48px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    max-height: 500px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   Article Body - World-Class Content Styling
   ======================================== */
.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 48px 0 24px;
    padding-right: 20px;
    border-right: 4px solid #6366f1;
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 0;
    width: 4px;
    height: 50%;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 36px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-body h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    flex-shrink: 0;
}

.article-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 28px 0 14px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Enhanced Lists */
.article-body ul {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 14px;
    display: block;
    line-height: 1.8;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
}

.article-body ol {
    margin: 24px 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}

.article-body ol li {
    position: relative;
    padding-right: 44px;
    margin-bottom: 16px;
    counter-increment: item;
    display: block;
    line-height: 1.8;
}

.article-body ol li::before {
    content: counter(item);
    position: absolute;
    right: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Fix for LTR in RTL context */
[dir="rtl"] .article-body ul li,
[dir="rtl"] .article-body ol li {
    padding-right: 44px;
    padding-left: 0;
}

[dir="rtl"] .article-body ul li::before,
[dir="rtl"] .article-body ol li::before {
    right: 0;
    left: auto;
}

/* Ensure inline display for strong/em inside lists */
.article-body li strong,
.article-body li em,
.article-body li a {
    display: inline;
}

/* Nested lists */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
    margin: 12px 0 12px 20px;
}

.article-body ul ul li::before {
    width: 6px;
    height: 6px;
    background: #94a3b8;
}

/* Links */
.article-body a {
    color: #6366f1;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.article-body a:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: #4f46e5;
}

/* Enhanced Images */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-body img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Image with caption */
.article-body figure {
    margin: 32px 0;
    text-align: center;
}

.article-body figure img {
    margin: 0 0 16px 0;
}

.article-body figcaption {
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}

/* Enhanced Blockquote */
.article-body blockquote {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    padding: 32px 40px 32px 32px;
    margin: 40px 0;
    border-radius: 20px;
    font-style: normal;
    color: #475569;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: #6366f1;
    opacity: 0.3;
    line-height: 1;
}

.article-body blockquote::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 0 20px 20px 0;
}

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

/* Enhanced Code */
.article-body pre {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-radius: 16px;
    padding: 40px 24px 24px 24px;
    margin: 32px 0;
    overflow-x: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.7;
}

.article-body pre::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #22c55e;
}

[dir="rtl"] .article-body pre::before {
    left: auto;
    right: 16px;
    box-shadow: -16px 0 0 #fbbf24, -32px 0 0 #22c55e;
}

.article-body code {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

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

/* Enhanced Tables */
.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-body th {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 600;
    padding: 16px 20px;
    text-align: right;
}

.article-body td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
}

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

.article-body tr:nth-child(even) td {
    background: #f8fafc;
}

.article-body tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* Info/Alert Boxes */
.article-body .info-box,
.article-body .warning-box,
.article-body .success-box,
.article-body .tip-box {
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.article-body .info-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-right: 4px solid #3b82f6;
}

.article-body .warning-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-right: 4px solid #f59e0b;
}

.article-body .success-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-right: 4px solid #22c55e;
}

.article-body .tip-box {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-right: 4px solid #8b5cf6;
}

/* Horizontal Rule */
.article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 48px 0;
}

/* ========================================
   Mobile TOC - Fixed at Top
   ======================================== */
.mobile-toc {
    display: none;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mobile-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    cursor: pointer;
    user-select: none;
}

.mobile-toc-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toc-header i {
    color: #6366f1;
}

.mobile-toc-toggle {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-toc-toggle i {
    color: #64748b;
    font-size: 18px;
}

.mobile-toc.open .mobile-toc-toggle {
    transform: rotate(180deg);
}

.mobile-toc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-toc.open .mobile-toc-list {
    max-height: 400px;
    overflow-y: auto;
}

.mobile-toc {
    margin-bottom: 28px;
}

.mobile-toc-list ul {
    list-style: none;
    padding: 0 0 20px 0;
    margin: 0;
}

.mobile-toc-list li {
    border-top: 1px solid #f1f5f9;
    position: relative;
}

.mobile-toc-list li::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
}

.mobile-toc-list li.toc-h3::before {
    width: 4px;
    height: 4px;
    background: #94a3b8;
}

.mobile-toc-list li:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.mobile-toc-list a {
    display: block;
    padding: 12px 36px 12px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-toc-list a:hover,
.mobile-toc-list a.active {
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
}

.mobile-toc-list .toc-h3 a {
    padding-right: 36px;
    font-size: 13px;
    color: #64748b;
}

/* ========================================
   Compact Rating Widget
   ======================================== */
.article-rating-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 40px 0;
}

.rating-compact-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-compact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-compact-icon i {
    font-size: 24px;
    color: #fff;
}

.rating-compact-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.rating-compact-current {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #a16207;
}

.rating-compact-current .stars i {
    color: #f59e0b;
    font-size: 16px;
}

.rating-compact-current .stars i.ri-star-line {
    color: #d4d4d8;
}

.rating-compact-current .stars i.ri-star-half-fill {
    color: #f59e0b;
}

.rating-compact-current .stars {
    display: inline-flex;
    gap: 2px;
}

.rating-compact-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-compact-right .star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rating-compact-right .star-btn:hover {
    transform: scale(1.2);
}

.rating-compact-right .star-btn i {
    font-size: 32px;
    color: #d4d4d8;
    transition: all 0.2s ease;
}

.rating-compact-right .star-btn i.ri-star-fill {
    color: #f59e0b;
}

.rating-compact-right .star-btn:hover i,
.rating-compact-right .star-btn:hover i.ri-star-line {
    color: #f59e0b;
    transform: scale(1.1);
}

.rating-compact-message {
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: #65a30d;
    font-size: 14px;
    font-weight: 500;
}

.rating-compact-hint {
    color: #a16207;
    font-size: 13px;
}

/* ========================================
   Rating Form (New)
   ======================================== */
.article-rating-form {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #fde047;
    margin: 32px 0;
}

.rating-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(202, 138, 4, 0.2);
}

.rating-form-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rating-form-icon i {
    font-size: 24px;
    color: #fff;
}

.rating-form-title h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
}

.rating-form-title span {
    font-size: 13px;
    color: #a16207;
}

.rating-form-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-form-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.rating-form-stars .stars-label {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.rating-form-stars .star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rating-form-stars .star-btn:hover {
    transform: scale(1.2);
}

.rating-form-stars .star-btn i {
    font-size: 32px;
    color: #d4d4d8;
    transition: all 0.2s ease;
}

.rating-form-stars .star-btn i.ri-star-fill {
    color: #f59e0b;
}

.rating-form-stars .star-btn:hover i,
.rating-form-stars .star-btn:hover i.ri-star-line {
    color: #f59e0b;
}

.rating-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rating-form-fields input,
.rating-form-fields textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #fde047;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #1e293b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rating-form-fields input:focus,
.rating-form-fields textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.rating-form-fields input::placeholder,
.rating-form-fields textarea::placeholder {
    color: #94a3b8;
}

.rating-form-fields textarea {
    resize: vertical;
    min-height: 80px;
}

.rating-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.rating-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.rating-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rating-submit-btn i {
    font-size: 16px;
}

.rating-form-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a16207;
    margin: 0;
}

.rating-form-note i {
    font-size: 14px;
    color: #65a30d;
}

.rating-form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    color: #15803d;
    font-weight: 600;
}

.rating-form-success i {
    font-size: 24px;
    color: #22c55e;
}

@media (max-width: 768px) {
    .article-rating-form {
        padding: 20px 16px;
    }

    .rating-form-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .rating-form-row {
        grid-template-columns: 1fr;
    }

    .rating-form-stars {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .rating-form-stars .stars-label {
        display: none;
    }

    .rating-form-stars .star-btn {
        padding: 2px;
    }

    .rating-form-stars .star-btn i {
        font-size: 28px;
    }

    .rating-submit-btn {
        width: 100%;
    }

    .rating-form-note {
        justify-content: center;
        text-align: center;
    }
}

/* ========================================
   Rating Summary Card
   ======================================== */
.article-rating-section {
    margin: 40px 0;
}

.rating-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rating-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rating-summary-header:hover {
    background: #f8fafc;
}

.rating-summary-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-summary-score .score-value {
    font-size: 32px;
    font-weight: 800;
    color: #f59e0b;
}

.rating-summary-score .score-stars {
    display: flex;
    gap: 2px;
}

.rating-summary-score .score-stars i {
    font-size: 18px;
    color: #f59e0b;
}

.rating-summary-score .score-stars i.ri-star-line {
    color: #d4d4d8;
}

.rating-summary-score .score-count {
    color: #64748b;
    font-size: 14px;
    padding-right: 12px;
    border-right: 1px solid #e5e7eb;
}

[dir="rtl"] .rating-summary-score .score-count {
    padding-right: 0;
    padding-left: 12px;
    border-right: none;
    border-left: 1px solid #e5e7eb;
}

.rating-summary-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    font-size: 14px;
    font-weight: 500;
}

.rating-summary-action i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.rating-details.open + .rating-summary-header .rating-summary-action i,
.rating-summary-header:has(+ .rating-details.open) .rating-summary-action i {
    transform: rotate(180deg);
}

/* Rating Details */
.rating-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.rating-details.open {
    max-height: 1000px;
    padding: 24px;
    overflow-y: auto;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-label {
    min-width: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.breakdown-label i {
    color: #f59e0b;
    font-size: 12px;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-pct {
    min-width: 40px;
    text-align: left;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

[dir="rtl"] .breakdown-pct {
    text-align: right;
}

.rating-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
}

.rating-note i {
    font-size: 16px;
}

/* Reviews Section */
.reviews-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.reviews-title i {
    color: #6366f1;
    font-size: 20px;
}

.reviews-showing {
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
}

.review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.review-card:hover {
    border-color: #c7d2fe;
}

.review-card:last-of-type {
    margin-bottom: 0;
}

.review-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

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

.review-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.review-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.review-verified {
    color: #3b82f6;
    font-size: 14px;
}

.review-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

.review-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-stars-row i {
    font-size: 12px;
    color: #f59e0b;
}

.review-stars-row i.ri-star-line {
    color: #e5e7eb;
}

.review-date {
    font-size: 11px;
    color: #94a3b8;
}

.review-content {
    margin: 12px 0 0 56px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

[dir="rtl"] .review-content {
    margin: 12px 56px 0 0;
}

/* No Reviews Yet */
.no-reviews-yet {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
}

.no-reviews-yet i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
}

.no-reviews-yet p {
    margin: 0;
    font-size: 14px;
}

/* Spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ri-spin {
    animation: spin 1s linear infinite;
}

/* Load More Reviews Button */
.load-more-reviews {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn i {
    font-size: 18px;
}

.load-more-btn .remaining-count {
    opacity: 0.8;
    font-weight: 400;
}

/* Reviews Container */
.reviews-container {
    max-height: none;
}

/* Hero Rating Clickable Style */
.article-hero-rating {
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.article-hero-rating:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.article-hero-rating i.ri-arrow-down-s-line {
    font-size: 16px;
    margin-right: 4px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

[dir="rtl"] .article-hero-rating i.ri-arrow-down-s-line {
    margin-right: 0;
    margin-left: 4px;
}

.article-hero-rating:hover i.ri-arrow-down-s-line {
    transform: translateY(3px);
    opacity: 1;
}

/* Mobile Reviews */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-card {
        padding: 14px;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .review-content {
        margin: 10px 0 0 0;
    }

    [dir="rtl"] .review-content {
        margin: 10px 0 0 0;
    }

    .review-name {
        font-size: 13px;
    }
}

/* Mobile Rating Summary */
@media (max-width: 768px) {
    .rating-summary-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .rating-summary-score {
        flex-direction: column;
        gap: 8px;
    }

    .rating-summary-score .score-count {
        border: none;
        padding: 0;
    }

    .rating-summary-score .score-value {
        font-size: 28px;
    }
}

/* ========================================
   In-Content CTA Box
   ======================================== */
.content-cta-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.content-cta-box h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.content-cta-box h4 i {
    font-size: 28px;
}

.content-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0 0 20px 0;
    position: relative;
}

.content-cta-box .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #6366f1;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.content-cta-box .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CTA Variations */
.content-cta-box.cta-website {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.content-cta-box.cta-website .cta-btn {
    color: #0ea5e9;
}

.content-cta-box.cta-store {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.content-cta-box.cta-store .cta-btn {
    color: #f59e0b;
}

.content-cta-box.cta-app {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.content-cta-box.cta-app .cta-btn {
    color: #10b981;
}

.content-cta-box.cta-marketing {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.content-cta-box.cta-marketing .cta-btn {
    color: #ec4899;
}

.content-cta-box.cta-consultation {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.content-cta-box.cta-consultation .cta-btn {
    color: #8b5cf6;
}

.content-cta-box.cta-erp {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.content-cta-box.cta-erp .cta-btn {
    color: #ef4444;
}

/* Floating CTA for long articles */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.floating-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

.floating-cta-btn i {
    font-size: 18px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: rgba(99, 102, 241, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0;
    transition: width 0.1s ease;
}

/* Article Footer */
.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
}

.article-tags-section {
    margin-bottom: 32px;
}

.article-tags-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tags-section h4 i {
    color: #6366f1;
}

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

.article-tags-list a {
    padding: 10px 18px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.article-tags-list a:hover {
    background: #6366f1;
    color: #fff;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-share h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: #64748b; }

/* Related Articles */
.related-articles-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.related-articles-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 40px;
}

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

/* Article Sidebar Sticky */
.article-sidebar {
    position: sticky;
    top: 100px;
}

/* Table of Contents */
.toc-widget {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.toc-widget .widget-title {
    margin-bottom: 16px;
}

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

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    display: block;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    background: #f1f5f9;
    color: #6366f1;
    border-right-color: #6366f1;
}

.toc-list .toc-h3 {
    padding-right: 28px;
    font-size: 13px;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}

.cta-widget-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.cta-widget h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-widget p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-widget .nasey-btn {
    background: #fff;
    color: #6366f1;
    width: 100%;
}

.cta-widget .nasey-btn:hover {
    background: #f8fafc;
}

/* ========================================
   Category / Tag Archive
   ======================================== */

.archive-description {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.archive-description p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Breadcrumbs
   ======================================== */

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #fff;
}

.blog-breadcrumb i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.blog-breadcrumb span {
    color: #fff;
}

/* ========================================
   No Results
   ======================================== */

.no-results {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: #9ca3af;
}

.no-results h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 12px;
}

.no-results p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    .nasey-page,
    .nasey-single-article,
    .nasey-single-product-article,
    .article-content-section {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .nasey-blog-hero,
    .article-hero {
        padding: 80px 0 40px;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .article-hero-title {
        font-size: 28px;
    }

    .article-hero-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .article-hero-rating {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        min-width: 100%;
    }

    .blog-filter-select {
        width: 100%;
    }

    .blog-view-toggle {
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid.list-view .article-card {
        grid-template-columns: 1fr;
    }

    .articles-grid.list-view .article-card-image {
        height: 200px;
        min-height: 200px;
    }

    /* Fix card images on mobile */
    .article-card-image {
        height: 200px;
        min-height: 200px;
        max-height: 220px;
    }

    .article-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .blog-sidebar,
    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-main {
        padding: 20px;
        border-radius: 16px;
        overflow: hidden;
    }

    .article-featured-image {
        margin: -20px -20px 20px -20px;
        border-radius: 16px 16px 0 0;
        max-height: 220px;
        overflow: hidden;
        position: relative;
    }

    .article-featured-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }

    /* Product article mobile fixes */
    .nasey-single-product-article .article-main {
        overflow: hidden;
    }

    .nasey-single-product-article .article-featured-image {
        margin: -24px -24px 20px -24px;
        max-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .nasey-single-product-article .article-featured-image img {
        height: 100%;
        max-height: 200px;
    }

    /* Rating widget mobile */
    .article-rating-widget {
        padding: 24px 16px;
        margin: 32px 0;
    }

    .rating-widget-header h3 {
        font-size: 18px;
    }

    .current-rating-value {
        font-size: 28px;
    }

    .star-btn i {
        font-size: 28px;
    }

    .rating-widget-current {
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 18px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    /* Mobile TOC - Show at top */
    .mobile-toc {
        display: block;
        margin-bottom: 24px;
    }

    /* When mobile TOC is followed by featured image, add proper spacing */
    .mobile-toc + .article-featured-image {
        margin-top: 8px;
    }

    /* Mobile TOC list padding */
    .mobile-toc-list {
        padding-bottom: 8px;
    }

    /* Hide sidebar TOC on mobile */
    .article-sidebar .toc-widget {
        display: none;
    }

    /* Compact Rating Mobile */
    .article-rating-compact {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .rating-compact-left {
        flex-direction: column;
        text-align: center;
    }

    /* Content CTA Mobile */
    .content-cta-box {
        padding: 24px 20px;
        margin: 32px 0;
    }

    .content-cta-box h4 {
        font-size: 18px;
    }

    .content-cta-box p {
        font-size: 14px;
    }

    /* Floating CTA Mobile */
    .floating-cta {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .floating-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Article body mobile enhancements */
    .article-body h2 {
        font-size: 20px;
        margin: 32px 0 16px;
        padding-right: 16px;
    }

    .article-body h2::before {
        display: none;
    }

    .article-body h3 {
        font-size: 17px;
        margin: 24px 0 12px;
    }

    .article-body h3::before {
        width: 6px;
        height: 6px;
    }

    .article-body ul li {
        padding-right: 24px;
        margin-bottom: 12px;
        line-height: 1.7;
    }

    .article-body ul li::before {
        top: 10px;
        width: 6px;
        height: 6px;
    }

    .article-body ol li {
        padding-right: 38px;
        margin-bottom: 14px;
        line-height: 1.7;
    }

    .article-body ol li::before {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: 0;
    }

    .article-body blockquote {
        padding: 20px !important;
        margin: 24px 0;
        border-radius: 12px;
        background: #f8fafc !important;
        border-left: 3px solid #6366f1 !important;
        border-right: none !important;
    }

    .article-body blockquote::before,
    .article-body blockquote::after {
        display: none !important;
        content: none !important;
    }

    [dir="rtl"] .article-body blockquote {
        border-left: 3px solid #6366f1 !important;
        border-right: none !important;
        border-radius: 12px 0 0 12px;
    }

    .article-body blockquote::before {
        font-size: 50px;
        top: -5px;
    }

    .article-body pre {
        padding: 36px 16px 16px 16px;
        font-size: 12px;
        margin: 24px 0;
        border-radius: 12px;
        overflow-x: auto;
    }

    .article-body table {
        font-size: 14px;
    }

    .article-body th,
    .article-body td {
        padding: 10px 12px;
    }

    .article-body img {
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    /* Reading progress mobile */
    .reading-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .blog-hero-icon {
        width: 64px;
        height: 64px;
    }

    .blog-hero-icon i {
        font-size: 28px;
    }

    .blog-hero-title {
        font-size: 24px;
    }

    .blog-hero-subtitle {
        font-size: 15px;
    }

    .article-hero-title {
        font-size: 22px;
    }

    .article-hero-excerpt {
        font-size: 15px;
    }

    .article-card-content {
        padding: 20px;
    }

    .article-card-title {
        font-size: 16px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .widget-title {
        font-size: 16px;
    }
}

/* ========================================
   RTL Adjustments
   ======================================== */

[dir="rtl"] .blog-search i {
    right: auto;
    left: 18px;
}

[dir="rtl"] .blog-search input {
    padding: 14px 50px 14px 20px;
}

[dir="rtl"] .article-read-more:hover {
    gap: 12px;
}

[dir="rtl"] .categories-list a:hover {
    transform: translateX(4px);
}

[dir="rtl"] .article-body h2 {
    padding-right: 0;
    padding-left: 16px;
    border-right: none;
    border-left: 4px solid #6366f1;
}

[dir="rtl"] .article-body blockquote {
    border-right: none;
    border-left: 4px solid #6366f1;
    border-radius: 16px 0 0 16px;
    padding: 32px 32px 32px 40px;
}

[dir="rtl"] .article-body blockquote::before {
    right: auto;
    left: 20px;
}

[dir="rtl"] .article-body blockquote::after {
    right: auto;
    left: 0;
    border-radius: 20px 0 0 20px;
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
    padding-right: 0;
    padding-left: 24px;
}

[dir="rtl"] .toc-list a {
    border-right: none;
    border-left: 3px solid transparent;
}

[dir="rtl"] .toc-list a:hover,
[dir="rtl"] .toc-list a.active {
    border-right-color: transparent;
    border-left-color: #6366f1;
}

[dir="rtl"] .toc-list .toc-h3 {
    padding-right: 0;
    padding-left: 28px;
}

/* ========================================
   Schema & SEO Elements (Hidden)
   ======================================== */

.schema-data {
    display: none !important;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .nasey-header,
    .nasey-footer,
    .blog-sidebar,
    .article-sidebar,
    .article-share,
    .related-articles-section,
    .blog-filters-section {
        display: none !important;
    }

    .article-main {
        box-shadow: none;
        padding: 0;
    }

    .article-body {
        font-size: 12pt;
    }
}
