/* News Page Premium Dark-Tech Styles */

/* Page Header (dark tech hero) */
.page-header {
    background: linear-gradient(180deg, #182548 0%, #16224a 60%, #121f40 100%);
    padding: 220px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 40%, rgba(0, 102, 255, 0.08) 0%, transparent 40%);
}

.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.35), transparent);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #c4d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #ffffff;
}

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

.breadcrumb a:hover {
    color: #1f8cff;
}

.breadcrumb .separator {
    color: #1f8cff;
}

/* Main Section */
.news-page-section,
.page-news section,
.section.section-light {
    background: #121f40;
    padding: 7rem 0;
    position: relative;
}

.news-page-section::before,
.section.section-light::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.2), transparent);
}

/* Section Header */
.news-page-section .section-header,
.section.section-light .section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.news-page-section .section-header .section-subtitle,
.section.section-light .section-header .section-subtitle {
    color: #1f8cff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-page-section .section-header h2,
.section.section-light .section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.news-page-section .section-header > p,
.section.section-light .section-header > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(145deg, rgba(26, 30, 45, 0.6), rgba(15, 18, 30, 0.8));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 102, 255, 0.2), 0 0 40px rgba(0, 102, 255, 0.1);
    border-color: rgba(255,255,255,0.14);
}

.news-card:hover::before {
    opacity: 1;
}

.news-image {
    height: 210px;
    overflow: hidden;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d2440 100%);
    color: #4a90d9;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

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

.news-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.news-meta time {
    color: rgba(255, 255, 255, 0.9);
}

.news-category {
    color: #1f8cff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 12px;
}

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

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

.news-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f8cff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
    padding-top: 4px;
}

.read-more:hover {
    color: #ffffff;
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 42px;
    text-align: center;
}

.pagination a {
    background: rgba(26, 30, 45, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.16);
    text-decoration: none;
}

.pagination a:hover,
.pagination .current {
    background: #1f8cff;
    color: #ffffff;
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.35);
}

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

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 180px 0 60px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}