@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap");

:root {
  --light-gray: #f6f4f6;
  --primary: #343e77;
  --semi-light-primary: #5667c4;
  --semi-dark-primary: #2a315e;
  --dark-primary: #191d38;
  --primary2: #4d87e3;
  --primary3: #4daae3;
  --primary4: #5a4de3;
  --primary5: #7e4de3;
  --green: #52c41a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

h1 { font-family: "Roboto Condensed", sans-serif; font-weight: bold; font-size: 3em; text-transform: uppercase; line-height: 1.4em; }
h2 { font-family: "Roboto Condensed", sans-serif; font-weight: bold; font-size: 2.8em; text-transform: uppercase; line-height: 1.4em; }
h3 { font-family: "Roboto Condensed", sans-serif; font-size: 2em; }
.strong { font-weight: bold; }

.container { margin: 0 auto; padding: 0 15px; max-width: 1170px; }
.container-fluid { width: 100%; padding: 0 15px; }
.flex { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 32px; }
.mt-5 { margin-top: 32px; }
.mt-7 { margin-top: 64px; }
.mb-7 { margin-bottom: 64px; }
.no-margin { margin: 0 !important; }
.sm-hidden { display: none; }
@media (min-width: 768px) { .sm-hidden { display: block; } }
.paginacao { margin: 24px 0; display: flex; gap: 16px; align-items: center; }

/* SupportBar */
.supportBar {
  background-color: var(--light-gray);
  height: 32px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 -5px 5px -5px rgba(77,77,77,0.2);
}
.supportbar-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; margin-left: auto; }
.supportbar-menu a { color: inherit; text-decoration: none; }
.supportbar-menu a:hover { text-decoration: underline; }

/* HeaderBar */
.headerBar {
  background: white;
  padding: 12px 0;
  box-shadow: 0 5px 5px -5px rgba(77,77,77,0.2);
}
.headerBar-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cadeDireitoLogo { text-decoration: none; color: var(--dark-primary); font-weight: bold; font-size: 1.2em; display: flex; align-items: center; }
.cadeDireitoLogo:hover { color: var(--primary2); }
.logo-text { font-family: "Roboto Condensed", sans-serif; }

/* MenuBar */
.menuBar { margin-left: auto; }
.menuBar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menuBar-item { position: relative; padding: 0 12px; }
.menuBar-item a { text-decoration: none; color: inherit; }
.menuBar-item a:hover { color: var(--primary2); }
.menuBar-submenu:hover .menuBar-dropdown { display: block; }
.menuBar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  z-index: 100;
}
.menuBar-dropdown li { padding: 0; }
.menuBar-dropdown a { display: block; padding: 8px 16px; }

@media (max-width: 768px) {
  .menuBar { width: 100%; }
  .menuBar-list { justify-content: center; }
  .headerBar-flex { flex-direction: column; }
}

/* Footer */
.footer {
  background-color: var(--semi-dark-primary);
  padding: 96px 48px;
  color: rgba(255,255,255,0.65);
}
.footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,0.95); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-logo { font-weight: bold; color: white !important; font-size: 1.2em; }
.footer-title { font-size: 1.5em; color: white; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .footer { padding: 48px 24px; } }

/* CookieBar */
.cookieBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(25,29,56,0.95);
  color: white;
  padding: 16px 24px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookieBar-inner { max-width: 1170px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookieBar p { margin: 0; flex: 1; min-width: 200px; }
.cookieBar a { color: var(--primary3); }
.cookieBar-btn {
  background: var(--primary2);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.cookieBar-btn:hover { background: var(--primary3); }

/* Principal / Homepage */
.chamada {
  background-color: rgba(77,135,227,0.47);
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.chamada h1 { color: white; text-align: center; margin: 0 0 24px; }
.chamada-subtitle { color: white; text-align: center; font-size: 1.5em; font-family: "Roboto Condensed", sans-serif; }
.btn-comece, .btn-criar-conta {
  display: inline-block;
  padding: 12px 48px;
  background-color: var(--primary2);
  color: white;
  border-radius: 50px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-comece { font-size: 2em; }
.btn-criar-conta { font-size: 2em; padding: 12px 64px; }
.btn-comece:hover, .btn-criar-conta:hover { background: var(--primary3); color: white; }
@media (max-width: 768px) { .btn-criar-conta { font-size: 1.5em; padding: 12px 32px; } }

.info-section { background: white; padding: 96px 24px; text-align: center; }
.info-subtitle { color: #333; font-size: 2em; font-family: "Roboto Condensed", sans-serif; margin-bottom: 0; }
.info-title { font-size: 1.5em; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 970px; margin: 0 auto; text-align: left; }
@media (max-width: 992px) { .info-grid { grid-template-columns: 1fr; text-align: center; } .info-title { justify-content: center; } }
.devices-section { background: var(--primary3); padding: 96px 24px; text-align: center; }
.devices-section h2, .devices-section h3 { color: var(--semi-dark-primary); }
.conclusao-section { background: var(--light-gray); padding: 96px 24px; text-align: center; }

/* Carousel (JS) */
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.bg-chamada { background-size: cover; background-position: center; min-height: 400px; }

/* Listas / Breadcrumb */
.breadcrumb { padding: 16px 0; }
.breadcrumb a { color: inherit; }
.breadcrumb span { color: #999; }

/* Cards / Boxes */
.box-concurso, .box-cargo, .box-banca, .box-orgao, .box-disciplina {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.box-concurso h3, .box-cargo h3, .box-banca h3, .box-orgao h3, .box-disciplina h3 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* Questões */
.filtros-questoes { background: white; padding: 24px; margin-bottom: 24px; border-radius: 8px; }
.questao-card { padding: 24px; border-bottom: 1px solid #eee; }

/* Privacidade */
.privacidade { max-width: 800px; margin: 0 auto; }
.privacidade h2 { margin-top: 48px; }
.privacidade h3 { margin-top: 32px; }
.privacidade p, .privacidade li { line-height: 1.6; }

/* Formulários */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}
.btn-primary { background: var(--primary2); color: white; border: none; padding: 10px 24px; border-radius: 4px; cursor: pointer; font-weight: 500; }
.btn-primary:hover { background: var(--primary3); }
.page-min-height { min-height: calc(100vh - 400px); }
