/* ═══════════════════════════════════════════
   DCER CAPIXABA – PÁGINA DE DOWNLOADS
═══════════════════════════════════════════ */

/* ── Page Hero ── */
.dl-hero {
  background: linear-gradient(135deg, #001a5e 0%, #0047CC 55%, #002F8A 100%);
  padding: 130px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dl-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' fill-rule='evenodd'%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");
}
.dl-hero-tag {
  display: inline-block;
  border: 1.5px solid rgba(245,184,0,.5);
  color: var(--gold);
  font-size: .75rem; font-weight: 700; letter-spacing: 3px;
  padding: 6px 18px; border-radius: 50px;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.dl-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; color: #fff;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.dl-hero h1 span { color: var(--gold); }
.dl-hero > .container > p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 520px; margin: 0 auto 28px;
  position: relative; z-index: 1;
}

/* ── Search Bar ── */
.dl-search {
  display: flex; max-width: 460px; margin: 0 auto;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50px; overflow: hidden;
  position: relative; z-index: 1;
}
.dl-search input {
  flex: 1; padding: 13px 22px;
  background: none; border: none; outline: none;
  color: #fff; font-family: inherit; font-size: .9rem;
}
.dl-search input::placeholder { color: rgba(255,255,255,.5); }
.dl-search button {
  padding: 13px 22px;
  background: var(--gold); color: var(--dark);
  border: none; cursor: pointer;
  font-weight: 700; font-size: .88rem;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s; white-space: nowrap;
}
.dl-search button:hover { background: #ffd000; }

/* ── Stats Bar ── */
.dl-stats-bar {
  background: var(--blue-dark);
  padding: 18px 24px;
}
.dl-stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.dl-stat { text-align: center; color: #fff; }
.dl-stat strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--gold); }
.dl-stat span { font-size: .75rem; opacity: .75; }

/* ── Categories Section ── */
.dl-categories-section { padding: 64px 0 40px; background: #fff; }

.dl-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dl-cat-card {
  background: #fff;
  border: 1.5px solid rgba(0,71,204,.1);
  border-radius: 18px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all .3s;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.dl-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.dl-cat-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ic-music    { background: #fff3e0; color: #f97316; }
.ic-prova    { background: #ede9fe; color: #7c3aed; }
.ic-gabarito { background: #dcfce7; color: #16a34a; }
.ic-livro    { background: #dbeafe; color: #2563eb; }
.ic-reg      { background: #fef9c3; color: #ca8a04; }
.ic-apoio    { background: #fce7f3; color: #db2777; }

.dl-cat-card h3 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.dl-cat-card p  { font-size: .8rem; color: var(--gray); line-height: 1.5; flex: 1; }
.dl-cat-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 700; color: var(--blue);
  background: var(--blue-bg); padding: 4px 11px; border-radius: 50px;
  width: fit-content;
}

/* ── Files Section ── */
.dl-files-section { padding: 20px 0 80px; background: #fff; }

.dl-no-files {
  text-align: center; padding: 64px 20px; color: var(--gray);
}
.dl-no-files i { font-size: 3rem; opacity: .25; margin-bottom: 16px; display: block; }
.dl-no-files p { font-size: .95rem; }

.dl-category-block { margin-bottom: 48px; }
.dl-category-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-bg);
}
.dl-cat-title-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .92rem; flex-shrink: 0;
}
.dl-category-title h3 { font-size: 1rem; font-weight: 700; color: var(--blue); }

.dl-files-list { display: flex; flex-direction: column; gap: 8px; }

.dl-file-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--gray-light);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all .25s;
  border: 1.5px solid transparent;
}
.dl-file-row:hover {
  background: var(--blue-bg);
  border-color: rgba(0,71,204,.15);
}

.dl-file-badge {
  min-width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .5px;
  flex-shrink: 0;
}
.badge-pdf            { background: #fee2e2; color: #dc2626; }
.badge-doc,.badge-docx{ background: #dbeafe; color: #2563eb; }
.badge-xls,.badge-xlsx{ background: #dcfce7; color: #16a34a; }
.badge-mp3            { background: #fff3e0; color: #f97316; }
.badge-zip            { background: #f3f4f6; color: #6b7280; }
.badge-default        { background: var(--blue-bg); color: var(--blue); }

.dl-file-info { flex: 1; min-width: 0; }
.dl-file-info strong {
  display: block; font-size: .9rem; font-weight: 700; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl-file-info span { font-size: .77rem; color: var(--gray); }

.dl-file-size {
  font-size: .78rem; font-weight: 600; color: var(--gray);
  min-width: 60px; text-align: right; flex-shrink: 0;
}

.btn-dl {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--blue); color: #fff;
  font-size: .82rem; font-weight: 700;
  border-radius: 50px;
  transition: all .25s;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.btn-dl:hover { background: var(--blue-dark); transform: scale(1.03); }

/* ── CTA Banner ── */
.dl-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  margin: 0 0 80px;
  position: relative; overflow: hidden;
}
.dl-cta::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: rgba(245,184,0,.08);
  border-radius: 50%;
}
.dl-cta h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
.dl-cta p  { color: rgba(255,255,255,.75); margin-bottom: 24px; font-size: .95rem; position: relative; z-index: 1; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; background: var(--gold); color: var(--dark);
  font-weight: 800; font-size: .9rem; border-radius: 50px;
  transition: all .25s; position: relative; z-index: 1;
  text-decoration: none;
}
.btn-wa:hover { background: #ffd000; transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .dl-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-stats-inner { gap: 28px; }
}
@media (max-width: 600px) {
  .dl-categories-grid { grid-template-columns: 1fr; }
  .dl-file-size { display: none; }
  .dl-cta { padding: 32px 24px; }
  .dl-hero { padding: 110px 16px 56px; }
}
