:root {
  /* Palette */
  --primary-color: #4a051cff; /* Chocolate Cosmos */
  --primary-dark: #003952ff; /* Prussian Blue */
  --primary-light: rgb(242, 245, 77); /* Coral */
  --secondary-color: #ff9f1cff; /* Orange Peel */
  --accent-color: #ff784fff; /* Coral accent */
  --light-color: #fff3f0ff; /* Seashell */
  --dark-color: #333333;
  --gray-light: #f0f0f0;
  --gray-medium: #cccccc;
  --gray-dark: #666666; 

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  --gradient-neutral: linear-gradient(
    45deg,
    var(--light-color) 0%,
    var(--gray-light) 100%
  );

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-main: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Radii & Transitions */
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 16px;
  --transition-speed: 0.3s;
}

/* Base Elements */
body {
  font-family: var(--font-main);
  color: var(--dark-color);
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  padding: 1rem 0;
  list-style: none;
  background-color: transparent;
  margin-bottom: 1rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--gray-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  display: inline-block;
  padding: 0 0.5rem;
  color: var(--gray-medium);
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--rounded-md);
  text-transform: uppercase;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--light-color);
  color: var(--light-color);
}

.btn-outline:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-ver-todos {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--rounded-md);
  transition: all var(--transition-speed);
  font-size: 1rem;
}

.btn-ver-todos:hover {
  background-color: #4a051c;
  color: white;
}

/* Common Section Styling */
[class$="-section"],
.eventos-container {
  padding: 1rem 0;
}

[class$="-section"] h2,
.eventos-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

[class$="-section"] h2:after,
.eventos-header:after {
  margin: 0.5rem auto 0;
}

/* Hero Slider Section */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.slider-item.active {
  opacity: 1;
  z-index: 1;
}

.slider-content {
  width: 50%;
  padding: 2rem;
  position: relative;
  z-index: 2;
  color: white;
  background: rgba(73, 26, 14, 0.8);
  border-radius: var(--rounded-md);
  margin-left: 5%;
}

.split-section {
  display: flex;
  background-color: #ffffff;
  height: 450px;
  overflow: hidden;
  position: relative;
}

/* Aumenta o espaço da imagem (ex: 60% imagem, 40% texto) */
.image-side {
  flex: 1.4;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  overflow: hidden;
}

.text-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background-color: #ffffff;
  z-index: 1;
}

.image-container {
  height: 100%;
  transition: transform 0.5s ease;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

.slider-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.slider-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.slider-cta {
  display: flex;
  gap: 1rem;
}

.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slider-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 5;
}

.slider-prev,
.slider-next {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.slider-prev:hover,
.slider-next:hover {
  background-color: white;
  color: var(--primary-dark);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.slider-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Features Section */
.features-section {
  background-color: var(--light-color);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-item p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.courses-ver-todos {
  text-align: center;
  margin-top: 0%px; /* Aproxime da seção acima */
  margin-bottom: 3rem; /* Afaste da seção abaixo */
}

.eventos-empty {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--gray-dark);
}

/* ---------- Eventos em Destaque: CSS Completo ---------- */

:root {
  --primary-color: #4a051c; /* vinho */
  --primary-light: #fff3f0; /* branco rosado */
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-medium: #cccccc;
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --font-main: "Roboto", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --transition: 0.3s;
}

.popular-courses-section {
  font-family: var(--font-main);
  color: var(--primary-color);
  padding: 4rem 0;
}

.popular-courses-section .intro {
  margin-bottom: 2rem;
  color: var(--gray-medium);
}

/* GRID desktop */
.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* ITEM */
.course-item {
  background: var(--white);
  border-radius: var(--arredondado-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition);
  position: relative;
}
.course-item:hover {
  transform: translateY(-4px);
}

/* RANK */
.rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--arredondado-sm);
}
.crown-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
  fill: var(--white);
}
.rank-number {
  font-family: var(--font-heading);
  font-size: 1rem;
}

/* IMAGEM */
.imagem-do-curso {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.imagem-do-curso img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTEÚDO */
.course-content {
  padding: 1rem;
}
.course-title {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}
.course-description {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}
.course-link {
  display: inline-block;
  color: var(--white);
  background: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--arredondado-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.course-link:hover {
  background: darken(var(--primary-color), 10%);
}

/* NAV BUTTONS */
.slider-nav {
  display: none; /* só mobile */
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.nav-btn {
  background: var(--white);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--arredondado-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* DOTS */
.slider-dots {
  display: none; /* só mobile */
  justify-content: center;
  gap: 0.5rem;
}
.slider-dots .dot {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--gray-medium);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}
.slider-dots .dot.active {
  background: var(--primary-color);
}

/* “Ver todos” */
.btn-ver-todos {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--arredondado-md);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-ver-todos:hover {
  background: var(--primary-color);
  color: var(--white);
}

.eventos-ver-todos {
  text-align: center;
}

/* Testimonials Section - Fixed and Optimized */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--primary-dark);
  color: white;
  text-align: center;
}

.testimonials-section h2 {
  color: white;
  margin-bottom: 3rem;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  height: 150px;
  margin: 0 auto 2rem;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 0 1rem;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--rounded-md);
}

.testimonial-item.active {
  opacity: 1;
}

.testimonial-item p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-item cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.testimonials-controls button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--rounded-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color var(--transition-speed);
}

.testimonials-controls button:hover {
  background-color: #e69226;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content h2:after {
  display: none;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-content .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-content .btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--light-color);
}

.newsletter-wrapper {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.newsletter-content {
  flex: 1;
}

.newsletter-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.newsletter-benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.newsletter-benefits li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.newsletter-benefits li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.social-links {
  margin-top: 2rem;
}

.social-links p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: all var(--transition-speed);
}

.social-links a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.newsletter-form {
  flex: 1;
  background-color: white;
  padding: 2rem;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

input[type="email"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-medium);
  border-radius: var(--rounded-md);
  font-size: 1rem;
  margin-bottom: 1rem;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.preference-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preference-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.privacy-notice {
  margin-top: 1rem;
  color: var(--gray-dark);
  text-align: center;
}

/* ====== SEÇÃO DE EVENTOS EM DESTAQUE ====== */
.eventos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.eventos-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
  border-radius: 20px 20px 0 0;
}

.eventos-header {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  position: relative;
}

.eventos-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745);
  border-radius: 2px;
}

.eventos-subheader {
  text-align: center;
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 50px;
  font-weight: 300;
}

/* Container do slider */
.eventos-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.slider-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Item individual do evento */
.evento-item {
  display: flex;
  min-height: 300px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateX(0);
}

.evento-item.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

.evento-item.slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}

.evento-item.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.evento-item.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.evento-item.d-none {
  display: none;
}

/* Imagem do evento */
.evento-image {
  width: 520px; /* Aumentado */
  height: 380px; /* Aumentado */
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #fff; /* Fundo branco para áreas não preenchidas */
  display: flex;
  align-items: center;
  justify-content: center;
}

.evento-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostra a imagem inteira, sem cortar */
  background: #fff; /* Garante fundo branco atrás da imagem */
  transition: transform 0.3s ease;
}

.evento-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 123, 255, 0.1),
    rgba(40, 167, 69, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.evento-item:hover .evento-image::after {
  opacity: 1;
}

.evento-item:hover .evento-image img {
  transform: scale(1.05);
}

/* Conteúdo do evento */
.evento-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  position: relative;
}

.evento-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
}

.evento-date {
  font-size: 0.95rem;
  color: #007bff;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 5px 12px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.evento-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.evento-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.evento-link:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  color: #fff;
  text-decoration: none;
}

.evento-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.evento-link:hover::after {
  transform: translateX(4px);
}

/* Botões de navegação */
.slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  color: #007bff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.slider-btn:hover {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Botão próximo evento transparente */
#eventos-next-btn {
  background: transparent !important;
  color: #007bff;
  box-shadow: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#eventos-next-btn:hover,
#eventos-next-btn:focus {
  opacity: 1;
  background: transparent !important;
  color: #0056b3;
  box-shadow: none;
}

/* Indicador de progresso automático */
.progress-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #28a745);
  border-radius: 0 0 15px 15px;
  animation: progressBar 10s linear infinite;
  z-index: 5;
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Estado vazio */
.eventos-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-size: 1.1rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Botão "Ver todos" */
.eventos-ver-todos {
  text-align: center;
}

.btn-ver-todos {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #4a051c, #7a2948); /* Gradiente vinho */
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 5, 28, 0.18);
  border: none;
}

.btn-ver-todos:hover {
  background: linear-gradient(
    135deg,
    #7a2948,
    #4a051c
  ); /* Inverte o gradiente no hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 5, 28, 0.28);
  color: #fff;
  text-decoration: none;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 768px) {
  .eventos-container {
    padding: 40px 15px;
    margin: 20px;
    border-radius: 15px;
  }

  .eventos-header {
    font-size: 2rem;
  }

  .eventos-subheader {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .eventos-slider {
    flex-direction: column;
    gap: 15px;
  }

  .evento-item {
    flex-direction: column;
    min-height: auto;
  }

  .evento-image {
    width: 100%;
    height: 250px;
  }

  .evento-content {
    padding: 20px;
  }

  .evento-title {
    font-size: 1.3rem;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* Botões em mobile ficam sobre a imagem */
  .eventos-slider {
    position: relative;
  }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .eventos-container {
    margin: 10px;
    padding: 30px 10px;
  }

  .eventos-header {
    font-size: 1.8rem;
  }

  .evento-image {
    height: 200px;
  }

  .evento-content {
    padding: 15px;
  }

  .evento-title {
    font-size: 1.2rem;
  }

  .evento-description {
    font-size: 0.9rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Estados de foco para acessibilidade */
.eventos-slider:focus {
  outline: 3px solid rgba(0, 123, 255, 0.3);
  outline-offset: 2px;
}

/* Animação suave para mudanças */
* {
  box-sizing: border-box;
}

/* Preloader para imagens */
.evento-image.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* ====== MEDIA QUERIES PARA RESPONSIVIDADE ====== */

/* Tablets - 768px até 1024px */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }

  /* Hero Slider */
  .hero-slider {
    height: 500px;
  }

  .slider-content {
    width: 60%;
    padding: 1.5rem;
  }

  .slider-content h1 {
    font-size: 2.5rem;
  }

  .slider-content p {
    font-size: 1.1rem;
  }

  /* Features Section */
  .features-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Split Section */
  .split-section {
    height: 400px;
  }

  .text-side {
    padding: 30px;
  }

  /* Popular Courses */
  .course-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Newsletter */
  .newsletter-wrapper {
    gap: 2rem;
  }

  .newsletter-form {
    padding: 1.5rem;
  }
}

/* Tablets pequenos - 768px */
@media screen and (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Hero Slider */
  .hero-slider {
    height: 400px;
  }

  .slider-content {
    width: 80%;
  }

  .slider-content h1 {
    font-size: 2rem;
  }

  .slider-content p {
    font-size: 1rem;
  }

  .slider-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Features Section */
  .features-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem;
  }

  /* Split Section */
  .split-section {
    flex-direction: column;
    height: auto;
  }

  .image-side {
    flex: none;
    height: 300px;
    clip-path: none;
  }

  .text-side {
    flex: none;
    padding: 2rem;
    text-align: center;
  }

  /* Popular Courses */
  .course-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mostrar controles do slider em mobile */
  .slider-nav {
    display: flex;
  }

  .slider-dots {
    display: flex;
  }

  /* Testimonials */
  .testimonials-wrapper {
    height: 180px;
  }

  .testimonial-item p {
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  /* Newsletter */
  .newsletter-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .newsletter-form {
    padding: 1.5rem;
  }

  .preference-checkboxes {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Eventos Container */
  .eventos-container {
    padding: 40px 15px;
    margin: 20px 10px;
  }

  .eventos-header {
    font-size: 2rem;
  }

  .eventos-slider {
    flex-direction: column;
    gap: 15px;
  }

  .evento-item {
    flex-direction: column;
  }

  .evento-image {
    width: 100%;
    height: 250px;
  }

  .evento-content {
    padding: 20px;
  }

  /* Chatbot */
  .chatbot-window {
    width: 90%;
    height: 70vh;
    bottom: 80px;
    right: 5%;
    left: 5%;
  }
}

/* Smartphones - 480px */
@media screen and (max-width: 480px) {
  /* Base */
  .container {
    padding: 0 0.75rem;
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  /* Hero Slider */
  .hero-slider {
    height: 350px;
  }

  .slider-content {
    width: 90%;
    padding: 1rem;
    margin-left: 2.5%;
  }

  .slider-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .slider-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .slider-controls {
    bottom: 1rem;
    gap: 1rem;
  }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
  }

  /* Features Section */
  .feature-item {
    padding: 1.25rem;
  }

  .feature-item i {
    font-size: 2rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }

  /* Split Section */
  .image-side {
    height: 250px;
  }

  .text-side {
    padding: 1.5rem;
  }

  .text-side h2 {
    font-size: 1.5rem;
  }

  .text-side p {
    font-size: 0.95rem;
  }

  /* Popular Courses */
  .course-item {
    margin-bottom: 1rem;
  }

  .imagem-do-curso {
    height: 150px;
  }

  .course-content {
    padding: 0.75rem;
  }

  .course-title {
    font-size: 1.1rem;
  }

  .course-description {
    font-size: 0.85rem;
  }

  .course-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Rank badge menor */
  .rank {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.4rem;
  }

  .crown-icon {
    width: 0.8rem;
    height: 0.8rem;
  }

  .rank-number {
    font-size: 0.85rem;
  }

  /* Testimonials */
  .testimonials-wrapper {
    height: 200px;
  }

  .testimonial-item {
    padding: 0 0.75rem;
  }

  .testimonial-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimonial-item cite {
    font-size: 0.8rem;
  }

  .testimonials-controls button {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  /* Newsletter */
  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .newsletter-content p {
    font-size: 1rem;
  }

  .newsletter-benefits li {
    font-size: 0.9rem;
  }

  .newsletter-form {
    padding: 1.25rem;
  }

  input[type="email"] {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .social-links a {
    width: 35px;
    height: 35px;
    margin-right: 0.5rem;
  }

  /* Eventos Container */
  .eventos-container {
    margin: 10px 5px;
    padding: 20px 10px;
  }

  .eventos-header {
    font-size: 1.5rem;
  }

  .eventos-subheader {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .evento-image {
    height: 200px;
  }

  .evento-content {
    padding: 15px;
  }

  .evento-title {
    font-size: 1.1rem;
  }

  .evento-date {
    font-size: 0.85rem;
    padding: 4px 10px;
  }

  .evento-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .evento-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }

  /* Botão Ver Todos */
  .btn-ver-todos {
    padding: 12px 24px;
    font-size: 1rem;
  }

  /* Chatbot */
  .chatbot-toggle {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .chatbot-window {
    width: 95%;
    height: 75vh;
    bottom: 75px;
    right: 2.5%;
    left: 2.5%;
  }

  .chatbot-messages {
    height: calc(75vh - 120px);
  }

  .chatbot-input input {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .chatbot-input button {
    width: 35px;
    height: 35px;
  }
}

/* Smartphones muito pequenos - 320px */
@media screen and (max-width: 320px) {
  /* Base */
  .container {
    padding: 0 0.5rem;
  }

  /* Typography */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Hero Slider */
  .hero-slider {
    height: 300px;
  }

  .slider-content {
    width: 95%;
    padding: 0.75rem;
  }

  .slider-content h1 {
    font-size: 1.5rem;
  }

  .slider-content p {
    font-size: 0.9rem;
  }

  /* Features */
  .feature-item {
    padding: 1rem;
  }

  .feature-item i {
    font-size: 1.75rem;
  }

  /* Split Section */
  .text-side {
    padding: 1rem;
  }

  .text-side h2 {
    font-size: 1.25rem;
  }

  /* Testimonials */
  .testimonials-wrapper {
    height: 220px;
  }

  .testimonial-item p {
    font-size: 0.9rem;
  }

  /* Newsletter */
  .newsletter-form {
    padding: 1rem;
  }

  /* Eventos */
  .eventos-container {
    padding: 15px 8px;
  }

  .eventos-header {
    font-size: 1.25rem;
  }

  .eventos-subheader {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .evento-image {
    height: 200px;
  }

  .evento-content {
    padding: 12px;
  }

  .evento-title {
    font-size: 1rem;
  }

  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Chatbot */
  .chatbot-window {
    width: 98%;
    right: 1%;
    left: 1%;
  }
}

/* Orientação paisagem em dispositivos móveis */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero-slider {
    height: 300px;
  }

  .slider-content {
    width: 50%;
  }

  .split-section {
    flex-direction: row;
    height: 300px;
  }

  .image-side {
    height: 300px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  }

  .text-side {
    padding: 1.5rem;
  }

  .evento-item {
    flex-direction: row;
  }

  .evento-image {
    width: 300px;
    height: 200px;
  }

  .chatbot-window {
    height: 60vh;
  }
}

/* Estados de hover desabilitados em touch devices */
@media (hover: none) and (pointer: coarse) {
  .feature-item:hover,
  .course-item:hover,
  .evento-item:hover .evento-image img,
  .slider-btn:hover,
  .btn:hover,
  .evento-link:hover {
    transform: none;
  }

  .feature-item:hover {
    transform: none;
  }

  .curso-item:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .chatbot-container,
  .slider-controls,
  .slider-nav,
  .slider-dots,
  .testimonials-controls,
  .slider-btn {
    display: none !important;
  }

  .hero-slider {
    height: auto;
  }

  .slider-item {
    position: static;
    opacity: 1;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}

/* Redução de movimento para usuários com preferências de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .slider-item,
  .testimonial-item,
  .evento-item {
    transition: none !important;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .btn {
    border-width: 3px;
  }

  .feature-item,
  .course-item,
  .newsletter-form,
  .evento-item {
    border: 2px solid var(--gray-medium);
  }
}
      /* ===== Estilização do FAQ ===== */
      :root {
        --primary: #007bff;
        --bg-question: #f5f5f5;
        --bg-question-open: #e0e0e0;
        --bg-answer: #ffffff;
        --radius: 0.5rem;
      }

      body {
        margin: 0;
        font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        background: #fafafa;
        color: #212529;
      }

      #faq {
        max-width: 720px;
        margin: 3rem auto;
        padding: 0 1rem;
      }

      #faq h2 {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 2rem;
      }

      .faq-item + .faq-item {
        margin-top: 1rem;
      }

      .faq-question {
        width: 100%;
        text-align: left;
        background: var(--bg-question);
        border: none;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        border-radius: var(--radius);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background 0.25s ease;
      }

      .faq-question[aria-expanded="true"] {
        background: var(--bg-question-open);
      }

      .faq-question:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
      }

      .faq-answer {
        display: none;
        padding: 0.75rem 1.25rem 1rem;
        background: var(--bg-answer);
        border-left: 4px solid var(--primary);
        border-radius: 0 0 var(--radius) var(--radius);
        font-size: 0.95rem;
        line-height: 1.5;
      }