/* styles/blog.css */

/* --- TYPOGRAPHY FORCING --- */
.cursive-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.05em; 
}

.gold-dot {
    color: #C89B3C; 
}

/* --- CANVAS & LAYOUT --- */
.dark-theme-override {
    background-color: #050505;
    color: #ffffff;
}

.blog-section {
    min-height: 100vh;
    padding: 12rem 5% 8rem 5%; 
    display: flex;
    justify-content: center;
}

.blog-wrapper {
    width: 100%;
    max-width: 1200px; /* Brought in slightly for a sleeker width */
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --- HEADER AREA --- */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.blog-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    color: #A0A0A0;
    font-size: 1.1rem;
}

/* Header Socials */
.header-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.header-socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent; /* Updated to match contact page style */
    color: #C89B3C;
    border: 1px solid rgba(200, 155, 60, 0.3);
    border-radius: 4px; /* Squared off for consistency */
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.header-socials .social-icon:hover {
    background-color: #C89B3C;
    color: #050505;
    transform: translateY(-3px);
}

/* --- THE BLOG STRIPS (Sleek Profile) --- */
.blog-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Tighter gap between strips */
}

.blog-strip {
    background-color: #E6E4E0; 
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    height: 240px; /* Hard-capped sleek height on desktop */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-strip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Left: Content Block */
.strip-content {
    flex: 1;
    padding: 1.5rem 2.5rem; /* Drastically reduced vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spreads out the tight content nicely */
}

.strip-meta {
    display: flex;
    gap: 1rem; /* Placed side-by-side to save vertical space */
    color: #555555;
    font-size: 0.8rem;
    font-weight: 500;
}

.meta-time {
    color: #888888;
}

.strip-title {
    font-size: clamp(1.4rem, 2vw, 1.6rem); /* Scaled down for sleek profile */
    line-height: 1.2;
    margin: 0.5rem 0;
}

.strip-title a {
    color: #050505;
    text-decoration: none;
    transition: color 0.3s ease;
}

.strip-title a:hover {
    color: #C89B3C;
}

.strip-excerpt {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    
    /* Strict truncation to prevent layout breaking */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Forces exactly 2 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags Layout */
.strip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background-color: #050505;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* Right: Image Block */
.strip-image-wrapper {
    flex: 0 0 35%; /* Reduced image width slightly for better balance */
    position: relative;
    overflow: hidden;
}

.strip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-strip:hover .strip-image {
    transform: scale(1.05); 
}


/* ==========================================
   OPTIMIZATION BREAKPOINTS
   ========================================== */

/* Tablet Optimization */
@media (max-width: 1024px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .strip-content {
        padding: 1.5rem;
    }
}

/* Mobile Execution */
@media (max-width: 768px) {
    .blog-strip {
        flex-direction: column-reverse; 
        height: auto; /* Release the fixed height to let content breathe */
    }
    
    .strip-image-wrapper {
        flex: none; 
        height: 180px; /* Shorter image height on mobile */
        width: 100%;
    }
    
    .strip-title {
        font-size: 1.3rem;
    }
    
    .strip-excerpt {
        -webkit-line-clamp: 3; /* Allow slightly more reading room on mobile */
    }
    
    /* Mobile: center header content */
    .blog-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .header-socials {
        justify-content: center;
        margin-bottom: 0;
    }
}