/* ===== NEWS & INSIGHTS PAGES ===== */

.news-detail-content .attachment__caption,
.news-detail-content .attachment__name,
.news-detail-content .attachment__size,
.news-detail-content figcaption,
.news-detail-content .trix-content .attachment__caption {
    display: none !important;
}

/* --- Hero Section --- */
.news-hero-section {
    background: linear-gradient(135deg, #050508 0%, #0e0e16 50%, #050508 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 160px 0 100px;
    position: relative;
    text-align: center;
}

.news-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 60%,
        rgba(65, 105, 225, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.news-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.news-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.news-hero-content p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

.breadcrumb-wrapper {
    display: none;
}

/* --- News Grid Section --- */
.news-grid-section {
    background: var(--bg, #0a0e27);
    padding: 100px 0;
    position: relative;
}

.news-grid-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(65, 105, 225, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* --- Filter Bar --- */
.news-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.filter-tag {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
    background: rgba(20, 27, 53, 0.6);
    border: 1px solid rgba(91, 127, 255, 0.2);
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: #fff;
    border-color: #5b7fff;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

/* --- News Card --- */
.news-card {
    background: linear-gradient(
        135deg,
        rgba(20, 27, 53, 0.6) 0%,
        rgba(26, 33, 66, 0.4) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: #5b7fff;
    box-shadow: 0 15px 50px rgba(65, 105, 225, 0.3);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(10px);
    color: #5b7fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(91, 127, 255, 0.3);
}

.news-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.news-date,
.news-author {
    font-size: 12px;
    color: #5b7fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i,
.news-author i {
    font-size: 11px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #5b7fff;
}

.news-excerpt {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #5b7fff;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-read-more:hover {
    color: #7b9fff;
    gap: 12px;
}

.news-read-more i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translate(3px, -3px);
}

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

.news-empty i {
    font-size: 60px;
    color: rgba(91, 127, 255, 0.3);
    margin-bottom: 20px;
}

.news-empty h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.news-empty p {
    font-size: 14px;
    color: #a0aec0;
}

/* --- Pagination --- */
.news-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.news-page-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-page-nav li a,
.news-page-nav li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #a0aec0;
    background: rgba(20, 27, 53, 0.6);
    border: 1px solid rgba(91, 127, 255, 0.2);
    transition: all 0.3s ease;
}

.news-page-nav li a:hover,
.news-page-nav li.active span {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: #fff;
    border-color: #5b7fff;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.news-page-nav li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== NEWS DETAIL PAGE ===== */

.news-detail-section {
    background: var(--bg, #0a0e27);
    padding: 100px 0;
    position: relative;
}

.news-detail-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(65, 105, 225, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* --- Featured Image --- */
.news-detail-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(91, 127, 255, 0.15);
}

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

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5b7fff;
    font-weight: 500;
}

.meta-item i {
    font-size: 12px;
}

/* --- Title --- */
.news-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 30px;
}

/* --- Content --- */
.news-detail-content {
    margin-bottom: 40px;
}

.news-detail-content p {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.85;
    margin-bottom: 20px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-detail-content h2 {
    font-size: 28px;
}

.news-detail-content h3 {
    font-size: 22px;
}

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

.news-detail-content blockquote {
    background: rgba(20, 27, 53, 0.6);
    border-left: 4px solid #5b7fff;
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    font-style: italic;
    color: #c0cee0;
}

.news-detail-content ul,
.news-detail-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.news-detail-content li {
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 6px;
}

.news-detail-content a {
    color: #5b7fff;
    text-decoration: underline;
}

.news-detail-content a:hover {
    color: #7b9fff;
}

/* --- Gallery --- */
.news-detail-gallery {
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(91, 127, 255, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Tags --- */
.news-detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(91, 127, 255, 0.15);
}

.tags-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.tag-item {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #5b7fff;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.25);
}

/* --- Share --- */
.news-detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(91, 127, 255, 0.15);
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.25);
    color: #5b7fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-icons a:hover {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: #fff;
    border-color: #5b7fff;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
    transform: translateY(-3px);
}

/* --- Article Navigation --- */
.news-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.news-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(20, 27, 53, 0.6);
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 12px;
    flex: 1;
    transition: all 0.3s ease;
    max-width: 48%;
}

.news-nav-item.next {
    text-align: right;
    justify-content: flex-end;
}

.news-nav-item:hover {
    border-color: #5b7fff;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.2);
    transform: translateY(-3px);
}

.news-nav-item i {
    font-size: 18px;
    color: #5b7fff;
    flex-shrink: 0;
}

.news-nav-item span {
    font-size: 12px;
    color: #5b7fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.news-nav-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

/* ===== SIDEBAR ===== */

.sidebar-widget {
    background: linear-gradient(
        135deg,
        rgba(20, 27, 53, 0.6) 0%,
        rgba(26, 33, 66, 0.4) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(91, 127, 255, 0.15);
}

/* Search */
.sidebar-search {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(91, 127, 255, 0.25);
}

.sidebar-search input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(10, 14, 39, 0.5);
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.sidebar-search input::placeholder {
    color: #a0aec0;
}

.sidebar-search button {
    padding: 12px 18px;
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-search button:hover {
    background: linear-gradient(135deg, #5b7fff 0%, #7b9fff 100%);
}

/* Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid rgba(91, 127, 255, 0.1);
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-categories li a:hover {
    color: #5b7fff;
    padding-left: 8px;
}

.sidebar-categories li a span {
    background: rgba(91, 127, 255, 0.1);
    color: #5b7fff;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* Recent Posts */
.sidebar-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: rgba(91, 127, 255, 0.08);
}

.recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-item:hover .recent-post-info h4 {
    color: #5b7fff;
}

.recent-post-info span {
    font-size: 12px;
    color: #5b7fff;
}

/* Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #a0aec0;
    background: rgba(91, 127, 255, 0.08);
    border: 1px solid rgba(91, 127, 255, 0.2);
    transition: all 0.3s ease;
}

.sidebar-tag:hover {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    color: #fff;
    border-color: #5b7fff;
}

/* --- Related Articles --- */
.related-articles {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(91, 127, 255, 0.15);
    position: relative;
    z-index: 1;
}

.related-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .breadcrumb-wrapper h1 {
        font-size: 36px;
    }

    .news-grid-section {
        padding: 80px 0;
    }

    .news-detail-title {
        font-size: 28px;
    }

    .news-nav {
        flex-direction: column;
    }

    .news-nav-item {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 120px 0 50px;
    }

    .breadcrumb-wrapper h1 {
        font-size: 28px;
    }

    .news-grid-section {
        padding: 60px 0;
    }

    .news-filter-bar {
        margin-bottom: 30px;
    }

    .news-detail-section {
        padding: 60px 0;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-title {
        font-size: 24px;
    }

    .news-card-body {
        padding: 20px;
    }
}
