/* ============================================
   BLOG PAGE - YOUTUBE SEARCH STYLE
   One post per row, image on left
   ============================================ */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--masia-red) 0%, var(--masia-red-dark) 100%);
    padding: 60px 0 50px;
    margin-top: 0;
}

.blog-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Blog Row - YouTube Style */
.blog-row {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.blog-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--masia-red);
}

/* Image on Left */
.blog-row-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}

.blog-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-row:hover .blog-row-image img {
    transform: scale(1.03);
}

.blog-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--masia-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Content on Right */
.blog-row-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #6c757d;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--masia-red);
}

.blog-row-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-row-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-row-title a:hover {
    color: var(--masia-red);
}

.blog-row-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--masia-red);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 12px;
    color: var(--masia-red-dark);
}

/* Dark Mode Support */
body.dark-mode .blog-row {
    background: #222;
    border-color: #333;
}

body.dark-mode .blog-row-title a {
    color: #fff;
}

body.dark-mode .blog-row-excerpt {
    color: #aaa;
}

body.dark-mode .blog-meta {
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 45px 0 35px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 0.95rem;
    }
    
    .blog-row {
        padding: 15px;
    }
    
    .blog-row-title {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    
    .blog-meta {
        gap: 15px;
        font-size: 0.7rem;
    }
    
    .blog-row-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .blog-row-image {
        aspect-ratio: 16 / 9;
    }
    
    .blog-row-title {
        font-size: 1.1rem;
    }
}