/* =========================
   GRAPHCODE - STYLE (Light)
   ========================= */

/* Variáveis */
:root {
  --primary: #98a4af;
  /* nova cor principal */
  --accent: #315375;
  /* contraste para botões */
  --bg: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --card: #f8fafc;
  --radius: 12px;
  --glass: rgba(15, 23, 42, 0.04);
}

/* Reset simples */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  padding-top: 90px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

p {
  line-height: 1.65;
  font-size: 1.05rem;
  color: #334155; /* Azul escuro suave */
}

.lead {
  font-size: 1.15rem;
  color: #475569;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  background: transparent;
  transition: all 0.3s ease;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 860px;

  background: #dddfd9;
  /* fundo igual ao exemplo */
  padding: 10px 22px;
  border-radius: 34px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

  backdrop-filter: blur(14px);
  /* suaviza estilo moderno */
  flex-wrap: wrap;
}

.logo-img {
  height: 48px
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center; /* centraliza melhor */
  gap: 26px;
  flex: 1;
  min-width: 0; /* impede overflow estranho */
}

.nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav a:hover {
  background: black;
  color: white;
  box-shadow: 0 0 0 2px black inset;
  /* contorno preto igual ao exemplo */
}
.nav-btn {
  margin-left:0;

  padding: 10px 26px;
  background: #dddfd9;;
  border: 2px solid #000;
  border-radius: 999px;

  color: #bcc76c;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.25s ease;
}
.nav-btn:hover {
  background: transparent;
  color: #bcc76c;
}

@media (max-width: 768px) {

  .header-inner {
    max-width: 95%;
    padding: 8px 16px;
  }

  .logo-img {
    height: 38px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .nav-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}
@media (max-width: 640px) {

  .header-inner {
    border-radius: 20px;
  }

  .nav {
    display: none; /* esconde menu */
  }

  .nav-btn {
    margin-left: auto; /* joga botão pra direita */
  }
}
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(62, 128, 255, 0.08)
}

.btn-ghost {
  background: transparent;
  border: 1px solid #e6eefb;
  color: var(--text)
}

/* HERO */
.hero {
  padding: 80px 0
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center
}

.hero-title {
  background: linear-gradient(90deg, #315375, #5a8ec0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.03;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px
}

.btn-cta {
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700
}

.hero-highlights {
  list-style: none;
  margin-top: 12px;
  color: var(--muted);
  display: flex;
  gap: 18px;
   position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.hero-highlights li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.hero-highlights li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  top: 0;
}

/* HERO CARD / IMAGE */
.hero-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(13, 30, 60, 0.06);
  position: relative;
  overflow: hidden
}

.hero-illustration {
  width: 100%;
  display: block;
  border-radius: 8px
}

.hero-overlay {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06)
}

.rotating-langs {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem
}

.hero-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.hero-title {
  background-size: 200% auto;
  animation: gradientMove 6s linear infinite;
}

@keyframes gradientMove {
  to {
    background-position: 200% center;
  }
}


/* SECTION GENERIC */
.section {
  padding: 60px 0
}

.section h2 {
  font-size: 2.2rem;
  color: #1e293b; /* azul escuro moderno */
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #315375; /* cor de destaque */
  margin-top: 8px;
  border-radius: 2px;
}

.section .lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #475569;
  max-width: 700px;
  margin-bottom: 24px;
}

.section .lead strong {
  color: #315375; /* destaca palavras importantes */
}
.section.about {
  background: linear-gradient(180deg, #f9fafc, #ffffff);
  padding: 80px 0;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-right {
  display: flex;
  justify-content: center;
}
.about-img {
  width: 600px;            /* ← tamanho ideal das imagens */
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img {
    max-width: 280px;
  }
}

.cat-title {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e5e9f0;
  background: #f8fafc;
  text-decoration: none;
  color: #1e293b;
  transition: 0.25s ease;
}

.course-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.course-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: #315375;
  min-width: 52px;
  opacity: .9;
}

.course-item h4 {
  margin: 0;
  font-size: 1.2rem;
}

.course-item p {
  margin: 5px 0 0;
  font-size: .95rem;
  color: #475569;
}

/* Seção inteira com fundo escuro */
.courses-section {
  background: #1a1f25;
  padding: 60px 20px;
}

.courses-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.courses-title {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.courses-subtitle {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Grade de cursos */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* Box do curso */
.course-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  border: 1px solid #e7e7e7;
  transition: 0.25s ease;
}

.course-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Número */
.course-number {
  font-size: 2rem;
  font-weight: 800;
  color: #315375;
  min-width: 52px;
}

/* Títulos dentro do card */
.course-box h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.course-box p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.course-box {
  position: relative;
  overflow: hidden;
}

.course-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(49,83,117,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.course-box:hover::after {
  opacity: 1;
}

/* Responsivo */
@media (max-width: 600px) {
  .course-number {
    font-size: 1.6rem;
  }
}
.btn:active {
  transform: scale(0.97);
}


.lead {
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 18px
}

/* GRID */
.grid {
  display: grid;
  gap: 20px
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.04)
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover
}

.card-body {
  padding: 18px;
   font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  transition: color 0.25s;
}
.card:hover .card-body h3 {
  color: #315375;
}
.card-body h3 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  transition: color 0.25s;
}

.card-body p {
  font-weight: 400;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.link {
  position: relative;
}

.link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #315375;
  transition: width 0.3s;
}

.link:hover::after {
  width: 100%;
}

/* HOW / STATS */
.stats {
  display: flex;
  gap: 20px
}

.stat {
  background: linear-gradient(180deg, #fff, #f6fbff);
  padding: 22px;
  border-radius: 12px;
  text-align: center
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px
}
/* Scroll animation base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



/* FOOTER */
/* ===== FOOTER PROFISSIONAL ===== */

.site-footer-pro {
  background: #0f172a; /* diferente do site */
  color: #cbd5e1;
  padding: 64px 24px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 48px;
}

/* BRAND */
.footer-brand img {
  height: 100px;
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* COLUNAS */
.footer-col h4 {
  color: #bcc76c;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: #bcc76c;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px; /* espaço entre ícone e texto */
  margin-bottom: 10px;
  font-size: 15px;
}
.footer-contact li img {
  width: 20px;
  height: 20px;
}

/* CONTACTOS */
.footer-et li {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* BOTTOM */
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-links a {
  margin-left: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #bcc76c;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* =========================================
   ESTILO GERAL (tema light GRAPHCODE)
========================================= */

/* ===========================
   LAYOUT BASE
===========================*/

.auth-page {
  background: #cad9e6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.6s ease;
}

.auth-page.register-mode {
  background: #111827;
}

/* ===========================
   VOLTAR AO INÍCIO
===========================*/

/* Remover o antigo botão de voltar */
.back-link {
  display: none;
}

/* A logo agora é clicável e fica à esquerda */
.auth-logo-link {
  position: absolute;
  top: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 5;
}

.auth-logo {
  width: 100px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.auth-logo:hover {
  opacity: 0.8;
}


.auth-page.register-mode .back-link {
  color: #fff;
}

/* ===========================
   LOGO
===========================*/


/* ===========================
   CONTAINER PRINCIPAL
===========================*/

.auth-container {
  width: 850px;
  height: 520px;
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.18);
  transition: background 0.6s ease;
}

/* REGISTER TEMA */
.auth-page.register-mode .auth-container {
  background: #3c4f68;
}

/* ===========================
   IMAGEM LATERAL
===========================*/

.auth-image {
  width: 50%;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease, opacity 0.6s ease, filter 0.7s ease;
}

/* LOGIN – imagem à esquerda */
.auth-page:not(.register-mode) .auth-image {
  order: 0;
  transform: translateX(0);
  filter: blur(0);
}

/* REGISTER – imagem desliza para a direita */
.auth-page.register-mode .auth-image {
  order: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* ===========================
   FORMULÁRIO
===========================*/

.auth-form {
  width: 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: transform 0.7s ease, opacity 0.6s ease;
}

/* LOGIN – formulário à direita */
.auth-page:not(.register-mode) .auth-form {
  order: 1;
  transform: translateX(0);
}

/* REGISTER – formulário à esquerda */
.auth-page.register-mode .auth-form {
  order: 0;
  transform: translateX(0);
}

/* FORMULÁRIOS INDIVIDUAIS */
.form {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form.active {
  display: block;
  opacity: 1;
}

/* INPUTS */
input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 15px;
}

/* BOTÃO */
button {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #315375;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: #224056;
}

/* REGISTER MODE - botão claro */
.auth-page.register-mode button {
  background: #cad9e6;
  color: #000;
}

.auth-page.register-mode button:hover {
  background: #b3c4d3;
}

/* LINK SWITCH */
.link {
  color: #191b1d;
  cursor: pointer;
}

.auth-page.register-mode .link {
  color: #cad9e6;
}

/* ===========================
   TEXTOS MAIS CLAROS NO REGISTER
===========================*/

/* Títulos e subtítulos */
.auth-page.register-mode h2,
.auth-page.register-mode p {
  color: #e5edf5 !important; /* tom claro azulado */
}

/* Texto "Já tens conta?" e links */
.auth-page.register-mode .switch-text,
.auth-page.register-mode .switch-text .link {
  color: #eaf3fc !important;
}

/* Inputs mais claros */
.auth-page.register-mode input {
  background: #2b3647;
  border: 1px solid #4a5b73;
  color: #f0f6ff;
}

.auth-page.register-mode input::placeholder {
  color: #c5d4e4;
}

.logout-btn {
  padding: 10px 18px;
  background: #ff4d4d;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.logout-btn:hover {
  background: #d93a3a;
}



/* ============================
   COMO FUNCIONA — ESTILO NOVO
============================ */

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

/* Cada bloco */
.how-step {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Inverter imagem + texto */
.how-step.reverse {
  flex-direction: row-reverse;
}

/* Caixa da imagem */
.how-img-box img {
  width: 600px;            /* ← tamanho ideal das imagens */
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

/* Texto */
.how-text {
  flex: 1;
}

.how-text h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #1e293b;
  font-weight: 800;
}

.how-text p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #475569;
  font-weight: 400;
}

/* ============================
   RESPONSIVO (MOBILE)
============================ */

@media (max-width: 780px) {
  .how-step,
  .how-step.reverse {
    flex-direction: column;
    text-align: center;
  }

  .how-img-box img {
    width: 220px;      /* menor ainda no mobile */
  }

  .how-text {
    text-align: center;
  }
}



/* ===============================
   MENU QUANDO USER ESTÁ LOGADO
================================ */



/* ===== MENU LOGADO ===== */

.nav-auth {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

/* Links normais */
.nav-auth > a {
  font-size: 0.95rem;
  color: #444;
  text-decoration: none;
}

/* Dropdown base */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Botão */
.nav-link-btn {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-btn:hover {
  background: #000;
  color: #fff;
}

/* ===== MEGA DROPDOWN ===== */

.mega-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  width: 560px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;

  box-shadow: 0 25px 60px rgba(0,0,0,0.18);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 9999;
}

/* Mostrar */
.nav-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Colunas */
.mega-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1e293b;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col li {
  margin-bottom: 10px;
}

.mega-col a {
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
}

.mega-col a:hover {
  color: #bcc76c;
  font-weight: 600;
}

/* ===== PERFIL ===== */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  background: #fff;
  min-width: 180px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);

  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #111;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #0d0d0d;
  color: #bcc76c;
  font-weight: 600;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 18px;
}


/* Logout cor */
.logout-link {
  color: #dc2626 !important;
  font-weight: 600;
}



/* DASHBOARD HOME */
.dashboard-home {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* WELCOME */
.dashboard-welcome h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #000000;
}

.dashboard-welcome p {
  font-size: 1.2rem;        /* texto maior e confortável */
  line-height: 1.7;
  max-width: 600px;
  color: #424242e7;
  margin-bottom: 32px;
}
.dashboard-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.welcome-text{
  flex:1;
}

.welcome-image img{
  width:400px;
  max-width:100%;
}

@media (max-width:900px){

  .dashboard-welcome{
    flex-direction:column;
    text-align:center;
  }

  .welcome-image img{
    width:220px;
  }

}
/* SEARCH */
.dashboard-search {
  margin: 30px 0;
}

.dashboard-search input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

.dashboard-search input:focus {
  border-color: black;
}

/* RECOMMENDATIONS */
.dashboard-recommendations {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.dashboard-recommendations h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* GRID */
.dashboard-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

/* CARD */
.dashboard-course-card {
  background: #dddfd9;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-course-card h3 {
  margin-bottom: 8px;
}

.dashboard-course-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 16px;
}

/* BUTTON */
.btn-course {
  align-self: flex-start;
  text-decoration: none;
  background: black;
  color: #bcc76c;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-course:hover {
  background: #2a2a2a;
}


/* GRID */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
}

/* CARD */
.course-card {
  background: #3f3c3c;
  border: 1px solid #000000;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.511);

}



.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* BADGE */
.course-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
}

.course-badge.in-progress {
  background: #ffd600;
  color: #000;
}

.course-badge.free {
  background: #bcc76c;
  color: #000;
}

/* TITULO */
.course-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

/* DESCRIÇÃO */
.course-card p {
  font-size: 0.95rem;
  color: #fbfbfb;
  flex-grow: 1;
}

/* META */
/* =========================
   Ícones dos meta dos cursos
   ========================= */

.course-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 14px;
    color: #f8efef;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Ícones */
.course-meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.8;
}


@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}
.recommendation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
}

.area-toggle {
  position: relative;
  display: flex;
  background: #e5e7e0;
  border-radius: 999px;
  padding: 4px;
}

.area-btn {
  flex: 1;
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 42px;               /* 🔑 altura fixa */
  padding: 0 22px;            /* remove padding vertical */

  background: transparent;
  border: none;

  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;             /* 🔑 evita desalinhamento óptico */

  color: #444;
  cursor: pointer;
  border-radius: 999px;

  transition: color 0.3s ease;
}

.area-btn span {
  transform: translateY(-0.5px);
}
.area-btn.prog span {
  transform: translate(-8px, -0.5px);
}
.area-btn.active {
  color: #bcc76c;
}

.area-btn.design {
  transform: translate(-8px, -0.5px);
}
.area-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: #000;
  border-radius: 999px;
  transition: transform 0.35s ease;
  z-index: 1;
}

.area-btn:hover,
.area-btn:focus,
.area-btn:focus-visible,
.area-btn:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ===== ESTADOS DA RECOMENDAÇÃO ===== */

.dashboard-recommendations {
  padding: 60px 20px;
  border-radius: 24px;
  transition: background 0.45s ease;
}

/* Programação */


/* Design */

.dashboard-recommendations.design-active .course-card {
  background: #3f3c3c;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #060607;
}

.dashboard-recommendations.design-active .course-card h3 {
  color: #fbfbfb;
}

.dashboard-recommendations.design-active .course-card p {
  color: #fbfbfb;
}


.dashboard-recommendations.design-active .course-badge.free {
  background: #eaffc7;
  color: #0f172a;
}

.dashboard-recommendations.design-active .course-badge.in-progress {
  background: #facc15;
  color: #1f2937;
}



/* ===== CONTACTOS ===== */

.contact-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  color: #020617;
}

.contact-info h3 img {
  width: 24px;
  height: 24px;
}
.contact-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  color: #475569;
  line-height: 1.6;
}

/* Layout */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

/* Info esquerda */
.contact-info h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  color: #020617;
}

.contact-info p {
  margin-bottom: 22px;
  color: #475569;
}

/* Card do formulário */
.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* Form */
.contact-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.contact-form .field.full {
  grid-column: span 2;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #020617;
}
.form-note {
  display: none;
  margin-top: 16px;
  color: #22c55e; /* verde */
  font-weight: 600;
}
.input,
.textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Botões */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: #4f46e5;
  color: white;
  transition: 0.2s ease;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #020617;
  transition: 0.2s ease;
}

.btn.ghost:hover {
  background: #ff1900;
  color: white;
}

/* Mensagem sucesso */
.form-note {
  display: none;
  margin-top: 16px;
  font-size: 0.9rem;
  color: #22c55e;
}

/* Responsivo */
@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}
/* scroll */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  background: #0f172a; /* escuro elegante */
  color: #fff;
  border: none;

  font-size: 18px;
  font-weight: bold;
  cursor: pointer;

  display: none;
  z-index: 9999;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: 
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Hover suave */
#backToTop:hover {
  transform: translateY(-4px);
}

/* Animação de aparecer */
#backToTop.show {
  display: block;
  opacity: 1;
}

/* Estado escondido */
#backToTop.hide {
  opacity: 0;
  pointer-events: none;
}


/* Modal de Curso Indisponível */
/* MODAL COMING SOON */
.modal {
  display: none; /* escondido por padrão */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  color: #1e293b;
  padding: 28px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #315375;
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal-content .btn-close,
.modal-content .close {
  cursor: pointer;
  background: #000;
  color: #bcc76c;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.25s ease;
}

.modal-content .btn-close:hover,
.modal-content .close:hover {
  background: #2a2a2a;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.3rem;
  font-weight: bold;
  background: transparent;
  color: #000;
}

@keyframes modalIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}


.course-card.completed {
  border: 2px solid #bcc76c;
  position: relative;
  box-shadow: 0 0 20px rgba(108, 158, 15, 0.555);
}

.completed-badge {
  background: #13130e;
  color: #bcc76c;
  font-weight: bold;
}

.course-card.completed::after {
  content: "✔";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #bcc76c;
}

/* ===========================
   BARRA DE PROGRESSO CURSO
=========================== */

.learning-progress {
  margin-bottom: 40px;
}

.progress-card {
  background: linear-gradient(135deg, #3f3c3c, #3f3c3c);
  padding: 30px;
  border-radius: 20px;
  color: rgb(246, 246, 246);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.path-progress {
  margin-top:20px;
}
.progress-link{
  text-decoration: none;
  color: inherit;
}
.path-bar {
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  overflow: hidden;
}

.path-fill {
  height: 100%;
  background: linear-gradient(90deg, #bcc76c, #bcc76c);
  transition: width 0.6s ease;
}

.continue-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #315375;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.continue-btn:hover {
  background: #4f709c;
}

.progress-text{
  margin-top:12px;
  font-size:14px;
  opacity:0.9;
}

.progress-link:hover .path-fill{
  filter:brightness(1.2);
}

.progress-link:hover .progress-text{
  text-decoration: underline;
}

.progress-card h2{
  display:flex;
  align-items:center;
  gap:10px;
}

.progress-card h2 img{
  width:28px;
  height:28px;
  object-fit:contain;
  
}

/* container */
.notification-wrapper {
  position: relative;
}

/* botão */
.notification-btn {
  cursor: pointer;
  position: relative;
}

/* bolinha */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #000000;
  border-radius: 50%;
}

/* painel */
.notification-panel {
  position: absolute;
  top: 40px;
  right: 0;
  width: 420px;
  height: 220px;
  background: #1e1e1e;
  border-radius: 12px;
  display: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 1000;
}

/* mostrar */
.notification-panel.show {
  display: flex;
}

/* lado esquerdo */
.notification-info {
  width: 40%;
  background: #2a2a2a;
  padding: 15px;
  border-right: 1px solid #333;
}

.notification-info h4 {
  margin-bottom: 10px;
  color: #d0cece;
}

.notification-info p {
  font-size: 14px;
  color: #ccc;
}

/* lado direito */
.notification-list {
  width: 60%;
  padding: 10px;
  overflow-y: auto;
}

/* item */
.notification-item {
  background: #2a2a2a;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: 0.2s;
}

.notification-item:hover {
  background: #333;
}

.notification-item strong {
  display: block;
  font-size: 14px;
  color: #ffffffed;
}

.notification-item p {
  font-size: 13px;
  color: #d0cece;
}



.legal-page {
  max-width: 900px;
  margin: 100px auto;
  padding: 20px;
  color: #000000;
  line-height: 1.7;
  background: rgb(233, 229, 229);
  border-radius: 12px;
  padding: 30px;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #000000;
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 22px;
  color: #000000;
}

.legal-page p {
  margin: 10px 0;
}

.legal-page ul {
  margin: 10px 0 20px 20px;
}

.legal-page li {
  margin-bottom: 6px;
}