@charset "UTF-8";

/* =========================================================================== */
/* JORNADAS E DESAFIOS - CSS                                                   */
/* Usa as variaveis globais de main.css.                                       */
/* =========================================================================== */

/* --- Hero Section --- */
.jornada-hero {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 56px 36px 72px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jornada-hero-background {
  position: absolute;
  right: -80px;
  top: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.jornada-hero-background::after {
  content: '';
  position: absolute;
  left: 5%;
  bottom: -180px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.12);
}

.jornada-hero-content {
  position: relative;
  z-index: 1;
}

.jornada-hero-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}

/* --- Main Content --- */
.jornada-main-content {
  max-width: 1180px;
  margin: -32px auto 0;
  padding: 0 36px 80px;
  position: relative;
  z-index: 2;
}

/* --- Jornadas Grid --- */
.jornadas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 64px;
}

.jornada-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px 24px;
  border-top: 4px solid;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.jornada-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.jornada-card-num {
  font-family: var(--font-dm-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.jornada-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.jornada-card-sub {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.4;
}

.jornada-card-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.5;
  flex: 1;
}

.jornada-card-count {
  font-family: var(--font-dm-mono);
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* --- Desafios Section --- */
.jornada-desafios-section {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 40px 44px;
  border: 1px solid var(--border);
}

.jornada-section-eyebrow {
  font-family: var(--font-dm-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.jornada-topico-title {
  font-size: 15px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.jornada-section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
}

.jornada-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.jornada-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.jornada-block-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
}

.jornada-block-num {
  font-family: var(--font-dm-mono);
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.jornada-block-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.jornada-block-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-left: auto;
}

/* --- Desafio List --- */
.jornada-desafio-list {
  list-style: none;
}

.jornada-desafio-item {
  padding: 0;
  border: none;
}

.jornada-desafio-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.18s;
  text-decoration: none;
  color: inherit;
}

.jornada-desafio-item:last-child .jornada-desafio-link {
  border-bottom: none;
}

.jornada-desafio-link:hover {
  padding-left: 8px;
}

.jornada-desafio-link:hover .jornada-desafio-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.jornada-desafio-num {
  font-family: var(--font-dm-mono);
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
  padding-top: 3px;
  width: 32px;
}

.jornada-desafio-content {
  flex: 1;
}

.jornada-desafio-title {
  font-size: 19.5px;
  font-weight: 500;
  margin-bottom: 3px;
  line-height: 1.4;
}

.jornada-desafio-snippet {
  font-size: 16.25px;
  color: var(--text-light);
  line-height: 1.45;
}

.jornada-desafio-arrow {
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: transform 0.18s, opacity 0.18s;
  flex-shrink: 0;
  margin-top: 2px;
}

.jornada-desafio-selo {
  display: inline-block;
  font-family: var(--font-dm-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--coral-light);
  color: var(--coral-dark);
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 500;
}

/* --- Detail Hero Section --- */
.jornada-detail-hero {
  padding: 56px 0 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.jornada-detail-hero-background {
  position: absolute;
  right: -80px;
  top: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.jornada-detail-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.jornada-detail-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.jornada-detail-hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 780px;
}

.jornada-detail-hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  line-height: 1.6;
}

.jornada-detail-hero-description {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 700px;
  font-weight: 300;
}

/* --- Desafio Hero Section --- */
.jornada-desafio-hero {
  padding: 56px 36px 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.jornada-desafio-hero-background {
  position: absolute;
  right: -80px;
  top: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.jornada-desafio-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.jornada-desafio-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.jornada-desafio-hero-jornada {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.jornada-desafio-hero-selo {
  display: inline-block;
  font-family: var(--font-dm-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 500;
}

.jornada-desafio-hero-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.jornada-desafio-hero-description {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 700px;
  font-weight: 300;
}

/* --- Detail Wrap --- */
.jornada-detail-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 36px 80px;
}

.jornada-detail-wrap--listagem {
  max-width: 1140px;
}

.jornada-detail-eyebrow {
  font-family: var(--font-dm-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jornada-detail-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.jornada-detail-section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
}

/* --- Detail Desafios --- */
.jornada-detail-desafios {
  margin-bottom: 44px;
}

.jornada-desafio-grupo {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.jornada-desafio-grupo .jornada-topico-title {
  margin: 0;
  padding-top: 14px;
}

.jornada-desafio-grupo .jornada-desafio-list {
  margin: 0;
}

.jornada-detail-desafio-list {
  list-style: none;
}

.jornada-detail-desafio-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.jornada-detail-desafio-item:last-child {
  border-bottom: none;
}

.jornada-detail-desafio-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  cursor: pointer;
  transition: padding-left 0.18s;
  text-decoration: none;
  color: inherit;
}

.jornada-detail-desafio-item:hover .jornada-detail-desafio-card {
  padding-left: 6px;
}

.jornada-detail-desafio-item:hover .jornada-detail-desafio-title {
  color: var(--blue);
}

.jornada-detail-desafio-number {
  font-family: var(--font-dm-mono);
  font-size: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
  font-weight: 300;
  width: 36px;
}

.jornada-detail-desafio-content {
  flex: 1;
  min-width: 0;
}

.jornada-detail-desafio-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 5px;
  line-height: 1.35;
  transition: color 0.15s;
}

.jornada-detail-desafio-description {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.5;
}

.jornada-detail-desafio-arrow {
  font-size: 18px;
  color: var(--text-light);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Artigos --- */
.jornada-desafio-block {
  margin-bottom: 44px;
}

.jornada-desafio-resposta-rapida-title {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.jornada-desafio-block-label {
  font-family: var(--font-dm-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jornada-desafio-block-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.jornada-artigos-section {
  margin-top: 8px;
}

.jornada-artigos-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 18px;
}

.jornada-artigos-eyebrow {
  font-family: var(--font-dm-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 700;
}

.jornada-artigos-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
  color: var(--text);
}

.jornada-artigos-count {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
  text-align: right;
}

.jornada-artigos-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 36px;
}

.jornada-artigos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.jornada-artigo-card {
  min-height: 160px;
  padding: 24px 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.jornada-artigo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 128, 200, 0.22);
}

.jornada-artigo-num {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--blue-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-dm-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.jornada-artigo-content {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.jornada-artigo-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--text);
}

.jornada-artigo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--text-light);
}

.jornada-artigo-meta span + span::before {
  content: '\00B7';
  margin-right: 8px;
}

.jornada-artigo-tag,
.jornada-artigo-brief,
.jornada-artigo-arrow,
.jornada-artigo-item {
  display: none;
}

.jornada-artigo-card:hover .jornada-artigo-title {
  color: var(--blue-accent);
}

@media (max-width: 980px) {
  .jornada-artigos-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .jornada-artigos-count {
    text-align: left;
  }

  .jornada-artigos-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Aprofundamento --- */
.jornada-aprofundar-link {
  margin-top: 18px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-top: 1px dashed var(--border);
  text-decoration: none;
  transition: color 0.15s;
}

.jornada-aprofundar-link:hover {
  color: var(--blue-dark);
}

.jornada-aprofundar-link .arrow {
  transition: transform 0.15s;
}

.jornada-aprofundar-link:hover .arrow {
  transform: translateX(4px);
}

.jornada-aprofundar-text {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 18px;
  font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .jornadas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jornada-desafio-grupo {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jornada-desafio-grupo .jornada-topico-title {
    padding-top: 0;
  }

  .jornada-hero-title {
    font-size: 34px;
  }

  .jornada-detail-hero-title {
    font-size: 34px;
  }

  .jornada-desafios-section {
    padding: 28px 22px;
  }
}

@media (max-width: 600px) {
  .jornada-hero {
    padding: 36px 18px 56px;
  }

  .jornada-hero-title {
    font-size: 28px;
  }

  .jornada-main-content {
    padding: 0 18px 60px;
  }

  .jornadas-grid {
    grid-template-columns: 1fr;
  }

  .jornada-desafios-section {
    padding: 22px 18px;
  }

  .jornada-block-sub {
    display: none;
  }

  .jornada-detail-wrap {
    padding: 24px 18px 60px;
  }

  .jornada-detail-hero-title {
    font-size: 22px;
  }

  .jornada-detail-desafio-card {
    flex-direction: column;
    align-items: flex-start;
  }

}
