/* ============================================
   ARTICLE HERO SECTION - IMAGE LEFT, CONTENT RIGHT
   ============================================ */

/* ============================================
   ARTICLE HERO SECTION - IMAGE LEFT, CONTENT RIGHT
   ============================================ */

.article-hero {
    background: linear-gradient(135deg, #f9f7f4 0%, #f5f0eb 100%);
    padding: 40px 5% 60px;
    position: relative;
    overflow: hidden;
}

.article-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #8d6e63;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #8d6e63;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.breadcrumb-link:hover {
    color: #5d4037;
    background: rgba(93, 64, 55, 0.1);
    text-decoration: none;
}

.breadcrumb-separator {
    font-size: 0.8rem;
    opacity: 0.5;
}

.breadcrumb-current {
    color: #5d4037;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

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

.toc-content ul ul {
    list-style: disc;
    margin-left: 15px;
}
.toc-content li {
    margin: 4px 0;
}
.toc-content ul ul a {
    color: #343a40;
}
.toc-content a {
    text-decoration: none;
    color: #0073aa;
}

.article-body img{
   width: 100% !important;
   height: auto !important;
   border-radius: 10px;
}

/* Hero Grid Layout */
.article-hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 30px;
    align-items: center;
}

/* Hero Image (Left - 60%) */
.article-hero-image {
    position: relative;
    height: 100%;
}

.article-hero-image .image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.article-hero-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.article-hero-image:hover img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(44, 24, 16, 0.1) 100%
    );
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 24, 16, 0.9));
    color: white;
    padding: 20px 30px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.image-caption i {
    color: #ffcc80;
    font-size: 1.1rem;
}

/* Hero Content (Right - 40%) */
.article-hero-content {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* Category Badge */
.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(93, 64, 55, 0.1);
    color: #5d4037;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    align-self: flex-start;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.article-category-badge:hover {
    background: rgba(93, 64, 55, 0.15);
    border-color: rgba(93, 64, 55, 0.3);
    transform: translateY(-2px);
}

.article-category-badge i {
    font-size: 1rem;
}

/* Article Title */
.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 52px;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* Article Excerpt */
.article-excerpt {
    font-size: 1.25rem;
    color: #5d4037;
    line-height: 1.6;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(141, 110, 99, 0.2);
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Author Section */
.article-author {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(215, 204, 200, 0.5);
    backdrop-filter: blur(10px);
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    color: #2c1810;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.author-title {
    color: #8d6e63;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Stats Grid */
.article-stats {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(215, 204, 200, 0.5);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(215, 204, 200, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #8d6e63;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: rgba(141, 110, 99, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d6e63;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.stat-label {
    font-size: 0.8rem;
    color: #8d6e63;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    color: #2c1810;
    font-weight: 600;
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.action-like {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.3);
}

.action-like:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.action-save {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

.action-save:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.action-share {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border-color: rgba(33, 150, 243, 0.3);
}

.action-share:hover {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .article-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .article-hero-image {
        height: 500px;
    }
    
    .article-title {
        font-size: 2.8rem;
    }
    
    .article-hero-content {
        padding: 0;
    }
}

@media (max-width: 992px) {
    .article-hero {
        padding: 30px 4% 50px;
    }
    
    .article-title {
        font-size: 2.4rem;
    }
    
    .article-excerpt {
        font-size: 1.15rem;
    }
    
    .article-hero-image {
        height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 25px 3% 40px;
    }
    
    .article-breadcrumb {
        margin-bottom: 30px;
        font-size: 0.85rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-hero-image {
        height: 350px;
    }
    
    .article-author {
        padding: 15px;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .action-btn {
        min-width: 100px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .article-hero {
        padding: 20px 2% 30px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .article-hero-image {
        height: 300px;
    }
    
    .article-category-badge {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .author-info h3 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
}

/* Animation for content */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-hero-content {
    animation: slideInRight 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-hero-image {
    animation: slideInLeft 0.8s ease-out 0.1s both;
}
/* ============================================
   EXISTING ARTICLE CONTENT (KEEP THIS)
   ============================================ */

/* Content Wrapper */
.article-content-wrapper {
    padding: 60px 5%;
    background: white;
}

.article-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* Main Content */
.article-main-content {
    position: relative;
}

/* Mobile TOC (Hidden on desktop) */
.article-toc-mobile {
    display: none;
    background: #f9f7f4;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.toc-toggle {
    width: 100%;
    padding: 18px 25px;
    background: #5d4037;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toc-toggle:hover {
    background: #4a332c;
}

.toc-nav-mobile {
    display: none;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    text-decoration: none;
    color: #5d4037;
    border-bottom: 1px solid rgba(141, 110, 99, 0.1);
}

.toc-link:last-child {
    border-bottom: none;
}

.toc-link:hover {
    color: #2c1810;
}

.toc-number {
    font-weight: 700;
    color: #8d6e63;
    font-size: 0.9rem;
    min-width: 25px;
}

/* Article Body */
.article-body {
    padding-top: 20px;
}

/* Sections */
.article-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2c1810;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(141, 110, 99, 0.2);
}

.section-number {
    color: #8d6e63;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Paragraphs */
.article-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-body strong {
    color: #2c1810;
    font-weight: 600;
}

/* Key Points Box */
.key-points-box {
    background: #f9f7f4;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #8d6e63;
}

.key-points-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c1810;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.key-points-title i {
    color: #8d6e63;
}

.key-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.key-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(215, 204, 200, 0.3);
}

.point-icon {
    width: 50px;
    height: 50px;
    background: rgba(141, 110, 99, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d6e63;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.point-content h4 {
    color: #2c1810;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.point-content p {
    color: #5d4037;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Article Images */
.article-image {
    margin: 40px 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
    text-align: center;
    color: #8d6e63;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

/* Data Table */
table {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.table-title {
    color: #2c1810;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

table th {
    background: #f5f0eb;
    color: #2c1810;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #d7ccc8;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #5d4037;
}

table tr:hover {
    background: #f9f7f4;
}

/* Warning Box */
.warning-box {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.warning-icon {
    color: #ff9800;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-content h4 {
    color: #e65100;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.warning-content p {
    color: #5d4037;
    margin: 0;
}

/* Step by Step */
.step-by-step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 1px solid rgba(141, 110, 99, 0.2);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c1810;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.step-title i {
    color: #8d6e63;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #8d6e63;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c1810;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    color: #5d4037;
    margin: 0;
    font-size: 1rem;
}

/* Quote Box */
blockquote {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
    color: white;
    padding: 80px 40px 40px;
    border-radius: 15px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
    line-height: 1;
}

blockquote::after {
    content: "\f10d";
    font-family: 'FontAwesome';
    position: absolute;
    font-size: 60px;
    top: 0px;
    left: 40px;
    color: #ffcc80;
}

.quote-content {
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 2rem;
    color: #ffcc80;
    margin-bottom: 20px;
    display: block;
}

.quote-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
    color: white;
}

.quote-author {
    font-weight: 600;
    font-size: 1rem;
    color: #ffcc80;
}

/* Article Actions (in content) */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin: 40px 0;
    border-top: 1px solid rgba(215, 204, 200, 0.5);
    border-bottom: 1px solid rgba(215, 204, 200, 0.5);
    flex-wrap: wrap;
    gap: 20px;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    color: #8d6e63;
    font-weight: 600;
    font-size: 0.95rem;
}

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.pinterest { background: #e60023; }
.linkedin { background: #0077b5; }
.copy-link { background: #8d6e63; }

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #5d4037;
    border: 2px solid #d7ccc8;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #5d4037;
    color: white;
    border-color: #5d4037;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.like-count {
    margin-left: 5px;
    font-weight: 700;
}

/* Tags */
.tags-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c1810;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.tags-title i {
    color: #8d6e63;
}

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

.tag {
    background: rgba(141, 110, 99, 0.1);
    color: #5d4037;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #5d4037;
    color: white !important;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 220px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(215, 204, 200, 0.3);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c1810;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.widget-title i {
    color: #8d6e63;
}

/* TOC Widget */
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 32px;
    text-decoration: none;
    color: #5d4037;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-item:hover,
.toc-item.active {
    background: #f5f0eb;
    color: #2c1810;
    border-left-color: #8d6e63;
    padding-left: 20px;
}

.toc-number {
    font-weight: 700;
    color: #8d6e63;
    font-size: 0.9rem;
    min-width: 25px;
}

.toc-text {
    flex: 1;
    font-weight: 500;
}

/* Author Widget */
.author-sidebar {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.author-sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-sidebar-info h4 {
    color: #2c1810;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.author-sidebar-info p {
    color: #5d4037;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5d4037;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #4a332c;
    transform: translateY(-2px);
}

/* Popular Widget */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-article {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(215, 204, 200, 0.3);
}

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

.popular-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-article:hover .popular-image img {
    transform: scale(1.1);
}

.popular-content h4 {
    color: #2c1810;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.popular-meta {
    display: flex;
    gap: 10px;
    color: #8d6e63;
    font-size: 0.85rem;
}

.popular-rating,
.popular-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #5d4037;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.newsletter-input {
    padding: 12px;
    border: 2px solid #d7ccc8;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #5d4037;
}

.newsletter-input:focus {
    outline: none;
    border-color: #8d6e63;
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1);
}

.newsletter-submit {
    background: #5d4037;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background: #4a332c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

/* Related Articles */
.related-articles {
    padding: 40px 5%;
    background: #f9f7f4;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-header {
    text-align: center;
    margin-bottom: 50px;
}

.related-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c1810;
    margin-bottom: 15px;
}

.related-title i {
    color: #8d6e63;
}

.related-subtitle {
    color: #8d6e63;
    font-size: 1.1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.related-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(215, 204, 200, 0.3);
}

.related-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.1);
}

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

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.6s ease;
}

.related-article:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 25px;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #8d6e63;
}

.related-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.related-article-title {
    margin-bottom: 15px;
}

.related-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c1810;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-height: 1.5em;
    max-height: calc(1.7em * 2);
}

.related-link:hover {
    color: #5d4037;
    text-decoration: underline;
}

.related-excerpt {
    color: #5d4037;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .article-toc-mobile {
        display: block;
    }
    
    .toc-widget {
        display: none;
    }
}

@media (max-width: 992px) {
    .article-hero-image {
        height: 400px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .article-content-wrapper,
    .related-articles {
        padding-left: 4%;
        padding-right: 4%;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .key-points-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-content-wrapper,
    .related-articles {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .related-title {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll Animation for sections */
@keyframes sectionAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-section {
    animation: sectionAppear 0.6s ease-out forwards;
    opacity: 0;
}

.article-section:nth-child(1) { animation-delay: 0.1s; }
.article-section:nth-child(2) { animation-delay: 0.2s; }
.article-section:nth-child(3) { animation-delay: 0.3s; }
.article-section:nth-child(4) { animation-delay: 0.4s; }



/* Base article typography */
.article-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937; /* neutral dark */
}

/* Headings */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0 1rem;
  color: #111827;
}

.article-body h1 { font-size: 2.25rem; }
.article-body h2 { font-size: 1.875rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }
.article-body h5 { font-size: 1.125rem; }
.article-body h6 { font-size: 1rem; }

/* Paragraphs */
.article-body p {
  margin: 0 0 0.55rem;
}
.article-body a:hover {
  color: #1d4ed8;
}

/* Strong & emphasis */
.article-body strong {
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
  padding: 0;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  padding-left: 0.25rem;
}

/* Nested lists */
.article-body li ul,
.article-body li ol {}

/* Blockquotes */
.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid #e5e7eb;
  color: #4b5563;
  font-style: italic;
}

/* Code */
.article-body code {
  font-size: 0.95em;
  background: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.article-body pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #111827;
  color: #f9fafb;
  overflow-x: auto;
  border-radius: 6px;
}

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

/* Images */
.article-body img {
  max-width: 100%;
  max-height: fit-content;
  height: auto;
  margin: 1.5rem 0;
  display: block;
}

/* Figures */
.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

/* Horizontal rule */
.article-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.article-body th,
.article-body td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.article-body th {
  background: #f9fafb;
  font-weight: 600;
}

/* Small text */
.article-body small {
  font-size: 0.875rem;
  color: #6b7280;
}

