/* News Page Styles */

/* Category Tabs */
.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.news-tabs a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fff;
}

.news-tabs a:hover {
    border-color: #00af50;
    color: #00af50;
}

.news-tabs a.active {
    border-color: #00af50;
    background: #00af50;
    color: #fff;
}

/* News List */
.news-list-wrapper {
    padding-bottom: 40px;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: start;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item__image {
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.news-item__image img {
    width: 100%;
    /*height: 200px;*/
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item__image img {
    transform: scale(1.03);
}

.news-item__content {
    padding: 5px 0;
}

.news-item__category {
    display: inline-block;
    padding: 3px 12px;
    background: #00af50;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-item__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.news-item__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item__title a:hover {
    color: #00af50;
}

.news-item__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.news-item__date .icon-calendar {
    font-size: 13px;
}

.news-item__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 14px;
}

.news-item__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #00af50;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.news-item__readmore:hover {
    gap: 10px;
    color: #1e8a38;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 50px 0;
    color: #888;
    font-size: 16px;
}

/* Pagination */
.news-pagination-wrapper {
    padding: 20px 0 40px;
}

.news-pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-pagination-wrapper .pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-pagination-wrapper .pagination .page-item .page-link:hover {
    border-color: #00af50;
    color: #00af50;
}

.news-pagination-wrapper .pagination .page-item.active .page-link {
    border-color: #00af50;
    background: #00af50;
    color: #fff;
    font-weight: 600;
}

.news-pagination-wrapper .pagination .page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   News Detail Page Styles
   ============================================ */

/* Breadcrumb */
.news-breadcrumb {
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 6px;
    color: #ccc;
}

.breadcrumb-list a {
    color: #00af50;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:last-child {
    color: #999;
    font-weight: 500;
}

.breadcrumb-list .fa-home {
    color: #00af50;
    margin-right: 4px;
    font-weight: 900;
    vertical-align: middle;
}

.breadcrumb-list a .fa-home {
    color: inherit;
}

/* Detail Grid Layout */
.news-detail-wrapper {
    padding-bottom: 40px;
}

.news-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .news-detail-grid {
        grid-template-columns: 1fr 260px;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .news-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Article Content */
.news-detail-content {
    min-width: 0;
}

/* Meta */
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-detail-category {
    display: inline-block;
    padding: 4px 14px;
    background: #00af50;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-detail-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
}

.news-detail-date .icon-calendar {
    font-size: 13px;
}

/* Excerpt */
.news-detail-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #00af50;
    border-radius: 0 6px 6px 0;
    margin-bottom: 25px;
}

/* Featured Image */
.news-detail-featured-image {
    margin: 0 0 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.news-detail-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Body */
.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.news-detail-body.single-page {
    margin-top: 0;
}

.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4,
.news-detail-body h5,
.news-detail-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #222;
}

.news-detail-body h2 { font-size: 1.6em; }
.news-detail-body h3 { font-size: 1.3em; }
.news-detail-body h4 { font-size: 1.1em; }

.news-detail-body p {
    margin-bottom: 1em;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.news-detail-body ul,
.news-detail-body ol {
    padding-left: 25px;
    margin-bottom: 1em;
}

.news-detail-body li {
    margin-bottom: 5px;
}

.news-detail-body blockquote {
    border-left: 4px solid #00af50;
    background: #f9f9f9;
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

.news-detail-body a {
    color: #00af50;
    text-decoration: underline;
}

.news-detail-body a:hover {
    color: #1e8a38;
}

/* Share */
.blog-share {
    margin: 30px 0;
}

.share-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Tags */
.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.tag-label {
    font-weight: 600;
    color: #333;
}

.news-detail-tags a {
    display: inline-block;
    padding: 3px 12px;
    background: #f0f0f0;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-detail-tags a:hover {
    background: #00af50;
    color: #fff;
}

/* Sidebar */
.news-detail-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 767px) {
    .news-detail-sidebar {
        position: static;
    }
}

.box-news {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

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

.bn_title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00af50;
}

.bn_slider .item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: start;
}

.bn_slider .item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bn_slider .i-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.bn_slider .i-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bn_slider .i-image:hover img {
    transform: scale(1.05);
}

.bn_slider .i-title {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.bn_slider .i-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bn_slider .i-title a:hover {
    color: #00af50;
}

.bn_slider .clear {
    clear: both;
}

/* Related posts */
.relatedcat {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.relatedcat h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.related-post {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.related-post .col {
    margin-bottom: 0;
    padding-bottom: 5px;
}

.related-post .feature {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-post .image {
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.related-post a:hover .image {
    transform: scale(1.03);
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.related-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Mobile - Related posts full width */
@media (max-width: 767px) {
    .related-post {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .news-item {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .news-item__title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-item__title {
        font-size: 17px;
    }

    .news-tabs a {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .news-item__excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}
