/* ===========================================
   Custom Inline Related Posts: Estilos Optimizado Responsive
   =========================================== */

/* 1) Estilo global del recuadro (.irp-box) */
.irp-box {
  background-color: #0b3954 !important;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 0 0;
  display: flex;
  height: 80px;
  box-shadow: none !important;
  border: none !important;
}

/* 2) Miniatura a la izquierda (.irp-thumbnail) */
.irp-box .irp-thumbnail {
  flex: 0 0 120px;
  height: 100%;
  background-color: #666;
  position: relative;
  overflow: hidden;
}
.irp-box .irp-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) Contenedor de texto + flecha (.irp-info) */
.irp-box .irp-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* 4) Label “Mirá también:” (.irp-label) */
.irp-box .irp-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #a8d0db;
  margin-bottom: 2px;
  display: block;
}

/* 5) Título del post relacionado (.irp-title) */
.irp-box .irp-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #e0f7fa;
  margin: 0;
}
.irp-box .irp-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 6) Flecha al lado (.irp-arrow) */
.irp-box .irp-arrow {
  font-size: 24px;
  color: #e0f7fa;
  margin-left: 12px;
  flex-shrink: 0;
}

/* 7) Enlace que engloba toda la caja (.irp-link) */
.irp-box .irp-link {
  display: flex;
  text-decoration: none;
  height: 100%;
  width: 100%;
}

/* 8) Hover: oscuro al pasar el mouse */
.irp-box:hover {
  background-color: #07243b !important;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

/* 9) Ajustes para pantallas pequeñas (responsive) */
@media only screen and (max-width: 768px) {
  .irp-box {
    flex-direction: row;
    height: 110px;          /* Altura optimizada para móvil */
    margin: 10px 0 0 0;
  }
  .irp-box .irp-thumbnail {
    flex: 0 0 90px;         /* Miniatura 90px de ancho */
    height: 100%;
  }
  .irp-box .irp-thumbnail img {
    object-fit: cover;
  }
  .irp-box .irp-info {
    padding: 0 10px;
  }

  /* Etiqueta “Mirá también” ligeramente más grande: de 10px a 13px */
  .irp-box .irp-label {
    font-size: clamp(10px, 3vw, 13px);
    margin-bottom: 2px;
  }

  /* Título del post un poco más grande: de 14px a 17px */
  .irp-box .irp-title {
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.2;
  }

  /* Flecha también se amplía un poco en móvil */
  .irp-box .irp-arrow {
    font-size: clamp(20px, 4.5vw, 24px);
    margin-left: 8px;
  }
}

/* 10) Eliminar espacio extra si justo hay un <hr> o un <p> debajo */
.irp-box + hr {
  margin-top: 0 !important;
}
.irp-box + p {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 11) Ocultar si Intelly quisiera inyectar en “e-floating-buttons” */
#e-floating-buttons .irp-box {
  display: none !important;
}
