/* ========================================
   BLOG STYLES - Aigret Menuiseries
   ======================================== */

.blog-section {
    padding: 80px 0;
}

/* Featured Article */
.blog-featured {
    margin-bottom: 60px;
}

.blog-featured a {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-featured a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-featured-image {
    height: 400px;
    overflow: hidden;
}

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

.blog-featured a:hover .blog-featured-image img {
    transform: scale(1.05);
}

.blog-featured-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-content h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-featured-content p {
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card a {
    display: block;
}

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

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

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

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-content p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Blog Category */
.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 169, 98, 0.15);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 16px;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */

.article-header {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.article-header .container {
    max-width: 900px;
}

.article-header .blog-category {
    background: rgba(201, 169, 98, 0.2);
    color: var(--gold);
}

.article-header h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 16px 0 24px;
    line-height: 1.2;
}

.article-header .blog-meta {
    color: rgba(255, 255, 255, 0.7);
}

.article-header .blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

.article-content .container {
    max-width: 800px;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-body h2 {
    font-size: 1.75rem;
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: 1.375rem;
    margin: 36px 0 16px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body strong {
    color: var(--navy);
}

.article-body a {
    color: var(--gold-dark);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--gold);
}

/* Article Image */
.article-image {
    margin: 40px -60px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-image figcaption {
    text-align: center;
    padding: 12px;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Info Box */
.info-box {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 1rem;
}

.info-box p {
    margin-bottom: 0;
}

/* Price Table */
.price-table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.price-table th,
.price-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.price-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background: var(--gray-100);
}

.price-table tr:hover {
    background: rgba(201, 169, 98, 0.1);
}

/* CTA Box in Article */
.article-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 40px;
    border-radius: 12px;
    margin: 48px 0;
    text-align: center;
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.article-cta .btn {
    margin: 0 8px;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--cream);
    border-radius: 12px;
    margin-top: 48px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--navy);
    margin-bottom: 4px;
}

.author-info span {
    display: block;
    font-size: 0.875rem;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: var(--cream);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-featured a {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-image {
        height: 250px;
    }
    
    .blog-featured-content {
        padding: 24px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        margin: 32px 0;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .article-cta {
        padding: 30px 20px;
    }
    
    .article-cta .btn {
        display: block;
        margin: 8px 0;
    }
}
