:root {
  --p900: #1b0a2c;
  --p800: #2b1244;
  --p650: #4b1d73;
  --p500: #7B45AB;
  --teal: #18c6b7;

  --bg: #f7f6fb;
  --card: #ffffff;
  --ink: #171717;

  --border: rgba(43, 18, 68, .10);
  --shadow: 0 22px 55px rgba(27, 10, 44, .18);
  --shadow-soft: 0 12px 28px rgba(27, 10, 44, .10);

  --radius: 18px;
  --bs-primary: #ff3ea5; /* Pink identity override */
}

html, body { min-height: 100vh; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(123, 69, 171, .14), transparent 62%),
    radial-gradient(900px 420px at 92% 10%, rgba(24, 198, 183, .10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 42%, #fff 100%);
  background-attachment: fixed; /* Prende o fundo na tela */
  background-repeat: no-repeat; /* Impede que a quebra/linha reta aconteça */
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .display-font { font-family: Kanit, system-ui, sans-serif; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--p900), var(--p800) 55%, var(--p650));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.topbar-inner {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.logos img { height: 46px; width: auto; display: block; }
.divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .22); }

/* Hero */
.hero-wrap { padding: 22px 0 18px; }
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  background-image: url("../images/hero-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #fff;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(77,44,143,.78) 0%, rgba(133,62,169,.62) 55%, rgba(215,75,146,.42) 100%);
  z-index: 0;
  pointer-events: none;
}
.radial-clean { display: none !important; }

.hero-content { position: relative; z-index: 1; }
.hero-title { color: #ffffff !important; }
.hero-sub {
  margin: 10px 0 0;
  opacity: .92;
  max-width: 78ch;
  text-wrap: pretty;
}

.pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(24, 198, 183, .16);
}
.pill i { font-size: 16px; }

/* Theme carousel */
.theme-shell {
  margin-top: 14px;
  max-width: 100%;
}
.theme-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  padding: 16px 50px 30px 50px !important;
  overflow: hidden;
}
.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.theme-title {
  margin: 0;
  font-family: Kanit, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
  line-height: 1.15;
  text-wrap: balance;
}
.theme-meta {
  margin: 6px 0 0;
  opacity: .92;
  font-size: 13px;
  line-height: 1.3;
}
.theme-meta b { font-weight: 700; }
.btn-kit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #fff;
  color: rgba(43, 18, 68, 1);
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
  white-space: nowrap;
}
.btn-kit:hover { opacity: .95; }
.btn-kit i { font-size: 16px; }

/* Bootstrap carousel tweaks */
.carousel-indicators { 
  bottom: 6px !important;
  margin-bottom: 0 !important; 
}
.carousel-indicators [data-bs-target] {
  width: 8px; 
  height: 8px;
  border-radius: 999px;
  border: 0;
  opacity: 0.45;
  margin: 0 4px;
  
}
.carousel-indicators .active { opacity: 1; }
.carousel-control-prev, .carousel-control-next {
  width: 44px !important;
  opacity: 0.8;
}
.carousel-control-prev { left: 0px !important; }
.carousel-control-next { right: 0px !important; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  width: 18px; height: 18px;
}
.carousel-controls-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

/* Light Search adapted for Panel */
.search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}
.search-wrap:focus-within {
  background: #ffffff;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(255, 62, 165, 0.1);
}
.search-wrap i { font-size: 18px; color: rgba(0,0,0,.45); }
.search-wrap input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  width: 100%;
  font-size: 15px;
}
.search-wrap input::placeholder { color: rgba(0,0,0,.45); }
.icon-btn {
  border: 0;
  background: transparent;
  color: rgba(0,0,0,.45);
  padding: 6px 8px;
  border-radius: 10px;
}
.icon-btn:hover { background: rgba(0,0,0,.08); color: var(--ink); }

/* Panel */
.panel {
  margin-top: 18px;
  border-radius: calc(var(--radius) + 10px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.panel-head {
  padding: 18px 18px;
  border-bottom: 1px solid rgba(43, 18, 68, .08);
  background:
    radial-gradient(900px 240px at 12% 0%, rgba(123, 69, 171, .06), transparent 60%),
    radial-gradient(900px 240px at 92% 0%, rgba(24, 198, 183, .05), transparent 60%);
  display: flex;
  flex-direction: column;
}
.counter {
  font-size: 12px;
  color: rgba(43, 18, 68, .70);
  background: rgba(123, 69, 171, .10);
  border: 1px solid rgba(123, 69, 171, .16);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.hint { color: rgba(0, 0, 0, .55); font-size: 12px; margin-left: auto; }

/* Accordion */
.accordion-item { border: 0; border-top: 1px solid rgba(43, 18, 68, .08); }
.accordion-item:first-child { border-top: 0; }
.accordion-button {
  font-family: Kanit, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: #ff3ea5 !important;
  background-color: rgba(255, 62, 165, .08) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 62, 165, .15) !important;
}
.accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(255, 62, 165, .25) !important; }
.section-badge {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  color: rgba(43, 18, 68, .70);
  margin-left: 8px;
  font-size: 12px;
}

/* Cards */
.cards { padding: 10px 18px 18px; }
.link-card {
  background: #fff;
  border: 1px solid rgba(43, 18, 68, .10);
  border-radius: 16px;
  padding: 14px;
  height: 100%;
  cursor: pointer;
  transition: all .25s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: #ff3ea5 !important;
  box-shadow: 0 12px 30px rgba(255, 62, 165, .18);
}
.link-card a {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ic {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(24, 198, 183, .16), rgba(123, 69, 171, .08));
  border: 1px solid rgba(24, 198, 183, .25);
  flex: 0 0 auto;
  color: rgba(43, 18, 68, .95);
}
.ic i { font-size: 22px; }
.t-title {
  margin: 0;
  font-family: Kanit, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 16px;
  line-height: 1.2;
  word-break: break-word;
}
.t-desc {
  margin: 6px 0 0;
  color: rgba(0, 0, 0, .60);
  font-size: 13px;
  line-height: 1.25;
  word-break: break-word;
}
.arrow { margin-left: auto; opacity: .45; padding-top: 2px; }
.arrow i { font-size: 18px; }
.icon-badge { display: none !important; }

/* Empty State */
.empty {
  margin: 0 18px 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(43, 18, 68, .25);
  background: rgba(123, 69, 171, .04);
  color: rgba(0, 0, 0, .62);
  display: none;
  position: relative;
}
.wp-floating {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(8px);
}
.wp-floating:hover { background: rgba(255, 255, 255, .2); }

/* Cursos por sala (Salas Temáticas) */
.course-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 62, 165, 0.4) !important; /* Borda rosa mais evidente */
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 62, 165, 0.06) 100%) !important; /* Degradê super leve pro rosa */
  border-radius: 18px;
  padding: 24px 24px 24px 30px !important; /* Mais respiro interno */
  box-shadow: 0 12px 35px rgba(255, 62, 165, 0.12) !important;
}

.course-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--bs-primary); /* Rosa forte do HC */
  border-radius: 18px 0 0 18px;
}

.course-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.course-kicker {
  color: var(--bs-primary) !important;
  font-weight: 800 !important;
}
.course-title {
  color: var(--p900); /* Mantém o roxo escuro para leitura */
  font-weight: 900;
  font-size: 1.3rem; /* Título um pouco maior */
  margin-top: 4px;
}

.course-tools {
  background: #ffffff !important; /* Fundo branco pra contrastar com o fundo levemente rosa */
  border: 1px solid rgba(255, 62, 165, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 16px !important;
  border-radius: 14px;
  margin-top: 16px !important;
}


/* Botão de Consulta refatorado para o tema HC */
.btn-consulta-sala {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 63, 144, .10);
  color: #b5155f;
  border: 1px solid rgba(236, 63, 144, .22);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s ease;
}
.btn-consulta-sala:hover {
  background: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
  box-shadow: 0 6px 15px rgba(255, 62, 165, .25);
}

/* Ferramentas de Consulta */
.course-tools {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 10px 0 0;
  background: rgba(0, 0, 0, .02);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.05);
}
.course-tool { display: flex; flex-direction: column; gap: 6px; }
.course-label { font-size: .78rem; color: rgba(0, 0, 0, .55); font-weight: 700; }
.course-select, .course-search {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .10);
  padding: 0 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
.course-select:focus, .course-search:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(255, 62, 165, .15);
}
.course-clear {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(236, 63, 144, .25);
  background: rgba(236, 63, 144, .10);
  color: #b5155f;
  font-weight: 800;
  padding: 0 14px;
  transition: all 0.2s ease;
}
.course-clear:hover { background: rgba(236, 63, 144, .20); }
.course-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(0, 0, 0, .15);
  border-radius: 12px;
  color: rgba(0, 0, 0, .6);
  background: rgba(255, 255, 255, .6);
}

/* Overrides de interação */
.btn-primary, .btn-primary:focus, .btn-primary:active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.nav-link.active, .nav-pills .nav-link.active {
  background-color: var(--bs-primary) !important;
}
a:focus, button:focus { outline: none; }

footer{
      background: #fff;
      border-top: 1px solid rgba(43,18,68,.10);
      padding: 18px 0;
    }
    .footer-row{
      display:flex;
      flex-wrap:wrap;
      gap: 14px;
      align-items:center;
      justify-content: space-between;
    }
    .footer-muted{ color: rgba(0,0,0,.55); font-size: 12px; }
    .social{ display:flex; gap:10px; align-items:center; }
    .sbtn{
      width: 46px; height: 46px;
      border-radius: 14px;
      display:grid; place-items:center;
      border: 1px solid rgba(43,18,68,.12);
      background: #fff;
      color: rgba(43,18,68,.85);
      text-decoration:none;
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }
    .sbtn i{ font-size: 22px; }
    .sbtn:hover{
      transform: translateY(-1px);
      border-color: rgba(24,198,183,.35);
      box-shadow: 0 12px 24px rgba(43,18,68,.10);
      color: rgba(43,18,68,1);
    }

@media (prefers-reduced-motion: reduce) {
  .carousel { scroll-behavior: auto; }
}
@media (max-width: 992px) {
  .theme-row { justify-content: flex-start; }
  .hint { width: 100%; margin-left: 0; margin-top: 4px; }
}

