body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #f5f5f5;
}

/* ===== HEADER FIXO ===== */
header {
  background-color: #333;
  display: flex;
  align-items: center;
  padding: 18px 30px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  border-bottom: 2px solid #F5B81F;
}

header img {
  height: 56px;      /* maior evidência para o logo */
  width: auto;
}

/* caso volte a usar h1 futuramente */
header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f5f5f5;
  margin: 0;
}

/* compensação do header fixo */
main {
  max-width: 1200px;
  margin: 120px auto 10px auto;
  padding: 0 20px;
}

/* ===== TITULOS DAS SEÇÕES ===== */
.section-title {
  font-size: 1.3rem;
  color: #F5B81F;
  margin: 30px 0 20px 0;
  font-weight: 600;
  letter-spacing: .5px;

  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  border-left: 4px solid #F5B81F;

  padding: 20px 10px 20px 18px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  justify-items: center;
}

/* ===== CARDS ===== */
.card {
  background-color: #111;
  border: 1px solid rgba(245,184,31,.25);
  border-radius: 8px;

  width: 200px;
  height: 180px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(245,184,31,.35);
}

/* icones padrão */
.card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* destaque do Portal Unificado */
.logo-unificado {
  width: 82px !important;
  height: 82px !important;
}

.card a {
  color: #F5B81F;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.card a:hover {
  text-decoration: underline;
}

.subtitle {
  font-size: .9rem;
  color: #aaa;
  margin-top: 6px;
}

/* ===== FOOTER ===== */
footer {
  background-color: #333;
  color: #aaa;
  text-align: center;
  padding: 10px;
  font-size: .85rem;
  margin-top: 60px;
  border-top: 1px solid rgba(245,184,31,.20);
}

/* ===== MOBILE ===== */
@media (max-width: 500px){

  header{
    padding: 14px 18px;
  }

  header img{
    height: 42px;
  }

  main{
    margin-top: 95px;
  }

  .card{
    width:180px;
    height:170px;
  }
}
