/*======= News Page Layout =============*/

/* News section wrapper */
.news-area {
    padding: 60px 0 30px;
}

/* Sort dropdown container */
.news-sort-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.news-sort-dropdown {
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    background: #fff;
    min-width: 150px;
    cursor: pointer;
}

/* News grid layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual news card */
.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* News image */
.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News content */
.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1059a3;
    margin-bottom: 12px;
    line-height: 1.4;
    height: calc(1.4em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: #1059a3;
    text-decoration: none;
}

.news-card-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    height: calc(1.6em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-size: 14px;
    color: #1059a3;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-card-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: 5px;
}

/* Pagination wrapper */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* News Detail Page Styles */
.news-detail-area {
    padding: 40px 0 60px;
}

.news-detail-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.news-detail-title {
    font-size: 32px;
    font-weight: 600;
    color: #0b1732;
    margin-bottom: 30px;
    line-height: 1.3;
    border-bottom: 1px solid #e4e4e4;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    color: #0b1732;
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-detail-content h2 {
    font-size: 24px;
    font-weight: 600;
}

.news-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
}

.news-detail-content h4 {
    font-size: 18px;
    font-weight: 600;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

.news-detail-back {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e4e4e4;
}

.news-detail-back .btn {
    background: #1059a3;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.news-detail-back .btn:hover {
    background: #0a4078;
    color: #fff;
}

/* Related News Section */
.related-news-area {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-news-area .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-news-area .section-header h2 {
    font-size: 28px;
    font-weight: 300;
    color: #0b1732;
}

.related-news-area .section-header h2 b {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .news-detail-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-sort-wrapper {
        justify-content: flex-start;
    }

    .news-card-image {
        height: 180px;
    }

    .news-detail-title {
        font-size: 22px;
    }

    .news-detail-content {
        font-size: 15px;
    }
}