/*
 * BLOG STYLESHEET
 * Inherits variables and base styles from styles.css
 */

/* Page Header */
#blog-header.page-header.hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        url('images/blog/blogheader.jpg'); /* Ensure this path is correct */
    min-height: 60vh; /* Reduced height for a sub-page feel */
    border-bottom: 2px solid var(--muted-gold);
}

#blog-header .hero-content {
    padding-top: 80px; /* Adjust for fixed nav */
}

/* Featured Article Section */
.featured-article-section {
    padding: 80px 0;
    background-color: var(--black);
}

.featured-article-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--dark-gray);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    max-width: 720px; /* CHANGED: Max-width set to 720px */
    margin: 0 auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.featured-article-image {
    flex-basis: 50%;
    height: 400px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-content {
    flex-basis: 50%;
    padding: 2.5rem;
}

.featured-article-content .featured-tag {
    display: inline-block;
    background-color: var(--muted-gold);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.featured-article-content h2 {
    font-size: 2rem;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-article-content .article-excerpt {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-article-content .read-more-link {
    color: var(--muted-gold);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article-content .read-more-link:hover {
    color: var(--gold);
}

/* Latest Articles Section */
.latest-articles-section {
    padding: 80px 0;
    background-color: var(--dark-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--black);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary-red);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    border-color: var(--muted-gold);
}

.blog-card-thumbnail {
    height: 200px;
    overflow: hidden;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumbnail img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-content .article-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.blog-card-content .read-more-link {
    color: var(--muted-gold);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Blog Modal Styles (Follows patterns from styles.css) */
.blog-modal .blog-modal-content {
    max-width: 800px; /* Clean, readable width */
}

.blog-modal .close-blog-modal {
    /* Uses .close-modal styles from styles.css */
}

.blog-modal .blog-modal-header {
    height: 300px;
    background-color: var(--black);
}

.blog-modal .blog-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal .blog-modal-body {
    padding: 2rem 2.5rem;
}

.blog-modal-body h1 {
    font-size: 2.2rem;
    color: var(--muted-gold);
    margin-bottom: 0.5rem;
}

.blog-modal-body .blog-meta {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.blog-modal-body .blog-meta span {
    margin-right: 1.5rem;
}

.blog-modal-body .blog-full-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.blog-modal-body .blog-full-content p {
    margin-bottom: 1.5rem;
}

.blog-modal-body .blog-full-content h2 {
    font-size: 1.6rem;
    color: var(--gold);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-article-card {
        flex-direction: column;
        max-width: 600px; /* Adjusted width for tablets */
    }
    .featured-article-image {
        width: 100%;
        height: 300px;
        flex-basis: auto;
    }
    .featured-article-content {
        flex-basis: auto;
    }
}

@media (max-width: 768px) {
    #blog-header.page-header.hero {
        min-height: 40vh;
    }
    .featured-article-card {
        max-width: 100%; /* Full width on mobile */
    }
    .featured-article-section, .latest-articles-section {
        padding: 60px 0;
    }
    .featured-article-content {
        padding: 2rem 1.5rem;
    }
    .featured-article-content h2 {
        font-size: 1.6rem;
    }
    .blog-modal .blog-modal-header {
        height: 220px;
    }
    .blog-modal .blog-modal-body {
        padding: 1.5rem;
    }
    .blog-modal-body h1 {
        font-size: 1.8rem;
    }
    .blog-modal-body .blog-full-content {
        font-size: 1rem;
    }
}
