/* News Details Page Styles - Updated 2026-02-28 */

/* News Details Section */
.news-details-section {
    padding: 60px 0;
    background-color: #ffffff;
    min-height: 100vh;
}

.news-details-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.news-details-main {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px;
}

/* Header */
.news-details-header {
    margin-bottom: 30px;
}

.news-category-badge {
    margin-bottom: 15px;
}

.news-category-badge a {
    display: inline-block;
    background-color: #356df1;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-category-badge a:hover {
    background-color: #000000;
}

.news-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212427;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.news-details-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.news-details-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.news-details-meta svg {
    flex-shrink: 0;
}

/* Featured Image */
.news-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.news-featured-image img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
    height: auto;
    display: block;
}

/* Content */
.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.news-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212427;
    margin: 30px 0 20px 0;
}

.news-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212427;
    margin: 25px 0 15px 0;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content ul,
.news-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 10px;
}

.news-content a {
    color: #356df1;
    text-decoration: underline;
}

.news-content a:hover {
    color: #000000;
}

/* Tags and Share */
.news-tags-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: #212427;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list .tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tags-list .tag:hover {
    background-color: #356df1;
    color: #ffffff;
    border-color: #356df1;
}

.news-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #212427;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn:hover {
    transform: translateY(-3px);
}

/* Navigation */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.news-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    min-height: 100px;
}

.news-nav-item:hover {
    background-color: #ffffff;
    border-color: #356df1;
}

.news-nav-item.nav-disabled {
    opacity: 0;
    pointer-events: none;
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
    text-align: right;
}

.nav-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    color: #356df1;
}

.news-nav-item:hover .nav-icon {
    background-color: #356df1;
    color: #ffffff;
}

.news-nav-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 15px;
    color: #212427;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Related News */
.related-news {
    padding-top: 50px;
    border-top: 2px solid #e9ecef;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212427;
    margin: 0;
}

.view-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #212427;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.view-more:hover {
    color: #356df1;
    background-color: #f8f9fa;
}

.view-more svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.view-more:hover svg {
    transform: translateX(3px);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-item {
    background: #f5f7f8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-item:hover {
    transform: translateY(-5px);
    border-color: #356df1;
}

.related-image {
    display: block;
    overflow: hidden;
    height: 200px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.08);
}

.related-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.related-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.related-category svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.related-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-item-title a {
    color: #212427;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-item-title a:hover {
    color: #356df1;
}

.related-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-date {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #356df1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
}

.related-read-more:hover {
    color: #000000;
    gap: 6px;
}

.related-read-more svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.related-read-more:hover svg {
    transform: translateX(2px);
}

/* Error Section */
.error-section {
    padding: 100px 0;
    text-align: center;
}

.error-message {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.error-message h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212427;
    margin: 0 0 15px 0;
}

.error-message p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0 0 30px 0;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background-color: #356df1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-details-section {
        padding: 40px 0;
    }
    
    .news-details-main {
        padding: 30px 20px;
    }
    
    .news-details-title {
        font-size: 2rem;
    }
    
    .news-details-meta {
        gap: 15px;
    }
    
    .news-content {
        font-size: 15px;
    }
    
    .news-content h2 {
        font-size: 1.5rem;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .news-tags-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-details-main {
        padding: 20px 15px;
    }
    
    .news-details-title {
        font-size: 1.6rem;
    }
    
    .news-details-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-nav-item {
        padding: 15px;
        min-height: 80px;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .related-image {
        height: 180px;
    }
    
    .related-content {
        padding: 20px;
    }
}
