/* News Center — premium corporate news portal */

.news-banner {
    background-image: linear-gradient(135deg, rgba(12, 35, 64, 0.95), rgba(26, 58, 92, 0.88)),
        url('https://images.unsplash.com/photo-1494412574643-98286aeddbcc?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 4rem 0 3.5rem;
}

.news-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.news-hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.news-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    line-height: 1.6;
}

.news-hero-search .input-group-text {
    background: rgba(255, 255, 255, 0.95);
    border: none;
}

.news-hero-search .form-control {
    border: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
}

/* Section headers */
.news-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.news-section-header .section-title {
    margin-bottom: 0;
}

/* Featured card */
.news-featured-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(12, 35, 64, 0.08);
    transition: box-shadow 0.35s ease;
}

.news-featured-card:hover {
    box-shadow: 0 16px 48px rgba(12, 35, 64, 0.14);
}

.news-featured-img-wrap {
    display: block;
    position: relative;
    height: 100%;
    min-height: 280px;
}

.news-featured-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.news-featured-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.news-featured-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.news-featured-title a:hover { color: var(--accent); }

.news-featured-excerpt {
    color: var(--color-text-muted, #6b7280);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.news-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6b7280);
}

.news-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Filter panel */
.news-filter-panel {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.05);
}

.news-filter-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category & country pills */
.news-category-pills,
.news-country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-cat-pill,
.news-country-pill {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-cat-pill:hover,
.news-country-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.news-cat-pill.active,
.news-country-pill.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Priority badges */
.news-priority-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    z-index: 2;
}

[dir="rtl"] .news-priority-badge {
    left: auto;
    right: 1rem;
}

.news-priority-breaking { background: #dc2626; color: #fff; }
.news-priority-urgent { background: #ea580c; color: #fff; }
.news-priority-high { background: #d97706; color: #fff; }
.news-priority-important { background: var(--navy); color: #fff; }
.news-priority-normal { background: #6b7280; color: #fff; }
.news-priority-information { background: #0891b2; color: #fff; }

.news-category-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    z-index: 2;
}

[dir="rtl"] .news-category-badge {
    left: auto;
    right: 1rem;
}

.news-category-badge-inline {
    position: static;
    display: inline-block;
}

.news-country-badge {
    display: inline-block;
    background: rgba(12, 35, 64, 0.08);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-right: 0.25rem;
}

/* News cards grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-portal-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.news-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(12, 35, 64, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
}

.news-card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-portal-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-body { padding: 1.25rem; }

.news-card-countries { margin-bottom: 0.5rem; }

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover { color: var(--accent); }

.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.55;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 0.75rem;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-read-more {
    font-weight: 600;
}

/* Sidebar */
.news-sidebar-block {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.news-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

/* Timeline */
.news-timeline { position: relative; padding-left: 1.25rem; }

[dir="rtl"] .news-timeline { padding-left: 0; padding-right: 1.25rem; }

.news-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

[dir="rtl"] .news-timeline::before { left: auto; right: 4px; }

.news-timeline-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.news-timeline-item:hover { color: var(--accent); }

.news-timeline-item:hover p { color: var(--accent); }

.news-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    margin-left: -1.35rem;
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-border);
}

[dir="rtl"] .news-timeline-dot {
    margin-left: 0;
    margin-right: -1.35rem;
}

.news-priority-dot-breaking { background: #dc2626; }
.news-priority-dot-urgent { background: #ea580c; }
.news-priority-dot-high { background: #d97706; }
.news-priority-dot-important { background: var(--navy); }
.news-priority-dot-normal { background: #6b7280; }
.news-priority-dot-information { background: #0891b2; }

.news-timeline-content time {
    font-size: 0.7rem;
    color: var(--color-text-muted, #6b7280);
    display: block;
}

.news-timeline-content p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.15rem 0 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-source-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.news-source-list li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted, #6b7280);
}

.news-source-list i { color: var(--accent); }

.news-newsletter {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    border: none;
}

.news-newsletter .news-sidebar-title {
    color: #fff;
    border-bottom-color: var(--accent);
}

.news-newsletter .text-muted { color: rgba(255, 255, 255, 0.7) !important; }

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.news-page-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.news-page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.news-page-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.news-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Empty state */
.news-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted, #6b7280);
}

.news-empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

/* Animations */
.news-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.news-animate.news-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Detail page */
.news-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0;
    z-index: 9999;
    transition: width 0.1s linear;
}

.news-detail-hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.news-detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.news-detail-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.92), rgba(26, 58, 92, 0.85));
}

.news-detail-hero-content {
    position: relative;
    z-index: 1;
}

.news-detail-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 1rem 0 0.75rem;
}

.news-detail-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    line-height: 1.6;
}

.news-detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.news-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.news-detail-meta-item i { color: var(--accent); }

.news-detail-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
}

.news-detail-content p { margin-bottom: 1rem; }

.news-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.news-gallery-item img {
    transition: transform 0.35s ease;
}

.news-gallery-item:hover img { transform: scale(1.05); }

.news-related-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-related-links li { padding: 0.4rem 0; }

.news-related-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

.news-related-links a:hover { color: var(--accent); }

.news-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.news-tag {
    background: rgba(12, 35, 64, 0.06);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.news-publisher-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.news-publisher-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.news-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.news-share-buttons {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

[dir="rtl"] .news-share-buttons { margin-left: 0; margin-right: auto; }

.news-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    margin-left: 0.35rem;
    transition: all 0.2s;
}

.news-share-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.news-adjacent-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.news-adjacent-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.08);
}

.news-adjacent-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: var(--navy);
}

.news-related-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.news-related-item:last-child { border-bottom: none; }

.news-related-item img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-related-item p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem 0 0;
    line-height: 1.35;
}

.news-related-item:hover p { color: var(--accent); }

.news-comments {
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

@media (max-width: 767.98px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-featured-body { padding: 1.25rem; }
    .news-detail-actions { flex-direction: column; align-items: flex-start; }
    .news-share-buttons { margin-left: 0; }
}

@media print {
    .news-detail-actions,
    .news-comments,
    .news-sidebar-block,
    .news-adjacent-nav { display: none !important; }
}
