/**
 * DashMaster — Courses / Guias CSS
 * Shared styles for all course pages (page-curso.php template)
 */

/* ============================================================
   COURSE HEADER (Hero Banner)
   Supports both .curso-header (template-generated) and
   .header (content-embedded from original HTML files)
   ============================================================ */

.curso-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 0 2rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.curso-header h1 {
  font-size: 3.5rem;
  text-align: center;
  margin: 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  max-width: 900px;
  line-height: 1.2;
  color: #fff !important;
}

/* ============================================================
   GUIA CONTAINER
   ============================================================ */

.guia-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.guia-container > h1 {
  text-align: center;
  color: var(--curso-primary, #6c63ff);
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ============================================================
   ICON MENU (Category Buttons)
   ============================================================ */

.menu-container {
  margin-bottom: 2rem;
  text-align: center;
}

.menu-label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.1rem;
}

.icon-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--curso-primary, #6c63ff);
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.85rem;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 0;
  max-width: 160px;
}

.icon-button:hover {
  background-color: var(--curso-primary, #6c63ff);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.icon-button.active {
  background-color: var(--curso-primary, #6c63ff);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-button-icon {
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  color: var(--curso-primary, #6c63ff);
  transition: color 0.3s ease;
}

.icon-button-img {
  width: 28px;
  height: 28px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.icon-button:hover .icon-button-icon,
.icon-button.active .icon-button-icon {
  color: white;
}

.icon-button:hover .icon-button-img {
  filter: brightness(1.15);
  transform: scale(1.03);
}

.icon-button.active .icon-button-img {
  filter: brightness(1.15);
}

/* ============================================================
   CONTENT SECTIONS (Accordion Panels)
   ============================================================ */

.content-section {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
}

.content-section.active {
  display: block;
  animation: cursoFadeIn 0.3s ease-in;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--curso-primary, #6c63ff);
}

/* ============================================================
   SECTION BUTTONS (Subsection Buttons)
   ============================================================ */

.button-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-button {
  background: var(--curso-primary, #6c63ff);
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  flex: 0 1 auto;
}

.section-button:hover {
  background: var(--curso-secondary, #4834d4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.section-button.active {
  background: var(--curso-secondary, #4834d4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   SUBSECTIONS (Expandable Content)
   ============================================================ */

.subsection {
  display: none;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  border-left: 5px solid var(--curso-primary, #6c63ff);
}

.subsection.active {
  display: block;
  animation: cursoSlideDown 0.3s ease-out;
}

.subsection h3 {
  color: var(--curso-primary, #6c63ff);
  margin-top: 0;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.subsection h4 {
  color: var(--curso-secondary, #4834d4);
  margin-top: 1.5rem;
}

.subsection ul {
  line-height: 1.8;
  padding-left: 2rem;
}

.subsection li {
  margin-bottom: 0.8rem;
}

.subsection p {
  line-height: 1.6;
  color: #555;
}

/* ============================================================
   SEO INTRODUCTION SECTION
   ============================================================ */

.seo-introduction {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--curso-primary, #6c63ff);
}

.seo-introduction h2 {
  color: var(--curso-primary, #6c63ff);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.seo-introduction h3 {
  color: var(--curso-secondary, #4834d4);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.seo-introduction h4 {
  color: #555;
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.seo-introduction p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.seo-list {
  list-style-position: inside;
  padding-left: 1rem;
}

.seo-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #555;
}

.seo-list strong {
  color: var(--curso-primary, #6c63ff);
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */

.highlight-box {
  background: #f0f7ff;
  border-left: 4px solid var(--curso-primary, #6c63ff);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

/* ============================================================
   DASHMASTER BANNER (Promotional Banner)
   ============================================================ */

.dashmaster-banner {
  background: linear-gradient(90deg, #ffffff 0%, #f0f0ff 100%);
  border: 2px solid var(--curso-primary, #6c63ff);
  border-radius: 60px;
  padding: 1rem 2.2rem;
  margin: 1.5rem 0 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 14px rgba(108, 99, 255, 0.15);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner-icon {
  font-size: 2.5rem;
  background: var(--curso-primary, #6c63ff);
  width: 60px;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.banner-text h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--curso-primary, #6c63ff);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-text h3 span {
  background: var(--curso-primary, #6c63ff);
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.banner-text p {
  margin: 0.3rem 0 0 0;
  font-size: 1rem;
  color: #555;
  max-width: 700px;
}

.banner-cta {
  background: var(--curso-secondary, #4834d4);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(72, 52, 212, 0.3);
  margin-left: auto;
}

.banner-cta:hover {
  background: var(--curso-primary, #6c63ff);
  color: #fff;
  transform: scale(1.02);
  border-color: var(--curso-secondary, #4834d4);
  text-decoration: none;
}

/* ============================================================
   FAQ SECTION (Perguntas Frequentes)
   ============================================================ */

.faq-section {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.faq-section h2 {
  font-size: 2rem;
  color: var(--curso-primary, #6c63ff);
  text-align: center;
  border-bottom: 3px dashed var(--curso-primary, #6c63ff);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1.8rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.3rem;
  color: var(--curso-secondary, #4834d4);
  margin-bottom: 0.8rem;
  margin-top: 0;
}

.faq-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-left: 1rem;
  margin-bottom: 0;
}

/* ============================================================
   EXAMPLE & TIP BOXES (inside subsections)
   ============================================================ */

.exemplo {
  background: #f0f4ff;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 5px solid var(--curso-secondary, #4834d4);
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  overflow-x: auto;
}

.dica {
  background: #fff9e6;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 5px solid #f0c040;
  font-size: 1rem;
  color: #555;
}

/* ============================================================
   TABLES (inside subsections)
   ============================================================ */

.subsection table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.subsection th,
.subsection td {
  border: 1px solid #e0e0e0;
  padding: 0.7rem 1rem;
  text-align: left;
}

.subsection th {
  background: var(--curso-primary, #6c63ff);
  color: white;
  font-weight: 600;
}

.subsection tr:nth-child(even) {
  background: #f8f9fa;
}

/* ============================================================
   BREADCRUMBS (inside course content)
   ============================================================ */

.breadcrumbs {
  padding: 0.8rem 0;
  font-size: 0.9rem;
  color: #888;
}

.breadcrumbs a {
  color: var(--curso-primary, #6c63ff);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--curso-secondary, #4834d4);
  text-decoration: underline;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--curso-primary, #6c63ff), var(--curso-secondary, #4834d4));
  z-index: 10000;
  transition: width 0.15s ease;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes cursoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cursoSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   CTA Section (already in page-curso.php)
   ============================================================ */

.cta-section .btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */

@media (max-width: 768px) {
  .curso-header {
    height: 280px;
    padding: 0 1rem;
  }

  .curso-header h1 {
    font-size: 2rem;
  }

  .guia-container > h1 {
    font-size: 1.8rem;
  }

  .icon-menu {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .icon-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    max-width: none;
    flex: 0 1 auto;
  }

  .icon-button-icon {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
  }

  .icon-button-img {
    width: 22px;
    height: 22px;
  }

  .button-grid {
    flex-wrap: wrap;
  }

  .section-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .seo-introduction {
    padding: 1.2rem;
  }

  .seo-introduction h2 {
    font-size: 1.4rem;
  }

  .subsection {
    padding: 1rem;
  }

  .dashmaster-banner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
    padding: 1.2rem;
  }

  .banner-cta {
    margin-left: 0;
    align-self: stretch;
    justify-content: center;
  }

  .banner-icon {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }

  .banner-text h3 {
    font-size: 1.2rem;
    flex-wrap: wrap;
  }

  .faq-section {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .faq-section h2 {
    font-size: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }

  .faq-item p {
    margin-left: 0;
  }

  .exemplo,
  .dica {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .subsection table {
    font-size: 0.85rem;
  }

  .subsection th,
  .subsection td {
    padding: 0.5rem;
  }
}

/* ============================================================
   COURSES LISTING PAGE (page-cursos.php)
   ============================================================ */

/* ===== HERO ===== */
.cursos_hero {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  padding: 180px 0 100px;
  position: relative;
}

.cursos_hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("../images/shape-1.svg") no-repeat;
  opacity: 0.1;
}

.cursos_hero_content { position: relative; z-index: 2; }
.cursos_hero_content h1 { color: #fff; font-size: 48px; font-weight: 700; margin-bottom: 15px; }
.cursos_hero_content h1 i { margin-right: 12px; opacity: 0.9; }
.cursos_hero_content p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 600px; }
.cursos_hero .breadcrumb_nav { margin-top: 20px; }
.cursos_hero .breadcrumb_nav a { color: rgba(255,255,255,0.8); text-decoration: none; transition: all 0.3s; }
.cursos_hero .breadcrumb_nav a:hover { color: #fff; }
.cursos_hero .breadcrumb_nav span { color: #fff; margin: 0 10px; }

/* ===== LISTING AREA ===== */
.cursos_listing_area { padding: 80px 0; background: #f8f9fa; position: relative; z-index: 10; }

/* ===== FILTER ===== */
.cursos_filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.cursos_filter_btn {
  background: #fff;
  color: #555;
  border: 2px solid #e0e0e0;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cursos_filter_btn:hover {
  border-color: #6c63ff;
  color: #6c63ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108,99,255,0.15);
}

.cursos_filter_btn.active {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(108,99,255,0.35);
}

.cursos_filter_btn i { font-size: 16px; }

/* ===== GRID ===== */
.cursos_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.curso_grid_item {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.curso_grid_item.hidden { opacity: 0; transform: scale(0.95); }
.curso_grid_item.visible { animation: cursosFadeIn 0.4s ease forwards; }

@keyframes cursosFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card title link */
.cursos_grid .course_card_title a { color: inherit; text-decoration: none; transition: color 0.3s; }
.cursos_grid .course_card_title a:hover { color: #6c63ff; }

/* ===== EMPTY STATE ===== */
.cursos_empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: #888; }
.cursos_empty h3 { font-size: 24px; color: #555; margin-bottom: 10px; }
.cursos_empty p { font-size: 16px; color: #888; }

/* ===== COUNTER ===== */
.cursos_counter {
  text-align: center; margin-top: 40px; padding: 15px 30px;
  background: #fff; border-radius: 25px; display: inline-block;
  color: #666; font-size: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); width: 100%;
}
.cursos_counter span { font-weight: 700; color: #6c63ff; font-size: 18px; }

/* ===== CTA ===== */
.cursos_cta { background: linear-gradient(135deg, #6c63ff, #3f37c9); padding: 80px 0; text-align: center; color: #fff; }
.cursos_cta h2 { font-size: 32px; margin-bottom: 15px; color: #fff; }
.cursos_cta p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; color: #fff; }

/* ============================================================
   COURSE LISTING CARDS (for page-cursos.php grid)
   ============================================================ */

.course_card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  margin-bottom: 0;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(108, 99, 255, 0.2);
  border-color: #6c63ff;
}

.course_card_image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course_card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.course_card:hover .course_card_image img {
  transform: scale(1.1);
}

.course_badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.course_badge.coming_soon {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
}

.course_card_content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course_card_category {
  color: #6c63ff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.course_card_title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.course_meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #888;
  font-size: 13px;
}

.course_meta i {
  color: #6c63ff;
  margin-right: 5px;
}

.course_card_description {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.course_card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.course_price {
  font-size: 24px;
  font-weight: 700;
  color: #6c63ff;
}

.course_btn {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course_btn:hover {
  transform: translateX(5px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
  text-decoration: none;
}

/* ===== COURSES LISTING RESPONSIVE ===== */
@media (max-width: 991px) {
  .cursos_hero_content h1 { font-size: 36px; }
  .cursos_grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 767px) {
  .cursos_hero { padding: 140px 0 60px; }
  .cursos_hero_content h1 { font-size: 28px; }
  .cursos_hero_content p { font-size: 16px; }
  .cursos_filter { gap: 8px; }
  .cursos_filter_btn { padding: 8px 14px; font-size: 13px; }
  .cursos_grid { grid-template-columns: 1fr; gap: 20px; }
  .cursos_cta h2 { font-size: 24px; }
  .cursos_cta p { font-size: 16px; }
}

/* ============================================================
   COURSES V2 — Progressive Lead-Capture Layout
   ============================================================ */

/* --- Wrapper --- */
.curso-v2-wrapper,
.curso-v2-wrapper *,
.curso-v2-wrapper *::before,
.curso-v2-wrapper *::after {
  box-sizing: border-box;
}

.curso-v2-wrapper {
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  background: transparent;
  color: #1e293b;
  line-height: 1.7;
  width: 100%;
  max-width: 1100px !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: block;
}

/* --- Top Banner with Image --- */
.curso-v2-wrapper .top-banner {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  position: relative;
  background: #0a1628;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
  margin-top: 20px;
}

.curso-v2-wrapper .top-banner img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.curso-v2-wrapper .top-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,50,120,0.55) 0%, rgba(0,30,80,0.7) 60%, rgba(0,20,50,0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 2rem;
}

.curso-v2-wrapper .top-banner-content {
  color: white;
  z-index: 2;
  max-width: 800px;
}

.curso-v2-wrapper .top-banner-content .banner-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1.4rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.curso-v2-wrapper .top-banner-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  color: white !important;
}

.curso-v2-wrapper .top-banner-content p {
  font-size: 1rem;
  opacity: 0.9;
  color: white !important;
}

/* --- Content Area --- */
.curso-v2-wrapper .curso-content-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
  padding-top: 150px;
}

/* --- SEO Introduction (V2) --- */
.curso-v2-wrapper .seo-introduction {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  border-left: none;
  width: 100%;
}

.curso-v2-wrapper .seo-introduction h2 {
  color: var(--curso-primary, #0066FF) !important;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.curso-v2-wrapper .seo-introduction h3 {
  color: var(--curso-secondary, #0052CC) !important;
  font-size: 1.3rem;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.curso-v2-wrapper .seo-introduction h4 {
  color: #444 !important;
  font-size: 1.1rem;
  margin: 1.2rem 0 0.6rem;
}

.curso-v2-wrapper .seo-introduction p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.curso-v2-wrapper .seo-list {
  list-style: none;
  padding-left: 0;
}

.curso-v2-wrapper .seo-list li {
  padding: 0.7rem 0 0.7rem 2rem;
  position: relative;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #f9fafb;
  color: #555;
}

.curso-v2-wrapper .seo-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--curso-primary, #0066FF);
  font-weight: bold;
}

.curso-v2-wrapper .seo-list strong {
  color: var(--curso-primary, #0066FF);
}

/* --- Benefits Grid --- */
.curso-v2-wrapper .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.curso-v2-wrapper .benefit-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid #e8edf2;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.curso-v2-wrapper .benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.curso-v2-wrapper .benefit-card .benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.curso-v2-wrapper .benefit-card strong {
  display: block;
  color: var(--curso-primary, #0066FF);
  font-size: 1rem;
}

/* --- Start Course Area --- */
.curso-v2-wrapper .start-course-area {
  text-align: center;
  padding: 2rem;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

/* --- Course Hero --- */
.curso-v2-wrapper .course-hero {
  position: relative;
  background: linear-gradient(135deg, var(--curso-primary, #0066FF) 0%, var(--curso-secondary, #0047b3) 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  color: white;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(0,102,255,0.45);
  width: 100%;
}

.curso-v2-wrapper .course-hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.curso-v2-wrapper .hero-content {
  position: relative;
  z-index: 2;
}

.curso-v2-wrapper .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

.curso-v2-wrapper .course-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: white !important;
}

.curso-v2-wrapper .course-hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
  max-width: 600px;
  color: white;
}

.curso-v2-wrapper .hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.curso-v2-wrapper .hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
}

.curso-v2-wrapper .hero-stat span { font-size: 1.5rem; }

/* --- Progress Bar --- */
.curso-v2-wrapper .progress-container {
  background: #ffffff;
  border-radius: 60px;
  padding: 1rem 1.8rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.curso-v2-wrapper .progress-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #64748b;
  font-size: 0.9rem;
}

.curso-v2-wrapper .progress-bar-outer {
  flex: 2;
  min-width: 180px;
  height: 14px;
  background: #e9eef2;
  border-radius: 30px;
  overflow: hidden;
}

.curso-v2-wrapper .progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--curso-primary, #0066FF), #4f9aff, #7bb3ff);
  border-radius: 30px;
  transition: width 0.5s ease;
}

.curso-v2-wrapper .progress-percentage {
  font-weight: 700;
  color: var(--curso-primary, #0066FF);
  font-size: 1rem;
  min-width: 50px;
  text-align: right;
}

/* --- Module Tabs --- */
.curso-v2-wrapper .modules-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: #ffffff;
  padding: 0.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  justify-content: center;
  width: 100%;
}

.curso-v2-wrapper .module-tab {
  background: #f1f5f9;
  border: 2px solid transparent;
  padding: 0.8rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: #64748b;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.curso-v2-wrapper .module-tab:hover:not(.locked) {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-2px);
}

.curso-v2-wrapper .module-tab.active {
  background: var(--curso-primary, #0066FF);
  color: white;
  border-color: var(--curso-primary, #0066FF);
  box-shadow: 0 8px 20px rgba(0,102,255,0.35);
}

.curso-v2-wrapper .module-tab.completed {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.curso-v2-wrapper .module-tab.completed::after {
  content: "✓";
  font-weight: bold;
  margin-left: 2px;
}

.curso-v2-wrapper .module-tab.locked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Module Panels --- */
.curso-v2-wrapper .modules-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  min-height: 400px;
  width: 100%;
}

.curso-v2-wrapper .module-panel {
  display: none;
  animation: v2FadeSlideIn 0.4s ease;
}

.curso-v2-wrapper .module-panel.active {
  display: block;
}

@keyframes v2FadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Subsection Buttons --- */
.curso-v2-wrapper .subsection-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 1.2rem;
}

.curso-v2-wrapper .sub-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  color: #64748b;
}

.curso-v2-wrapper .sub-btn:hover {
  border-color: var(--curso-primary, #0066FF);
  color: var(--curso-primary, #0066FF);
  background: #f0f7ff;
}

.curso-v2-wrapper .sub-btn.active {
  background: var(--curso-primary, #0066FF);
  border-color: var(--curso-primary, #0066FF);
  color: white;
  box-shadow: 0 4px 12px rgba(0,102,255,0.3);
}

/* --- Content Card --- */
.curso-v2-wrapper .content-card {
  background: #fafcfd;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.2rem 0;
  border-left: 6px solid var(--curso-primary, #0066FF);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  line-height: 1.8;
}

.curso-v2-wrapper .content-card h3 {
  color: var(--curso-primary, #0066FF) !important;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.curso-v2-wrapper .content-card h4 {
  color: var(--curso-secondary, #0052CC) !important;
  margin: 1.2rem 0 0.6rem;
  font-size: 1.1rem;
}

.curso-v2-wrapper .content-card ul {
  padding-left: 1.5rem;
  margin: 0.8rem 0;
  color: #555;
}

.curso-v2-wrapper .content-card li {
  margin-bottom: 0.6rem;
}

.curso-v2-wrapper .content-card .highlight-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.curso-v2-wrapper .content-card .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.curso-v2-wrapper .content-card .stat-item {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.curso-v2-wrapper .content-card .stat-item .stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--curso-primary, #0066FF);
}

/* --- Navigation Buttons --- */
.curso-v2-wrapper .navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.curso-v2-wrapper .nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid #e2e8f0;
  padding: 0.9rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1e293b;
  font-size: 0.95rem;
}

.curso-v2-wrapper .nav-btn.primary {
  background: var(--curso-primary, #0066FF);
  border-color: var(--curso-primary, #0066FF);
  color: white;
  box-shadow: 0 6px 16px rgba(0,102,255,0.3);
}

.curso-v2-wrapper .nav-btn.success {
  background: #10b981;
  border-color: #10b981;
  color: white;
  margin: 0 auto;
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

.curso-v2-wrapper .nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Completion Message --- */
.curso-v2-wrapper .completion-message {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #f0fdf4;
  border-radius: 12px;
  border: 2px solid #bbf7d0;
  margin-top: 1.5rem;
  animation: v2FadeSlideIn 0.5s ease;
}

.curso-v2-wrapper .completion-message .trophy {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.curso-v2-wrapper .completion-message h3 {
  color: #065f46 !important;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

/* --- Forminator Placeholder --- */
.curso-v2-wrapper .forminator-placeholder {
  background: #f8fafd;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  margin: 1.8rem 0;
  text-align: center;
}

.curso-v2-wrapper .forminator-placeholder .form-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.curso-v2-wrapper .forminator-placeholder strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #1e3a8a;
}

/* --- V2 Responsive --- */
@media (max-width: 768px) {
  .curso-v2-wrapper .curso-content-area {
    padding: 1rem 0;
  }
  .curso-v2-wrapper .seo-introduction,
  .curso-v2-wrapper .modules-container,
  .curso-v2-wrapper .start-course-area {
    padding: 1.5rem 1rem;
  }
  .curso-v2-wrapper .top-banner {
    max-height: 240px;
    border-radius: 12px 12px 0 0;
  }
  .curso-v2-wrapper .top-banner img {
    max-height: 240px;
  }
  .curso-v2-wrapper .course-hero {
    padding: 2rem 1.5rem;
  }
  .curso-v2-wrapper .modules-nav {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .curso-v2-wrapper .module-tab {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  .curso-v2-wrapper .navigation-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .curso-v2-wrapper .nav-btn {
    justify-content: center;
  }
}

/* --- Post Content Container (HTML/CSS colado no editor) --- */
.curso-v2-wrapper .curso-post-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  width: 100%;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #1e293b;
}

.curso-v2-wrapper .curso-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .curso-v2-wrapper .curso-post-content {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
}
