/* ============================================================
   Guarulhos Digital — portal.css
   Bootstrap 3 + Font Awesome 4 via CDN
============================================================ */

/* ── Topbar ──────────────────────────────────────────── */
.gd-topbar { background:#111; color:#aaa; font-size:12px; padding:5px 0; }
.gd-topbar a { color:#aaa; margin-left:14px; text-decoration:none; }
.gd-topbar a:hover { color:#fff; }
.gd-topbar .social a { font-size:15px; }

/* ── Header ──────────────────────────────────────────── */
.gd-header { background:#fff; padding:14px 0; border-bottom:1px solid #eee; }
.gd-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.gd-logo-icon { background:#e63946; color:#fff; width:36px; height:36px;
  border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:17px; }
.gd-logo-name { font-size:22px; font-weight:900; color:#111; letter-spacing:-.03em; line-height:1; }
.gd-logo-name span { color:#e63946; }
.gd-logo-sub { font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:#888; margin-top:2px; }

/* ── Navigation ──────────────────────────────────────── */
.gd-nav { background:#fff; border-top:1px solid #eee; border-bottom:1px solid #eee;
  position:sticky; top:0; z-index:500; box-shadow:0 2px 6px rgba(0,0,0,.05); }
.gd-nav ul.nav { display:flex; flex-wrap:nowrap; overflow-x:auto; margin:0;
  scrollbar-width:none; }
.gd-nav ul.nav::-webkit-scrollbar { display:none; }
.gd-nav .nav > li > a { font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:#333 !important; padding:15px 13px;
  border-bottom:3px solid transparent; transition:color .15s, border-color .15s; }
.gd-nav .nav > li > a:hover,
.gd-nav .nav > li.active > a { color:#e63946 !important; border-bottom-color:#e63946; background:transparent !important; }
.gd-nav .dropdown-menu { border:none; border-top:3px solid #e63946;
  border-radius:0 0 4px 4px; box-shadow:0 6px 20px rgba(0,0,0,.1); min-width:190px; }
.gd-nav .dropdown-menu > li > a { font-size:12px; font-weight:600; color:#333; padding:9px 16px; }
.gd-nav .dropdown-menu > li > a:hover { color:#e63946; background:#f9f9f9; }
.gd-nav-icons { display:flex; align-items:center; gap:4px; padding:9px 0; flex-shrink:0; }
.gd-nav-icons a { width:32px; height:32px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; color:#666; border:1px solid #eee; text-decoration:none; font-size:13px; }
.gd-nav-icons a:hover { color:#e63946; border-color:#e63946; }

/* ── Footer ──────────────────────────────────────────── */
.gd-footer { background:#111; color:#888; padding:32px 0 16px; margin-top:40px; }
.gd-footer-logo { font-size:20px; font-weight:900; color:#fff; margin-bottom:8px; }
.gd-footer-logo span { color:#e63946; }
.gd-footer p { font-size:13px; }
.gd-footer-title { font-size:11px; font-weight:800; text-transform:uppercase;
  letter-spacing:.1em; color:#fff; border-bottom:1px solid #333; padding-bottom:8px; margin-bottom:12px; }
.gd-footer a { color:#888; font-size:13px; text-decoration:none; display:block; margin-bottom:4px; }
.gd-footer a:hover { color:#e63946; }
.gd-footer-bottom { border-top:1px solid #222; padding-top:14px; margin-top:24px;
  text-align:center; font-size:12px; }
.gd-footer-social a { color:#666; font-size:18px; margin-left:14px; }
.gd-footer-social a:hover { color:#e63946; }

/* ── Hero grid (home) ────────────────────────────────── */
.hero-grid { display:flex; gap:6px; margin-bottom:32px; }
.hero-main { position:relative; flex:0 0 63%; height:480px; overflow:hidden;
  display:block; text-decoration:none; background:#111; border-radius:4px; }
.hero-side { flex:1; display:flex; flex-direction:column; gap:6px; }
.hero-side-card { position:relative; flex:1; overflow:hidden;
  display:block; text-decoration:none; background:#111; border-radius:4px; }
.hero-main img, .hero-side-card img { position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.75; transition:opacity .3s, transform .4s; }
.hero-main:hover img, .hero-side-card:hover img { opacity:.55; transform:scale(1.03); }
.hero-overlay { position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 55%, transparent 80%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:18px; }
.hero-feat-badge { background:#e63946; color:#fff; font-size:11px; font-weight:800;
  text-transform:uppercase; letter-spacing:.08em; padding:3px 8px; border-radius:2px;
  display:inline-block; margin-bottom:8px; align-self:flex-start; }
.hero-title { color:#fff; font-size:20px; font-weight:800; line-height:1.25; margin:0 0 8px; }
.hero-side-card .hero-title { font-size:14px; }
.hero-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hero-cat-badge { background:#1a56db; color:#fff; font-size:11px; font-weight:700;
  text-transform:uppercase; padding:2px 8px; border-radius:2px; }
.hero-date { color:#ccc; font-size:12px; }

/* ── Seção de categoria ──────────────────────────────── */
.cat-section { margin-bottom:34px; }
.cat-head { border-top:3px solid #111; padding-top:8px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.cat-head h3 { font-size:16px; font-weight:900; text-transform:uppercase;
  letter-spacing:.04em; margin:0; }
.cat-more { font-size:11px; font-weight:700; color:#e63946; text-decoration:none; }
.cat-more:hover { opacity:.8; }

/* ── News card ───────────────────────────────────────── */
.news-card { display:block; text-decoration:none; color:inherit;
  background:#fff; border-radius:4px; overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.07); transition:box-shadow .2s, transform .2s; height:100%; }
.news-card:hover { box-shadow:0 6px 20px rgba(0,0,0,.1); transform:translateY(-2px); }
.news-card:hover .news-card-title { color:#e63946; }
.news-card-img-wrap { overflow:hidden; }
.news-card-img { width:100%; height:170px; object-fit:cover; display:block;
  transition:transform .35s; }
.news-card:hover .news-card-img { transform:scale(1.04); }
.no-img { width:100%; height:170px; background:#eee; display:flex;
  align-items:center; justify-content:center; color:#ccc; font-size:30px; }
.news-card-body { padding:12px; }
.news-card-cat { background:#e63946; color:#fff; font-size:10px; font-weight:800;
  text-transform:uppercase; padding:2px 7px; border-radius:2px;
  display:inline-block; margin-bottom:6px; }
.news-card-title { font-size:14px; font-weight:700; line-height:1.35; color:#111; margin:0 0 6px; }
.news-card-meta { font-size:11px; color:#999; }

/* ── Artigo ──────────────────────────────────────────── */
.art-wrap { background:#fff; border-radius:4px; padding:28px 32px; margin-bottom:24px; }
.art-cat { background:#e63946; color:#fff; font-size:11px; font-weight:800;
  text-transform:uppercase; padding:3px 9px; border-radius:2px;
  text-decoration:none; display:inline-block; margin-bottom:12px; }
.art-titulo { font-size:26px; font-weight:900; line-height:1.25; color:#111; margin:0 0 14px; }
.art-meta { font-size:13px; color:#888; border-top:1px solid #eee;
  border-bottom:1px solid #eee; padding:10px 0; margin-bottom:20px;
  display:flex; gap:18px; flex-wrap:wrap; }
.art-meta i { margin-right:4px; color:#e63946; }
.art-descricao { font-size:15px; font-weight:600; color:#444;
  border-left:4px solid #e63946; padding:10px 16px;
  background:#fafafa; margin-bottom:20px; line-height:1.6; }
.art-img { width:100%; max-height:460px; object-fit:cover;
  border-radius:4px; margin-bottom:6px; display:block; }
.art-img-leg { font-size:12px; color:#999; text-align:center; margin-bottom:20px; }
.art-texto { font-size:15px; line-height:1.85; color:#333; }
.art-texto p { margin-bottom:1rem; }
.art-fonte { margin-top:20px; padding:12px 16px; background:#f5f5f5;
  border-radius:4px; font-size:13px; }
.art-fonte a { color:#e63946; }

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar-box { background:#fff; border-radius:4px; padding:16px 18px; margin-bottom:20px; }
.sidebar-title { border-top:3px solid #111; padding-top:8px; margin-bottom:14px;
  font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.rel-card { display:flex; gap:10px; border-bottom:1px solid #eee;
  padding:10px 0; text-decoration:none; color:inherit; }
.rel-card:last-child { border-bottom:none; }
.rel-card img { width:80px; height:60px; object-fit:cover; border-radius:3px; flex-shrink:0; }
.rel-no-img { width:80px; height:60px; background:#eee; border-radius:3px;
  flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#ccc; }
.rel-cat { font-size:10px; font-weight:800; text-transform:uppercase; color:#e63946; }
.rel-titulo { font-size:13px; font-weight:700; line-height:1.35; color:#111; margin:3px 0 2px; }
.rel-card:hover .rel-titulo { color:#e63946; }
.rel-data { font-size:11px; color:#aaa; }

/* ── Layout 1 — 2 grandes + 4 horizontais ───────────── */
.bloco1-big { display:block; text-decoration:none; color:inherit; margin-bottom:20px; }
.bloco1-big:hover .bloco1-title { color:#e63946; }
.bloco1-img-wrap { overflow:hidden; border-radius:3px; margin-bottom:10px; }
.bloco1-img { width:100%; height:200px; object-fit:cover; display:block;
  transition:transform .35s; }
.bloco1-big:hover .bloco1-img { transform:scale(1.04); }
.bloco1-no-img { width:100%; height:200px; background:#eee; display:flex;
  align-items:center; justify-content:center; color:#ccc; font-size:28px; border-radius:3px; }
.bloco1-title { font-size:17px; font-weight:800; line-height:1.3; color:#111; margin:0 0 8px; }
.bloco1-meta { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.bloco1-badge { background:#e63946; color:#fff; font-size:10px; font-weight:800;
  text-transform:uppercase; letter-spacing:.07em; padding:2px 8px; border-radius:2px; }
.bloco1-fonte { font-size:12px; color:#888; }
.bloco1-date  { font-size:12px; color:#888; }
.bloco1-resumo { font-size:13px; color:#555; line-height:1.55; margin:0 0 8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bloco1-readmore { font-size:12px; font-weight:700; color:#111; text-decoration:underline;
  text-underline-offset:2px; }
.bloco1-big:hover .bloco1-readmore { color:#e63946; }

/* Cards horizontais pequenos */
.bloco1-h { display:flex; gap:12px; align-items:flex-start;
  padding:12px 0; border-bottom:1px solid #eee; text-decoration:none; color:inherit; }
.bloco1-h:last-child { border-bottom:none; }
.bloco1-h-img { width:110px; flex-shrink:0; aspect-ratio:4/3; overflow:hidden; border-radius:3px; }
.bloco1-h-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.bloco1-h:hover .bloco1-h-img img { transform:scale(1.05); }
.bloco1-h-no-img { width:110px; flex-shrink:0; aspect-ratio:4/3; background:#eee;
  display:flex; align-items:center; justify-content:center; color:#ccc; border-radius:3px; }
.bloco1-h-body { flex:1; }
.bloco1-h-title { font-size:14px; font-weight:700; line-height:1.35; color:#111; margin:0 0 5px; }
.bloco1-h:hover .bloco1-h-title { color:#e63946; }
.bloco1-h-meta { font-size:12px; color:#888; }

/* Separador entre big e horizontais */
.bloco1-divider { border:none; border-top:1px solid #eee; margin:4px 0 0; }

/* ── Layout 2 — grade 3×2 compacta ──────────────────── */
.bloco2-card { display:block; text-decoration:none; color:inherit;
  background:#fff; border-radius:3px; overflow:hidden; height:100%;
  transition:box-shadow .2s, transform .2s; }
.bloco2-card:hover { box-shadow:0 6px 18px rgba(0,0,0,.1); transform:translateY(-2px); }
.bloco2-img-wrap { overflow:hidden; }
.bloco2-img { width:100%; height:185px; object-fit:cover; display:block;
  transition:transform .35s; }
.bloco2-card:hover .bloco2-img { transform:scale(1.04); }
.bloco2-no-img { width:100%; height:185px; background:#eee; display:flex;
  align-items:center; justify-content:center; color:#ccc; font-size:28px; }
.bloco2-body { padding:10px 0 6px; }
.bloco2-title { font-size:15px; font-weight:800; line-height:1.3; color:#111;
  margin:0 0 8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bloco2-card:hover .bloco2-title { color:var(--cat-accent, #7c3aed); }
.bloco2-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.bloco2-badge { color:#fff; font-size:10px; font-weight:800; text-transform:uppercase;
  letter-spacing:.07em; padding:3px 9px; border-radius:2px;
  background:var(--cat-accent, #7c3aed); }
.bloco2-date { font-size:12px; color:#888; }

/* Cabeçalho com acento de cor variável */
.cat-head-accent { border-top:3px solid var(--cat-accent, #7c3aed); }
.cat-head-accent h3 { position:relative; }
.cat-head-accent h3::after { content:''; position:absolute; left:0; bottom:-11px;
  width:36px; height:3px; background:var(--cat-accent, #7c3aed); }

/* ── Layout 3 — carrossel 3 cards overlay ────────────── */
.bloco3-wrap { overflow:hidden; }
.bloco3-track { display:flex; gap:6px; transition:transform .4s cubic-bezier(.4,0,.2,1); }
.bloco3-slide { flex:0 0 calc(33.333% - 4px); min-width:0; }

.bloco3-card { position:relative; display:block; text-decoration:none;
  overflow:hidden; border-radius:3px; background:#111; height:100%; }
.bloco3-card-inner { position:relative; width:100%; height:0; padding-bottom:100%; }
.bloco3-card img { position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.80; transition:opacity .3s, transform .4s; }
.bloco3-card:hover img { opacity:.55; transform:scale(1.04); }
.bloco3-overlay { position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.90) 0%, rgba(0,0,0,.2) 50%, transparent 72%);
  display:flex; flex-direction:column; justify-content:space-between; padding:14px; }
.bloco3-feat { background:#e63946; color:#fff; font-size:11px; font-weight:800;
  text-transform:uppercase; letter-spacing:.08em; padding:3px 9px; border-radius:2px;
  display:inline-block; align-self:flex-start; }
.bloco3-bottom { display:flex; flex-direction:column; gap:8px; }
.bloco3-title { color:#fff; font-size:16px; font-weight:800; line-height:1.3;
  text-shadow:0 2px 6px rgba(0,0,0,.6); margin:0; }
.bloco3-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.bloco3-badge { color:#fff; font-size:10px; font-weight:800;
  text-transform:uppercase; letter-spacing:.07em; padding:3px 9px; border-radius:2px;
  background:var(--cat-accent, #ea580c); }
.bloco3-date { color:#ddd; font-size:12px; }

/* Setas do carrossel */
.bloco3-arrows { display:flex; gap:4px; }
.bloco3-arrow { width:32px; height:32px; border:1px solid #ccc; border-radius:3px;
  display:flex; align-items:center; justify-content:center; color:#555;
  font-size:13px; cursor:pointer; background:#fff; user-select:none;
  transition:all .15s; }
.bloco3-arrow:hover { border-color:#111; color:#111; }
.bloco3-arrow.disabled { opacity:.35; cursor:default; pointer-events:none; }

/* ── Layout 4 — Latest Videos ───────────────────────── */
.bloco4-section { background:#1c1c1c; margin-left:-15px; margin-right:-15px;
  padding:28px 15px 32px; }
.bloco4-head { display:flex; align-items:center; gap:0; margin-bottom:22px;
  border-bottom:2px solid #333; padding-bottom:10px; }
.bloco4-head h3 { color:#fff; font-size:15px; font-weight:900;
  text-transform:uppercase; letter-spacing:.12em; margin:0; }
.bloco4-head-line { flex:1; }

.bloco4-grid { display:flex; gap:16px; }

/* Card principal (esquerda) */
.bloco4-main { flex:0 0 72%; position:relative; display:block;
  text-decoration:none; border-radius:3px; overflow:hidden; background:#000; }
.bloco4-main-inner { position:relative; width:100%; height:0; padding-bottom:56%; }
.bloco4-main img { position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.75; transition:opacity .3s; }
.bloco4-main:hover img { opacity:.55; }
.bloco4-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:60px; height:60px; border-radius:50%; border:3px solid #fff;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:22px; padding-left:4px;
  background:rgba(0,0,0,.45); transition:background .2s; }
.bloco4-main:hover .bloco4-play { background:rgba(220,30,30,.75); }
.bloco4-play-sm { width:40px; height:40px; font-size:15px; padding-left:3px;
  border-width:2px; }
.bloco4-main-overlay { position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:18px; }
.bloco4-vid-badge { display:inline-block; background:#e63946; color:#fff;
  font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.1em;
  padding:3px 10px; border-radius:2px; margin-bottom:10px; align-self:flex-start; }
.bloco4-main-title { color:#fff; font-size:20px; font-weight:800; line-height:1.3;
  text-shadow:0 2px 8px rgba(0,0,0,.7); margin:0; }

/* Cards laterais (direita) */
.bloco4-side { flex:1; display:flex; flex-direction:column; gap:16px; }
.bloco4-card { display:block; text-decoration:none; }
.bloco4-card-thumb { position:relative; width:100%; height:0; padding-bottom:56%;
  border-radius:3px; overflow:hidden; background:#000; }
.bloco4-card-thumb img { position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:.80; transition:opacity .3s; }
.bloco4-card:hover .bloco4-card-thumb img { opacity:.55; }
.bloco4-card-body { padding:10px 0 0; }
.bloco4-card-title { color:#e8e8e8; font-size:15px; font-weight:700;
  line-height:1.35; margin:0 0 6px; transition:color .2s; }
.bloco4-card:hover .bloco4-card-title { color:#fff; }
.bloco4-card-date { color:#888; font-size:12px; }

/* ── Utilitários ─────────────────────────────────────── */
.not-found { text-align:center; padding:60px 20px; color:#999; }
.not-found i { font-size:48px; display:block; margin-bottom:16px; color:#ddd; }
.page-wrap { margin-top:24px; margin-bottom:40px; }

/* ── Responsivo ──────────────────────────────────────── */
@media (max-width:767px) {
  .hero-grid { flex-direction:column; }
  .hero-main { flex:none; height:280px; }
  .hero-side { flex-direction:row; }
  .hero-side-card { height:180px; }
  .art-wrap { padding:18px 16px; }
  .art-titulo { font-size:20px; }
  .bloco4-grid { flex-direction:column; }
  .bloco4-main { flex:none; }
  .bloco4-side { flex-direction:row; }
}
