* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
}

:root {
  --bg-primary: #fff;
  --bg-secondary: #f2f2f2;
  --text-primary: #020202;
  --text-secondary: #555;
  --header-bg: #000;
  --header-text: #fff;
  --card-bg: #fff;
  --border-color: #ccc;
  --accent: #c00000;
  --switch-thumb-color: #000;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #eaeaea;
  --text-secondary: #b5b5b5;
  --card-bg: #1a1a1a;
  --border-color: #333;
  --accent: #e00000;
  --switch-thumb-color: #fff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 80px;
}

.container {
  width: 100%;
  padding: 0 1rem;
  margin: auto;
}

.header {
  background: var(--header-bg);
  color: var(--header-text);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.header-hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo img {
  max-height: 70px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.nav {
  position: absolute;
  top: 80px;
  right: 0;
  width: 100%;
  background: #111;
  display: none;
  z-index: 1100;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.nav li {
  border-top: 1px solid #222;
}

.nav a {
  display: block;
  padding: 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  background: #222;
}

.nav.active {
  display: block;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.hero-carousel,
.carousel-slide {
  position: absolute;
  inset: 0;
}
.carousel-slide {
  opacity: 0;
  transition: 1s ease;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
}

.hero-content h1 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  cursor: default;
}
.hero-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
  cursor: default;
}

[data-theme="dark"] {
  --switch-thumb-color: #ffffff;
}

.theme-switch {
  width: 44px;
  height: 20px;

  border-radius: 50px;
  border: 1px solid var(--switch-thumb-color);
  position: relative;
  cursor: pointer;
}

.switch-thumb {
  width: 15px;
  height: 15px;
  background-color: var(--border-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition:
    left 0.3s ease,
    0.3s ease;
}

[data-theme="dark"] .theme-switch {
  background-color: var(--header-bg);
  border-color: var(--switch-thumb-color);
  transition:
    left 0.3s ease,
    0.3s ease;
}
[data-theme="dark"] .switch-thumb {
  left: 25px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

.btn-primary {
  font-size: 0.9rem;
  font-weight: bold;
}

.section {
  padding: 3rem 0;
}
.section-dark {
  background: var(--bg-secondary);
}
h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  cursor: default;
}

.sobre-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sobre-imagem img {
  width: 100%;
  border-radius: 6px;
}
.sobre-texto p {
  color: var(--text-secondary);
  cursor: default;
}
.sobre-imagem-secundaria {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.sobre-imagem-secundaria img {
  max-width: 100px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  text-align: center;
  max-width: 300px;
  min-width: 300px;
  min-height: 300px;
  margin-bottom: 20px;
  cursor: default;
}

.card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  max-width: 160px;
  max-height: 160px;
  margin-bottom: 1rem;
  border-radius: 5%;
}

.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  cursor: default;
}
th,
td {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
}
td {
  font-size: 14px;
}

.redes {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
iframe {
  width: 100%;
  height: 250px;
  border: 0;
  margin: 0 0 10%;
}

.redes-sociais {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 20%;
  align-items: center;
}

.redes-sociais a {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.redes i {
  margin-right: 12px;
  font-size: 1.4rem;
}

.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem;
  cursor: default;
}

@media (min-width: 768px) {
  .nav ul {
    display: flex;
    gap: 2rem;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
  }

  .btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
  }

  .card h3 {
    font-size: 0.9rem;
  }

  .card p {
    font-size: 0.8rem;
  }

  .card img {
    max-width: 200px;
    min-height: 170px;
  }

  .card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 40px;
    margin-bottom: 20px;
    cursor: default;
  }

  .card img {
    width: 100%;
    max-width: 160px;
    max-height: 160px;
    margin-bottom: 1rem;
    border-radius: 5%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .hero-content p {
    margin-bottom: 1.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: block !important;
    width: auto;
    background: none;
  }

  .nav ul {
    flex-direction: row;
    gap: 25px;
  }

  .nav li {
    border: none;
  }

  .nav a {
    padding: 0;
  }

  iframe {
    margin: 0 0 5rem;
    display: flex;
    max-width: 50%;
  }

  .redes {
    display: flex;
  }

  .redes-sociais {
    margin-top: 7%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .sobre-imagem-secundaria {
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin-top: 1rem;
  }
  .sobre-imagem-secundaria img {
    max-width: 150px;
  }

  td {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  .header-content {
    height: 110px;
  }

  .card h3 {
    font-size: 0.9rem;
  }

  .card p {
    font-size: 0.8rem;
  }

  .card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 40px;
    margin-bottom: 20px;
    cursor: default;
  }

  .card img {
    width: 100%;
    max-width: 160px;
    max-height: 160px;
    margin-bottom: 1rem;
    border-radius: 5%;
  }

  .btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .hero-content p {
    margin-bottom: 1.5rem;
  }

  .carousel-slide img {
    height: 100%;
    object-fit: cover;
  }

  .logo img {
    max-height: 85px;
  }
  .hero {
    height: 85vh;
  }
  .sobre-content {
    flex-direction: row;
    align-items: center;
  }
  #instrutores .grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    justify-content: center;
  }

  .sobre-imagem-secundaria {
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin-top: 1rem;
  }
  .sobre-imagem-secundaria img {
    max-width: 150px;
  }

  html {
    font-size: 25px;
  }

  .card {
    min-width: 250px;
  }

  .card img {
    max-width: 200px;
    max-height: 150px;
  }

  #contato.section {
    padding: 75px 0 0;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 30px;
  }

  .header-content {
    height: 5rem;
  }

  .logo img {
    max-height: 120px;
  }

  .theme-switch {
    width: 60px;
    height: 30px;
  }

  [data-theme="dark"] .switch-thumb {
    left: 32px;
  }

  .switch-thumb {
    width: 20px;
    height: 20px;
  }

  .card {
    max-width: 600px;
    min-width: 350px;
    min-height: 500px;
  }

  .card img {
    min-width: 260px;
    min-height: 250px;
  }

  td {
    font-size: 0.9rem;
  }

  .container.redes {
    padding: 0;
  }
}

@media (min-width: 3840px) {
  html {
    font-size: 40px;
  }

  .header-content {
    height: 6rem;
    padding: 0;
  }

  .container.header-content {
    min-width: 1400px;
  }

  .logo img {
    max-height: 160px;
  }

  .theme-switch {
    width: 70px;
    height: 40px;
  }

  [data-theme="dark"] .switch-thumb {
    left: 34px;
  }

  .switch-thumb {
    width: 30px;
    height: 30px;
  }

  .container {
    min-width: 1200px;
    max-width: 1500px;
  }

  .sobre-imagem-secundaria {
    gap: 5rem;
  }
  .sobre-imagem-secundaria img {
    max-width: 200px;
  }
  .card {
    max-width: 600px;
    min-width: 350px;
    min-height: 500px;
  }

  .card img {
    min-width: 260px;
    min-height: 250px;
  }

  #instrutores .card {
    max-width: 700px;
    min-width: 500px;
    min-height: 700px;
  }

  #instrutores .card img {
    min-width: 400px;
    min-height: 400px;
  }

  td {
    font-size: 1rem;
  }

  th,
  td {
    padding: 0.5rem;
  }

  .container.redes {
    padding: 0;
  }
}
