/* ===========================================================
   ARINZE MBAGWU CAPSTONE PORTFOLIO – DESIGN SYSTEM
   Royal black & gold. WCAG 2.1 AA contrast. Mobile-first.
   =========================================================== */

:root {
  --gold:        #C9A962;
  --gold-bright: #D4AF37;
  --gold-light:  #E8D5A3;
  --gold-dark:   #8B7355;
  --gold-deep:   #6B5430;
  --black:       #0A0A0A;
  --black-soft:  #111111;
  --black-card:  #161616;
  --black-glass: rgba(22, 22, 22, 0.65);
  --cream:       #F5F0E8;
  --text:        #EDEDED;
  --text-dim:    #9A9A9A;
  --text-faint:  #6E6E6E;
  --burgundy:    #800020;
  --burgundy-bright: #A8002A;
  --success:     #2e7d32;
  --success-bright: #4caf50;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --gold-gradient: linear-gradient(90deg,
                    transparent 0%,
                    var(--gold-dark) 20%,
                    var(--gold-bright) 50%,
                    var(--gold-dark) 80%,
                    transparent 100%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--gold); color: var(--black); }
a { color: var(--gold); text-decoration: none; transition: all 0.3s var(--ease); }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; display: block; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 clamp(16px, 4vw, 48px); height: 100px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.10);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 110px; filter: drop-shadow(0 2px 14px rgba(201, 169, 98, 0.3)); }
.nav-logo-text { font-size: 24px; font-weight: 700; color: var(--cream); line-height: 1.2; }
.nav-logo-text small { display: block; font-size: 14px; font-weight: 400; color: var(--text-dim); letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 2px; align-items: center; list-style: none; }
.nav-links a {
  color: rgba(237, 237, 237, 0.72); font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em; padding: 9px 14px; border-radius: 8px;
  transition: all 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: rgba(201, 169, 98, 0.08);
}
.hamburger {
  display: none; background: none; border: none; color: var(--cream);
  font-size: 22px; cursor: pointer; padding: 8px 12px; border-radius: 8px;
}
.mob {
  display: none; position: fixed; top: 100px; left: 0; right: 0;
  background: rgba(16, 16, 16, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
  padding: 12px 16px; z-index: 999; flex-direction: column; gap: 2px;
}
.mob.open { display: flex; }
.mob a { color: var(--text); padding: 14px 18px; border-radius: 10px; font-size: 16px; font-weight: 500; }
.mob a:hover { background: rgba(201, 169, 98, 0.06); color: var(--gold); }

/* ============ ORNAMENTS / ROYAL ACCENTS ============ */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 1.6rem auto 1.5rem; max-width: 360px;
  color: var(--gold); font-size: 1rem;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: var(--gold-gradient);
}
.ornament-mark { font-size: 1.4rem; line-height: 1; }
.gold-rule {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin: 0 auto 1.5rem;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(201, 169, 98, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(201, 169, 98, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(128, 0, 32, 0.04) 0%, transparent 60%),
    var(--black);
}
.hero-content { max-width: 760px; position: relative; z-index: 2; }
.hero-photo {
  width: 240px; height: 240px; border-radius: 50%;
  object-fit: cover; object-position: center 20%;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 60px rgba(201, 169, 98, 0.25),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  margin: 0 auto 2rem;
  animation: fadeUp 1s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600;
  color: var(--cream); margin-bottom: 0.3rem; letter-spacing: -0.01em;
  animation: fadeUp 1s var(--ease) 0.1s both;
}
.hero .degree {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 1rem); font-weight: 500;
  color: var(--gold-light); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s var(--ease) 0.2s both;
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-style: italic;
  color: var(--gold-light); max-width: 600px; margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeUp 1s var(--ease) 0.4s both;
}
.hero .school {
  font-size: 1rem; color: var(--text-dim); margin-bottom: 0.3rem;
  animation: fadeUp 1s var(--ease) 0.5s both;
}
.hero-stats {
  display: flex; justify-content: center; gap: clamp(20px, 4vw, 60px);
  margin-top: 2.5rem;
  animation: fadeUp 1s var(--ease) 0.6s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600; color: var(--gold-bright);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.72rem; color: var(--text-dim);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-top: 6px;
}

/* ============ SECTION CARDS (HOME ENTRY POINTS) ============ */
.sections {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 5% 100px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.section-card {
  background: linear-gradient(145deg, var(--black-card) 0%, var(--black-soft) 100%);
  border: 1px solid rgba(201, 169, 98, 0.13);
  border-radius: 16px; padding: 48px 32px;
  text-align: center;
  transition: all 0.35s var(--ease);
  cursor: pointer; text-decoration: none; display: block;
  position: relative; overflow: hidden;
}
.section-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(201, 169, 98, 0.06), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.section-card:hover::before { opacity: 1; }
.section-card:hover {
  border-color: rgba(201, 169, 98, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(201, 169, 98, 0.15);
}
.section-card .icon {
  font-size: 2.6rem;
  margin: 0 auto 1.2rem;
  position: relative;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: radial-gradient(circle at center, rgba(201, 169, 98, 0.12), transparent 70%);
  border-radius: 50%;
  transition: color 0.3s var(--ease);
}
.section-card:hover .icon { color: var(--gold-bright); }
.section-card .icon svg { display: block; }
.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600;
  color: var(--cream); margin-bottom: 0.6rem; position: relative;
}
.section-card p { font-size: 1rem; color: var(--text-dim); line-height: 1.65; position: relative; }
.section-card .count {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 20px; position: relative;
}

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 130px 5% 50px; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 98, 0.06) 0%, transparent 60%),
    var(--black);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600;
  color: var(--cream); margin-bottom: 0.6rem;
}
.page-header p {
  font-size: 1.05rem; color: var(--text-dim); max-width: 640px; margin: 0 auto;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 1.5rem; font-size: 0.95rem; font-weight: 500;
  color: var(--gold);
  padding: 8px 18px; border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 8px; transition: all 0.25s var(--ease);
}
.back-btn:hover {
  background: rgba(201, 169, 98, 0.1); border-color: var(--gold);
}

/* ============ COMPONENT CARDS ============ */
.components {
  max-width: 920px; margin: 0 auto;
  padding: 30px 5% 80px;
  display: flex; flex-direction: column; gap: 22px;
}
.comp-card {
  background: var(--black-card);
  border: 1px solid rgba(201, 169, 98, 0.10);
  border-left: 3px solid var(--gold-dark);
  border-radius: 14px; padding: 30px 34px;
  transition: all 0.3s var(--ease); display: block;
  scroll-margin-top: 120px;
}
.comp-card:hover {
  border-color: rgba(201, 169, 98, 0.3);
  border-left-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.comp-card .comp-num {
  font-size: 0.85rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 6px;
}
.comp-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600; color: var(--cream); margin-bottom: 10px;
}
.comp-card .comp-desc {
  font-size: 1rem; color: var(--text-dim);
  line-height: 1.65; margin-bottom: 14px;
}
.comp-card .comp-status {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 12px;
}
.status-done {
  background: rgba(46, 125, 50, 0.15); color: var(--success-bright);
  border: 1px solid rgba(46, 125, 50, 0.35);
}
.status-pending {
  background: rgba(201, 169, 98, 0.12); color: var(--gold-dark);
  border: 1px solid rgba(201, 169, 98, 0.25);
}
.comp-card .btn {
  display: inline-block; margin-top: 10px; margin-right: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--gold);
  padding: 7px 18px; border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 8px; transition: all 0.25s var(--ease);
}
.comp-card .btn:hover {
  background: rgba(201, 169, 98, 0.1); border-color: var(--gold);
}
.comp-card .btn-primary {
  background: var(--gold); color: var(--black);
  border-color: var(--gold);
}
.comp-card .btn-primary:hover {
  background: var(--gold-bright); color: var(--black);
}

/* Article list inside a comp-card */
.article-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.article-list a {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--black-soft);
  border: 1px solid rgba(201, 169, 98, 0.10);
  border-radius: 10px; padding: 12px 18px;
  font-size: 0.95rem; color: var(--text);
  transition: all 0.25s var(--ease);
}
.article-list a:hover {
  border-color: rgba(201, 169, 98, 0.4);
  background: rgba(201, 169, 98, 0.04);
  color: var(--gold);
}
.article-list span {
  font-size: 0.75rem; color: var(--gold);
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; padding-left: 12px;
}

/* ============ TEACHING VIDEO BLOCK (Component IV) ============ */
.video-block {
  background: var(--black-soft);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: 12px;
  padding: 22px;
  margin-top: 16px;
}
.video-block h4 {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--gold-light);
  margin-bottom: 4px;
  display: flex; align-items: center;
}
.video-block h4 .icn { color: var(--gold); flex-shrink: 0; }
.video-artifacts a .icn { color: var(--gold); }
.doc-icon .icn { color: var(--gold); }
.video-block .video-meta {
  font-size: 0.85rem; color: var(--text-dim);
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.video-frame {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 10px; margin-bottom: 14px;
  border: 1px solid rgba(201, 169, 98, 0.12);
  background: #000;
}
.video-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.video-artifacts {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.video-artifacts a {
  font-size: 0.85rem; font-weight: 500; color: var(--gold);
  padding: 6px 14px; border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 8px;
}
.video-artifacts a:hover {
  background: rgba(201, 169, 98, 0.08); border-color: var(--gold);
}

/* ============ MATRIX / PORTFOLIO TREE ============ */
.matrix-controls {
  max-width: 1200px; margin: 0 auto;
  padding: 0 5% 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.matrix-filter {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 20px;
  background: var(--black-card);
  color: var(--text-dim);
  border: 1px solid rgba(201, 169, 98, 0.2);
  cursor: pointer; transition: all 0.25s var(--ease);
}
.matrix-filter:hover { color: var(--gold); border-color: var(--gold); }
.matrix-filter.active {
  color: var(--black); background: var(--gold); border-color: var(--gold);
}
.matrix {
  max-width: 1200px; margin: 0 auto;
  padding: 0 5% 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.matrix-card {
  background: var(--black-card);
  border: 1px solid rgba(201, 169, 98, 0.10);
  border-radius: 12px; padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
  min-height: 200px;
}
.matrix-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.matrix-card .roman {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 600;
  color: var(--gold-bright); line-height: 1;
}
.matrix-card .title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--cream); line-height: 1.3;
}
.matrix-card .meta {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.5; flex: 1;
}
.matrix-card .tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.matrix-card .tag {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 10px;
  background: rgba(201, 169, 98, 0.10);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.18);
}
.matrix-card .tag.tag-teach {
  background: rgba(128, 0, 32, 0.18); color: #E8A8B5;
  border-color: rgba(128, 0, 32, 0.4);
}
.matrix-card .tag.tag-acad {
  background: rgba(46, 125, 50, 0.15); color: var(--success-bright);
  border-color: rgba(46, 125, 50, 0.35);
}
.matrix-card .tag.tag-foundation {
  background: rgba(201, 169, 98, 0.18); color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.4);
}

/* ============ ABOUT / CONTENT PAGES ============ */
.about-container, .content {
  max-width: 800px; margin: 0 auto;
  padding: 130px 5% 80px;
}
.about-header { text-align: center; margin-bottom: 3rem; }
.about-photo {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; object-position: center 20%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px rgba(201, 169, 98, 0.2);
  margin: 0 auto 1.5rem;
}
.about-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; color: var(--cream); margin-bottom: 0.4rem;
}
.about-header .subtitle { color: var(--text-dim); font-size: 1.05rem; }
.about-body p {
  font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 1.4rem; color: var(--text);
}
.about-body p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.2rem;
  font-weight: 600; color: var(--gold-bright);
  float: left; line-height: 0.9; padding: 8px 12px 0 0;
}

.docs { margin-top: 3.5rem; }
.docs h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; color: var(--cream);
  margin-bottom: 1.2rem; text-align: center;
}
.doc-link {
  display: flex; gap: 16px; align-items: center;
  background: var(--black-card);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: 12px; padding: 18px 22px;
  margin-bottom: 14px;
  transition: all 0.3s var(--ease);
  color: var(--text);
}
.doc-link:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.04);
  color: var(--text);
}
.doc-icon {
  font-size: 2rem;
  flex-shrink: 0; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201, 169, 98, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.18);
}
.doc-info h4 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; color: var(--gold-light);
  margin-bottom: 4px;
}
.doc-info p { font-size: 0.9rem; color: var(--text-dim); }

.content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--cream); margin-bottom: 1rem;
}
.content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--gold-light);
  margin: 2rem 0 1rem;
}
.content p { margin-bottom: 1rem; line-height: 1.8; }
.content ul { padding-left: 24px; margin-bottom: 1rem; }
.content li { margin-bottom: 0.6rem; }

/* ============ FOOTER ============ */
.footer {
  text-align: center; padding: 50px 5% 40px;
  border-top: 1px solid rgba(201, 169, 98, 0.10);
  color: var(--text-dim); font-size: 0.88rem;
  background: var(--black-soft);
}
.footer a { color: var(--gold-dark); }
.footer a:hover { color: var(--gold); }
.footer .links {
  margin-bottom: 14px;
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
}
.footer .legal {
  margin-top: 12px;
  font-size: 0.78rem; color: var(--text-faint);
}
.footer .legal a { color: var(--text-faint); margin: 0 6px; }
.footer .legal a:hover { color: var(--gold); }

/* ============ FLOATING BUTTONS ============ */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  background: var(--gold); color: var(--black);
  border: none; border-radius: 50%;
  font-size: 22px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease);
  z-index: 900;
}
.scroll-top:hover { background: var(--gold-bright); transform: scale(1.1); }
.scroll-top.show { display: flex; }
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease);
  z-index: 900; text-decoration: none;
}
.whatsapp-btn:hover { background: #20bd5a; transform: scale(1.1); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: white; }

/* ============ PDF MODAL VIEWER ============ */
.pdf-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(8px, 2vw, 28px);
}
.pdf-modal.is-open { display: flex; }
.pdf-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pdf-modal-shell {
  position: relative; z-index: 1;
  width: min(1100px, 100%);
  height: min(94vh, 100%);
  background: var(--black-card);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(201, 169, 98, 0.15);
  display: flex; flex-direction: column; overflow: hidden;
  animation: fadeUp 0.25s var(--ease);
}
.pdf-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.08), transparent);
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
  flex-shrink: 0;
}
.pdf-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-right: 16px; flex: 1;
}
.pdf-modal-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.pdf-modal-newtab,
.pdf-modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--gold);
  font-size: 1.2rem;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: all 0.2s var(--ease);
}
.pdf-modal-newtab:hover,
.pdf-modal-close:hover {
  background: var(--gold); color: var(--black); border-color: var(--gold);
}
.pdf-modal-close { font-size: 1.6rem; line-height: 1; padding-bottom: 3px; }
.pdf-modal-frame-wrap {
  flex: 1; background: #1a1a1a;
  position: relative; overflow: hidden;
}
.pdf-modal-frame {
  width: 100%; height: 100%; border: 0;
  background: #1a1a1a;
}
@media (max-width: 600px) {
  .pdf-modal { padding: 4px; }
  .pdf-modal-shell { height: 96vh; border-radius: 8px; }
  .pdf-modal-title { font-size: 0.95rem; }
  .pdf-modal-newtab, .pdf-modal-close { width: 34px; height: 34px; }
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .nav { height: 80px; }
  .nav-logo img { height: 70px; }
  .nav-logo-text { font-size: 19px; }
  .nav-logo-text small { font-size: 12px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mob { top: 80px; }
  .hero { padding: 100px 5% 60px; min-height: auto; }
  .hero-photo { width: 170px; height: 170px; margin-bottom: 1.4rem; }
  .hero-stats { gap: 24px; }
  .sections { grid-template-columns: 1fr; padding: 50px 5% 70px; }
  .section-card { padding: 36px 26px; }
  .components { padding: 24px 5% 60px; }
  .comp-card { padding: 22px 22px; }
  .matrix { grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 60px; }
  .matrix-card { min-height: 170px; padding: 16px; }
  .matrix-card .roman { font-size: 1.7rem; }
  .matrix-card .title { font-size: 1rem; }
  .about-container, .content { padding: 100px 5% 60px; }
  .page-header { padding: 100px 5% 30px; }
  .scroll-top { width: 42px; height: 42px; font-size: 18px; bottom: 24px; left: 16px; }
  .whatsapp-btn { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .whatsapp-btn svg { width: 26px; height: 26px; }
  .footer .links { flex-direction: column; gap: 10px; }
  .article-list a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .article-list span { padding-left: 0; }
}
@media (max-width: 480px) {
  .matrix { grid-template-columns: 1fr; }
}
