@import "base/tipografia.css";
@import "components/botoes.css";
@import "components/sessoes.css";
@import "components/cards.css";
@import "components/formularios.css";
@import "components/utilitarios.css";
@import "pages/login.css";
@import "pages/perfil.css";
@import "pages/aluno.css";

#empty {
  display: block;
  text-align: center;
}

.alert-error {
  background: #f8d7da;
  color: #842029;
  padding: 14px 18px;
  border-radius: 4px;
  border: 1px solid #f5c2c7;
  font-size: 14px;
  max-width: 100%;
  margin-bottom: 10px;
}

.alert-success {
  background: #e6f4ea;
  color: #1e7e34;
  padding: 14px 18px;
  border-radius: 4px;
  border: 1px solid #b7e1c1;
  font-size: 14px;
  max-width: 100%;
  margin-bottom: 10px;
}

a {
  color: #273041;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  opacity: 0.7;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  height: 15vh;
}

.nav-list {
  list-style: none;
  display: flex;
}

.nav-list li {
  letter-spacing: 3px;
  margin-left: 32px;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.mobile-menu div {
  width: 32px;
  height: 2px;
  background: #000;
  margin: 8px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .nav-list {
  position: fixed;
  top: 15vh;
  right: 0;
  width: 50vw;
  height: 70vh;
  background: rgb(223, 223, 223);
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  transform: translateX(100%);
  transition: transform 0.3s ease-in;
}

  .nav-list li {
    margin-left: 0;
    opacity: 0;
  }

  .mobile-menu {
    display: block;
  }

  .table-header {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    min-width: auto;
    gap: 8px;
  }

  .table-row span::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    color: #333;
    display: block;
  }
}

.nav-list.active {
  transform: translateX(0);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu.active .line1 {
  transform: rotate(-45deg) translate(-8px, 8px);
}

.mobile-menu.active .line2 {
  opacity: 0;
}

.mobile-menu.active .line3 {
  transform: rotate(45deg) translate(-5px, -7px);
}

.logo {
  display: block;
  width: 180px;
  height: 60px;
  background: url("/images/logotipo.png") no-repeat center;
  background-size: contain;
  text-indent: -9999px;
}

/*Rodapé*/

.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-box {
  flex: 1;
  min-width: 220px;
}

.footer-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  border-bottom: 2px solid #555;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-box p,
.footer-box a {
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  margin: 5px 0;
  display: block;
}

.footer-box a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.dropdown-menu li {
  margin: 0;
  letter-spacing: 1px;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #273041;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

/* Mostrar no desktop */
.dropdown:hover .dropdown-menu {
  display: block;
}

header {
  width: 100%;
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/*Parte Serviços*/
.servicos-modern {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8f9fb, #ffffff);
}

.servicos-wrapper {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.servicos-wrapper h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #1d1d1d;
}

.servicos-wrapper img {
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s ease;
  margin-bottom: 15px;
}

.servicos-wrapper img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.subtitulo {
  color: #666;
  margin-bottom: 60px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.students-section {
  padding: 70px 5%;
  background: #f4f6f9;
}

.students-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #111;
}

/* Busca */
.students-search {
  max-width: 450px;
  margin-bottom: 25px;
}

.students-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.students-search input:focus {
  border-color: #1976d2;
  outline: none;
}

/*Titulos para cursos */
.vagas {
  max-width: 1100px;
  margin: 10px auto;
  padding: 20px;
  text-align: center;
  font-family: Roboto, -apple-system, Helvetica, Arial, sans-serif;
  color: #444;
}

.vagas h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.subtitulo-curso {
  color: #666;
  margin-bottom: 30px;
}

.page-title {
  font-size: 2.2rem;
  margin-bottom: 35px;
  color: #111;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #111;
}

.table-header {
  background: #e9ecef;
  font-weight: 600;
  color: #333;
}

.table-row {
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #444;
}

.table-row:hover {
  background: #f1f5ff;
}

.table-header span:last-child,
.table-row span:last-child {
  text-align: center;
}

/* Responsivo para Mobile*/
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-box h3 {
    border: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Lista de habilidades */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.card-list li {
  padding: 4px 0;
  font-size: 14px;
  color: #444;
}

/* Slide */
.slider {
    position: relative;
    width: 100%;
    height: 35vh;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.contentSlide {
    position: relative;
    color: #fff;
    z-index: 2;
}

.contentSlide h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.contentSlide p {
    font-size: 20px;
}

/* Botões */
.prevSlide, .nextSlide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 30px;
    padding: 10px 18px;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
}

.prevSlide:hover, .nextSlide:hover {
    background: #2468c0;
}

.prevSlide { left: 20px; }
.nextSlide { right: 20px; }

@media (max-width: 768px) {
  .slider {
    position: relative;
    width: 100%;
    height: 14vh;
    overflow: hidden;
  }

  .contentSlide h1 {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .contentSlide p {
    font-size: 12px;
  }

  .prevSlide, .nextSlide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    padding: 4px 10px;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
  }
}