/* Base styles */
:root {
  --azul-claro: #009bc2;
  --azul-escuro: #233d78;
  --amarelo-claro: #fce172;
  --laranja: #fcb433;
  --verde-escuro: #00807b;
  --azul-marinho: #001027;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Exo 2', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: white;
  color: var(--azul-marinho);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }
}

section {
  padding: 3.5rem 0;
}

/* Animations */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

/* Hero Section */
.hero {
  width: 100%;
  background-color: white;
  padding: 3.5rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

.hero .content {
  max-width: 768px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  z-index: 10;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

.hero p {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2.25rem;
  color: var(--azul-escuro);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

/* Buttons */
.primary-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--laranja);
  color: var(--azul-marinho);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.primary-button:hover {
  background-color: var(--verde-escuro);
  color: white;
  transform: scale(1.05);
}

/* Benefícios Section */
.beneficios {
  width: 100%;
  background-color: var(--amarelo-claro);
  padding: 3.5rem 0;
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

.beneficios .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.logo-beneficios {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.beneficios-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.beneficios h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul-escuro);
  text-align: center;
}

.beneficios-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beneficio-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 18px 0 rgba(33,61,120,0.07);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

.beneficio-card:hover {
  box-shadow: 0 8px 24px 0 rgba(33,61,120,0.12);
}

.beneficio-card span {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--azul-marinho);
  text-align: left;
  display: block;
}

@media (min-width: 768px) {
  .beneficios .container {
    grid-template-columns: 1fr;
  }
  
  .beneficios h2 {
    font-size: 2rem;
  }
}

/* Professores Section */
.professores {
  width: 100%;
  background-color: white;
  padding: 3.5rem 0;
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

.professores h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--azul-claro);
  text-align: center;
  margin-bottom: 2.5rem;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 0 1rem;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.professor-card {
  flex: 0 0 100%;
  padding: 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .professor-card {
    flex: 0 0 50%;
  }
}

@media (min-width: 768px) {
  .professor-card {
    flex: 0 0 33.333%;
  }
}

@media (min-width: 1024px) {
  .professor-card {
    flex: 0 0 16.666%;
  }
  
  .professores h2 {
    font-size: 2.5rem;
  }
}

.professor-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s;
  height: 100%;
}

.professor-content:hover {
  box-shadow: 0 10px 25px rgba(33, 61, 120, 0.1);
}

.professor-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.professor-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s;
  background-color: #eee;
}

@media (min-width: 768px) {
  .professor-image {
    width: 150px;
    height: 150px;
  }
}

.professor-content:hover .professor-image {
  transform: scale(1.05);
}

.professor-name {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--azul-escuro);
  font-family: 'Exo 2', sans-serif;
}

@media (min-width: 768px) {
  .professor-name {
    font-size: 1.25rem;
  }
}

.professor-disciplina {
  color: var(--azul-marinho);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .professor-disciplina {
    font-size: 1rem;
  }
}

.professor-descricao {
  font-size: 0.75rem;
  color: rgba(0, 16, 39, 0.8);
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .professor-descricao {
    font-size: 0.875rem;
  }
}

.carousel-prev-button,
.carousel-next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  background-color: var(--azul-claro);
  color: white;
  border: 4px solid white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev-button {
  left: -8px;
}

.carousel-next-button {
  right: -8px;
}

@media (min-width: 768px) {
  .carousel-prev-button,
  .carousel-next-button {
    width: 5rem;
    height: 5rem;
  }
  
  .carousel-prev-button {
    left: -10px;
  }
  
  .carousel-next-button {
    right: -10px;
  }
}

@media (min-width: 1024px) {
  .carousel-prev-button {
    left: -20px;
  }
  
  .carousel-next-button {
    right: -20px;
  }
}

.carousel-prev-button:hover,
.carousel-next-button:hover {
  background-color: var(--azul-escuro);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.carousel-prev-button svg,
.carousel-next-button svg {
  width: 2rem;
  height: 2rem;
}

@media (min-width: 768px) {
  .carousel-prev-button svg,
  .carousel-next-button svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Alcance Digital Section */
.alcance-digital {
  width: 100%;
  background: linear-gradient(to bottom, var(--azul-claro), #60c3d9);
  padding: 4rem 0;
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

.alcance-digital h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .alcance-digital h2 {
    font-size: 2.5rem;
  }
}

.alcance-digital .subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(0, 16, 39, 0.8);
  text-align: center;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .alcance-digital .subtitle {
    font-size: 1.25rem;
  }
}

.separator {
  width: 6rem;
  height: 4px;
  background-color: var(--amarelo-claro);
  border-radius: 999px;
  margin: 0.75rem auto 2rem;
}

.alcance-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .alcance-cards {
    flex-direction: row;
  }
}

.alcance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255,255,255,0.95);
  border-radius: 1rem;
  box-shadow: 0 4px 18px 0 rgba(33,61,120,0.07);
  padding: 2rem 2.5rem;
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
}

.alcance-card:hover {
  transform: scale(1.1);
}

.alcance-card .rede {
  font-weight: 700;
  font-size: 1.5rem;
}

.rede.youtube {
  color: #FF0000;
}

.rede.instagram {
  color: #E1306C;
}

.rede.tiktok {
  color: #000000;
}

.alcance-card .num {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul-claro);
}

@media (min-width: 768px) {
  .alcance-card .num {
    font-size: 1.875rem;
  }
}

.alcance-card .desc {
  font-size: 1.125rem;
  color: var(--azul-escuro);
  text-align: center;
}

@media (min-width: 768px) {
  .alcance-card .desc {
    font-size: 1.25rem;
  }
}

/* CTA Section */
.cta {
  width: 100%;
  background: linear-gradient(to bottom right, var(--azul-claro), var(--laranja));
  padding: 4rem 0;
  animation: fade-up 0.8s cubic-bezier(.23,1.05,.61,.98);
}

.cta h2 {
  color: white;
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .cta h2 {
    font-size: 2.5rem;
  }
}

.cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.form-group label {
  color: white;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-group input {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: none;
  background-color: white;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
}

.error-message {
  color: #ffcccc;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.125rem;
}

.submit-button {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 1rem 2rem;
  background-color: var(--laranja);
  color: var(--azul-marinho);
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  margin: 1.5rem auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.submit-button:hover {
  background-color: var(--amarelo-claro);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.social-tag {
  display: block;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: bottom 0.3s ease-in-out;
  max-width: 90%;
}

.toast.visible {
  bottom: 30px;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#toastMessage {
  font-size: 1rem;
  color: var(--azul-escuro);
}

#toastClose {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

#toastClose:hover {
  color: #333;
}