/* News List (Vertical Timeline) + Detail Page — fixed dark-tech layout */

/* ============ List Page Hero ============ */
.news-hero {
    position: relative;
    height: 60vh;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.72) 0%, rgba(10, 14, 26, 0.55) 45%, rgba(10, 14, 26, 0.92) 100%);
}

.news-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.news-crumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.news-crumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-crumb a:hover {
    color: #1f8cff;
}

.news-crumb .separator {
    color: #1f8cff;
}

.news-hero-title {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.news-hero-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

/* ============ Vertical Timeline ============ */
.news-timeline-section {
    background: #0a0e1a;
    padding: 5rem 0 6rem;
}

.news-timeline {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    padding-left: 150px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    text-decoration: none;
}

.timeline-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* vertical connector line */
.news-timeline::before {
    content: '';
    position: absolute;
    left: 128px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(31, 140, 255, 0.5), rgba(31, 140, 255, 0.08));
}

/* date block (left column) */
.timeline-date {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: 28px;
}

.timeline-month {
    color: #1f8cff;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.timeline-year {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* body column */
.timeline-body {
    min-width: 0;
}

.timeline-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-title {
    color: #1f8cff;
}

.timeline-excerpt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* thumbnail column (right) */
.timeline-thumb {
    width: 300px;
    height: 169px; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d2440 0%, #0a0e1a 100%);
}

.timeline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover .timeline-thumb img {
    transform: scale(1.06);
}

.timeline-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90d9;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* pagination (left aligned, older link) */
.news-timeline-pagination {
    margin-top: 40px;
    padding-left: 150px;
    text-align: left;
}

.older-link {
    color: #1f8cff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.older-link:hover {
    color: #ffffff;
}

/* empty state */
.no-posts {
    text-align: center;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ============ Detail Page ============ */
.news-detail {
    background: #0a0e1a;
}

.news-detail-container {
    max-width: 880px;
    padding: 8rem 20px 6rem;
}

.news-detail-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 40px;
}

.news-detail-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.news-detail-crumb a {
    color: #1f8cff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-detail-crumb a:hover {
    color: #ffffff;
}

.news-detail-crumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.news-detail-date {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.news-detail-title {
    color: #ffffff;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}

.news-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 44px;
    background: linear-gradient(135deg, #0d2440 0%, #0a0e1a 100%);
}

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

.news-detail-body {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.9;
}

.news-detail-body p {
    margin-bottom: 1.6rem;
}

.news-detail-body h2,
.news-detail-body h3 {
    color: #ffffff;
    margin: 2rem 0 1rem;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.news-detail-cta {
    text-align: center;
    margin-top: 56px;
}

.btn-get-quote {
    display: inline-block;
    padding: 15px 44px;
    background: #1f8cff;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.35s ease;
}

.btn-get-quote:hover {
    background: #0a4fb0;
    box-shadow: 0 14px 40px rgba(0, 102, 255, 0.4);
    color: #ffffff !important;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .news-timeline {
        padding-left: 0;
    }

    .news-timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .timeline-date {
        text-align: left;
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
        padding-right: 0;
    }

    .timeline-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-timeline-pagination {
        padding-left: 0;
    }
}