/* Blog Styles */

/* Hero Section */
.blog-hero {
    background-image: url('../images/blog/blog-hero.jpg');
    background-size: 110% auto;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: zoomOut 1.5s ease-out forwards;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    animation: fadeIn 1.2s ease-out;
    z-index: 1;
}

@keyframes zoomOut {
    from {
        background-size: 110% auto;
    }
    to {
        background-size: 100% auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.blog-hero h1 {
    color: white;
    font-size: 3rem;
    text-align: center;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInTitle 1s ease-out 0.3s forwards;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Listing Section */
.blog-listing {
    padding: 5rem 2rem;
    background: #fafafa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: white;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.blog-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-author-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-author-name {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Blog Article Styles */
.blog-article {
    background: white;
}

.blog-article-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    border-bottom: 1px solid #e8e8e8;
}

.blog-article-header h1 {
    font-size: 2.5rem;
    line-height: 1.25;
    margin: 0 0 2rem 0;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-article-meta {
    font-size: 0.95rem;
    color: #777;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    font-weight: 300;
}

.blog-article-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.blog-article-meta a:hover {
    color: #b8935e;
}

.blog-article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2c2c2c;
}

.blog-article-content h2 {
    font-size: 1.85rem;
    margin: 3.5rem 0 1.8rem 0;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.blog-article-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.blog-article-content p {
    margin: 1.8rem 0;
    font-weight: 300;
}

.blog-article-content ul {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.blog-article-content li {
    margin: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.8;
}

.blog-article-content li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8em;
}

/* Review Cards */
.blog-review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

a.blog-review-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.blog-review-card:hover {
    color: inherit;
}

.blog-review-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.blog-review-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f5f5f5;
}

.blog-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-review-author-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.blog-review-stars {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.blog-review-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    font-weight: 300;
}

/* CTA Block */
.blog-article-cta {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-article-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #d4af77);
    border-radius: 12px 12px 0 0;
}

.blog-article-cta:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.08);
}

.blog-article-cta h3 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-weight: 600;
}

.blog-article-cta p {
    margin: 0 0 2rem 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Article Footer */
.blog-article-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 2px solid #e8e8e8;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.blog-article-footer strong {
    color: #1a1a1a;
    font-weight: 600;
}

.blog-article-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-article-footer a:hover {
    color: #b8935e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero {
        background-size: cover !important;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .blog-listing {
        padding: 3rem 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card-image-wrapper {
    height: 200px;
    }

    .blog-card-image {
    height: 100%;
    object-fit: cover;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.3rem;
    }
    
    .blog-article-header {
        padding: 3rem 1.5rem 2rem;
    }
    
    .blog-article-header h1 {
        font-size: 1.85rem;
        line-height: 1.3;
    }
    
    .blog-article-content {
        font-size: 1rem;
        padding: 1.5rem;
        line-height: 1.8;
    }
    
    .blog-article-content h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1.5rem 0;
    }
    
    .blog-article-content p {
        margin: 1.5rem 0;
    }
    
    .blog-review-card {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .blog-review-photo {
        width: 60px;
        height: 60px;
    }
    
    .blog-article-cta {
        padding: 2rem 1.5rem;
        margin: 3rem 0;
    }
    
    .blog-article-cta h3 {
        font-size: 1.5rem;
    }
}
