/*!
Theme Name: Eduact Child theme
Theme URI: https://bracketweb.com/eduactwp/
Template: eduact
Author: bracket-web
Author URI: https://themeforest.net/user/bracket-web
Description: This is a Child theme for Eduact WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: eduact-child
*/

/* ==== Original Course Card Styles ==== */
.eduact-course-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  /* ELIMINADO: transition y transform hover */
  margin-bottom: 30px;
}

/* ELIMINADO: Hover effect completo */
/*
.eduact-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
*/

.eduact-course-thumb {
  position: relative;
}

.eduact-course-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badge comentado - no mostrar
.eduact-course-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff4a4a;
  color: #fff;
  padding: 5px 12px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: bold;
}
*/

.eduact-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  transition: 0.3s;
}

.eduact-wishlist.active {
  color: #ff4a4a;
}

.eduact-course-content {
  padding: 20px;
}

.eduact-course-title {
  padding-top: 5px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.eduact-course-title a {
  color: #222;
  text-decoration: none;
}

.eduact-course-title a:hover {
  color: #ff4a4a;
}

.eduact-course-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.eduact-course-meta i {
  margin-right: 5px;
  color: #ff4a4a;
}

/* ==== Sección inferior con instructor y rating ==== */
.eduact-course-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.eduact-course-instructor {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.eduact-course-instructor img {
  border-radius: 50%;
  margin-right: 10px;
  width: 40px;
  height: 40px;
}

/* Clase específica para hacer la imagen del instructor redonda */
.instructor-avatar-round {
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  object-fit: cover;
}

.eduact-course-instructor h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.eduact-course-instructor p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

.instructor-label {
  display: block;
  font-size: 11px;
  color: #999;
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.eduact-course-rating {
  font-size: 14px;
  color: #ffb400;
  margin-bottom: 0;
}

/* ==== Course Card debe ser relativo para el positioning absoluto ==== */
.eduact-course-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  position: relative; /* IMPORTANTE: Para que el badge se posicione relativo a la card */
}

/* ==== Badge de Especialización - POSICIONADO en el borde exacto ==== */
.eduact-course-type-center {
  /* Posicionamiento absoluto en el borde entre thumb y content */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; /* Pegado al borde inferior del thumb */
  z-index: 10;
  
  /* Alineado hacia la derecha */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 10px; /* Menos espacio desde el borde derecho */
  
  /* Sin altura propia para que no ocupe espacio */
  height: 0;
  margin: 0;
  background: transparent;
}

/* Posicionamiento relativo en el thumb para el badge */
.eduact-course-thumb {
  position: relative;
}

/* ==== Badge Base Styles ==== */
.eduact-course-type-center .course-type-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 16px;
  
  /* Estilo del badge base */
  border: none;
  border-radius: 20px;
  
  /* Sin transiciones */
  transition: none;
  
  /* Asegurar visibilidad */
  white-space: nowrap;
}

/* ==== Badge Específico para CURSO - Rojo ==== */
.eduact-course-type-center .course-type-label.course-tipo-curso {
  background: #ff0000;
  box-shadow: 0 3px 8px rgba(255,0,0,0.3);
}

/* ==== Badge Específico para PROGRAMA - Azul Oscuro ==== */
.eduact-course-type-center .course-type-label.course-tipo-programa {
  background: #011835;
  box-shadow: 0 3px 8px rgba(1,24,53,0.3);
}

/* ==== Old Specialization Type Styles (Comentado) ==== */
/*
.eduact-course-type {
  margin-bottom: 10px;
}
.course-type-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}
*/

.tutor-card:not(.tutor-no-border) {
  border: none;
}


/*Header*/
.page-header .container {
    position: relative;
    z-index: 2;
    padding-top: 0px;
    padding-bottom: 100px;
}

.page-header .page-header__title {
    display: none !important;
}