/* ==========================================================================
   blog.css — estilos propios de la página public/blog.php
   Extraído del <style> inline original; depende de los tokens definidos
   en variables.css (cargado antes que este archivo).
   ========================================================================== */
body {
            font-family: system-ui, -apple-system, sans-serif;
            color: var(--text-main);
            background-color: var(--bg-light);
            margin: 0;
            line-height: 1.5;
        }
        
        .container {
            max-width: 1000px;
            margin: 3rem auto;
            padding: 9rem 1.5rem;
        }
        .page-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        .page-subtitle {
            text-align: center;
            color: var(--text-muted);
            margin-bottom: 4rem;
            font-size: 1rem;
        }

        /* Estructura de Listado en Formato Blog Abierto */
        .blog-list {
            display: flex;
            flex-direction: column;
            gap: 2.5rem;
        }
        .blog-post-card {
            background-color: var(--white);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            display: grid;
            grid-template-columns: 1fr 2fr;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        @media (max-width: 640px) {
            .blog-post-card { grid-template-columns: 1fr; }
            .blog-img-box { height: 200px !important; }
        }
        .blog-post-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
        }
        .blog-img-box {
            width: 100%;
            height: 100%;
            background-color: var(--piedra-50);
        }
        .blog-img-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .blog-body {
            padding: 2rem;
            display: flex;
            flex-direction: column;
        }
        .blog-meta {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        .blog-body h3 {
            margin: 0 0 1rem 0;
            font-size: 1.4rem;
            color: var(--text-main);
        }
        .blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    
    /* 1. Legacy WebKit Fallback (For current production support) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    
    /* 2. Modern W3C Standard Property */
    line-clamp: 3; 
    
    /* 3. Required by both specifications */
    overflow: hidden; 
}

        .btn-read-more {
            align-self: flex-start;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
        }
        .btn-read-more:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
