* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  user-select: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Menu Superior */
.top-menu {
  background-color: #004a80;
  color: white;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.top-menu .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.user-info {
  text-align: right;
}

.user-info p {
  margin-bottom: 5px;
}

.user-info a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Título do Portal */
.portal-header {
  color: black;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 30px;
}

.portal-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.portal-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Sistema de Acordeão */
.accordion {
  margin: 30px 0;
}

.accordion-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.accordion-item.active {
  border-left: 5px solid #004a80;
}

.accordion-item.active .accordion-header {
  background-color: #104870;
}

.accordion-header {
  background-color: #0077b6;
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.accordion-header:hover {
  background-color: #0069a3;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.accordion-title i {
  font-size: 1.3rem;
}

.accordion-title h3 {
  margin: 0;
  font-size: 1.2rem;
}

.accordion-header .fa-chevron-down {
  transition: transform 0.3s;
}

.accordion-item.active .fa-chevron-down {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 5000px;
}

/* Estilos para subcategorias */
.subcategoria {
  margin: 0 20px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.subcategoria:last-child {
  border-bottom: none;
}

.subcategoria-header {
  background-color: #f0f0f0;
  padding: 10px 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  margin-top: 2rem;
  width: auto;
}

.subcategoria-header h4 {
  color: #004a80;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* Grid de Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-item {
  text-decoration: none;
  color: inherit;
}

.icon-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.service-item:hover .icon-box {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #0077b6;
}

.icon-box .icon {
  text-align: center;
  margin-bottom: 15px;
}

.icon-box .icon i {
  font-size: 2rem;
  color: #0077b6;
}

.icon-box h4 {
  text-align: center;
  margin-bottom: 10px;
  color: #004a80;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box p {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Rodapé */
footer {
  background-color: #004a80;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsivo */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .top-menu .container {
    flex-direction: column;
    text-align: center;
  }
  
  .user-info {
    margin-top: 15px;
    text-align: center;
  }
  
  .logo {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .accordion-title h3 {
    font-size: 1rem;
  }
}