/*
Theme Name: VetPraxis Blog
Description: Tema basado EXACTAMENTE en el landing page de VetPraxis
Version: 1.2
Author: VetPraxis Team
*/

/* ESTILOS ESPECÍFICOS PARA EL BLOG - SIN SOBRESCRIBIR EL LANDING */
/* Solo agregamos los estilos mínimos necesarios para el contenido del blog */

/* Espaciado para contenido del blog */
#dtr-main-content {
    padding-top: 100px;
    min-height: 60vh;
}

/* Contenedor del blog */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro del blog usando clases del landing */
.dtr-section-intro.blog-intro {
    text-align: center;
    margin-bottom: 50px;
}

.blog-intro .dtr-intro-subheading {
    color: rgba(5,24,43,0.7);
}

.blog-intro .dtr-intro-heading {
    color: #05182b;
}

.blog-intro .dtr-intro-content {
    color: rgba(5,24,43,0.7);
}

/* Grid de posts usando clases del landing - optimizado para 2 columnas */
.posts-grid {
    display: block; /* Usamos el grid de Bootstrap en lugar de CSS Grid */
    margin-bottom: 50px;
}

.posts-grid .col-12.col-md-6 {
    margin-bottom: 30px;
}

/* Estilos para listas - restaurar margin/padding por defecto del navegador */
.single-post-content ul, 
.single-post-content ol,
.page-content ul,
.page-content ol {
    margin: 1em 0;
    padding-left: 40px;
    list-style-position: outside;
    display: block;
}

.single-post-content ul li,
.single-post-content ol li,
.page-content ul li,
.page-content ol li {
    margin-bottom: 0.5em;
}
.post-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,130,180,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(5,24,43,0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,130,180,0.15);
}

.post-card .post-featured-image {
    height: 200px;
    overflow: hidden;
}

.post-card .post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-featured-image img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 30px;
}

.post-card .post-meta {
    color: rgba(5,24,43,0.6);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.post-card .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #05182b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: #0082B4;
}

.post-card .post-excerpt {
    color: rgba(5,24,43,0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Botón usando clase del landing */
.post-card .dtr-btn {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Single post container */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 800;
    color: #05182b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-post-meta {
    color: rgba(5,24,43,0.6);
    font-size: 16px;
    font-weight: 500;
}

.single-post-featured-image {
    margin: 40px 0;
    text-align: center;
}

.single-post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,130,180,0.1);
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #05182b;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

/* Sobrescribir letter-spacing de h3 del landing */
.single-post-content h3, 
.single-post-content h3 a,
.page-content h3,
.page-content h3 a {
    font-size: 2.056em;
    line-height: 1.2em;
    letter-spacing: normal;
}

/* Post navigation usando estilos del landing */
.post-navigation {
    margin: 60px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.nav-previous,
.nav-next {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,130,180,0.1);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,130,180,0.15);
}

.nav-links a {
    display: block;
    color: #0082B4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-links a:hover {
    color: #006a9a;
}

/* Paginación usando estilos del landing */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    gap: 10px;
}

.blog-pagination a,
.blog-pagination span {
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: #05182b;
    background: #ffffff;
    border: 1px solid rgba(5,24,43,0.2);
    transition: all 0.3s ease;
    font-weight: 600;
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: #0082B4;
    color: #ffffff;
    border-color: #0082B4;
    transform: translateY(-2px);
}

/* Responsive específico para blog */
@media (max-width: 768px) {
    #dtr-main-content {
        padding-top: 80px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-post-title {
        font-size: 2.2rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-card .post-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-container,
    .single-post-container {
        padding: 0 15px;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .post-navigation {
        padding: 20px;
    }
}