:root {
  --cor-primaria: #0d6efd;

  --cor-azul-marinho: #001f3f;

  --cor-escura: #212529;
}

/* No seu CSS, ache o 'body' e substitua por isso */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;

  font-weight: 700;
}

.navbar {
  background-color: #001f3f !important;

  transition: padding 0.3s ease-in-out;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 40px;

  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--cor-primaria) !important;
}

.btn-nav,
.dropdown-toggle {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav:hover,
.dropdown-toggle:hover {
  transform: scale(1.05);

  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.dropdown-menu {
  border-radius: 0.5rem;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  font-weight: 600;
}

.dropdown-item i {
  width: 1.5em;
  /* Alinha os ícones */
}

.hero-section {
  background: linear-gradient(
      135deg,
      rgba(0, 31, 63, 0.95),
      rgba(0, 56, 112, 0.9)
    ),
    url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyODE1MDl8MHwxfGFsbHx8fHx8fHx8fDE2MjkzNTc0NjA&ixlib=rb-1.2.1&q=80&w=1920");

  background-size: cover;

  background-position: center;

  background-attachment: fixed;

  padding: 140px 0;

  color: white;
}

.hero-section h1 {
  font-size: 3.8rem;

  font-weight: 800;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.3rem;

  font-weight: 400;

  max-width: 600px;

  margin: 1.5rem auto 2.5rem auto;

  opacity: 0.9;
}

.btn-cta {
  font-size: 1.1rem;

  font-weight: 600;

  padding: 0.8rem 2.5rem;

  border-radius: 50px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: scale(1.05);

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary {
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.btn-cta-warning {
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-weight: 800;

  font-size: 2.5rem;

  margin-bottom: 50px;

  position: relative;

  padding-bottom: 15px;
}

.section-title::after {
  content: "";

  position: absolute;

  display: block;

  width: 80px;

  height: 4px;

  background: var(--cor-primaria);

  bottom: 0;

  left: 50%;

  transform: translateX(-50%);

  border-radius: 2px;
}

.feature-icon {
  font-size: 3.5rem;

  color: var(--cor-primaria);

  margin-bottom: 1.5rem;

  display: inline-block;

  transition: transform 0.3s ease;
}

.feature-card {
  background-color: #fff;

  border: none;

  border-radius: 15px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

.how-it-works-step {
  position: relative;

  padding-left: 70px;

  margin-bottom: 30px;
}

.step-number {
  position: absolute;

  left: 0;

  top: 0;

  font-size: 3rem;

  font-weight: 800;

  color: var(--cor-primaria);

  opacity: 0.3;

  line-height: 1;
}

.how-it-works-step h5 {
  font-weight: 700;

  font-size: 1.3rem;

  color: var(--cor-azul-marinho);
}

.testimonials-section {
  background-color: var(--cor-azul-marinho);

  color: white;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);

  border: none;

  border-radius: 10px;

  padding: 2rem;
}

.testimonial-quote {
  font-size: 1.1rem;

  font-style: italic;

  opacity: 0.9;
}

.testimonial-author {
  font-weight: 700;

  margin-top: 1.5rem;
}

.testimonial-stars {
  color: #ffc107;

  margin-top: 0.5rem;
}

.carousel-indicators [data-bs-target] {
  background-color: #fff;

  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
}

.accordion-item {
  border-radius: 10px !important;

  overflow: hidden;

  margin-bottom: 1rem;

  border: none;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-weight: 600;

  color: var(--cor-escura);

  background-color: #fff;
}

.accordion-button:not(.collapsed) {
  color: #fff;

  background-color: var(--cor-primaria);

  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;

  border-color: transparent;
}

.accordion-button::after {
  background-image: none;

  font-family: "bootstrap-icons";

  content: "\F64D";

  font-weight: bold;

  transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  content: "\F60E";

  transform: rotate(180deg);
}

.accordion-body {
  background-color: #fff;
}

.cta-section {
  background: linear-gradient(135deg, var(--cor-primaria), #0056b3);

  color: white;

  padding: 80px 0;

  border-radius: 20px;

  margin-top: 100px;

  margin-bottom: 100px;

  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.footer {
  background-color: var(--cor-escura);

  color: #adb5bd;

  padding: 50px 0;
}

.footer a {
  color: #fff;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--cor-primaria);

  text-decoration: none;
}

.footer-links span {
  margin: 0 0.5rem;
}

/* Espaçamento nos links do rodapé */

.footer-links a {
  color: #adb5bd;

  font-size: 0.9rem;
}

/* Cor cinza para links admin/instrutor */

.footer-links a:hover {
  color: #fff;
}

/* --- CSS PARA O BOTÃO FLUTUANTE DE AJUDA --- */

.btn-bot-ajuda {
  position: fixed;

  bottom: 100px;

  right: 25px;

  width: 60px;

  height: 60px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 2rem;

  transition: transform 0.2s ease;

  z-index: 1050;
  /* Garante que fique acima da maioria do conteúdo */
}

.btn-bot-ajuda:hover {
  transform: scale(1.1);
}

/* --- INÍCIO DA CORREÇÃO DE RESPONSIVIDADE --- */
/* Ajusta a posição do botão de ajuda em telas pequenas (mobile) */
@media (max-width: 767.98px) {
  .btn-bot-ajuda {
    bottom: 20px;
    /* Mais perto da parte inferior */
    right: 20px;
    /* Mais perto do canto */
  }
}
