/* ===== Regras gerais / tema ===== */
* { box-sizing: border-box; }                     /* Box model global */

html,
body { height: 100%; }                            /* Altura total do documento */

:root {                                          /* Variáveis de tema */
  --bg: #ffffff;
  --text: #0f7555;
  --muted: #666;
  --brand: #282448;
  --soft: #f6f7fb;
  --card: #fff;
  --stroke: #e7e7ea;
  --accent: #00a37a;
}

body {                                           /* Corpo do site */
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {                                              /* Links padrão */
  color: inherit;
  text-decoration: none;
}

img {                                            /* Imagens responsivas */
  max-width: 100%;
  display: block;
}

.container {                                     /* Contêiner base */
  width: 100%;
  padding: 0;
}

/* ===== Header / wordmark ===== */
header {                                         /* Cabeçalho fixo */
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--stroke);
  z-index: 10;
}

.navbar {                                        /* Barra de navegação */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}

.brand {                                         /* Área da marca */
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img {                                     /* Logo da marca */
  height: 70px;
  width: auto;
  display: block;
}

.wordmark {                                      /* Bloco wordmark */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #053a34;
  padding: 6px 12px;
  border-radius: 4px;
  line-height: 1.2;
}

.wm-title {                                      /* Título do wordmark */
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: #1ad19f;
}

.wm-sub {                                        /* Subtítulo do wordmark */
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

/* ===== Card de perfil ===== */
.profile-container {                              /* Área do perfil (layout) */
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.profile-card {                                   /* Cartão do perfil */
  background: #fff;
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  overflow: hidden;
}

.profile-header {                                 /* Cabeçalho do perfil */
  text-align: center;
  padding: 20px;
  background: #053a34;
  color: #fff;
}

.profile-pic {                                    /* Avatar do usuário */
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin:0 auto 10px;
  border: 0px solid #fff;
  box-shadow: 0 0 0 10px #80f7d9;                 /* Halo do avatar */
}

.profile-body {                                   /* Corpo do perfil */
  padding: 20px;
}

.profile-body h3 {                                /* Títulos internos */
  margin: 20px 0 10px;
  color: #333;
}

.profile-body ul {                                /* Lista de cursos */
  list-style: none;
  padding: 0;
}

.profile-body ul li {                             /* Item da lista de cursos */
  background: #f4f4f4;
  margin: 6px 0;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
}

/* ===== Botões pill ===== */
.btn {                                            /* Botão padrão (pill) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 10px 20px;
  border: 0;
  border-radius: 9999px;
  background: #127a5e;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .02s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.btn:hover {                                     /* Hover do botão */
  background: #0f6a52;
}

.btn:active {                                    /* Estado ativo do botão */
  transform: translateY(1px);
}

.btn-primary {                                   /* Variação primária */
  background: #127a5e;
}

/* ===== Painéis deslizantes ===== */
.actions {                                       /* Ações/atalhos do perfil */
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel {                                         /* Painel colapsável */
  overflow: hidden;
  max-height: 0;
  padding: 0 16px;
  background: var(--soft);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  margin-top: 10px;
  transition: max-height .35s ease, padding-top .2s ease, padding-bottom .2s ease;
}

.panel.open {                                    /* Painel aberto */
  padding-top: 16px;
  padding-bottom: 16px;
}

.panel form {                                    /* Formulário interno */
  display: grid;
  gap: 12px;
}

.panel label {                                   /* Rótulos do painel */
  font-weight: 600;
  color: #2b2b2b;
}

.panel input {                                   /* Inputs do painel */
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font: inherit;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--soft);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
  }
  .brand img {
    height: 48px;
  }
  .profile-container {
    padding: 20px 12px;
  }
}
