/* Blog Page Specific Styles */
/* Dark themed blog page matching the design image */

/* Blog Page Main Container */
.blog-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 100px; /* Account for fixed header */
}

/* Blog Header Section */
.blog-header-section {
    background: var(--bg-primary);
    padding: 60px 0 80px;
}

/* Breadcrumb Styling */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-weight: 300;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Blog Header Content */
.blog-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-header-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.blog-header-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* Blog Posts Section */
.blog-posts-section {
    background: var(--bg-primary);
    padding: 0 0 100px;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Blog Post Card */
.blog-post-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-secondary);
    height: 300px;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
}

/* Blog Card Image */
.blog-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Blog Card Overlay */
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: background 0.3s ease;
}

.blog-post-card:hover .blog-card-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Blog Card Content */
.blog-card-content {
    position: relative;
    width: 100%;
}

.blog-card-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding-right: 50px;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-card-content h3 {
    color: var(--gold-primary);
}

/* Blog Card Arrow */
.blog-card-arrow {
    position: absolute;
    top: -130px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.blog-card-arrow i {
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: rotate(-45deg);
}

.blog-post-card:hover .blog-card-arrow {
    background: var(--gold-primary);
    opacity: 1;
    transform: translateY(-5px);
}

.blog-post-card:hover .blog-card-arrow i {
    color: var(--color-dark);
    transform: rotate(-45deg) scale(1.1);
}

/* Fallback Images for Blog Cards */
.blog-post-card:nth-child(1) .blog-card-image {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23333" width="400" height="300"/><text fill="%23999" x="200" y="150" text-anchor="middle" dy="0.3em" font-family="Arial" font-size="16">Luxury Installation</text></svg>');
}

.blog-post-card:nth-child(2) .blog-card-image {
    background: linear-gradient(135deg, #4a3a2a, #3a2a1a),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23444" width="400" height="300"/><text fill="%23999" x="200" y="150" text-anchor="middle" dy="0.3em" font-family="Arial" font-size="16">Legacy Planning</text></svg>');
}

.blog-post-card:nth-child(3) .blog-card-image {
    background: linear-gradient(135deg, #2a4a3a, #1a3a2a),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23555" width="400" height="300"/><text fill="%23999" x="200" y="150" text-anchor="middle" dy="0.3em" font-family="Arial" font-size="16">Custom Value</text></svg>');
}

.blog-post-card:nth-child(4) .blog-card-image {
    background: linear-gradient(135deg, #3a2a4a, #2a1a3a),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23666" width="400" height="300"/><text fill="%23999" x="200" y="150" text-anchor="middle" dy="0.3em" font-family="Arial" font-size="16">Ethical Sourcing</text></svg>');
}

.blog-post-card:nth-child(5) .blog-card-image {
    background: linear-gradient(135deg, #4a4a2a, #3a3a1a),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23777" width="400" height="300"/><text fill="%23999" x="200" y="150" text-anchor="middle" dy="0.3em" font-family="Arial" font-size="16">Maintenance</text></svg>');
}

.blog-post-card:nth-child(6) .blog-card-image {
    background: linear-gradient(135deg, #2a2a4a, #1a1a3a),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23888" width="400" height="300"/><text fill="%23999" x="200" y="150" text-anchor="middle" dy="0.3em" font-family="Arial" font-size="16">Modern vs Classical</text></svg>');
}

/* Responsive Design for Blog Page */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-header-content h1 {
        font-size: 3rem;
    }
    
    .blog-card-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding-top: 80px;
    }
    
    .blog-header-section {
        padding: 40px 0 60px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-header-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .blog-header-content p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .blog-post-card {
        height: 250px;
    }
    
    .blog-card-overlay {
        padding: 20px;
    }
    
    .blog-card-content h3 {
        font-size: 1.1rem;
        padding-right: 40px;
    }
    
    .blog-card-arrow {
        top: -100px;
        width: 35px;
        height: 35px;
    }
    
    .breadcrumb {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-post-card {
        height: 220px;
    }
    
    .blog-card-arrow {
        top: -80px;
        width: 30px;
        height: 30px;
    }
    
    .blog-card-arrow i {
        font-size: 0.8rem;
    }
}