/* ==================== */
/* RESET E BASE GERAL   */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0a1b33;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px 10px 0 0;
}


/* ==================== */
/* HEADER               */
/* ==================== */
header {
  background: #0b223f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1.tech-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #4fe0c6;
  text-align: center;
  flex: 1;
}

#menu-toggle {
  font-size: 26px;
  background: none;
  border: none;
  color: #4fe0c6;
  cursor: pointer;
  position: absolute;
  left: 20px;
}

/* ==================== */
/* MENU LATERAL         */
/* ==================== */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background: #0f2a44;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  z-index: 1001;
}

.side-menu.open {
  left: 0;
}

.side-menu button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 1rem;
  cursor: pointer;
}

.side-menu a {
  color: #fff;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.side-menu a:hover,
.side-menu a.active {
  color: #00d4ff;
}

/* === CONTEÚDO PRINCIPAL === */
.container {
  padding: 2rem 1rem;
  text-align: center;
}

#cursos h1 {
  font-size: 1.8rem;
  color: #00d4ff;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* === GRID DE CURSOS === */
.cursos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.curso-card {
  background: #0f2a44;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.4);
}

.curso-card span {
  display: block;
  background: #0f2a44;
  color: #1affc9;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 0.8rem;
  border-radius: 0 0 12px 12px;
}


/* === RESPONSIVIDADE (Mobile First) === */
@media (min-width: 600px) {
  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cursos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .cursos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
