/* Mobile-First Blog Detail Styles */

/* Hide breadcrumb on mobile for blog detail pages */
@media (max-width: 767px) {
    .breadcrumb-area {
        display: none !important;
    }

    /* Specifically hide blog detail breadcrumb */
    .blog-detail-breadcrumb {
        display: none !important;
    }
}

/* Add background color to header on mobile */
@media (max-width: 767px) {
    .header-area,
    .main-header {
        background-color: #ffffff !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }

    /* Ensure header is visible and properly styled */
    .nav-bg-w {
        background-color: #ffffff !important;
    }

    /* Adjust header text colors for better visibility */
    .menu-white .nav-list > li > a {
        color: #333333 !important;
    }

    .menu-white .nav-list > li > a:hover {
        color: #667eea !important;
    }

    /* Fix floating logo issues */
    .dsk-logo {
        position: relative !important;
        z-index: 10000 !important;
    }

    .dsk-logo img {
        position: relative !important;
        z-index: 10000 !important;
    }

    /* Ensure proper spacing for content below fixed header */
    .blog-detail-container {
        padding-top: 0 !important;
    }
}

/* Container */
.blog-detail-container {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding-top: 60px; /* Reduced from 80px */
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Desktop header positioning */
@media (min-width: 768px) {
    /* Ensure main header is properly positioned */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }

    /* Fix any floating logo issues on desktop */
    .dsk-logo {
        position: relative !important;
        z-index: 10000 !important;
    }

    .dsk-logo img {
        position: relative !important;
        z-index: 10000 !important;
    }
}



/* Main Content */
.blog-detail-main {
    padding: 0.5rem 0; /* Reduced from 1rem */
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Use container-fluid for full width */
.blog-detail-main .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.blog-detail-main .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Blog Post Mobile */
.blog-post-mobile {
    background: #fff;
    border-radius: 8px; /* Reduced from 12px */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); /* Reduced shadow */
    overflow: hidden;
    margin-bottom: 1rem; /* Reduced from 2rem */
    width: 100%;
    max-width: 100%;
}

/* Back Button Section */
.blog-back-section {
    padding: 0.75rem 1.5rem; /* Reduced from 1rem 2rem */
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
}

.blog-back-btn:hover {
    color: #495057;
    background: #e9ecef;
    transform: translateX(-2px);
}

.blog-back-btn i {
    font-size: 0.8rem;
}

/* Mobile Share Button */
.mobile-share-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-share-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Ensure mobile share button is clickable on mobile */
@media (max-width: 767px) {
    .mobile-share-btn {
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .mobile-share-btn:active {
        background-color: #e9ecef;
        transform: scale(0.95);
    }
}

/* Blog Post Header */
.blog-post-header {
    padding: 1.5rem; /* Reduced from 2rem */
    border-bottom: 1px solid #e9ecef;
}

.blog-post-meta {
    margin-bottom: 1.5rem;
}

.blog-category-badge {
    display: inline-block;
    background: transparent;
    color: #667eea;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
    border: none;
    border-bottom: 1px solid #667eea;
}

.blog-category-badge:hover {
    color: #5a67d8;
    border-bottom-color: #5a67d8;
}

.blog-post-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.blog-post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Blog Post Image */
.blog-post-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

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

/* Blog Post Content */
.blog-post-content {
    padding: 1.5rem; /* Reduced from 2rem */
}

.blog-article {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
}

.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article h4,
.blog-article h5,
.blog-article h6 {
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.blog-article h1 { font-size: 2rem; }
.blog-article h2 { font-size: 1.75rem; }
.blog-article h3 { font-size: 1.5rem; }
.blog-article h4 { font-size: 1.25rem; }
.blog-article h5 { font-size: 1.1rem; }
.blog-article h6 { font-size: 1rem; }

.blog-article p {
    margin-bottom: 1rem;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-article li {
    margin-bottom: 0.5rem;
}

.blog-article blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.blog-article code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-article pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

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

/* Blog Post Footer */
.blog-post-footer {
    padding: 1rem 1.5rem; /* Reduced from 1.5rem 2rem */
    border-top: 1px solid #e9ecef;
}

.blog-source {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.blog-source h4 {
    margin-bottom: 0.5rem;
    color: #212529;
}

.blog-source-link {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-source-link:hover {
    text-decoration: underline;
}

/* Tags and Categories */
.blog-tags-section {
    margin-bottom: 2rem;
}

.blog-tags,
.blog-categories {
    margin-bottom: 1.5rem;
}

.blog-tags h4,
.blog-categories h4 {
    margin-bottom: 1rem;
    color: #212529;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: transparent;
    color: #666;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 400;
    border: none;
    border-bottom: 1px solid #ddd;
    transition: color 0.2s ease;
    margin-right: 1rem;
}

.blog-tag:hover {
    color: #333;
    border-bottom-color: #333;
}

.blog-category-pill {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category-pill:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); */
    color: #ffffff;
    text-decoration: none;
}

/* Source and Category Section */
.blog-source-category-section {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-source-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.source-label {
    color: #6c757d;
    font-weight: 500;
}

.source-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Compact Share Section */
.blog-share-section-compact {
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border: none;
}

.share-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons-compact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.facebook-compact {
    background: #1877f2;
}

.twitter-compact {
    background: #1da1f2;
}

.whatsapp-compact {
    background: #25d366;
}

.linkedin-compact {
    background: #0077b5;
}

.copy-compact {
    background: #6c757d;
}

.copy-compact.copied {
    background: #28a745;
}



/* Related Articles Section */
.related-articles-section {
    background: #fff;
    border-radius: 8px; /* Reduced from 12px */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); /* Reduced shadow */
    overflow: hidden;
    margin-top: 1rem; /* Reduced from 2rem */
    margin-bottom: 1rem; /* Reduced from 2rem */
}

.related-articles-header {
    padding: 1rem 1.5rem; /* Reduced from 1.5rem 2rem */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.related-articles-header h3 {
    font-size: 1.5rem; /* Reduced from 1.75rem */
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem; /* Reduced from 0.5rem */
}

.related-subtitle {
    color: #6c757d;
    font-size: 0.9rem; /* Reduced from 1rem */
    margin: 0;
}

.related-articles-container {
    padding: 1rem 1.5rem; /* Reduced from 1.5rem 2rem */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem; /* Reduced from 1.5rem */
}

.related-article-item {
    display: flex;
    gap: 0.75rem; /* Reduced from 1rem */
    padding: 0.75rem; /* Reduced from 1rem */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px; /* Reduced from 12px */
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.related-article-thumbnail {
    flex: 0 0 80px; /* Reduced from 100px */
    height: 60px; /* Reduced from 80px */
    border-radius: 6px; /* Reduced from 8px */
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Reduced shadow */
}

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

.related-article-item:hover .related-article-thumbnail img {
    transform: scale(1.05);
}

.related-article-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-article-title {
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    font-size: 0.9rem; /* Reduced from 1rem */
    line-height: 1.4;
    font-weight: 600;
}

.related-article-title a {
    color: #212529;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.related-article-title a:hover {
    color: #667eea;
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced from 1rem */
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #6c757d;
    flex-wrap: wrap;
}

.related-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-article-meta i {
    font-size: 0.8rem;
}

.related-article-category {
    margin-top: 0.5rem;
}

.related-category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #ffffff;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.related-category-tag:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); */
    color: #ffffff;
    text-decoration: none;
}

/* Related Articles */
.related-articles {
    margin-top: 2rem;
}

.related-articles h4 {
    margin-bottom: 1.5rem;
    color: #212529;
}

.related-articles-grid {
    display: grid;
    gap: 1.5rem;
}

.related-article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-4px);
}

.related-article-image {
    height: 200px;
    overflow: hidden;
}

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

.related-article-content {
    padding: 1.5rem;
}

.related-article-content h5 {
    margin-bottom: 0.75rem;
}

.related-article-content h5 a {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.related-article-content h5 a:hover {
    color: #667eea;
}

.related-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Sidebar Mobile */
.blog-sidebar-mobile {
    margin-top: 1rem; /* Reduced from 2rem */
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 10;
}

/* Ensure sidebar is visible on desktop */
@media (min-width: 992px) {
    .blog-sidebar-mobile {
        margin-top: 0;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px; /* Reduced from 12px */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); /* Reduced shadow */
    padding: 1rem; /* Reduced from 1.5rem */
    margin-bottom: 1rem; /* Reduced from 2rem */
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced from 0.75rem */
    font-size: 1.1rem; /* Reduced from 1.3rem */
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem; /* Reduced from 1.75rem */
    padding-bottom: 0.75rem; /* Reduced from 1rem */
    border-bottom: 2px solid; /* Reduced from 3px */
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.widget-title i {
    font-size: 1.1rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Recent Articles - Redesigned */
.recent-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced from 1.25rem */
}

.recent-article-item {
    display: flex;
    gap: 0.75rem; /* Reduced from 1rem */
    padding: 0.75rem; /* Reduced from 1rem */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px; /* Reduced from 12px */
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recent-article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recent-article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.recent-article-item:hover::before {
    transform: scaleY(1);
}

.recent-article-item:last-child {
    margin-bottom: 0;
}

.recent-article-image {
    flex: 0 0 70px; /* Reduced from 90px */
    height: 55px; /* Reduced from 70px */
    border-radius: 6px; /* Reduced from 10px */
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Reduced shadow */
}

.recent-article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-article-item:hover .recent-article-image::after {
    opacity: 1;
}

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

.recent-article-item:hover .recent-article-image img {
    transform: scale(1.05);
}

.recent-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recent-article-content h4 {
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    font-size: 0.85rem; /* Reduced from 0.95rem */
    line-height: 1.4;
    font-weight: 600;
}

.recent-article-content h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-article-content h4 a:hover {
    color: #667eea;
}

.recent-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced from 1rem */
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #6c757d;
    flex-wrap: wrap;
}

.recent-article-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.recent-article-date::before {
    content: '📅';
    font-size: 0.7rem;
}

.recent-article-category {
    display: inline-block;
    background: transparent;
    color: #667eea;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Categories - Pill Design with Dynamic Colors */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--category-color, #667eea);
    border: 2px solid var(--category-color, #667eea);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    white-space: nowrap;
}

.category-pill::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;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #ffffff;
    text-decoration: none;
}

.category-pill:hover::before {
    left: 100%;
}

.category-pill.active {
    background: var(--category-color, #667eea);
    border-color: var(--category-color, #667eea);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-weight: 600;
}

.category-name {
    font-weight: 500;
    margin-right: 0.5rem;
    flex: 1;
    text-align: left;
}

.category-count {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    font-weight: bold;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
}

/* Tags - Redesigned */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    background: transparent;
    color: #666;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 400;
    border: none;
    border-bottom: 1px solid #ddd;
    transition: color 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.tag-item:hover {
    color: #333;
    border-bottom-color: #333;
}

.tag-item span {
    transition: color 0.2s ease;
}

/* Enhanced Social Media */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #ffffff !important;
}

.social-link.facebook { background: #1877f2; }
.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-link.linkedin { background: #0077b5; }
.social-link.whatsapp { background: #25d366; }
.social-link.email { background: #ea4335; }



/* Mobile Share Modal */
.mobile-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.mobile-share-modal.active {
    display: block;
}

.mobile-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.mobile-share-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-share-modal.active .mobile-share-content {
    transform: translateY(0);
}

.mobile-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-share-header h3 {
    margin: 0;
    color: #212529;
}

.mobile-share-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
}

.mobile-share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mobile-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.mobile-share-option:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

.mobile-share-option.facebook { background: #1877f2; }
.mobile-share-option.twitter { background: #1da1f2; }
.mobile-share-option.whatsapp { background: #25d366; }
.mobile-share-option.linkedin { background: #0077b5; }
.mobile-share-option.copy-link {
    background: #6c757d;
    border: none;
    cursor: pointer;
}

.mobile-share-option.copied {
    background: #28a745;
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-post-title {
        font-size: 2.5rem;
    }

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

    .mobile-share-options {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Enhanced sidebar layout for tablet */
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-article-item {
        padding: 1.25rem;
    }

    .recent-article-image {
        flex: 0 0 100px;
        height: 80px;
    }

    .widget-title {
        font-size: 1.4rem;
    }

    /* Hide back button on tablet and desktop */
    .blog-back-section {
        display: none;
    }

    /* Hide mobile share button on tablet and desktop */
    .mobile-share-btn {
        display: none;
    }

    /* Ensure sidebar is properly positioned on tablet */
    .blog-sidebar-mobile {
        margin-top: 0;
        position: sticky;
        top: 80px;
        height: fit-content;
    }

    /* Hide mobile share modal on tablet and desktop */
    .mobile-share-modal {
        display: none !important;
    }

    /* Ensure full width on tablet */
    .blog-detail-container,
    .blog-detail-main,
    .blog-post-mobile,
    .blog-sidebar-mobile {
        width: 100%;
        max-width: 100%;
    }

    /* Responsive spacing for tablet */
    .blog-detail-main .container-fluid {
        padding-left: 2rem !important; /* Reduced from 4rem */
        padding-right: 2rem !important; /* Reduced from 4rem */
    }
}

@media (min-width: 992px) {
    .blog-detail-main {
        padding: 1.5rem 0; /* Reduced from 3rem */
    }

    .blog-post-title {
        font-size: 2.5rem; /* Reduced from 3rem */
    }

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

    .mobile-share-options {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Enhanced sidebar layout for desktop */
    .categories-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .recent-article-item {
        padding: 1rem; /* Reduced from 1.5rem */
    }

    .recent-article-image {
        flex: 0 0 100px; /* Reduced from 120px */
        height: 75px; /* Reduced from 90px */
    }

    .widget-title {
        font-size: 1.3rem; /* Reduced from 1.5rem */
    }

    .sidebar-widget {
        padding: 1.5rem; /* Reduced from 2rem */
    }

    /* Ensure full width on desktop */
    .blog-detail-container,
    .blog-detail-main,
    .blog-post-mobile,
    .blog-sidebar-mobile {
        width: 100%;
        max-width: 100%;
    }

    /* Responsive spacing for desktop */
    .blog-detail-main .container-fluid {
        padding-left: 3rem !important; /* Reduced from 5rem */
        padding-right: 3rem !important; /* Reduced from 5rem */
    }
}

@media (min-width: 1200px) {
    .blog-sidebar-mobile {
        margin-top: 0;
    }
}

/* Blog Not Found */
.blog-not-found {
    padding: 4rem 0;
    text-align: center;
}

.error-page h1 {
    font-size: 6rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    color: #212529;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Simple Single-Row Audio Player - No Background Blocks */
.blog-audio-player-simple {
    margin: 20px 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.audio-player-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.audio-controls-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Play Button */
.audio-play-btn-simple {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.audio-play-btn-simple:hover {
    transform: scale(1.05);
}

.audio-play-btn-simple.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.audio-play-btn-simple i {
    font-size: 16px;
    margin-left: 1px;
    color: #ffffff;
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
}

.fallback-icon {
    font-size: 16px;
    color: #ffffff;
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
}

/* Audio Info */
.audio-info-simple {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 2px to give more space */
    min-width: 140px; /* Increased from 120px to accommodate speed button */
    flex-shrink: 0;
}

.audio-title-simple {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.audio-time-speed-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.audio-time-simple {
    font-size: 12px;
    color: #666;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    flex-shrink: 0;
}

/* Seekbar */
.audio-seekbar-simple {
    position: relative;
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    min-width: 100px;
}

.audio-seekbar-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.audio-progress-simple {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.1s ease;
    z-index: 1;
}

/* Speed Control */
.audio-speed-btn {
    background: none;
    border: none;
    color: #666;
    padding: 4px 8px; /* Reduced padding for inline layout */
    border-radius: 4px; /* Reduced from 6px */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px; /* Reduced from 6px */
    font-size: 11px; /* Reduced from 12px */
    flex-shrink: 0;
    min-width: auto; /* Allow natural width */
}

.audio-speed-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.audio-speed-btn i {
    font-size: 12px; /* Reduced from 14px */
}

/* Status */
.audio-status-simple {
    font-size: 11px;
    color: #888;
    min-width: 60px;
    text-align: right;
    font-style: italic;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .audio-player-row {
        gap: 12px;
        flex-wrap: wrap;
    }

    .audio-controls-group {
        gap: 8px;
    }

    .audio-play-btn-simple {
        width: 36px;
        height: 36px;
    }

    .audio-play-btn-simple i {
        font-size: 14px;
        color: #ffffff;
        display: inline-block;
        width: 14px;
        height: 14px;
        text-align: center;
        line-height: 14px;
    }

    .fallback-icon {
        font-size: 14px;
        color: #ffffff;
        display: inline-block;
        width: 14px;
        height: 14px;
        text-align: center;
        line-height: 14px;
        font-weight: bold;
    }

    .audio-info-simple {
        min-width: 120px; /* Reduced from 100px but still accommodate new layout */
    }

    .audio-title-simple {
        font-size: 13px;
    }

    .audio-time-speed-row {
        gap: 6px; /* Reduced gap for mobile */
    }

    .audio-time-simple {
        font-size: 11px;
    }

    .audio-speed-btn {
        padding: 3px 6px; /* Reduced padding for mobile */
        font-size: 10px; /* Reduced from 11px */
    }

    .audio-speed-btn i {
        font-size: 10px; /* Reduced from 12px */
    }

    .audio-status-simple {
        font-size: 10px;
        min-width: 50px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .audio-title-simple {
        color: #e0e0e0;
    }

    .audio-time-simple {
        color: #aaa;
    }

    .audio-speed-btn {
        color: #aaa;
    }

    .audio-speed-btn:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #667eea;
    }

    .audio-seekbar-simple {
        background: #444;
    }
}

/* Audio Player States */
.audio-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.audio-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Loading State */
.audio-btn.loading {
    position: relative;
    color: transparent;
}

.audio-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Voice Selection Modal */
.voice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voice-modal.show {
    opacity: 1;
    visibility: visible;
}

.voice-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.voice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.voice-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.voice-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.voice-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.voice-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.voice-option {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.voice-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.voice-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.voice-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.voice-lang {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Accessibility */
.audio-btn:focus,
.audio-setting-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .audio-btn {
        border: 2px solid currentColor;
    }

    .audio-setting-btn {
        border-width: 2px;
    }
}

/* Speech Highlight Animation */
@keyframes speech-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.speech-highlight {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.3s ease;
}

.speech-highlight-overlay {
    pointer-events: none;
}

.audio-unsupported {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.audio-unsupported i {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.audio-unsupported p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .audio-btn,
    .audio-setting-btn,
    .progress-fill {
        transition: none;
    }

    .audio-btn:hover,
    .audio-setting-btn:hover {
        transform: none;
    }

    .speech-highlight-overlay {
        animation: none !important;
    }
}

/* Mobile Responsive for Compact Share and Related Articles */
@media (max-width: 768px) {
    .blog-share-section-compact {
        margin-bottom: 1rem;
    }

    .share-heading {
        font-size: 0.8rem;
    }

    .share-buttons-compact {
        gap: 0.4rem;
    }

    .share-btn-compact {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .related-articles-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .related-articles-header h3 {
        font-size: 1.5rem;
    }

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

    .related-article-thumbnail {
        height: 180px;
    }

    .related-article-details {
        padding: 1rem;
    }

    .related-article-title a {
        font-size: 1rem;
    }

    .related-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .share-buttons-compact {
        gap: 0.3rem;
    }

    .share-btn-compact {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .related-articles-section {
        padding: 1rem;
    }
}

/* Search Widget */
.search-widget .search-form {
    margin-top: 1rem;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #495057;
    outline: none;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateX(2px);
}

/* Newsletter Widget */
.newsletter-widget .newsletter-content {
    margin-top: 1rem;
}

.newsletter-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #495057;
    outline: none;
}

.newsletter-input::placeholder {
    color: #6c757d;
}

.newsletter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateX(2px);
}

/* No content states */
.no-articles,
.no-categories {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
    font-style: italic;
}

.no-articles p,
.no-categories p {
    margin: 0;
    font-size: 0.9rem;
}

/* Enhanced Recent Article Meta */
.recent-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.recent-article-date,
.recent-article-category {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.recent-article-date i,
.recent-article-category i {
    font-size: 0.7rem;
    color: #667eea;
}

.recent-article-date::before {
    content: none;
}

/* Enhanced Category Items */
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.category-item:hover {
    color: #333;
    background: #f8f9fa;
    transform: translateX(5px);
}

.category-item.active {
    color: #667eea;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid #667eea;
}

.category-name {
    flex: 1;
}

.category-count {
    color: #999;
    font-size: 0.8rem;
    font-weight: 400;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

.category-item:hover .category-count {
    color: #666;
    background: #dee2e6;
}

.category-item.active .category-count {
    color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

/* Enhanced Tags */
.tag-item {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin: 0.25rem;
}

.tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tag-item span {
    color: inherit;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

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

.social-link.facebook { background: #1877f2; }
.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-link.linkedin { background: #0077b5; }
.social-link.whatsapp { background: #25d366; }
.social-link.email { background: #ea4335; }

/* Responsive styles for sidebar widgets */
@media (max-width: 768px) {
    .search-input-group,
    .newsletter-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-input,
    .newsletter-input {
        width: 100%;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .search-btn,
    .newsletter-btn {
        width: 100%;
        border-radius: 8px;
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .category-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }

    .category-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .tag-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .recent-article-item {
        padding: 0.75rem;
    }

    .recent-article-image {
        flex: 0 0 70px;
        height: 60px;
    }

    .recent-article-content h4 {
        font-size: 0.85rem;
    }

    .recent-article-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .search-input-group,
    .newsletter-input-group {
        flex-direction: row;
    }

    .search-input,
    .newsletter-input {
        border: none;
        border-radius: 0;
    }

    .search-btn,
    .newsletter-btn {
        width: auto;
        border-radius: 0;
    }

    .social-links {
        justify-content: flex-start;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .category-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .category-count {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .tag-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .recent-article-item {
        padding: 1rem;
    }

    .recent-article-image {
        flex: 0 0 90px;
        height: 70px;
    }

    .recent-article-content h4 {
        font-size: 0.95rem;
    }

    .recent-article-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .search-input-group,
    .newsletter-input-group {
        flex-direction: row;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .category-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .category-count {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .tag-item {
        font-size: 0.9rem;
        padding: 0.6rem 0.875rem;
    }

    .recent-article-item {
        padding: 1.25rem;
    }

    .recent-article-image {
        flex: 0 0 100px;
        height: 80px;
    }

    .recent-article-content h4 {
        font-size: 1rem;
    }

    .recent-article-meta {
        font-size: 0.85rem;
        gap: 1.25rem;
    }
}

/* Enhanced hover effects for desktop */
@media (min-width: 768px) {
    .search-input-group:hover,
    .newsletter-input-group:hover {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    }

    .category-item:hover {
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .tag-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }

    .social-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }
}

/* Additional responsive adjustments for audio player */
@media (max-width: 480px) {
    .audio-info-simple {
        min-width: 110px;
    }

    .audio-time-speed-row {
        gap: 4px;
        flex-direction: column;
        align-items: flex-start;
    }

    .audio-speed-btn {
        padding: 2px 4px;
        font-size: 9px;
    }

    .audio-speed-btn i {
        font-size: 9px;
    }

    .audio-time-simple {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .audio-time-speed-row {
        gap: 10px;
    }

    .audio-speed-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .audio-speed-btn i {
        font-size: 13px;
    }
}

/* Mobile optimization for category pills */
@media (max-width: 768px) {
    .category-pill {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
        border-radius: 20px;
        max-width: calc(100% - 1rem);
        flex: 0 0 auto;
    }

    .category-count {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
        font-weight: bold;
    }

    .category-name {
        margin-right: 0.375rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .categories-list {
        gap: 0.375rem;
    }
}

@media (min-width: 768px) {
    .category-pill {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
        max-width: calc(100% - 1.5rem);
    }

    .category-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    .categories-list {
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .category-pill {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
        max-width: calc(100% - 2rem);
        flex: 0 0 auto;
    }

    .category-count {
        font-size: 0.8rem;
        padding: 0.15rem 0.4rem;
        font-weight: bold;
    }

    .categories-list {
        gap: 0.625rem;
    }
}

/* Trending Articles Section - Redesigned */
.trending-articles-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.trending-articles-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.trending-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.trending-icon-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trending-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.trending-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: fireShimmer 3s ease-in-out infinite;
}

.trending-icon i {
    color: #ffffff;
    font-size: 1.2rem;
    animation: flame 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.trending-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.trending-icon:hover i {
    animation: flame 1s ease-in-out infinite alternate;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@keyframes flame {
    0% {
        transform: scale(1) rotate(-5deg);
        color: #ffffff;
    }
    50% {
        transform: scale(1.15) rotate(0deg);
        color: #fff8e1;
    }
    100% {
        transform: scale(1.1) rotate(5deg);
        color: #ffffff;
    }
}

@keyframes fireShimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.trending-title-group h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.trending-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.trending-stats {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.trending-count {
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
}

.trending-articles-grid {
    display: grid;
    gap: 1rem;
}

.trending-article-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trending-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.trending-rank {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.rank-number {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
}

.trending-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

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

.trending-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.trending-article-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.trending-article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-article-title a:hover {
    color: #667eea;
}

.trending-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.trending-meta-left {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.trending-meta-left span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trending-meta-left i {
    font-size: 0.75rem;
}

.trending-article-category {
    flex-shrink: 0;
}

.trending-category-pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Tags Section Styling */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    text-transform: capitalize;
}

.tag-pill:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.tag-pill.active {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Trending Section */
@media (max-width: 768px) {
    .trending-articles-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .trending-header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .trending-icon-title {
        gap: 0.75rem;
    }

    .trending-icon {
        width: 40px;
        height: 40px;
    }

    .trending-icon i {
        font-size: 1.2rem;
    }

    .trending-title-group h3 {
        font-size: 1.3rem;
    }

    .trending-article-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .trending-article-image {
        width: 70px;
        height: 50px;
    }

    .trending-article-title {
        font-size: 0.9rem;
    }

    .trending-article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .trending-meta-left {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .trending-article-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trending-article-image {
        width: 100%;
        height: 120px;
    }

    .trending-article-content {
        gap: 0.5rem;
    }

    .trending-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
