/* --- css/blogs.css --- */

/* Shorter Parallax Header specifically for sub-pages */
.page-header {
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FCFAF5;
    text-align: center;
    padding: 0 20px;
    background-image: linear-gradient(rgba(58, 53, 50, 0.7), rgba(58, 53, 50, 0.7)), url('https://images.unsplash.com/photo-1542621323-22ea637ce093?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* --- NEW: Wide Blog Layout --- */

/* Allow the blog grid to stretch much wider than the normal 1200px home page */
.blog-content-wrapper {
    max-width: 1500px; /* Grand, wide layout */
    margin: 0 auto;
}

/* A larger grid template to make the cards massive */
.blog-large-grid {
    display: grid;
    /* Forces columns to be a minimum of 450px wide, creating massive cards */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    margin-top: 20px;
}

/* Increase text size inside standard workshop cards */
.blog-large-grid .card {
    padding: 40px 30px;
}

.blog-large-grid .card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.blog-large-grid .card p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Make the hover article cards taller and the text larger */
.articles-grid .blog-card {
    height: 480px; /* Taller card for more visual impact */
}

.articles-grid .blog-overlay h3 {
    font-size: 2rem;
}

.articles-grid .blog-overlay p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Video Container --- */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 25px;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Blog Mobile Fixes */
@media (max-width: 900px) {
    .page-header h1 { font-size: 2.5rem; line-height: 1.2; }
    .page-header p { font-size: 1rem; }
    
    .blog-large-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    /* Shrink massive Workshop cards */
    .blog-large-grid .card { padding: 25px 20px; }
    .blog-large-grid .card h3 { font-size: 1.6rem; margin-bottom: 10px; }
    .blog-large-grid .card p { font-size: 1rem; line-height: 1.6; }
    .blog-large-grid .card img { height: 250px !important; }

    /* Shrink massive hover article cards */
    .articles-grid .blog-card { height: 320px; }
    .articles-grid .blog-overlay { padding: 20px 20px; }
    .articles-grid .blog-overlay h3 { font-size: 1.5rem; }
    .articles-grid .blog-overlay p { font-size: 0.95rem; line-height: 1.5; }
}

/* =============================================
   BLOG POP-UP MODAL (Copied from Home)
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(58, 53, 50, 0.85); /* Dark earth backdrop */
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FCFAF5;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 8px;
    padding: 3rem 4rem;
    position: relative;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #5A5552;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover { color: #8C4A32; }

.modal-header {
    border-bottom: 2px solid #EAE1D3;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.modal-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #4A6B4A;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #3A3532;
    line-height: 1.2;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5A5552;
    margin-bottom: 1.5rem;
}

/* Modal Mobile adjustments */
@media (max-width: 768px) {
    .modal-content { padding: 2rem 1.5rem; width: 95%; }
    .modal-title { font-size: 1.8rem; }
    .modal-close { top: 0.5rem; right: 1rem; }
}

/* Button style if it wasn't already in globals.css */
.btn-primary.small-btn {
    background: #4A6B4A;
    color: #FCFAF5;
    padding: 8px 18px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-primary.small-btn:hover {
    background: #8C4A32;
}