/* BREAKING BAR */
.breaking-bar {
    background-color: var(--accent);
    color: white;
    padding: 10px 0;
    font-weight: 600;
}

.breaking-label {
    background-color: #000000cc;
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.85rem;
    margin-left: 15px;
    font-weight: 700;
}

/* ------------------------------
           NEWS LISTING SECTION (TWO COLUMNS)
        -------------------------------- */
.news-listing-section {
    padding: 2rem 0;
}

.news-filter-wrapper {
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
}

.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

.news-filter-list li {
    padding: 10px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.news-filter-list li:hover {
    color: var(--primary);
}

.news-filter-list .filter-active {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    font-weight: 800;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.news-card-inner {
    display: flex;
    flex-wrap: wrap;
}

.news-thumb {
    flex: 0 0 260px;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.news-meta i {
    margin-left: 5px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.news-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.2s;
}

.news-title a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid var(--primary);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.read-more-btn {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 6px 20px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
}

.read-more-btn:hover {
    background-color: var(--primary);
    color: white;
}

.news-share-mini {
    position: relative;
}

.share-trigger {
    cursor: pointer;
    background: #f3f4f6;
    padding: 6px 12px;
    display: inline-block;
    font-size: 0.8rem;
    transition: 0.2s;
}

.share-trigger:hover {
    background: var(--primary);
    color: white;
}

.share-dropdown {
    position: absolute;
    left: 0;
    bottom: 130%;
    background: white;
    border: 1px solid var(--border-light);
    padding: 6px;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: 0.1s;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.share-dropdown a {
    color: var(--text-dark);
    padding: 4px 8px;
    text-decoration: none;
}

.share-dropdown a:hover {
    background: var(--primary-light);
    color: white;
}

.no-news-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border: 1px solid var(--border-light);
}

.pagination-wrapper {
    margin-top: 2.5rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    list-style: none;
}

.pagination .page-item .page-link {
    border: 1px solid var(--border-light);
    padding: 8px 14px;
    color: var(--primary);
    background: white;
    text-decoration: none;
}

.pagination .active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* SIDEBAR */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-light);
    padding: 1.3rem;
}

.sidebar-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border-right: 4px solid var(--accent);
    padding-right: 12px;
    color: var(--primary);
}

.search-form .input-group {
    display: flex;
}

.search-form input {
    flex: 1;
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.search-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 16px;
    cursor: pointer;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.categories-list li a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.categories-list li a:hover,
.categories-list li a.active {
    color: var(--accent);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.item-thumb {
    width: 70px;
    flex-shrink: 0;
}

.item-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.item-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.item-info h5 a {
    text-decoration: none;
    color: var(--text-dark);
}

.item-info h5 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.item-date,
.item-views {
    font-size: 0.7rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .news-card-inner {
        flex-direction: column;
    }

    .news-thumb {
        flex: auto;
        height: 200px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ========== NEWS DESCRIPTION PAGE SPECIFIC STYLES ========== */
.news-description-section {
    padding: 2rem 0;
}

.news-article {
    background: white;
    border: 1px solid var(--border-light);
    padding: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: #6c757d;
    font-size: 0.85rem;
}

.article-meta i {
    margin-left: 5px;
}

.article-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 1.8rem;
    border: 1px solid var(--border-light);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0 0.8rem;
    color: var(--primary);
}

.article-share-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.share-label {
    font-weight: 700;
    margin-left: 1rem;
    color: var(--primary);
}

.share-icons {
    display: inline-flex;
    gap: 0.8rem;
}

.share-icons a {
    background: #f3f4f6;
    padding: 8px 14px;
    color: var(--text-dark);
    transition: 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.share-icons a:hover {
    background: var(--primary);
    color: white;
}

.back-to-news {
    display: inline-block;
    margin-top: 1.5rem;
    border: 1px solid var(--primary);
    padding: 8px 24px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.back-to-news:hover {
    background: var(--primary);
    color: white;
}

/* SIDEBAR */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-light);
    padding: 1.3rem;
}

.sidebar-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border-right: 4px solid var(--accent);
    padding-right: 12px;
    color: var(--primary);
}

.search-form .input-group {
    display: flex;
}

.search-form input {
    flex: 1;
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.search-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 16px;
    cursor: pointer;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.categories-list li a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.categories-list li a:hover,
.categories-list li a.active {
    color: var(--accent);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.item-thumb {
    width: 70px;
    flex-shrink: 0;
}

.item-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.item-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.item-info h5 a {
    text-decoration: none;
    color: var(--text-dark);
}

.item-info h5 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.item-date,
.item-views {
    font-size: 0.7rem;
    color: #6c757d;
}
