/* =============================================
   PORTAL PAGES — Modern Design (pp-*)
   ============================================= */

/* ---- Wider container override ---- */
@media (min-width: 1200px) {
  .container { max-width: 1560px; }
}

/* ---- Bootstrap btn-primary → portal brand blue ---- */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #1A3666 !important;
  border-color: #1A3666 !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #152b52 !important;
  border-color: #152b52 !important;
}

/* Destaque de transparência federal no rodapé */
.footer-transparency-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin: 0 0 38px;
  color: #fff;
  background: linear-gradient(100deg, rgba(31,63,112,.96), rgba(20,50,80,.96));
  border: 1px solid rgba(212,170,48,.7);
  border-left: 5px solid #d4aa30;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.footer-transparency-highlight:hover {
  color: #fff;
  border-color: #f0c650;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  text-decoration: none;
  transform: translateY(-2px);
}
.footer-transparency-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  background: #fff;
  border-radius: 50%;
}
.footer-transparency-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.footer-transparency-content strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}
.footer-transparency-content small {
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.footer-transparency-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding-left: 20px;
  color: #f0c650;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Main content section ---- */
.pp-main {
  background: #f4f6fa;
  padding: 32px 0 56px;
  min-height: 55vh;
}

/* ---- Section heading ---- */
.pp-section-heading {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 0 20px;
  flex-wrap: wrap; gap: 10px;
}
.pp-section-heading h2 {
  font-size: 1.2rem; font-weight: 800;
  color: #0d1b5e; margin: 0;
  display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--base-color);
  padding-left: 12px;
}
.pp-section-heading h2 i { color: var(--base-color); font-size: .95rem; }

/* ---- News card ---- */
.pp-news-card {
  display: block;
  text-decoration: none !important;
  color: #333;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-bottom: 24px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  border: 2px solid transparent;
}
.pp-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  color: #333;
  border-color: var(--base-color);
}
.pp-news-img {
  position: relative;
  overflow: hidden;
  height: 175px;
  background: #dde2ea;
}
.pp-news-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.pp-news-card:hover .pp-news-img img { transform: scale(1.04); }
.pp-news-cat {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 12px;
  font-size: .7rem; font-weight: 700;
  color: #fff; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.pp-news-body { padding: 15px 18px 18px; }
.pp-news-title {
  font-size: .93rem; font-weight: 700;
  color: #1a2340; line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.pp-news-card:hover .pp-news-title { color: var(--base-color); }
.pp-news-meta {
  font-size: .77rem; color: #888;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pp-news-meta i { color: var(--base-color); opacity: .75; font-size: .7rem; }

/* ---- Gallery card ---- */
.pp-gallery-card {
  display: block; text-decoration: none !important; color: #333;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-bottom: 24px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  border: 2px solid transparent;
}
.pp-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  color: #333;
  border-color: var(--base-color);
}
.pp-gallery-img {
  height: 200px; overflow: hidden; background: #dde2ea;
}
.pp-gallery-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.pp-gallery-card:hover .pp-gallery-img img { transform: scale(1.04); }
.pp-gallery-body { padding: 14px 16px 16px; }
.pp-gallery-body h5 { font-size: .93rem; font-weight: 700; color: #1a2340; margin: 0 0 4px; transition: color .2s; }
.pp-gallery-card:hover .pp-gallery-body h5 { color: var(--base-color); }
.pp-gallery-body small { font-size: .77rem; color: #888; }

/* ---- Event card (list view) ---- */
.pp-event-card {
  display: flex;
  text-decoration: none !important; color: #333;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-bottom: 20px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  border: 2px solid transparent;
}
.pp-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  color: #333;
  border-color: var(--base-color);
}
.pp-event-img {
  width: 130px; flex-shrink: 0;
  background: #dde2ea; overflow: hidden;
}
.pp-event-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-event-body { padding: 16px 18px; flex: 1; min-width: 0; }
.pp-event-date {
  font-size: .77rem; color: var(--base-color); font-weight: 700;
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}
.pp-event-title { font-size: .93rem; font-weight: 700; color: #1a2340; margin: 0 0 5px; transition: color .2s; }
.pp-event-card:hover .pp-event-title { color: var(--base-color); }
.pp-event-meta { font-size: .78rem; color: #888; }

/* ---- Post/Event detail ---- */
.pp-post-main { background: #f4f6fa; padding: 32px 0 56px; min-height: 55vh; }
.pp-post-wrap {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  overflow: hidden;
}
.pp-post-inner { padding: 32px 36px; }
.pp-post-title { font-size: 1.45rem; font-weight: 800; color: #0d1b5e; line-height: 1.35; margin-bottom: 12px; }
.pp-post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .82rem; color: #888;
  padding: 12px 0; margin-bottom: 24px;
  border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5;
}
.pp-post-meta i { color: var(--base-color); opacity: .8; }
.pp-post-cover { width: 100%; height: auto; border-radius: 8px; margin-bottom: 24px; }
.pp-post-footer {
  border-top: 1px solid #edf0f5; padding: 16px 0 0; margin-top: 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pp-post-footer-label { font-size: .85rem; color: #888; font-weight: 600; }

/* ---- Static / institutional content ---- */
.pp-content-main { background: #f4f6fa; padding: 32px 0 56px; min-height: 55vh; }
.pp-content-wrap {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  padding: 36px 40px;
}
.pp-content-wrap h3 {
  font-size: 1.25rem; font-weight: 800; color: #0d1b5e;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 3px solid var(--base-color);
}
.pp-content-wrap p { font-size: .95rem; line-height: 1.7; color: #444; }
.pp-content-wrap a { color: var(--base-color); }
.pp-content-wrap ul, .pp-content-wrap ol { padding-left: 1.5em; }
.pp-content-wrap li { margin-bottom: 6px; font-size: .95rem; color: #444; }

/* ---- Site map ---- */
.pp-sitemap-main { background: #f4f6fa; padding: 32px 0 56px; min-height: 55vh; }
.pp-sitemap-wrap {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  padding: 32px 36px;
}
.pp-sitemap-wrap h3 {
  font-size: 1.25rem; font-weight: 800; color: #0d1b5e;
  border-left: 4px solid var(--base-color); padding-left: 12px;
  margin-bottom: 20px;
}
.pp-sitemap-wrap ul { list-style: none; padding: 0; margin: 0 0 4px; }
.pp-sitemap-wrap > ul > li { margin-bottom: 6px; }
.pp-sitemap-wrap ul a { color: var(--base-color); text-decoration: none; font-weight: 600; font-size: .93rem; }
.pp-sitemap-wrap ul a:hover { text-decoration: underline; }
.pp-sitemap-wrap ul ul { padding-left: 20px; margin-top: 3px; }
.pp-sitemap-wrap ul ul a { color: #555; font-weight: 400; }

/* ---- Empty state ---- */
.pp-empty {
  text-align: center; padding: 52px 20px; color: #bbb;
}
.pp-empty i { font-size: 2.8rem; display: block; margin-bottom: 12px; opacity: .4; }
.pp-empty p { font-size: .93rem; color: #999; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .footer-transparency-highlight {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
    margin-bottom: 30px;
  }
  .footer-transparency-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .footer-transparency-icon img { width: 34px; height: 34px; }
  .footer-transparency-content { flex: 1; }
  .footer-transparency-action { width: 100%; margin-left: 64px; padding-left: 0; }
  .pp-post-inner { padding: 20px 18px; }
  .pp-content-wrap { padding: 24px 18px; }
  .pp-sitemap-wrap { padding: 24px 18px; }
  .pp-event-img { width: 90px; }
}
