/* Blog Page Styles */

:root {
    --gold-1: #7b2d9e;
    --gold-2: #501470;
    --gold-tint: #f7eeff;
}

/* Blog listing page */
.blog-section {
    padding: 2rem 2rem 4rem;
}

.blog-listing {
    padding: 2rem 2rem 4rem;
}

.blog-listing__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.blog-intro h2 { font-size: 2rem; margin-bottom: 1rem; }
.blog-intro p { color: #444; line-height: 1.8; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: row;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.blog-card__link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card__link,
.blog-card__link:visited,
.blog-card__link:hover,
.blog-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.blog-card__image {
    flex-shrink: 0;
    width: 35%;
    overflow: hidden;
    background: #f5f5f5;
}

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

.blog-card__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.blog-card__excerpt {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.blog-card__read-more {
    display: inline-block;
    color: var(--gold-2);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.blog-card:hover .blog-card__read-more {
    color: var(--gold-1);
    text-decoration: underline;
}

/* Individual blog post */
.blog-post-section {
    padding: 2rem 2rem 4rem;
}

/* Blog post hero with gradient */
.page-hero.blog-post-hero {
    min-height: auto;
    background: linear-gradient(135deg, #7b2d9e 0%, #bf3fa0 100%);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
}

/* Blog post intro section with image and text */
.blog-intro-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    overflow: hidden;
}

.blog-intro-section__image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blog-intro-section .blog-intro-section__image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
}

.blog-intro-section__text {
    display: flex;
    flex-direction: column;
}

.blog-intro-section__text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero.blog-post-hero {
        min-height: 30vh;
    }
    
    .blog-intro-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.blog-post-content {
    max-width: 760px;
    margin: 0 auto;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.blog-post-meta .date { color: #888; }
.blog-post-meta .author { font-weight: 600; color: #333; }

.blog-post-content h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-content p {
    color: #333;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-post-content li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.blog-post-content a {
    color: var(--gold-2);
    text-decoration: underline;
}
.blog-post-content a:hover { color: var(--gold-1); }

/* Back to blog link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold-2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.back-to-blog:hover { color: var(--gold-1); text-decoration: underline; }

/* Blog post CTA box */
.blog-post__cta {
    background: linear-gradient(135deg, #7b2d9e 0%, #bf3fa0 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
}
.blog-post__cta h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: white;
}
.blog-post__cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.blog-post__cta .btn {
    background-color: white;
    color: #7b2d9e;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}
.blog-post__cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card { flex-direction: column; }
    .blog-card__link { flex-direction: column; }
    .blog-card__image { width: 100%; height: 250px; }
    .blog-card__image img { height: 100%; }
    .blog-card__content { padding: 1.5rem; }
    .blog-card__link { color: inherit; }
    .blog-card__date { font-size: 0.8rem; margin-bottom: 0.5rem; color: #888; }
    .blog-card__title { font-size: 1.1rem; margin-bottom: 0.75rem; color: #1a1a1a; }
    .blog-card__excerpt { font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; color: #444; }
    .blog-card__read-more { font-size: 0.9rem; color: var(--gold-2); }
    .blog-listing__title { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .blog-post-content h1 { font-size: 1.7rem; }
    .blog-post-content h2 { font-size: 1.3rem; }
}
