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

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

/* ---- Unified site header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0;
}
.site-header-logo {
  flex-shrink: 0;
  margin-right: 28px;
  display: flex;
  align-items: center;
}
.site-header-logo img { height: 56px; width: auto; }
.site-header-nav { flex: 0 0 auto; height: 100%; display: flex; align-items: stretch; }
.site-header-nav > ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: stretch;
}
.site-header-nav .nav-item { display: flex; align-items: center; position: relative; }
.sh-nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  font-size: .8rem;
  font-weight: 700;
  color: #0d1b5e;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.sh-nav-link:hover { color: #b8941f; border-bottom-color: #b8941f; text-decoration: none; }
.site-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.sh-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.sh-search-icon {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin: 0; padding: 4px 6px;
  color: #555; font-size: 1rem; flex-shrink: 0;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.sh-search-form:focus-within .sh-search-icon { color: #0d1b5e; background: #f0f4ff; }
.sh-search-form input {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 8px 14px;
  font-size: .85rem; color: #333;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2000;
}
.sh-search-form:focus-within input {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sh-btn-servicos {
  display: inline-flex; align-items: center; gap: 7px;
  background: #b8941f;
  color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.sh-btn-servicos:hover { background: #9e7d18; color: #fff; text-decoration: none; }
.sh-btn-etransp {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 700; color: #2E7D32;
  text-decoration: none;
  white-space: normal;
  line-height: 1.25;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background .2s;
}
.sh-btn-etransp:hover { background: #f0fdf4; text-decoration: none; color: #1b5e20; }
.site-header-toggle {
  background: none; border: none;
  font-size: 1.4rem; color: #0d1b5e;
  padding: 6px 10px; margin-right: 8px;
  cursor: pointer;
}

/* ---- Mega menu (SIPP-style) ---- */
.site-header-nav .nav-item.has-mega {
  position: relative;
}
.mega-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 9999;
  min-width: 500px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.nav-item.has-mega:hover .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-panel-header {
  display: flex;
  align-items: center;
  padding: 16px 24px 12px;
  border-left: 4px solid #b8941f;
  margin: 18px 20px 8px;
  font-size: .9rem;
  font-weight: 700;
  color: #0d1b5e;
  letter-spacing: .01em;
}
.mega-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px 12px 18px;
}
.mega-panel-grid.single-col { grid-template-columns: 1fr; }
.mega-panel-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  transition: background .15s;
}
.mega-panel-link:hover {
  background: #f5f7ff;
  text-decoration: none;
  color: #0d1b5e;
}
.mega-panel-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: .85rem;
  color: #8a9ab5;
}
.mega-panel-title {
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a2e;
}
.mega-panel-link:hover .mega-panel-title { color: #0d1b5e; }
.mega-panel-link:hover .mega-panel-icon { color: #0d1b5e; }

/* ---- Page hero bar (replaces .breadcrumb-area) ---- */
.pp-hero {
  background: linear-gradient(135deg, #0d1b5e 0%, var(--base-color) 100%);
  color: #fff;
  padding: 26px 0 22px;
  position: relative;
  overflow: hidden;
}
.pp-hero::after {
  content: '';
  position: absolute;
  right: -50px; bottom: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.pp-hero-breadcrumb {
  list-style: none;
  padding: 0; margin: 0 0 8px;
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: .78rem;
  opacity: .85;
}
.pp-hero-breadcrumb li { display: flex; align-items: center; }
.pp-hero-breadcrumb li::after { content: "/"; margin: 0 7px; opacity: .5; }
.pp-hero-breadcrumb li:last-child::after { display: none; }
.pp-hero-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.pp-hero-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.pp-hero-breadcrumb .pp-active a { color: #fff; font-weight: 600; }
.pp-hero-title {
  font-size: 1.55rem; font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pp-hero-sub {
  font-size: .88rem; opacity: .8; margin-top: 4px;
}

/* ---- 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) {
  .pp-hero-title { font-size: 1.25rem; }
  .pp-post-inner { padding: 20px 18px; }
  .pp-content-wrap { padding: 24px 18px; }
  .pp-sitemap-wrap { padding: 24px 18px; }
  .pp-event-img { width: 90px; }
}
