/* ===== ARTICLE DETAIL PAGE STYLES ===== */

/* Article Hero Section */
.article-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Hero Overlay for Featured Images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44, 62, 80, 0.8) 0%, 
        rgba(44, 62, 80, 0.6) 50%, 
        rgba(44, 62, 80, 0.8) 100%);
    z-index: 1;
}

.article-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DC512D' fill-opacity='0.02'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.article-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #DC512D;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-header {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    background: #DC512D;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date,
.article-read-time,
.article-views {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
}

.article-author {
    color: #495057;
    font-size: 1rem;
}

.article-author strong {
    color: #2c3e50;
    font-weight: 600;
}

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

.article-main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.article-excerpt {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-left: 4px solid #DC512D;
    border-radius: 0 8px 8px 0;
}

.article-excerpt .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    font-weight: 400;
}

/* Article Content Styling */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #DC512D;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 2rem;
    color: #DC512D;
}

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

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

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

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

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

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #42A469;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

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

.article-content pre {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-content a {
    color: #DC512D;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #c44622;
    border-bottom-color: #c44622;
    text-decoration: none;
}

/* Article Tags Section */
.article-tags-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.article-tags-section h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-tags .tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #42A469;
    color: #42A469;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: #42A469;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Social Share Section */
.article-social-share {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.article-social-share h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.share-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

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

.share-btn.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.share-btn.email {
    background: #6c757d;
    color: white;
}

.share-btn.email:hover {
    background: #545b62;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

.sidebar-widget h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #DC512D;
}

/* Author Widget */
.author-widget .author-info {
    text-align: center;
}

.author-widget .author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.author-widget .author-bio {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Related Articles Widget */
.related-articles .related-article {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.related-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

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

.related-title a:hover {
    color: #DC512D;
    text-decoration: none;
}

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

/* Related Articles Section */
.related-articles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.related-image {
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image .image-placeholder i {
    font-size: 2.5rem;
    color: #DC512D;
    opacity: 0.6;
}

.related-content {
    padding: 1.5rem;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.related-category {
    font-weight: 600;
}

.related-date {
    color: #6c757d;
}

.related-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-footer {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Back to Insights Section */
.back-to-insights-section {
    padding: 60px 0;
    background: white;
}

.back-to-insights-section .btn {
    background: transparent;
    color: #DC512D;
    border: 2px solid #DC512D;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-insights-section .btn:hover {
    background: #DC512D;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-hero-section {
        padding: 40px 0 30px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .article-content-section {
        padding: 60px 0;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.75rem;
    }
    
    .social-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb-current {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .article-hero-section {
        padding: 30px 0 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content-section {
        padding: 40px 0;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .article-excerpt {
        padding: 1.5rem;
    }
    
    .article-social-share {
        padding: 1.5rem;
    }
}

/* ===== MODERN ARTICLE HEADER STYLES ===== */

/* Category Tag - Modern Design */
.article-category-wrapper {
    margin-bottom: 1.5rem;
}

.article-category-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #DC512D, #DC512D90);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 10px rgba(220, 81, 45, 0.2);
    transition: all 0.3s ease;
}

.article-category-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 81, 45, 0.3);
}

.article-category-modern i {
    font-size: 0.75rem;
}

/* Modern Title */
.article-title-modern {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Title with Featured Image Background */
.article-hero-section[style*="background-image"] .article-title-modern {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.article-hero-section[style*="background-image"] .article-subtitle-modern {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.article-hero-section[style*="background-image"] .meta-item,
.article-hero-section[style*="background-image"] .author-label,
.article-hero-section[style*="background-image"] .author-name {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.article-hero-section[style*="background-image"] .meta-item i {
    color: rgba(255, 255, 255, 0.6);
}

.article-hero-section[style*="background-image"] .author-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.article-subtitle-modern {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Modern Meta Info */
.article-meta-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    color: #adb5bd;
    font-size: 0.8rem;
}

.meta-separator {
    color: #dee2e6;
    font-weight: 300;
    margin: 0 0.2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.author-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
}

.author-name {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design for Modern Header */
@media (max-width: 768px) {
    .article-title-modern {
        font-size: 2.2rem;
    }
    
    .article-subtitle-modern {
        font-size: 1.1rem;
    }
    
    .meta-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .article-title-modern {
        font-size: 1.8rem;
    }
    
    .article-category-modern {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .article-subtitle-modern {
        font-size: 1rem;
    }
}

/* ===== RELATED ARTICLES SECTION ===== */
.related-articles-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-title a:hover {
    color: #DC512D;
}

.related-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.related-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0 0 0;
}

/* ===== AUTHOR BIO SECTION - COMPACT ===== */
.author-bio-section {
    background: #f8f9fa;
    padding: 25px 0;
    border-top: 1px solid #e9ecef;
}

.author-bio-card-compact {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 80px;
}

.author-bio-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.author-avatar-compact {
    flex-shrink: 0;
}

.avatar-placeholder-compact {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DC512D, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(220, 81, 45, 0.3);
}

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

.author-name-compact {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.author-title-compact {
    color: #DC512D;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-description-compact {
    flex: 2;
    margin: 0 15px;
}

.author-description-compact p {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.author-social-compact {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.author-social-link-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.author-social-link-compact:hover {
    background: #DC512D;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 81, 45, 0.3);
}

/* Author Bio Compact Responsive Design */
@media (max-width: 768px) {
    .author-bio-card-compact {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
        min-height: auto;
    }
    
    .author-description-compact {
        margin: 0;
    }
    
    .author-social-compact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .article-main-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .author-bio-card-compact {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .author-bio-section {
        padding: 20px 0;
    }
    
    .author-bio-card-compact {
        margin: 0 15px;
        padding: 15px;
    }
    
    .avatar-placeholder-compact {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .author-name-compact {
        font-size: 1.1rem;
    }
    
    .author-description-compact p {
        font-size: 0.8rem;
    }
    
    .article-main-content {
        padding: 0 15px;
    }
}
