/* ============================================
   BLOG LIST PAGE STYLES
   ============================================ */
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed navbar */
section[id],
h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: 120px; /* Your navbar height + 20px padding */
}

/* Blog Hero Section */
.blog-hero {
    padding-top: 150px;
    padding-bottom: 4rem;
    text-align: center;
}

/* Featured Post Section */
/* Featured Post Section - FIXED VERSION */

.featured-post-section {
    padding: 0 0 4rem 0;
}

.featured-post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.featured-post-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

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

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.featured-post-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.post-category {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-weight: 600;
}

.post-date,
.post-read-time {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.featured-post-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .featured-post-image {
        min-height: 350px;
    }

    .featured-post-content {
        padding: 2rem;
    }

    .featured-post-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .featured-post-image {
        min-height: 250px;
    }

    .featured-post-content {
        padding: 1.5rem;
    }

    .post-meta {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
}

/* Blog Filter Section */
.blog-filter-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: white;
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Blog Posts Grid */
.blog-posts-section {
    padding: 4rem 0;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25);
    transform: translateY(-8px);
}

.post-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .post-image {
    transform: scale(1.1);
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.post-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #a5b4fc;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.author-avatar {
    font-size: 1.75rem;
    color: #6366f1;
}

.author-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.read-more-link {
    color: #a5b4fc;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more-link:hover {
    color: white;
    transform: translateX(3px);
}

/* Pagination */
.blog-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    color: white;
}

.pagination-item.active .pagination-link {
    background: var(--primary-gradient);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pagination-item.disabled .pagination-link {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.5);
}

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

.newsletter-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
}

.newsletter-icon {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.newsletter-form .input-group {
    margin-bottom: 0.75rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 0 0 12px;
    padding: 0.875rem 1.25rem;
    color: white;
    font-size: 1rem;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1;
    box-shadow: none;
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .btn-primary-custom {
    border-radius: 0 12px 12px 0;
    padding: 0.875rem 2rem;
}

.newsletter-form .form-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ============================================
   BLOG POST DETAIL PAGE STYLES
   ============================================ */

/* Article Header */
.article-header-section {
    padding-top: 120px;
    padding-bottom: 2rem;
}

.article-breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

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

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.4);
}

.article-meta-top {
    margin-bottom: 2rem;
}

.article-category-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-divider {
    color: rgba(255, 255, 255, 0.3);
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
}

.article-excerpt {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.author-avatar-large {
    font-size: 3.5rem;
    color: #6366f1;
}

.author-name-large {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.author-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: white;
}

/* Featured Image */
.article-featured-image {
    padding: 2rem 0 3rem 0;
}

.article-featured-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Article Content */
.article-content-section {
    padding: 3rem 0 4rem 0;
}

.article-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 3rem 0 1.5rem 0;
    padding-top: 1rem;
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 2.5rem 0 1rem 0;
    scroll-margin-top: 100px;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 2rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

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

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

.article-content a {
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px solid rgba(165, 180, 252, 0.3);
    transition: all 0.3s;
}

.article-content a:hover {
    color: white;
    border-bottom-color: white;
}

.article-content strong {
    color: white;
    font-weight: 600;
}

/* Table of Contents */

.article-toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

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

.toc-list li {
    margin-bottom: 0.625rem;
}

.toc-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: none;
    display: block;
}

.toc-list a:hover {
    color: #a5b4fc;
    transform: translateX(5px);
}

.toc-h2 {
    font-weight: 600;
    font-size: 1rem;
}

.toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Content Boxes */
/* Highlight/Info Boxes */
.article-highlight-box,
.article-warning-box,
.article-info-box,
.article-danger-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 3px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Info Box (Blue) */
.article-info-box {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.article-info-box i {
    color: #6366f1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Highlight Box (Plain/Neutral) */
.article-highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.article-highlight-box i {
    color: #a5b4fc;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Warning Box (Yellow) */
.article-warning-box {
    background: rgba(250, 204, 21, 0.1);
    border-color: #facc15;
}

.article-warning-box i {
    color: #facc15;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Danger Box (Red) */
.article-danger-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.article-danger-box i {
    color: #ef4444;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Content styling for all boxes */
.article-highlight-box > div,
.article-warning-box > div,
.article-info-box > div,
.article-danger-box > div {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.article-highlight-box strong,
.article-warning-box strong,
.article-info-box strong,
.article-danger-box strong {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Checklist */
.article-checklist {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-checklist h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.article-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-checklist li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.625rem;
    padding-left: 0;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.article-checklist li::before {
    content: "✓";
    color: #6366f1;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-highlight-box,
    .article-warning-box,
    .article-info-box,
    .article-danger-box {
        padding: 1rem;
        gap: 0.75rem;
    }

    .article-highlight-box i,
    .article-warning-box i,
    .article-info-box i,
    .article-danger-box i {
        font-size: 1.25rem;
    }
}

/* Step Boxes */
.article-step-box {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.article-step-box:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.step-number-badge {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.article-step-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0
}

.article-step-box p {
    margin-bottom: 0;
}

/* ============================================
   ARTICLE CONTENT — GENERIC TABLE STYLES
   Applies to all tables inside .article-content
   ============================================ */

.article-content table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 2rem 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.article-content thead {
    background: rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.article-content thead th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a5b4fc;
    white-space: nowrap;
}

.article-content tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

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

.article-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.article-content tbody td {
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    vertical-align: top;
}

/* First column slightly brighter — acts as a row label */
.article-content tbody td:first-child {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* tfoot (optional totals/summary row) */
.article-content tfoot tr {
    background: rgba(99, 102, 241, 0.08);
    border-top: 1px solid rgba(99, 102, 241, 0.25);
}

.article-content tfoot td {
    padding: 0.875rem 1.25rem;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content thead th,
    .article-content tbody td,
    .article-content tfoot td {
        padding: 0.7rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* Conclusion */
.article-conclusion {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0 2rem 0;
}

.article-conclusion h3 {
    margin-top: 0;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.tag-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.9rem;
}

.tag-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: white;
}

/* Share Box */
.article-share-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.article-share-box h4 {
    margin-bottom: 1.5rem;
}

.share-buttons-large {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

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

.share-btn-large.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.share-btn-large.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-btn-large.copy:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: white;
}

/* Author Card */
.article-author-card {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-avatar-xl {
    font-size: 5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.author-name-xl {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 1rem;
    color: #a5b4fc;
    margin-bottom: 0.75rem;
}

.author-bio-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.author-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.author-social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: white;
}

/* Related Articles */
.related-articles {
    margin: 3rem 0;
}

.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.related-article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.related-article-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

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

.related-content {
    padding: 1.25rem;
}

.related-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-content h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

.related-content h4 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: none;
}

.related-content h4 a:hover {
    color: #a5b4fc;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Article CTA Box */
.article-cta-box {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-icon {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}

.article-cta-box h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.article-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.sidebar-cta-box {
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-cta-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.sidebar-cta-box h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.sidebar-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.popular-post-number {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.popular-post-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.popular-post-content h5 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: none;
}

.popular-post-content h5 a:hover {
    color: #a5b4fc;
}

.popular-post-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border-bottom: none;
}

.category-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.category-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.sidebar-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.newsletter-icon-small {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.sidebar-newsletter h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.75rem;
}

.sidebar-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-post-image {
        min-height: 300px;
    }

    .featured-post-content {
        padding: 2rem;
    }

    .featured-post-title {
        font-size: 1.75rem;
    }

    .article-author-box {
        flex-direction: column;
        text-align: center;
    }

    .article-share-buttons {
        margin: 0 auto;
    }

    .article-author-card {
        flex-direction: column;
        text-align: center;
    }

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

    .article-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 120px;
        padding-bottom: 2rem;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-box {
        padding: 2rem;
    }

    .newsletter-form .btn-primary-custom {
        width: 100%;
        border-radius: 12px;
        margin-top: 0.75rem;
    }

    .newsletter-input {
        border-radius: 12px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

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

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .share-buttons-large {
        flex-direction: column;
    }

    .share-btn-large {
        width: 100%;
        justify-content: center;
    }
}
