/* ==========================================
   NIS2Have News Page
   Hero styling from styles.css (.hero, .hero-content, .hero-badge, .hero h1, .description)
   Only news-specific additions below.
   ========================================== */

/* CTA Banner */
.news-cta-banner {
    background: var(--brand-navy);
    padding: 0 40px;
}
.news-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.news-cta-text { color: var(--white); }
.news-cta-text strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.news-cta-text span { font-size: 0.9rem; opacity: 0.8; }
.news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--brand-teal);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}
.news-cta-btn:hover {
    background: var(--brand-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(131,159,159,0.3);
}

/* Articles Section */
.news-section {
    padding: 60px 40px 40px;
    background: var(--gray-50);
}

/* Tile Grid */
.news-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Article Tile */
.news-tile {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 2px 12px rgba(66,83,105,0.05);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.news-tile:hover {
    box-shadow: 0 8px 28px rgba(66,83,105,0.1);
    border-color: var(--brand-teal);
    transform: translateY(-2px);
}
.news-tile.active {
    grid-column: 1 / -1;
    cursor: default;
    border-color: var(--brand-teal);
    box-shadow: 0 8px 32px rgba(66,83,105,0.1);
    transform: none;
}

/* Tile Meta */
.news-tile-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.news-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-urgent     { background: rgba(231,76,60,0.1);   color: var(--critical-red); }
.tag-de         { background: rgba(66,83,105,0.1);    color: var(--brand-navy); }
.tag-eu         { background: rgba(131,159,159,0.15); color: var(--brand-teal-dark); }
.tag-at         { background: rgba(231,76,60,0.08);   color: #c0392b; }
.tag-pl         { background: rgba(220,50,50,0.08);   color: #b71c1c; }
.tag-nl         { background: rgba(255,140,0,0.1);    color: #e65100; }
.tag-be         { background: rgba(253,216,53,0.15);  color: #7b6200; }
.tag-compliance { background: rgba(39,174,96,0.1);    color: var(--low-green); }
.tag-cyber      { background: rgba(52,73,94,0.1);     color: #2c3e50; }
.tag-sectors    { background: rgba(131,159,159,0.12); color: var(--brand-teal-dark); }
.tag-tool       { background: rgba(131,159,159,0.15); color: var(--brand-teal-dark); }
.tag-default    { background: var(--gray-100);         color: var(--gray-600); }

.news-tile-meta time { font-size: 0.8rem; color: var(--gray-500); }
.news-tile-meta .news-read-time { font-size: 0.75rem; color: var(--gray-400); }

/* Tile Title */
.news-tile h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.4;
    margin: 0;
    padding-right: 28px;
}

/* Chevron */
.news-tile-chevron {
    position: absolute;
    top: 28px;
    right: 24px;
    width: 24px;
    height: 24px;
    color: var(--brand-teal);
    transition: transform 0.3s ease;
}
.news-tile.active .news-tile-chevron { transform: rotate(180deg); }

/* Expandable body – always in DOM for SEO */
.news-tile-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.news-tile.active .news-tile-body {
    max-height: 3000px;
    opacity: 1;
    margin-top: 20px;
}

/* Article Body Content */
.news-article-body {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 0.95rem;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.news-article-body p { margin-bottom: 14px; }
.news-article-body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 24px 0 10px;
}
.news-article-body strong { color: var(--brand-navy); }
.news-article-body a {
    color: var(--brand-teal-dark);
    text-decoration: underline;
    text-decoration-color: var(--brand-teal);
    text-underline-offset: 2px;
}
.news-article-body a:hover { color: var(--brand-teal); }

/* Article Links */
.news-article-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.news-article-links strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 600;
}
.news-article-links ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.news-article-links li a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-teal-bg);
    border: 1px solid rgba(131,159,159,0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--brand-teal-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}
.news-article-links li a:hover {
    background: var(--brand-teal);
    color: var(--white);
    border-color: var(--brand-teal);
}

/* Bottom CTA */
.news-bottom-cta {
    padding: 60px 40px;
    background: var(--brand-teal-bg);
    text-align: center;
}
.news-bottom-inner { max-width: 500px; margin: 0 auto; }
.news-bottom-cta h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 20px;
}
.news-bottom-cta .news-cta-btn { display: inline-flex; }

/* Teaser Card (overview page) */
.news-teaser-card {
    cursor: default;
    display: flex;
    flex-direction: column;
}
.news-teaser-card:hover {
    transform: translateY(-2px);
}
.news-teaser-link {
    color: var(--brand-navy);
    text-decoration: none;
}
.news-teaser-link:hover { color: var(--brand-teal-dark); }

.news-teaser-text {
    margin: 10px 0 16px;
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex-grow: 1;
}
.news-teaser-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-teal-dark);
    text-decoration: none;
    margin-top: auto;
}
.news-teaser-readmore:hover { color: var(--brand-teal); }
.news-teaser-readmore svg { flex-shrink: 0; }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .news-cta-banner { padding: 0 20px; }
    .news-cta-inner { flex-direction: column; text-align: center; padding: 20px 0; }
    .news-section { padding: 40px 16px 24px; }
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .news-tile { padding: 24px 24px 20px; border-radius: 14px; }
    .news-tile h2 { font-size: 1.05rem; }
    .news-bottom-cta { padding: 48px 20px; }
    .news-bottom-cta h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .news-tile { padding: 20px 18px 18px; }
    .news-tile h2 { font-size: 1rem; padding-right: 24px; }
    .news-tile-chevron { top: 20px; right: 16px; width: 20px; height: 20px; }
    .news-article-body { font-size: 0.9rem; }
    .news-tile-meta { gap: 8px; }
}
.tag-it { background: rgba(0,140,69,0.1);   color: #006635; }
.tag-es { background: rgba(200,16,46,0.08); color: #c0102e; }
