:root {
    --primary: #174751;
    --primary-light: #e8f4f6;
    --accent: #2a7a8f;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 16px rgba(23,71,81,0.10);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f1f5f9;
    color: var(--text);
    min-height: 100vh;
}

/* ── HERO ── */
.hero {
    background: var(--primary);
    color: white;
    padding: 48px 24px 40px;
    text-align: center;
}

.hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: .5px; margin-bottom: 8px; }
.hero p { font-size: 1rem; opacity: .75; max-width: 540px; margin: 0 auto; }

/* ── LAYOUT ── */
main {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px 60px;
    display: grid;
    gap: 32px;
}

/* ── SECTION CARD ── */
.section-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-card .card-header {
    background: var(--primary-light);
    border-bottom: 3px solid var(--primary);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header .icon { font-size: 1.4rem; line-height: 1; }
.card-header h2 { font-size: 1.05rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.card-header p { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.file-list { list-style: none; padding: 8px 0; }
.file-list li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    text-decoration: none; color: var(--text); font-size: .92rem;
    transition: background .15s; border-bottom: 1px solid var(--border);
}
.file-list li:last-child a { border-bottom: none; }
.file-list li a:hover { background: var(--primary-light); color: var(--primary); }

.file-icon { font-size: 1.25rem; flex-shrink: 0; }
.file-info { flex: 1; }
.file-name { font-weight: 600; }

.badge-type {
    font-size: .68rem; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; text-transform: uppercase; flex-shrink: 0;
}
.badge-pdf  { background: #fee2e2; color: #dc2626; }
.badge-docx { background: #ede9fe; color: #7c3aed; }
.badge-pptx { background: #fef3c7; color: #d97706; }
.badge-other { background: #f1f5f9; color: #64748b; }

/* ── MODAL VIEWER ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15,23,42,.72); z-index: 1000;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: white; border-radius: 14px;
    width: 92vw; max-width: 940px; height: 88vh;
    display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.modal-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-bottom: 2px solid var(--border);
    background: var(--primary-light); flex-shrink: 0;
}
.modal-title {
    flex: 1; font-weight: 700; font-size: .93rem; color: var(--primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-btn {
    background: var(--primary); color: white; border: none;
    border-radius: 6px; padding: 6px 14px; font-size: .8rem;
    font-weight: 600; cursor: pointer; text-decoration: none;
}
.modal-btn.close-btn { background: #64748b; }
.modal-body { flex: 1; overflow: auto; position: relative; }
.modal-body iframe { width: 100%; height: 100%; border: none; display: block; }

footer { text-align: center; color: var(--muted); font-size: .8rem; padding-bottom: 30px; }
