/* ============================================================
   AMAPÁ JOVEM — CSS GLOBAL E LAYOUT DO PORTAL
   Este arquivo contém os estilos comuns a todas as páginas.
   ============================================================ */

:root {
  --paj-orange: #E8520A;
  --paj-orange-light: #FFF0E8;
  --paj-orange-mid: #f97316;
  --paj-dark: #1A2B5E;
  --paj-dark2: #243570;
  --paj-gray-bg: #F0F2F5;
  --paj-gray-border: #D8D8D8;
  --paj-gray-text: #888;
  --paj-white: #FFFFFF;
  --paj-green: #16a34a;
  --paj-green-light: #dcfce7;
}

/* ── HEADER / NAVBAR DO PORTAL ── */
.portal-navbar {
  background: #0f1b2d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1000;
}

.portal-navbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Permite que filhos flex encolham e não estourem a largura da tela */
  min-width: 0;
}

.portal-logo {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* Banner de título muito largo: limitar altura E largura para não gerar scroll horizontal */
.portal-logo img,
.portal-logo .portal-title-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.portal-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-menu a {
  color: #fff;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.portal-menu a:hover,
.portal-menu a:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

.portal-btn-home {
  background: var(--paj-orange);
  box-shadow: 0 4px 14px rgba(232, 82, 10, 0.28);
}

.portal-btn-home:hover,
.portal-btn-home:focus {
  background: #d4480a;
}

/* ── BANNER DO PORTAL ── */
.portal-banner {
  width: 100%;
  background: #dceff8;
}

.portal-banner img,
.portal-banner .portal-banner-img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
}

/* Evita barra branca / overflow por conteúdo mais largo que o viewport */
body.landing-page {
  overflow-x: hidden;
  max-width: 100%;
}

.portal-navbar {
  overflow-x: hidden;
}

/* ── RESPONSIVIDADE HEADER ── */
@media (max-width: 768px) {
  .portal-navbar-inner {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .portal-logo {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .portal-logo img,
  .portal-logo .portal-title-img {
    max-height: 44px;
    margin-left: auto;
    margin-right: auto;
    object-position: center center;
  }

  .portal-menu {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .portal-menu a {
    font-size: 13px;
    padding: 9px 12px;
  }
}

/* Home: cards de ação em coluna única no mobile */
@media (max-width: 767px) {
  .portal-home-actions [class*="col-"] {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-bottom: 16px;
  }

  .portal-home-actions a > div,
  .portal-home-actions img.img-responsive {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Intro da home */
.home-intro-card {
  margin-bottom: 1.25rem;
}

.home-intro-card .intro-text h2 {
  font-size: 1.35rem;
}

@media (max-width: 767px) {
  .home-intro-card .intro-text h2 {
    font-size: 1.2rem;
  }

  .home-intro-card .intro-text p {
    font-size: 0.95rem;
  }
}

/* Aviso: inscrições pausadas (home) */
.home-inscricao-pausa {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e8d4a8;
}

.home-inscricao-pausa__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.home-inscricao-pausa__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
