/* ═══════════════════════════════════════════════════
   CSIRT.GOV — Public Pages: Documents & News
═══════════════════════════════════════════════════ */

    /* ── DOCUMENTS PAGE ── */
    .docs-hero {
      background: linear-gradient(135deg, #1e3a5f, #2563eb);
      color: #fff;
      padding: 56px 24px 48px;
    }
    .docs-hero-inner { max-width: 1200px; margin: 0 auto; }
    .docs-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
    .docs-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 600px; line-height: 1.7; }

    .docs-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
    .docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }

    .docs-sidebar-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
    .doc-cat-btn {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px;
      border-radius: 8px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--text-secondary);
      text-align: left;
      transition: background 0.15s, color 0.15s;
      width: 100%;
    }
    .doc-cat-btn:hover { background: #f0f4f8; color: var(--text-primary); }
    .doc-cat-btn.active { background: #e8f5ee; color: var(--gov-green); font-weight: 700; }
    .doc-cat-btn .cat-count {
      margin-left: auto;
      background: var(--border);
      color: var(--text-muted);
      font-size: 0.72rem;
      font-weight: 700;
      padding: 1px 7px;
      border-radius: 100px;
      min-width: 22px;
      text-align: center;
    }
    .doc-cat-btn.active .cat-count { background: var(--gov-green); color: #fff; }

    .docs-main-area {}
    .docs-toolbar {
      display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
    }
    .docs-search {
      flex: 1; min-width: 200px;
      padding: 10px 14px 10px 38px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 0.88rem;
      outline: none;
      background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
      transition: border-color 0.2s;
    }
    .docs-search:focus { border-color: var(--accent); }
    .docs-year-filter {
      padding: 10px 14px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 0.88rem;
      outline: none;
      background: var(--bg-white);
      transition: border-color 0.2s;
      cursor: pointer;
    }
    .docs-year-filter:focus { border-color: var(--accent); }

    .docs-grid { display: flex; flex-direction: column; gap: 12px; }
    .doc-item {
      background: var(--bg-white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: box-shadow 0.15s, border-color 0.15s;
    }
    .doc-item:hover { box-shadow: var(--shadow-md); border-color: #c8d8e8; }
    .doc-type-icon {
      width: 44px; height: 52px;
      border-radius: 8px;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      font-size: 1rem; font-weight: 800;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }
    .doc-type-icon.pdf { background: #fef2f2; color: #dc2626; }
    .doc-type-icon.docx { background: #eff6ff; color: #2563eb; }
    .doc-type-icon.xlsx { background: #f0fdf4; color: #16a34a; }
    .doc-type-icon.pptx { background: #fff7ed; color: #ea580c; }
    .doc-type-icon.zip { background: #fefce8; color: #ca8a04; }
    .doc-ext { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.5px; }
    .doc-info { flex: 1; min-width: 0; }
    .doc-info h4 { font-size: 0.93rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .doc-meta { display: flex; gap: 12px; flex-wrap: wrap; }
    .doc-meta span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
    .doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
    .btn-doc-dl {
      padding: 8px 16px;
      background: var(--gov-green);
      color: #fff;
      border: none;
      border-radius: 7px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      font-family: 'Inter', sans-serif;
      white-space: nowrap;
    }
    .btn-doc-dl:hover { background: var(--gov-green-dark); }
    .btn-doc-view {
      padding: 8px 14px;
      background: var(--bg-main);
      color: var(--text-secondary);
      border: 1px solid var(--border);
      border-radius: 7px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      font-family: 'Inter', sans-serif;
    }
    .btn-doc-view:hover { background: #e8edf2; }

    .doc-upload-card {
      background: var(--bg-white);
      border: 2px dashed var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      margin-top: 32px;
      text-align: center;
      transition: border-color 0.2s;
    }
    .doc-upload-card:hover { border-color: var(--accent); }
    .doc-upload-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
    .doc-upload-card p { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 20px; }
    .upload-drop-zone {
      background: var(--bg-main);
      border: 2px dashed #c8d8e8;
      border-radius: var(--radius);
      padding: 32px;
      margin-bottom: 20px;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    .upload-drop-zone:hover { background: #eef6ff; border-color: var(--accent); }
    .upload-drop-zone .drop-icon { font-size: 2.5rem; margin-bottom: 10px; }
    .upload-drop-zone p { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 8px; }
    .upload-drop-zone strong { color: var(--accent); cursor: pointer; }
    .upload-drop-zone .allowed-types { font-size: 0.75rem; color: var(--text-muted); }

    /* ── NEWS PAGE ── */
    .news-hero {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      color: #fff;
      padding: 56px 24px 48px;
      position: relative;
      overflow: hidden;
    }
    .news-hero::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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") repeat;
    }
    .news-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
    .news-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
    .news-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 600px; line-height: 1.7; }

    .news-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }

    .news-filter-bar {
      display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
      background: var(--bg-white);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 8px;
    }
    .news-filter-btn {
      padding: 8px 18px;
      border-radius: 8px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-muted);
      transition: background 0.15s, color 0.15s;
    }
    .news-filter-btn:hover { background: var(--bg-main); color: var(--text-primary); }
    .news-filter-btn.active { background: var(--text-primary); color: #fff; }

    .news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

    /* Featured alert */
    .featured-alert {
      background: linear-gradient(135deg, #7f1d1d, #dc2626);
      color: #fff;
      border-radius: var(--radius-lg);
      padding: 28px;
      margin-bottom: 28px;
      display: flex;
      gap: 20px;
      align-items: flex-start;
      cursor: pointer;
      transition: transform 0.15s;
    }
    .featured-alert:hover { transform: translateY(-2px); }
    .featured-alert-icon { font-size: 2.5rem; flex-shrink: 0; }
    .featured-alert-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(255,255,255,0.2); border-radius: 100px;
      padding: 3px 10px; font-size: 0.72rem; font-weight: 700;
      letter-spacing: 0.5px; margin-bottom: 8px;
    }
    .featured-alert h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; line-height: 1.35; }
    .featured-alert p { font-size: 0.87rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 14px; }
    .featured-alert-meta { display: flex; gap: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.7); }

    .news-list { display: flex; flex-direction: column; gap: 16px; }
    .news-card {
      background: var(--bg-white);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: box-shadow 0.2s, transform 0.15s;
      cursor: pointer;
    }
    .news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
    .news-card-body { padding: 20px 22px; }
    .news-card-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
    .news-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; }
    .news-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
    .news-card-footer { display: flex; justify-content: space-between; align-items: center; }
    .news-card-date { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
    .btn-read-more {
      font-size: 0.82rem; font-weight: 600; color: var(--gov-green);
      background: none; border: none; cursor: pointer;
      font-family: 'Inter', sans-serif;
      display: flex; align-items: center; gap: 4px;
      transition: gap 0.15s;
    }
    .btn-read-more:hover { gap: 8px; }

    .news-sidebar { display: flex; flex-direction: column; gap: 20px; }

    .cve-list { display: flex; flex-direction: column; gap: 10px; }
    .cve-item {
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg-main);
      transition: background 0.15s;
      cursor: pointer;
    }
    .cve-item:hover { background: #eef6ff; }
    .cve-id { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 3px; font-family: monospace; }
    .cve-title { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
    .cve-meta { display: flex; gap: 8px; align-items: center; }
    .cvss-badge {
      font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
    }
    .cvss-critical { background: #fef2f2; color: #dc2626; }
    .cvss-high { background: #fff7ed; color: #ea580c; }
    .cvss-medium { background: #fffbeb; color: #d97706; }

    .news-modal-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 500;
      align-items: center; justify-content: center;
      padding: 24px;
    }
    .news-modal-overlay.open { display: flex; }
    .news-modal {
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      max-width: 720px; width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      box-shadow: var(--shadow-lg);
    }
    .news-modal-img {
      display: block; width: 100%; max-height: 320px; object-fit: cover;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .news-modal-header {
      padding: 24px 28px 0;
      position: sticky; top: 0;
      background: var(--bg-white);
      border-bottom: 1px solid var(--border);
      padding-bottom: 16px;
      display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    }
    .news-modal-header h2 { font-size: 1.15rem; font-weight: 800; line-height: 1.35; }
    .modal-close {
      width: 32px; height: 32px; border-radius: 8px;
      background: var(--bg-main); border: none; cursor: pointer;
      font-size: 1rem; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }
    .modal-close:hover { background: var(--border); }
    .news-modal-body { padding: 24px 28px; }
    .news-modal-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
    .news-modal-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin: 20px 0 8px; }
    .news-modal-body ul { list-style: none; padding: 0; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
    .news-modal-body ul li { font-size: 0.88rem; color: var(--text-secondary); padding-left: 18px; position: relative; line-height: 1.6; }
    .news-modal-body ul li::before { content: '›'; position: absolute; left: 0; color: var(--gov-green); font-weight: 700; }

    @media (max-width: 900px) {
      .docs-layout { grid-template-columns: 1fr; }
      .docs-sidebar-nav { flex-direction: row; flex-wrap: wrap; position: static; }
      .news-layout { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      .doc-item { flex-wrap: wrap; }
      .doc-actions { width: 100%; }
      .featured-alert { flex-direction: column; gap: 12px; }
    }

