/* =========================
   HEADER (Padrão)
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to right, #6a0dad, #ffd60a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  z-index: 1000;
}

.logo-menu img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.menu a:hover {
  color: #0d1b2a;
}

.social-top {
  display: flex;
  gap: 16px;
}

.social-top a {
  color: white;
  font-size: 21px;
}

.social-top a:hover {
  color: #0d1b2a;
}

/* Mobile */
@media(max-width: 900px) {
  .social-top { display: none; }
  .menu-toggle { display: block; }
}

/* =========================
   HERO
========================= */
.hero {
  background: #2c0e4e;
  color: white;
  text-align: center;
  padding: 140px 20px 100px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
}

/* =========================
   SEÇÕES
========================= */
section {
  padding: 70px 20px;
}

section:nth-child(even) {
  background: #f5f7fa;
}

.section-title {
  text-align: center;
  color: var(--roxo);
  margin-bottom: 50px;
  font-size: 32px;
}

/* =========================
   CARDS - MENOR E PADRONIZADO
========================= */
.cards, .niveis, .projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
}

.card, .nivel, .projeto {
  background: white;
  padding: 22px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}

.card:hover, .nivel:hover, .projeto:hover {
  transform: translateY(-8px);
}

.card h3, .nivel h3, .projeto h3 {
  color: var(--roxo);
  font-size: 1.32rem;
  margin: 14px 0 10px 0;
}

.nivel img, .projeto img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card p, .nivel p, .projeto p {
  font-size: 14.8px;
  line-height: 1.6;
  color: #444;
}

/* =========================
   CTA - PADRÃO
========================= */
.cta {
  background: linear-gradient(135deg, #0d1b2a, #4a0b7a);
  color: white;
  text-align: center;
  padding: 90px 20px;
  margin: 40px 0;
}

.cta h2 {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background: var(--amarelo);
  color: #f8fc06;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.btn:hover {
  background: white;
  transform: translateY(-5px);
}

/* =========================
   FOOTER - PADRÃO
========================= */
footer {
  background: #0d1b2a;
  color: white;
  text-align: center;
  padding: 40px 20px 30px;
}

.redes {
  margin-top: 15px;
}

.redes a {
  color: white;
  font-size: 22px;
  margin: 0 12px;
  transition: 0.3s;
}

.redes a:hover {
  color: #ffd60a;
}

/* =========================
   DROPDOWN - PROJETOS (CORRIGIDO)
========================= */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: -10px;
  background: #0d1b2a;
  padding: 12px 0;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 9999;
  margin-top: 5px;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: white;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #6a0dad;
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

/* Mobile - Dropdown */
@media(max-width: 900px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    padding-left: 15px;
    margin-top: 8px;
  }
  
  .dropdown.active .dropdown-menu {
    display: block !important;
  }
}