/* =======================================================================
   BASE / RESET
   ======================================================================= */
:root{
  --bg-0: #000000;
  --bg-1: #020617;
  --bg-2: #0b1220;
  --card: rgba(15, 23, 42, 0.96);

  --text: #e5e7eb;
  --muted: #9ca3af;
  --muted-2: #cbd5e1;

  --border: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(148, 163, 184, 0.45);

  --blue: #60a5fa;
  --blue-2: #2563eb;
  --indigo: #4f46e5;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1200px;
  --container-wide: 1500px;

  --shadow-lg: 0 22px 45px rgba(0, 0, 0, 0.70);
  --shadow-md: 0 18px 40px rgba(0,0,0,0.55);

  --pad-x: clamp(12px, 2.5vw, 24px);
  --pad-y: clamp(16px, 2.2vw, 28px);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 50%, #000000 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* evita “arrastar” no mobile */
}

img, video, iframe{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color: inherit; }
button, input, textarea, select{
  font: inherit;
}

/* util: container fluido */
.container{
  width: min(var(--container), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
}

/* =======================================================================
   MAIN
   ======================================================================= */
main{
  flex: 1;
  padding: var(--pad-y) var(--pad-x);
  display: block;
}

main.centered{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =======================================================================
   HEADER (admin/área interna)
   ======================================================================= */
header{
  background: linear-gradient(to right, #020617, #111827);
  color: #f9fafb;
  padding: 10px var(--pad-x);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

header h1{
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: 0.04em;
}

header nav{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

header nav a{
  color: #e5e7eb;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

header nav a:hover{
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.12);
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer{
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid rgba(31, 41, 55, 0.8);
  background: var(--bg-1);
}

/* =======================================================================
   PÁGINAS CENTRALIZADAS (LOGIN / CADASTRO)
   ======================================================================= */
.centered-page{
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-card{
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 26px 22px 20px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.auth-title{
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-subtitle{
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* =======================================================================
   ALERTAS
   ======================================================================= */
.alert{
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.alert-error{
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.alert-success{
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #bbf7d0;
}

/* =======================================================================
   FORMULÁRIOS
   ======================================================================= */
.input-group{ margin-bottom: 12px; }

form label{
  display: block;
  font-size: 0.88rem;
  color: #d1d5db;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

textarea{ min-height: 120px; resize: vertical; }

input::placeholder{ color: #6b7280; }

input:focus,
textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
  background: var(--bg-1);
}

/* =======================================================================
   BOTÕES
   ======================================================================= */
button,
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, var(--blue-2), var(--indigo));
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.40), 0 0 0 1px rgba(15, 23, 42, 0.8);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

button:hover,
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active,
.btn:active{ transform: translateY(0); }

.text-link{
  color: #93c5fd;
  text-decoration: none;
}

.text-link:hover{ text-decoration: underline; }

/* =======================================================================
   CATÁLOGO (área aluno/admin)
   ======================================================================= */
.catalog-container{
  width: min(var(--container), calc(100% - (var(--pad-x) * 2)));
  margin: 30px auto;
  padding: 0;
}

.catalog-title{
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.catalog-subtitle{
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
  max-width: 58ch;
}

.course-grid{
  display: grid;
  gap: 18px;
  margin-top: 18px;
  /* responsivo real: cresce/encolhe sem estourar */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: stretch;
}

/* CARD */
.course-card{
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.40);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-width: 0; /* evita overflow em grids */
}

.course-card:hover{
  transform: translateY(-4px) scale(1.01);
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.course-thumb img{
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.course-body,
.course-card .course-info{
  padding: 14px 16px;
}

.course-title{
  font-size: 1rem;
  font-weight: 600;
}

.course-desc{
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

/* limitar descrição na landing (1 linha) */
.course-card .course-desc{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =======================================================================
   PÁGINA DO CURSO (player + sidebar)
   ======================================================================= */
.course-page{
  width: min(var(--container-wide), calc(100% - (var(--pad-x) * 2)));
  margin: 10px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.course-main{ width: 100%; min-width: 0; }
.course-sidebar{ width: 100%; min-width: 0; }

/* Topo do player */
.course-player-card{ background: transparent; padding: 0; border: none; box-shadow: none; }
.course-player-top{ margin-bottom: 10px; }

.player-breadcrumb{
  font-size: 0.85rem;
  color: var(--muted);
}

.lesson-main-title{
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: #f9fafb;
  margin-top: 6px;
}

/* PLAYER responsivo */
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* responsivo moderno */
  margin-top: 10px;
  overflow: hidden;
  background: #000;
  border-radius: 0;
}

.video-frame iframe,
.video-frame video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* fallback para navegadores antigos */
@supports not (aspect-ratio: 16 / 9){
  .video-frame{ padding-bottom: 56.25%; height: 0; }
  .video-frame iframe,
  .video-frame video{ position: absolute; inset: 0; }
}

/* =======================================================================
   SIDEBAR – PROGRESSO + LISTA
   ======================================================================= */
.sidebar-progress{
  background: var(--bg-1);
  border-radius: var(--radius-md);
  padding: 12px 14px 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  margin-bottom: 14px;
}

.sidebar-progress-title{
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
}

.sidebar-progress-bar{
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #111827;
  overflow: hidden;
}

.sidebar-progress-bar span{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #ec4899);
}

.sidebar-progress-footer{
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.lessons-card{
  background: rgba(15,23,42,0.97);
  border-radius: 16px;
  padding: 12px 12px 8px;
  border: 1px solid rgba(31,41,55,0.9);
  max-height: min(60vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lessons-card h3{
  font-size: 1rem;
  margin-bottom: 10px;
}

.lessons-list{ list-style: none; }

.lesson-item + .lesson-item{ margin-top: 6px; }

.lesson-item a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
  min-width: 0;
}

.lesson-item:hover a{
  background: rgba(30,64,175,0.25);
  transform: translateX(2px);
}

.lesson-order{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text);
  flex: 0 0 auto;
}

.lesson-info{ flex: 1; min-width: 0; }

.lesson-title{
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-meta{
  font-size: 0.78rem;
  color: var(--muted);
}

/* Aula atual */
.lesson-item.current a{
  background: linear-gradient(90deg, rgba(37,99,235,0.6), rgba(79,70,229,0.7));
  box-shadow: 0 6px 15px rgba(37,99,235,0.6);
}

.lesson-item.current .lesson-order{
  border-color: #e5e7eb;
  background: rgba(15,23,42,0.2);
}

.lesson-item.current .lesson-meta{ color: #e5e7eb; }

/* Concluída */
.lesson-item.completed .lesson-title::after{
  content: " ✓";
  font-size: 0.78rem;
  color: #4ade80;
}
.lesson-item.completed .lesson-meta{ color: #4ade80; }

/* =======================================================================
   ABAIXO DO PLAYER – TABS/CONTEÚDO
   ======================================================================= */
.lesson-extra{
  margin-top: 16px;
  background: rgba(15,23,42,0.96);
  border-radius: 16px;
  border: 1px solid rgba(31,41,55,0.9);
  padding: 12px 14px 16px;
}

.lesson-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(55,65,81,0.9);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.lesson-tab{
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: default;
}

.lesson-tab.active{
  background: rgba(79,70,229,0.17);
  color: var(--text);
  border: 1px solid rgba(129,140,248,0.7);
}

.lesson-tabs-content h3{
  font-size: 1rem;
  margin-bottom: 6px;
}

.lesson-tabs-content p{
  font-size: 0.9rem;
  color: var(--muted-2);
  line-height: 1.5;
}

/* =======================================================================
   STICKY SIDEBAR + MINI-PLAYER + CINEMA
   ======================================================================= */
.course-sidebar{
  position: sticky;
  top: 80px;
}

/* no mobile: sticky desliga */
@media (max-width: 900px){
  .course-sidebar{ position: static; top: auto; }
}

.video-wrapper{
  position: relative;
  width: 100%;
  transition: all 0.2s ease;
}

.video-wrapper.mini{
  position: fixed;
  width: min(360px, calc(100% - 24px));
  right: 12px;
  bottom: 12px;
  z-index: 60;
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
  border-radius: 14px;
  background: var(--bg-1);
  overflow: hidden;
}

.video-wrapper.mini .video-frame{ border-radius: 14px; }

/* mini-player some no mobile */
@media (max-width: 900px){
  .video-wrapper.mini{
    position: static !important;
    width: 100% !important;
    right: auto !important;
    bottom: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Modo cinema */
body.cinema-mode .course-page{
  width: calc(100% - (var(--pad-x) * 2));
  max-width: 100%;
  grid-template-columns: minmax(0, 4fr) minmax(260px, 1fr);
}

body.cinema-mode main{ padding-top: 16px; }

/* =======================================================================
   BARRA DE PROGRESSO (curso)
   ======================================================================= */
.course-progress-card{
  background: rgba(15,23,42,0.97);
  border-radius: 16px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(148,163,184,0.5);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.course-progress-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text);
}

.course-progress-label{ font-weight: 500; }
.course-progress-value{ color: var(--muted); }

.course-progress-bar{
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-1);
  overflow: hidden;
}

.course-progress-fill{
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-2), var(--indigo));
  transition: width 0.2s ease;
}

/* =======================================================================
   BOTÕES EXTRA
   ======================================================================= */
.course-player-actions{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.btn-ghost{
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.btn-ghost:hover{ background: rgba(30,64,175,0.25); }

.btn-finish{
  background: #16a34a;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,0.9);
  padding: 7px 12px;
  font-size: 0.85rem;
  color: #f9fafb;
  cursor: pointer;
}

.btn-finish.done{
  background: #4b5563;
  border-color: #6b7280;
}

/* =======================================================================
   BREADCRUMBS
   ======================================================================= */
.breadcrumbs{
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumbs a{
  color: var(--blue);
  text-decoration: none;
}
.breadcrumbs a:hover{ text-decoration: underline; }

/* =======================================================================
   RESPONSIVO: página do curso
   ======================================================================= */
@media (max-width: 900px){
  .course-page{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .course-sidebar{ order: -1; }
}

/* =======================================================================
   LANDING PAGE (pública)
   ======================================================================= */
.landing-body{ min-height: 100vh; }

.landing-header{
  background: radial-gradient(circle at top left, #020617, #020617 55%, #020617 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.landing-header-inner{
  width: min(var(--container), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-header .logo{
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.landing-header .logo span{ color: var(--blue); }

.landing-header nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-header nav a{
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.landing-header nav a:hover{
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(148, 163, 184, 0.08);
}

.landing-header nav .btn{
  padding: 8px 16px;
  font-size: 0.92rem;
}

/* MAIN */
.landing-main{
  width: min(var(--container), calc(100% - (var(--pad-x) * 2)));
  margin: 28px auto 40px;
  padding-bottom: 40px;
}

/* HERO */
.hero{ margin-bottom: 26px; }

.hero-text{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.22), transparent 55%),
    rgba(15,23,42,0.97);
  border-radius: 20px;
  padding: 24px 26px;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 24px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(15,23,42,0.9);
  position: relative;
}

.hero-text::before{
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.hero-text h1{
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-text p{
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted-2);
  max-width: 64ch;
  margin-bottom: 18px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions .btn{ padding: 10px 18px; }

.hero-actions .btn-secondary{
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid rgba(148,163,184,0.7);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  background: transparent;
  transition: 0.15s ease;
}

.hero-actions .btn-secondary:hover{
  background: rgba(15,23,42,0.85);
}

/* BLOCO DE CURSOS na landing */
.landing-main .catalog-container{
  margin-top: 32px;
  padding: 0;
  width: 100%;
}

.landing-main .catalog-title{
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.landing-main .catalog-subtitle{
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.landing-main .course-grid{
  margin-top: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* premium card (reusa .course-card) */
.landing-body .course-card{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.18), transparent 55%),
    rgba(15,23,42,0.97);
  border-radius: 18px;
  border: 1px solid rgba(30,64,175,0.55);
  padding-bottom: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(15,23,42,0.85);
}

.landing-body .course-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(59,130,246,0.12), transparent 40%, transparent 60%, rgba(79,70,229,0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.landing-body .course-card:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: var(--blue);
  box-shadow: 0 26px 48px rgba(37,99,235,0.40), 0 0 0 1px rgba(15,23,42,0.95);
}

.landing-body .course-card:hover::before{ opacity: 1; }

.course-thumb-placeholder{
  display: grid;
  place-items: center;
  height: 160px;
  font-size: 0.9rem;
  color: var(--muted);
  background: linear-gradient(135deg, var(--bg-1), #0f172a);
  border-radius: 14px 14px 0 0;
  letter-spacing: 0.2px;
}

/* responsivo landing */
@media (max-width: 640px){
  .landing-header nav a{ padding: 6px 10px; }
  .hero-text{ padding: 18px 18px; }
}

/* =======================================================================
   COURSE INFO (landing / course_info.php)
   ======================================================================= */
.course-info-page{
  width: min(1150px, calc(100% - (var(--pad-x) * 2)));
  margin: 32px auto 48px;
}

.course-info-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 26px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129,140,248,0.18), transparent 55%),
    rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 25px 55px rgba(0,0,0,0.75), 0 0 0 1px rgba(15,23,42,0.9);
}

.course-info-thumb{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.course-info-thumb img,
.course-info-thumb-placeholder{
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.5);
  background: linear-gradient(135deg, var(--bg-1), #111827);
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

.course-info-thumb img{ object-fit: cover; }

.course-info-thumb-placeholder{
  min-height: 220px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.course-info-hero-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.course-info-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text);
  margin-bottom: 10px;
  width: fit-content;
}

.course-info-title{
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.course-info-short{
  font-size: 0.98rem;
  color: var(--muted-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.course-info-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.course-info-price{
  font-size: 1.35rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(37,99,235,0.7), rgba(79,70,229,0.9));
  box-shadow: 0 12px 26px rgba(37,99,235,0.5);
}

.course-info-pill{
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text);
}

.course-info-cta{
  margin-top: 8px;
  padding-inline: 22px;
  height: 42px;
  box-shadow: 0 14px 30px rgba(37,99,235,0.6), 0 0 0 1px rgba(15,23,42,1);
}

.course-info-guarantee{
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.course-info-details{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-details-card{
  background: rgba(15,23,42,0.96);
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  min-width: 0;
}

.course-details-card h2{
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.course-checklist{
  list-style: none;
  padding-left: 0;
}

.course-checklist li{
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.course-checklist li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #4ade80;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

.course-modules-list{
  margin-left: 18px;
  font-size: 0.9rem;
  color: var(--text);
}

.course-modules-list li + li{ margin-top: 6px; }

.course-note{
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* responsivo course info */
@media (max-width: 960px){
  .course-info-hero{
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
  .course-info-thumb{ order: -1; }
  .course-info-details{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .course-info-page{ margin-top: 20px; }
  .course-info-hero{ gap: 18px; }
  .course-info-meta{ flex-direction: column; align-items: flex-start; }
}

/* =======================================================================
   FEATURE STRIP (3 caixas)
   ======================================================================= */
.feature-strip{ margin: 22px 0 10px; }

.feature-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card{
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.feature-icon{
  margin: 0 auto 10px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.feature-card h3{
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.feature-card p{
  font-size: 0.98rem;
  color: var(--muted-2);
  line-height: 1.35;
}

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

/* =======================================================================
   LOGO LINK
   ======================================================================= */
.logo-link{ text-decoration: none; color: inherit; }
.logo-link .logo{ cursor: pointer; }






/* =========================================================
   REFINO MOBILE (landing) — cola no FINAL do CSS
   ========================================================= */

@media (max-width: 640px) {

  /* --- HEADER mais baixo e alinhado --- */
  .landing-header-inner{
    padding: 10px 12px;     /* era maior */
    align-items: center;
  }

  .landing-header nav{
    width: auto;            /* deixa de ocupar 100% (fica mais clean) */
    margin-left: auto;
    justify-content: flex-end;
  }

  .landing-header nav a{
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  .landing-header nav .btn{
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  /* --- HERO mais compacto e com melhor leitura --- */
  .hero-text{
    padding: 14px 14px;     /* reduz o “tijolo” */
    border-radius: 18px;
  }

  .hero-text h1{
    font-size: 1.28rem;     /* um pouco menor */
    line-height: 1.18;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
  }

  .hero-text p{
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  /* Botões: cheios e com menos altura */
  .hero-actions{
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary{
    padding: 10px 14px;
    border-radius: 999px;
  }

  /* --- FEATURE STRIP: vira 2 colunas no celular (fica MUITO mais bonito) --- */
  .feature-grid{
    grid-template-columns: 1fr 1fr; /* antes 1 coluna */
    gap: 12px;
  }

  .feature-card{
    padding: 12px 12px 10px; /* reduz altura */
    border-radius: 16px;
  }

  .feature-icon{
    width: 34px;
    height: 34px;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .feature-card h3{
    font-size: 0.98rem;     /* antes 1.3rem (grande demais) */
    margin-bottom: 4px;
  }

  .feature-card p{
    font-size: 0.86rem;
    line-height: 1.35;
  }

  /* --- Cursos: cards mais “apetitosos” --- */
  .course-thumb img,
  .course-thumb-placeholder{
    height: 200px;          /* thumbnail maior no mobile */
  }

  /* descrição: 2 linhas (já é bom), mas com mais “respiro” */
  .course-card .course-desc{
    -webkit-line-clamp: 2;
    line-height: 1.35;
  }
}

/* Em telas MUITO pequenas (iPhone SE), volta 1 coluna nas features */
@media (max-width: 380px){
  .feature-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   FIX: header “quebrando” / overflow no mobile (lado direito)
   ========================================================= */

/* 1) mata qualquer scroll horizontal gerado por blur/gradientes */
html, body {
  overflow-x: hidden;
}

/* 2) garante que header ocupa 100% e não vaza */
.landing-header {
  width: 100%;
}

.landing-header-inner {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

/* 3) em mobile, evita que nav “empurre” a largura */
@media (max-width: 640px) {
  .landing-header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-header nav {
    max-width: 100%;
  }

  .landing-header nav a,
  .landing-header nav .btn {
    max-width: 100%;
  }
}

/* 4) o glow do hero pode causar overflow (tem inset negativo + blur) */
@media (max-width: 640px) {
  .hero-text::before {
    inset: -18px;     /* menor que antes */
    filter: blur(22px);
  }
}



/* =========================================================
   FIX DESKTOP: garante grid da landing no desktop
   (corrige curso gigante depois do responsivo)
   ========================================================= */

/* Desktop grande: 4 colunas */
@media (min-width: 950px) {
  .landing-main .course-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Desktop/Tablet: 2 colunas */
@media (min-width: 650px) and (max-width: 949px) {
  .landing-main .course-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile: 1 coluna */
@media (max-width: 649px) {
  .landing-main .course-grid {
    grid-template-columns: 1fr !important;
  }
}

