/* Blog & Magazine Layout Styles */

.blog-page {
    padding-top: 100px;
    padding-bottom: 4rem;
    background: #f9fafb;
}

.blog-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e5e7eb;
}

.blog-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Magazine Grid Layout */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

/* Featured / Hero card - spans 7 cols, 2 rows */
.blog-card-featured {
    grid-column: span 7;
    grid-row: span 2;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.blog-card-featured .card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
}

.blog-card-featured .card-content {
    padding: 2rem;
}

.blog-card-featured .card-meta {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card-featured h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-featured h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-featured h2 a:hover {
    color: var(--primary-orange);
}

.blog-card-featured .card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
}

/* Standard card - 5 cols, 1 row */
.blog-card-standard {
    grid-column: span 5;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-standard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.blog-card-standard .card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.blog-card-standard .card-content {
    padding: 1.5rem;
}

.blog-card-standard .card-meta {
    font-size: 0.75rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.blog-card-standard h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card-standard h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-standard h3 a:hover {
    color: var(--primary-orange);
}

.blog-card-standard .card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
}

/* Small card - 4 cols */
.blog-card-small {
    grid-column: span 4;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.blog-card-small .card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.blog-card-small .card-content {
    padding: 1.25rem;
}

.blog-card-small .card-meta {
    font-size: 0.7rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.blog-card-small h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.blog-card-small h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-small h3 a:hover {
    color: var(--primary-orange);
}

/* Placeholder for cards without images */
.card-image.placeholder {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
}

/* Responsive - tablet */
@media (max-width: 968px) {
    .magazine-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .blog-card-featured {
        grid-column: span 6;
        grid-row: span 1;
    }
    
    .blog-card-featured .card-image {
        height: 200px;
    }
    
    .blog-card-standard {
        grid-column: span 6;
    }
    
    .blog-card-small {
        grid-column: span 6;
    }
}

/* Responsive - mobile */
@media (max-width: 640px) {
    .blog-page {
        padding-top: 80px;
    }
    
    .blog-header {
        padding: 2rem 1rem;
    }
    
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .blog-card-featured,
    .blog-card-standard,
    .blog-card-small {
        grid-column: span 1;
    }
    
    .blog-card-featured .card-image {
        height: 180px;
    }
    
    .blog-card-featured h2 {
        font-size: 1.4rem;
    }
    
    .blog-card-standard .card-image,
    .blog-card-small .card-image {
        height: 140px;
    }
}
