/* ===============================
   ESTILOS GENERALES
================================= */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ===============================
   FILTROS DE CATEGORÍAS
================================= */
.post-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
}

.filter-btn {
    padding: 8px 25px;
    border: 2px solid #F93549;
    background: none;
    color: #808080;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.filter-btn.active {
    background: #F93549;
    color: white;
}

/* Campo de búsqueda */
/* #search-posts {
    padding: 8px 15px;
    border: 2px solid #F93549;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
} */
.icon-container {
    padding: 3px;
    border-radius: 20px;
    background: #ff3b3b;
    color: #ffffff !important;
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-container i {
    position: absolute;
    right: 5px;
    /* Ajusta la posición del icono */
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
}

#search-posts {
    width: 250px;
    height: 40px;
    border: 2px solid #ff3b3b;
    border-radius: 20px;
    padding: 10px 12px 10px 20px;
    /* Espacio a la izquierda para el icono */
    outline: none;
    font-size: 14px;
    font-weight: 500;
}

#searchInput {
    width: 250px;
    height: 40px;
    border: 2px solid #ff3b3b;
    border-radius: 20px;
    padding: 10px 12px 10px 20px;
    /* Espacio a la izquierda para el icono */
    outline: none;
    font-size: 14px;
    font-weight: 500;
}
/* ===============================
   ESTILOS DE LA CUADRÍCULA DE POSTS
================================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Siempre 3 columnas */
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

/* RESPONSIVE: Para pantallas más pequeñas */
@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: repeat(1, 1fr);
        /* 1 columna en móviles */
    }
}

/* ===============================
   TARJETAS DE LOS POSTS
================================= */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* Imagen en la parte superior */
.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    /* border-top-right-radius: 12px; */
}

/* Contenido de la tarjeta */
.post-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 15px;
    color: #616160;
}

.post-card p {
    font-size: 14px;
    color: #3F3F3D;
    margin: 10px 15px 0px 0px;
}

/* Categoría en azul */
.post-category {
    color: #3CB4E5 !important;
    /* Azul para la categoría */
    background: none !important;
    margin: 0px 0px 0px 15px;
    padding: 0;
    border: none;
    font-weight: bold;
    text-decoration: none;
}

/* Botón Leer más */
.post-link {
    display: inline-block;
    background: #F93549;
    color: white !important;
    font-weight: bold;
    padding: 0px 15px;
    border-radius: 10px;
    margin: 10px 15px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.post-card a {
    background: #F93549;
    color: white !important;
    /* Rojo más oscuro en hover */
}

.post-link :hover {
    background: #F93549;
    color: white !important;
    /* Rojo más oscuro en hover */
}

/* ===============================
   PAGINACIÓN
================================= */
#pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
}

.pagination-button-pr,
#prev-page,
#next-page {
    padding: 9px 5px;
    border: 0px solid #F93549;
    background: #ffffff;
    color: #F93549;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 4px 0px #00000040;

}

.pagination-button,
#prev-page,
#next-page {
    padding: 8px 12px;
    border: 0px solid #F93549;
    background: none;
    color: #F93549;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.pagination-button.active,
#prev-page.active,
#next-page.active {
    background: #F93549;
    color: white;
}

.pagination-button:hover,
#prev-page:hover,
#next-page:hover {
    background: rgba(255, 59, 59, 0.2);
}

.video-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.video-card:hover {
    transform: translateY(-5px);
}

/* Imagen en la parte superior */
.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    /* border-top-right-radius: 12px; */
}

/* Contenido de la tarjeta */
.video-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 15px;
    color:#21145F;
    text-align: center; 
}
.video-card h4 {
    color:#F93549; 
    font-size: 14px; 
    text-align: center; 
    font-weight: bold;
}

.video-card p {
    font-size: 14px;
    color: #3F3F3D;
    margin: 10px 15px 0px 0px;
}
.video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.play-icon:hover {
    background: rgba(255, 0, 0, 0.8);
}
