/* News Page Styles */
.news-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.88), rgba(26, 54, 93, 0.88)),
        url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.news-search-box {
    max-width: 560px;
    margin: 28px auto 0;
}

.news-search-box .input-group .form-control {
    border-radius: 50px 0 0 50px;
    padding: 12px 24px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.news-search-box .input-group .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 24px;
    background-color: var(--secondary-accent);
    border-color: var(--secondary-accent);
    color: white;
}

.news-search-box .input-group .btn:hover {
    background-color: #e05500;
    border-color: #e05500;
}

/* News Section */
.news-section {
    padding: 60px 0;
    background-color: #f8fafc;
    min-height: 60vh;
}

/* News List Item */
.news-list-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 54, 93, 0.06);
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: inherit;
}

.news-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(26, 54, 93, 0.12);
    border-left-color: var(--secondary-accent);
    color: inherit;
    text-decoration: none;
}

.news-list-item.is-pinned {
    border-left-color: var(--primary-color);
}

.news-date-block {
    flex-shrink: 0;
    text-align: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 64px;
}

.news-date-block .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.news-date-block .month-year {
    display: block;
    font-size: 0.72rem;
    color: #718096;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.news-list-item:hover .news-date-block {
    background: var(--secondary-accent);
}

.news-list-item:hover .news-date-block .day,
.news-list-item:hover .news-date-block .month-year {
    color: #fff;
}

.news-body {
    flex: 1;
    min-width: 0;
}

.news-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-body p {
    font-size: 0.88rem;
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-tag-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e7effc;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.news-pin-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fff0e6;
    color: var(--secondary-accent);
    letter-spacing: 0.3px;
}

.news-read-more {
    font-size: 0.82rem;
    color: var(--secondary-accent);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.news-list-item:hover .news-read-more {
    text-decoration: underline;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
}

.news-empty i {
    font-size: 3rem;
    color: #cbd5e0;
    display: block;
    margin-bottom: 16px;
}

/* Pagination */
.news-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.news-pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.news-pagination .page-item.active .page-link {
    background-color: var(--secondary-accent);
    border-color: var(--secondary-accent);
    color: white;
}

.news-pagination .page-item.disabled .page-link {
    color: #cbd5e0;
    background-color: #f8fafc;
}

/* ============================
   News Detail Page
   ============================ */
.news-detail-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.92), rgba(26, 54, 93, 0.92)),
        url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 60px 0 40px;
    color: white;
}

.news-detail-hero .breadcrumb-item,
.news-detail-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
}

.news-detail-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.news-detail-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.news-detail-hero h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 16px;
    margin-bottom: 0;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.news-detail-meta i {
    margin-right: 4px;
}

/* Detail Body */
.news-detail-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.news-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.07);
    padding: 48px 52px;
}

@media (max-width: 767.98px) {
    .news-detail-card {
        padding: 28px 20px;
    }
}

/* Article Content */
.news-detail-content {
    line-height: 1.9;
    color: #2d3748;
    font-size: 1rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.news-detail-content p {
    margin-bottom: 1.1rem;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-detail-content ul,
.news-detail-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.1rem;
}

.news-detail-content table td,
.news-detail-content table th {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
}

/* Attachments */
.news-attachments {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.news-attachments h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 4px 6px 4px 0;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.attachment-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.attachment-link i {
    font-size: 1rem;
    color: var(--secondary-accent);
    transition: color 0.2s;
}

.attachment-link:hover i {
    color: white;
}

/* Prev/Next Navigation */
.news-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

@media (max-width: 575.98px) {
    .news-nav-row {
        grid-template-columns: 1fr;
    }
}

.news-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.06);
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.news-nav-btn:hover {
    border-color: var(--secondary-accent);
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.1);
    color: inherit;
    text-decoration: none;
}

.news-nav-btn.next-btn {
    flex-direction: row-reverse;
    text-align: right;
}

.news-nav-btn .nav-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.news-nav-btn:hover .nav-arrow {
    background: var(--secondary-accent);
    color: white;
}

.news-nav-btn .nav-label {
    font-size: 0.72rem;
    color: #718096;
    display: block;
    margin-bottom: 3px;
}

.news-nav-btn .nav-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: overflow;
    overflow: hidden;
}

.news-nav-placeholder {
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
}

/* Back Button */
.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 18px;
    transition: all 0.2s ease;
    margin-bottom: 32px;
}

.btn-back-list:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .news-list-item {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .news-date-block {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
    }

    .news-date-block .day {
        font-size: 1.1rem;
    }

    .news-hero {
        padding: 60px 0;
    }

    .news-detail-hero h1 {
        font-size: 1.35rem;
    }
}
