/* News Detail Page Styles */

/* News Detail Section */
.news-detail-section {
    padding: 60px 0 0;
    background-color: #fff;
}

.news-detail-content {
    margin: 0 auto;
}

/* Date */
.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Title */
.news-title {
    text-align: center;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 30px;

}

.news-title .title-border {
    width: 60px;
    height: 4px;
    background-color: var(--main-color);
    margin: 0 auto 20px;
}

.news-title h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color);
    line-height: 1.4;
    margin: 0;
}

/* Subtitle */
.news-subtitle {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Main Image */
.news-main-image {
    margin-bottom: 40px;
    text-align: center;
}

.news-main-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Content Text */
.news-content {
    margin-bottom: 60px;
}

.news-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 20px;
}

/* Related News Section */
.related-news-section {
    padding: 0 0 80px;
    background-color: #fff;
}

.related-news-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title .title-border {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color) 0%, #B91D47 100%);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--main-color);
    margin: 0;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #e9ecef;
}

/* Related News Item */
.related-news-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.related-news-item:last-child {
    margin-bottom: 0;
}

.related-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-color) 0%, #B91D47 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.related-news-item:hover {
    border-color: var(--main-color);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
    transform: translateY(-2px);
}

.related-news-item:hover::before {
    transform: scaleY(1);
}

.news-image {
    flex-shrink: 0;
    width: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

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

.related-news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    flex: 1;
}

.news-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: right;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 21, 56, 0.1), transparent);
    transition: left 0.5s ease;
}

.more-link:hover::before {
    left: 100%;
}

.more-link:hover {
    color: #fff;
    background: var(--main-color);
    border-color: var(--main-color);
    text-decoration: none;
    transform: translateX(-3px);
}

.more-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.more-link:hover i {
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-detail-section {
        padding: 40px 0;
    }
    
    
    .news-title h1 {
        font-size: 20px;
    }
    
    .news-subtitle {
        font-size: 14px;
    }

    .section-title {
        margin-bottom:20px;
    }
    
    .news-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .related-news-section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title .title-border {
        width: 60px;
    }
    
    .related-news-item {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
        align-items: flex-start;
    }
    
    .news-image {
        width: 100%;
    }
    
    .news-image img {
        height: 200px;
    }
    
    .news-more {
        text-align: left;
    }
    
    .more-link {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .news-detail-section {
        padding:30px 0 0;
    }
    
    .news-title h1 {
        font-size: 18px;
    }
    
    .news-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }
    
    .news-main-image {
        margin-bottom: 30px;
    }
    
    .news-content {
        margin-bottom: 40px;
    }
    
    .news-content p {
        font-size: 13px;
    }
    
    .related-news-section {
        padding: 0 0 40px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .section-title .title-border {
        width: 50px;
        margin-bottom: 20px;
    }
    
    .related-news-item {
        padding: 20px;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .news-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .more-link {
        font-size: 13px;
        padding: 5px 10px;
    }
}