:root {
  --bg: #f5f7fa;
  --ink: #2c3e50;
  --muted: #7f8c8d;
  --accent: #3b82f6;
  --card: #ffffff;
  --border: #e0e6ed;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  padding: 0;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

.main-nav > a,
.main-nav > button {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1f2933;
  background: transparent;
  border: none;
  cursor: pointer;
}

.main-nav > a:hover,
.main-nav > button:hover {
  color: #2563eb;
}

.dropdown-area-aluno {
  position: relative;
}

.area-aluno-btn {
  border: none;
  background: transparent;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  color: #1f2933;
}

.area-aluno-btn:hover {
  color: #2563eb;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 220px;
  display: none;
}

.dropdown-area-aluno.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #1f2933;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
  color: #2563eb;
}

.dropdown-menu a.active-tool {
  font-weight: 700;
  color: #2563eb;
}

.dropdown-area-aluno:hover .dropdown-menu {
  display: block;
}

header.hero {
  text-align: center;
  padding: 3.2rem 1rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  display: block;
  width: clamp(520px, 62vw, 740px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}



header.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #0f2142;
  line-height: 1.12;
  margin-bottom: 0.8rem;
}

header.hero h1 span {
  color: #e11d48;
}

header.hero .hero-subtitle {
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  color: #1f3556;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

header.hero .hero-description {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: clamp(1.15rem, 1vw, 1rem);
  line-height: 1.45;
  color: #344861;
}

header.hero .hero-description strong {
  color: #e11d48;
  font-weight: 700;
  text-align: center;
}

.tool-shortcuts {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.shortcut-card {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.shortcut-card.active {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
}

.shortcut-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.shortcut-title {
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}


.shortcut-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}

nav.toolbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

nav.toolbar .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.selection-flow {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.selection-step {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.selection-step label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.selection-step select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-size: 0.94rem;
  color: #0f172a;
  background: #fff;
}

.selection-step.is-active {
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.selection-step.is-complete {
  border-color: #86efac;
}

.selection-step.is-disabled {
  opacity: 0.65;
}

.selection-step select:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
}


.step-notice {
  margin: 0;
  font-size: 0.82rem;
  color: #b45309;
  opacity: 0;
  transform: translateY(-2px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.step-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 40px;
}

.selection-step.needs-attention {
  animation: stepPulse 1.2s ease-in-out infinite;
}

@keyframes stepPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.26);
    border-color: #fbbf24;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    border-color: #f59e0b;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    border-color: #fbbf24;
  }
}

.selection-hint {
  width: 100%;
  border: 1px dashed #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-size: 0.94rem;
}

.hub-welcome-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(130, 163, 255, 0.35), rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hub-welcome-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 2rem);
  background: #fff;
  border-radius: 28px;
  padding: 2rem 2rem 1.4rem;
  display: grid;
  gap: 0.9rem;
  overflow-y: auto;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
}

.hub-welcome-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.hub-welcome-hero {
  display: flex;
  justify-content: center;
}

.hub-welcome-hero-image {
  width: min(260px, 100%);
  height: auto;
  display: block;
}

.hub-welcome-modal h2 {
  margin: 0;
  text-align: center;
  color: #1f2a4a;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
}

.hub-welcome-modal h2 span {
  color: #2b6be8;
}

.hub-welcome-modal p {
  margin: 0;
  text-align: center;
  color: #5f6780;
  font-size: 1.15rem;
}

.hub-welcome-modal label {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2a4a;
}

.hub-welcome-language-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hub-welcome-language-option {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #bdd2ff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #414a64;
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(244,248,255,0.9));
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-welcome-modal [role="radiogroup"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hub-welcome-modal [role="radiogroup"] > button {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #bdd2ff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #414a64;
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(244,248,255,0.9));
  cursor: pointer;
}

.hub-welcome-language-option:hover {
  border-color: #7da5ff;
}

.hub-welcome-language-option.is-selected {
  border-color: #2f76ff;
  color: #2457ea;
  box-shadow: 0 0 0 3px rgba(47, 118, 255, 0.15);
}

.hub-welcome-actions {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

.hub-welcome-modal > div:last-of-type {
  display: flex;
  justify-content: center;
}

.hub-welcome-actions button {
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1.7rem;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 700;
  cursor: pointer;
}

.hub-welcome-save {
  background: linear-gradient(90deg, #2f76ff, #2457ea);
  color: #fff;
  min-width: min(420px, 100%);
}

.hub-welcome-modal > div:last-of-type > button {
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 700;
  background: linear-gradient(90deg, #2f76ff, #2457ea);
  color: #fff;
  min-width: min(420px, 100%);
}

.hub-welcome-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hub-welcome-helper {
  margin-top: 0.2rem !important;
  font-size: 0.95rem !important;
  color: #6b7280 !important;
}

@media (max-width: 640px) {
  .hub-welcome-modal {
    border-radius: 22px;
    padding: 1.3rem 1rem 1.1rem;
  }

  .hub-welcome-language-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 800px) {
  .hub-welcome-modal {
    width: min(680px, 100%);
    padding: 1.5rem 1.5rem 1rem;
    gap: 0.7rem;
  }

  .hub-welcome-hero-image {
    width: min(210px, 100%);
  }

  .hub-welcome-modal h2 {
    font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  }

  .hub-welcome-modal p {
    font-size: 1rem;
  }

  .hub-welcome-actions button {
    font-size: clamp(0.95rem, 2.2vw, 1.35rem);
    padding: 0.72rem 0.9rem;
  }
}


.category-filters {
  width: 100%;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.filters button {
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 600;
  margin-right: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filters button.active,
.filters button:hover {
  background: var(--accent);
  color: #fff;
}

nav.toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.results-counter {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
}

.posts {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

article.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

article.post:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

article.post .media-wrapper {
  position: relative;
  overflow: hidden;
}

article.post img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.post-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.75));
  color: #f9fafb;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
  pointer-events: none;
  flex-wrap: wrap;
  row-gap: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.post-meta .dot {
  width: 5px;
  height: 5px;
  background: #c7d2fe;
  border-radius: 50%;
  opacity: 0.9;
}


.post-tool-chips {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: none;
}

.post-tool-chip {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

article.post .content {
  padding: 1.25rem;
}

article.post h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-premium {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #fff3d4;
  color: #7a5b00;
  border: 1px solid #f3d08a;
  line-height: 1.2;
  vertical-align: middle;
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.85rem;
}

.taglist span {
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 8px;
  border-radius: 999px;
}

article.post p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

article.post a.readmore {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

article.post a.readmore:hover {
  text-decoration: underline;
}

footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 3rem;
}

@media (max-width: 800px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tool-shortcuts {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 600px) {
  header.hero {
    padding: 2rem 1rem 1.5rem;
  }
  
    .hero-logo {
    width: 220px;
  }

  .tool-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav.toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  nav.toolbar input[type="search"] {
    width: 100%;
  }

  nav.toolbar .filters {
    justify-content: center;
  }

  .selection-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .dropdown-area-aluno {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 4px;
    width: 100%;
  }

  .dropdown-menu a {
    padding-left: 24px;
  }

  .dropdown-area-aluno:hover .dropdown-menu {
    display: none;
  }

  .dropdown-area-aluno.open .dropdown-menu {
    display: block;
  }
}

.hub-tracking-hint {
  max-width: 1120px;
  margin: 0 auto 1rem;
  padding: .75rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.post-progress {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .55rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1f2937;
  font-size: .84rem;
}

.post-progress strong {
  color: #1d4ed8;
  font-size: .82rem;
}

.post-progress.post-progress--quiz {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.post-progress.post-progress--quiz strong {
  color: #15803d;
}

.post-progress--compact {
  gap: .4rem;
}

.post-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.post-progress__percent {
  color: #1d4ed8;
  font-weight: 700;
  font-size: .78rem;
}

.post-progress__track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.post-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  transition: width .3s ease;
}

.post-progress__detail {
  display: block;
  font-size: .76rem;
  color: #4b5563;
  line-height: 1.35;
}

.post-progress__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .45rem;
  min-width: 0;
}

.post-progress__bottom .post-progress__detail {
  flex: 1;
  min-width: 0;
}

.post-progress__quiz-score {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  font-size: .7rem;
  color: #334155;
  opacity: .9;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .post-progress__quiz-score {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.post-progress--compact.is-completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.post-progress--compact.is-completed strong,
.post-progress--compact.is-completed .post-progress__percent {
  color: #15803d;
}

.post-progress--compact.is-completed .post-progress__track {
  background: #dcfce7;
}

.post-progress--compact.is-completed .post-progress__fill {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}