/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo (Reutilizado) */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #fff8d1, #FFD700);
  color: #333;
  min-height: 100vh;
}

/* Cabeçalho (Reutilizado) */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFD700;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { font-weight: bold; font-size: 1.3rem; }
header nav a { text-decoration: none; color: #333; font-weight: bold; margin-left: 15px; }
header nav a:hover { text-decoration: underline; }

/* Botão Principal (Reutilizado) */
.btn-principal {
  padding: 15px 30px;
  background: #333;
  color: #FFD700;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.2s;
  display: inline-block; /* Mudado para inline-block */
  text-decoration: none;
  text-align: center;
  margin-top: 20px;
}
.btn-principal:hover { background: #555; transform: translateY(-2px); color: #FFD700; }

/* 1. Imagem no Topo */
.hero-section {
  height: 400px;
  background-image: url('emprestimo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #fff;
}
/* Sombra no texto para legibilidade */
.hero-section h1 { font-size: 3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.hero-section p { font-size: 1.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.7); }

/* 2. Caixa de Cor (usei o cinza escuro do botão) */
.conteudo-interativo {
  background: #333; /* Cor de fundo "embaixo" */
  padding: 30px 20px;
  border-radius: 20px 20px 0 0;
  margin-top: -20px; /* Sobe um pouco para sobrepor a imagem */
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 3. Botões Brancos (Abas) */
.tab-botoes {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Permite quebrar a linha em telas pequenas */
  margin-bottom: 25px;
}

.tab-btn {
  background: #ffffff;
  color: #333;
  border: none;
  border-radius: 10px;
  padding: 20px 15px;
  min-width: 140px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent; /* Borda transparente para não "pular" */
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tab-btn .icone {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

/* 4. Estilo do Botão Ativo (Muda de Cor) */
.tab-btn.ativo {
  background: #FFD700; /* Cor do PineBank! */
  color: #333;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* 5. Conteúdo que Muda (Painéis) */
.tab-conteudo {
  position: relative;
}

.content-panel {
  display: none; /* ESCONDIDO POR PADRÃO */
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  animation: fadeIn 0.5s ease;
}

.content-panel.ativo {
  display: block; /* VISÍVEL QUANDO ATIVO */
}

/* Estilos do conteúdo dentro do painel */
.content-panel h2 { font-size: 2rem; margin-bottom: 10px; }
.content-panel p { font-size: 1.2rem; margin-bottom: 20px; color: #444; }
.content-panel ul { list-style: none; margin-bottom: 15px; }
.content-panel ul li {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {

  /* 1. Empilha o Cabeçalho */
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  /* 2. Ajusta o Banner */
  .hero-section {
    height: 250px; /* Altura menor */
    padding: 20px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }

  /* 3. Faz os botões das Abas rolarem */
  .tab-botoes {
    flex-wrap: nowrap; /* NÃO deixa quebrar a linha */
    overflow-x: auto; /* ADICIONA ROLAGEM HORIZONTAL */
    justify-content: flex-start; /* Alinha no começo */
    padding: 10px;
    
    /* Esconde a barra de rolagem */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
  }
  .tab-botoes::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .tab-btn {
    flex: 0 0 120px; /* Dá um tamanho fixo para cada botão */
  }
  
  /* 4. Ajusta o painel de conteúdo */
  .content-panel h2 {
    font-size: 1.8rem;
  }
}