/* News Detail Page Styles */

.article-detail-page {
    padding: 40px 0 120px;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* Breadcrumb Styles */
.breadcrumb {
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: #999;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d1d1f;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.article-meta .date {
    font-size: 14px;
    color: #999;
    font-family: 'Roboto', sans-serif;
}

/* Share icons with center line - matching user image */
.share-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    position: relative;
    width: 100%;
    align-items: center;
    margin: 20px 0;
}

.share-icons::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #f0f0f0;
    z-index: 1;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: 0 15px;
    color: #666;
    text-decoration: none;
}

.share-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-top: 40px;
}

.article-content p,
.article-content .article-bullets,
.article-content .lead-text {
    /* max-width: 1000px;*/
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
}

.article-content p {
    margin-bottom: 25px;
}

.article-image {
    margin: 60px 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-image figcaption {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

.article-bullets {
    margin: 30px auto 40px;
    padding-left: 20px;
    list-style: disc;
}

.article-bullets li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.bottom-share {
    margin-top: 80px;
    padding-top: 40px;
}

/* Related News Section - Fixed Overflow and Conflict */
.related-news-section {
    margin-top: 60px;
    /* Reduced margin since bottom-share has margin */
    padding-top: 60px;
    border-top: none;
    /* Removed redundant border to avoid conflict with share line */
    width: 100%;
    box-sizing: border-box;
}

.related-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
    height: 100%;
    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.related-card .card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .card-image img {
    transform: scale(1.1);
}

.related-card .card-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-card .card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .card-info .date {
    font-size: 12px;
    color: #999;
    font-family: 'Roboto', sans-serif;
    margin-top: auto;
}

.view-all-box {
    text-align: center;
    margin-top: 60px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 50px;
    border: 1px solid #333;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .article-detail-page {
        padding: 30px 0 80px;
    }

    .breadcrumb {
        margin-bottom: 25px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-content {
        font-size: 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-title {
        font-size: 24px;
    }

    .share-icons {
        gap: 15px;
    }
}