:root {
  --primary: #4a148c;
  --primary-light: #7c43bd;
  --primary-dark: #12005e;
  --secondary: #232F3E;
  --secondary-dark: #1A2533;
  --text: #333333;
  --text-light: #666666;
  --gray-light: #F6F6F6;
  --gray-medium: #E0E0E0;
  --gray-dark: #999999;
  --white: #FFFFFF;
  --success: #28A745;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset e Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--gray-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 70px; /* Altura da navbar */

}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  /* resto do seu CSS atual */
}

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




/* Header */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

/* Main Content */
.certification-path {
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cert Header */
.cert-header {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 30px; /* Reduzi de 40px para 30px */
  margin-top: 2rem; /* Remove qualquer margem superior extra */

}

@media (min-width: 768px) {
  .cert-header {
    flex-direction: row;
    align-items: center;
  }
}

.cert-badge img {
  width: 150px;
  height: auto;
}

.cert-info h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--secondary);
  margin-bottom: 15px;
}

.cert-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 25px;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.meta-item i {
  color: var(--primary);
}

/* Tabs */
.tab-navigation {
  margin-top: -10px; /* Compensa parte do margin-bottom do header */
  margin-bottom: 30px;
}

.tab-navigation ul {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 5px; /* Espaço para a borda inferior */
}


.tab-navigation ul::-webkit-scrollbar {
  display: none;
}

.tab-navigation a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-navigation a:hover {
  color: var(--primary);
}

.tab-navigation li.active a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 40px;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

/* Modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.module-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.module-header {
  background-color: var(--secondary);
  color: var(--white);
  padding: 25px;
  position: relative;
}

.module-title {
  font-size: 1.2rem;
  margin: 0;
  padding-right: 40px;
}

.module-number {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 1.2rem;
  opacity: 0.3;
}


.module-status .completed {
  color: var(--success);
}

.module-body {
  padding: 25px;
  flex-grow: 1;
}

.module-description {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background-color: var(--primary-light);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.module-actions {
  padding: 0 25px 25px;
}

.path-description{
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
  text-align: center;
}

.btn.primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.link {
  background: none;
  color: var(--primary);
  padding: 10px 0;
}

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

/* Podcasts */
.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.podcast-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: var(--transition);
}

.podcast-card:hover {
  box-shadow: var(--shadow-hover);
}

.podcast-header {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.podcast-image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.podcast-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.podcast-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.podcast-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 15px 0;
}

.podcast-actions {
  margin-top: 15px;
}

/* Slides */
.slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.slide-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.slide-card:hover {
  box-shadow: var(--shadow-hover);
}

.slide-preview {
  background-color: var(--gray-light);
  padding: 30px;
  text-align: center;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-preview i {
  font-size: 4rem;
  color: var(--primary);
}

.slide-pages {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.slide-info {
  padding: 25px;
}

.slide-info h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.slide-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.slide-actions {
  display: flex;
  gap: 15px;
}

.slide-image{
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Espaçador */
.page-spacer {
  height: 80px;
  background: transparent;
}

/* Footer */
.main-footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.main-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 992px) {
  .cert-header {
    padding: 30px;
  }
  
  .tab-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .certification-path {
    padding: 40px 15px;
  }
  
  .cert-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .cert-badge {
    margin: 0 auto;
  }
  
  .cert-info {
    text-align: center;
  }
  
  .cert-meta {
    justify-content: center;
  }
  
  .page-spacer {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .certification-path {
    padding: 30px 10px;
  }
  
  .cert-header {
    padding: 25px 20px;
  gap: 20px;
  }
  
  .tab-content {
    padding: 25px 20px;
    margin-bottom: 30px;
  }
  
  .modules-grid,
  .podcasts-grid,
  .slides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-spacer {
    height: 40px;
  }
  
  .slide-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
  }
}