/* ==========================================================================
   CARROSSEL DE CURSOS MAIS PROCURADOS (ESTILO DA IMAGEM DE REFERÊNCIA)
   ========================================================================== */

.courses-section {
  padding-top: 100px;
  padding-bottom: 80px;
  background-color: #ffffff;
}

.swiper {
  width: 100%;
  padding: 20px 0 60px;
}

.curso-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  text-decoration: none;
  color: #111111;
  box-shadow: none;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

/* Container da imagem com cantos arredondados */
.imagem-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Proporção 16:9 limpa */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.curso-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.curso-card:hover img {
  transform: scale(1.04);
}

.curso-conteudo {
  padding: 16px 0 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.categoria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6d34;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 12px;
  line-height: 1;
}

.curso-titulo {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #082846;
  text-align: left;
  flex: 1;
}

.botao {
  background: #082846;
  color: #ffffff;
  text-align: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  margin-top: auto;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.curso-card:hover .botao {
  background: #061e35;
}

/* Ajustes específicos dos cards */
.swiper-slide:nth-child(1) .curso-card img {
  object-position: 65% center;
}

.swiper-slide:nth-child(3) .curso-card img {
  object-position: 110% center;
}

/* Pagination Dots */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  background: #ff6d34 !important;
}

/* ==========================================================================
   PÁGINA DEDICADA DE CURSOS (FILTER & GRID STYLES)
   ========================================================================== */

.courses-page-hero {
  background: linear-gradient(135deg, #073b77 0%, #0a294d 100%);
  padding: 60px 0 50px;
  color: #ffffff;
  position: relative;
  text-align: center;
}

.courses-page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.courses-page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.courses-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #ffffff;
  color: #082846;
  border: 2px solid #e2e8f0;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.filter-btn:hover,
.filter-btn.active {
  background: #ff6d34;
  color: #ffffff;
  border-color: #ff6d34;
  box-shadow: 0 6px 18px rgba(255, 109, 52, 0.3);
}

.courses-grid-section {
  padding: 60px 0 90px;
  background-color: #f8fafc;
}

.courses-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.course-grid-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-grid-card.hidden {
  display: none !important;
}

.course-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.course-card-thumb {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-grid-card:hover .course-card-thumb img {
  transform: scale(1.06);
}

.course-badge-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff6d34;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.course-badge-tag.eja { background: #ff6d34; }
.course-badge-tag.tecnico { background: #0F6E56; }
.course-badge-tag.competencia { background: #534AB7; }
.course-badge-tag.profissional { background: #073b77; }

.course-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #082846;
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-card-body p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.course-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.course-info-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.85rem;
}

.course-info-meta i {
  color: #ff6d34;
}

.course-cta-btn {
  background: #082846;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-cta-btn:hover {
  background: #ff6d34;
  color: #ffffff;
}

@media (max-width: 768px) {
  .courses-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAGINAÇÃO DE CURSOS
   ========================================================================== */

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-btn {
  background: #ffffff;
  color: #082846;
  border: 2px solid #e2e8f0;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.page-btn:hover,
.page-btn.active {
  background: #ff6d34;
  color: #ffffff;
  border-color: #ff6d34;
  box-shadow: 0 6px 16px rgba(255, 109, 52, 0.3);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   BARRA DE BUSCA DE CURSOS (.courses-search-wrapper)
   ========================================================================== */
.courses-search-wrapper {
  max-width: 680px;
  margin: 0 auto 30px auto;
}

.courses-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.courses-search-box .search-icon {
  position: absolute;
  left: 20px;
  color: #ff6d34;
  font-size: 1.15rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.courses-search-box input {
  width: 100%;
  padding: 16px 50px 16px 52px;
  font-family: 'Mulish', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #082846;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(8, 40, 70, 0.06);
  outline: none;
  transition: all 0.3s ease;
}

.courses-search-box input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.courses-search-box input:focus {
  border-color: #ff6d34;
  box-shadow: 0 10px 28px rgba(255, 109, 52, 0.18);
  background: #ffffff;
}

.courses-search-box .clear-search-btn {
  position: absolute;
  right: 16px;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.courses-search-box .clear-search-btn:hover {
  background: #ff6d34;
  color: #ffffff;
}

/* NENHUM RESULTADO ENCONTRADO */
.no-results-container {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 2px dashed #cbd5e1;
  max-width: 580px;
  margin: 30px auto;
}

.no-results-icon {
  font-size: 3.5rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.no-results-container h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #082846;
  margin-bottom: 8px;
}

.no-results-container p {
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .courses-search-wrapper {
    margin-bottom: 24px;
  }
  .courses-search-box input {
    font-size: 0.95rem;
    padding: 14px 44px 14px 46px;
  }
  .courses-search-box .search-icon {
    left: 16px;
    font-size: 1rem;
  }
}

