/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  transition: all 0.2s;
}

/* === Botões === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #4169E1;
  color: #ffffff;
  border: 2px solid #4169E1;
}

.btn-primary:hover {
  background: #315ac1;
  border-color: #315ac1;
}

.btn-outline {
  background: transparent;
  color: #4169E1;
  border: 2px solid #4169E1;
}

.btn-outline:hover {
  background: #4169E1;
  color: #ffffff;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 2px solid #4169E1;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(65, 105, 225, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4169E1;
  letter-spacing: -0.5px;
}

.logo-year {
  color: #1e293b;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: #1e293b;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background: #eff6ff;
  color: #4169E1;
}

.nav-link.btn-nav {
  background: #4169E1;
  color: #ffffff;
  margin-left: 8px;
}

.nav-link.btn-nav:hover {
  background: #315ac1;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #4169E1;
  cursor: pointer;
  line-height: 1;
}

/* === Hero (página inicial) === */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: #4169E1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(65, 105, 225, 0.15);
}

/* === Barra de destaques === */
.highlights {
  background: #4169E1;
  padding: 32px 0;
}

.highlights .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-align: center;
}

.highlight-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.highlight-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* === Seções genéricas === */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 48px;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: #4169E1;
  border-radius: 2px;
  margin: 12px auto 0;
}

/* === Seção Sobre === */
.about {
  background: #f8faff;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  width: 45%;
  max-width: 440px;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(65, 105, 225, 0.12);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.about-text p {
  color: #475569;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* === Cards === */
.cards-section {
  background: #ffffff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #4169E1;
  border-radius: 12px;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(65, 105, 225, 0.12);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4169E1;
  margin-bottom: 10px;
}

.card p {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* === Seção Curso === */
.course-section {
  background: #f0f7ff;
}

.course-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.course-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.course-text p {
  color: #475569;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.course-list {
  list-style: none;
  margin-bottom: 28px;
}

.course-list li {
  padding: 8px 0 8px 28px;
  color: #334155;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.course-list li:last-child {
  border-bottom: none;
}

.course-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1d4ed8;
  font-weight: 700;
}

.course-image {
  width: 45%;
  max-width: 440px;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(65, 105, 225, 0.12);
}

/* === Página interna: hero simples === */
.page-hero {
  background: linear-gradient(135deg, #4169E1 0%, #315ac1 100%);
  padding: 56px 0;
  color: #ffffff;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* === Conteúdo interno (edital, cronograma) === */
.page-content {
  padding: 64px 0;
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4169E1;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbeafe;
}

.content-block p {
  color: #475569;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.content-block ul {
  list-style: none;
  margin-top: 8px;
}

.content-block ul li {
  padding: 8px 0 8px 24px;
  color: #334155;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.content-block ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #4169E1;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* === Tabela de informações === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.info-table th {
  background: #eff6ff;
  color: #4169E1;
  font-weight: 700;
}

.info-table tr:hover td {
  background: #f8faff;
}

/* === Cronograma timeline === */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dbeafe;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4169E1;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #4169E1;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4169E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.timeline-item p {
  color: #64748b;
  font-size: 0.95rem;
}

/* === Formulário de inscrição === */
.form-section {
  background: #f8faff;
  padding: 64px 0;
}

.form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 32px rgba(65, 105, 225, 0.08);
  max-width: 680px;
  margin: 0 auto;
}

.form-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-card > p {
  color: #64748b;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4169E1;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  margin-top: 8px;
  border: none;
}

.form-note {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 16px;
}

/* === Alerta informativo === */
.info-banner {
  background: #eff6ff;
  border-left: 4px solid #4169E1;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 32px;
  color: #315ac1;
  font-size: 0.95rem;
}

/* === Footer === */
.site-footer {
  background: #315ac1;
  color: #ffffff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-copy {
  color: #bfdbfe;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* === Responsivo === */
@media (max-width: 768px) {
  .hero-inner,
  .about-inner,
  .course-inner {
    flex-direction: column;
  }

  .hero-image,
  .about-image,
  .course-image {
    width: 100%;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid #4169E1;
    padding: 16px 24px;
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link.btn-nav {
    margin-left: 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 32px 24px;
  }

  .highlights .container {
    gap: 20px;
  }

  .section {
    padding: 56px 0;
  }
}
