/* ===================================================================
   NEWS PAGE STYLES — Sigortaniz.net
   Modern news layout with cards, gradients, and responsive design
   =================================================================== */

/* ===== NEWS HERO ===== */
.news-hero {
    padding: calc(var(--header-h) + 80px) 0 64px;
    background: var(--g-mesh);
    position: relative;
    overflow: hidden;
}
.news-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79,70,229,.08), transparent 70%);
    pointer-events: none;
}
.news-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--c-text-primary);
    margin-top: 24px;
    position: relative;
}
.news-hero .gradient-text {
    background: var(--g-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-subtitle {
    font-size: 1.1rem;
    color: var(--c-text-secondary);
    max-width: 600px;
    margin-top: 16px;
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    color: var(--c-text-tertiary);
    position: relative;
}
.breadcrumb a {
    color: var(--c-text-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}
.breadcrumb a:hover {
    color: var(--c-brand);
}
.breadcrumb .current {
    color: var(--c-text-tertiary);
}

/* ===== NEWS GRID ===== */
.news-grid-section {
    padding: 80px 0;
    background: var(--c-bg);
}
.news-grid-section .section-header {
    text-align: center;
    margin-bottom: 56px;
}
.news-grid-section .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-text-primary);
    margin-bottom: 8px;
}
.news-grid-section .section-header p {
    color: var(--c-text-tertiary);
    font-size: 1.05rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: all var(--t-base);
}
.news-card:hover {
    box-shadow: var(--s-lg);
    transform: translateY(-6px);
    border-color: var(--c-border);
}
.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.news-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-base);
}
.news-card:hover .news-image .image-placeholder {
    transform: scale(1.08);
}
.news-image svg {
    width: 48px;
    height: 48px;
    color: white;
    opacity: .6;
}
.news-date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    background: rgba(0,0,0,.6);
    color: white;
    font-size: .75rem;
    font-weight: 600;
    border-radius: var(--r-full);
    backdrop-filter: blur(8px);
}
.gradient-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.gradient-2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.gradient-3 { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-5 { background: linear-gradient(135deg, #ec4899, #db2777); }
.gradient-6 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.news-content {
    padding: 28px;
}
.news-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--c-brand-subtle);
    color: var(--c-brand);
    font-size: .75rem;
    font-weight: 700;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
}
.news-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text-primary);
    line-height: 1.35;
    margin-bottom: 10px;
}
.news-content > p {
    font-size: .9rem;
    color: var(--c-text-tertiary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-brand);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: all var(--t-fast);
}
.news-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-fast);
}
.news-link:hover svg {
    transform: translateX(4px);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}
.page-active, .page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
}
.page-active {
    background: var(--c-brand);
    color: white;
}
.page-link {
    background: var(--c-surface);
    color: var(--c-text-secondary);
    border: 1px solid var(--c-border);
}
.page-link:hover {
    background: var(--c-brand-subtle);
    color: var(--c-brand);
    border-color: var(--c-brand-muted);
}
.page-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--c-surface);
    color: var(--c-text-secondary);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    margin-left: 8px;
}
.page-next svg {
    width: 16px;
    height: 16px;
}
.page-next:hover {
    background: var(--c-brand-subtle);
    color: var(--c-brand);
    border-color: var(--c-brand-muted);
}

/* ===== CTA SECTION ===== */
.news-cta {
    padding: 0 0 120px;
    background: var(--c-bg);
}
.news-cta .cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--g-brand);
    border-radius: var(--r-xl);
    padding: 48px 64px;
    color: white;
    position: relative;
    overflow: hidden;
}
.news-cta .cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .3;
    pointer-events: none;
}
.news-cta .cta-content {
    position: relative;
}
.news-cta .cta-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.news-cta .cta-content p {
    opacity: .85;
    font-size: 1rem;
}
.news-cta .cta-actions {
    display: flex;
    gap: 12px;
    position: relative;
    flex-shrink: 0;
}
.news-cta .btn-primary {
    background: white;
    color: var(--c-brand);
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all var(--t-fast);
    box-shadow: var(--s-md);
}
.news-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--s-lg);
}
.news-cta .btn-primary svg {
    width: 18px;
    height: 18px;
}
.news-cta .btn-secondary {
    background: rgba(255,255,255,.15);
    color: white;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all var(--t-fast);
    border: 1px solid rgba(255,255,255,.25);
}
.news-cta .btn-secondary:hover {
    background: rgba(255,255,255,.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-cta .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }
    .news-cta .cta-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: calc(var(--header-h) + 48px) 0 48px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-grid-section {
        padding: 48px 0;
    }
    .news-cta {
        padding: 0 0 80px;
    }
    .news-cta .cta-box {
        padding: 32px 24px;
        border-radius: var(--r-lg);
    }
    .news-cta .cta-content h2 {
        font-size: 1.4rem;
    }
    .news-cta .btn-primary,
    .news-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .pagination {
        gap: 4px;
    }
    .page-next {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 1.75rem;
    }
}
