/* =========================================
   BLAYHUB BLOGS PAGE STYLES - TIMELINE SYNC
   ========================================= */

body { background-color: #020202; overflow-x: hidden; }

/* 🌟 RESPONSIVE CINEMATIC HERO (Original Restored) */
.blog-hero { 
    position: relative;
    height: 55vh; 
    min-height: 400px;
    max-height: 600px;
    margin-top: -105px; 
    padding-top: 105px;
    background-color: #020202; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #111;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/blog.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    z-index: 1;
}

.blog-hero-lighting {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(180deg, rgba(5, 5, 5, 0.65) 0%, rgba(5, 5, 5, 0.95) 100%),
        linear-gradient(45deg, rgba(220, 53, 69, 0.15) 0%, transparent 60%);
}

.blog-hero-content { 
    position: relative; 
    z-index: 4; 
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
    padding: 0 20px; 
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 56, 59, 0.08);
    border: 1px solid rgba(229, 56, 59, 0.4);
    color: #ff4d4f;
    padding: 8px 20px;
    border-radius: 100px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(229,56,59,0.15);
}

.blog-hero h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: clamp(2.8rem, 8vw, 5.5rem); 
    color: #fff; 
    margin-bottom: 15px; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    line-height: 1.1; 
    text-shadow: 0 10px 40px rgba(0,0,0,0.9); 
}

.blog-hero h1 span { color: #dc3545; } 

.blog-hero p { 
    color: #a1a1aa; 
    font-family: 'Inter', sans-serif; 
    font-size: clamp(1rem, 3vw, 1.15rem); 
    margin: 0 auto; 
    font-weight: 300; 
    max-width: 650px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.9); 
    line-height: 1.6; 
}

/* 🌟 EDITORIAL TIMELINE LAYOUT */
.timeline-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    position: relative; 
    padding: 80px 20px 120px; 
}

/* The Line */
.timeline-track { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    left: 80px; 
    width: 1px; 
    background: linear-gradient(to bottom, transparent 0%, #1a1a1a 10%, #1a1a1a 90%, transparent 100%); 
    z-index: 1; 
}

/* Timeline Row (Aligned to Center) */
.timeline-item { 
    display: flex; 
    gap: 40px; 
    position: relative; 
    margin-bottom: 60px; 
    align-items: center; /* 🌟 FIX: Vertically centers the dot with the card */
}

/* The Stacked Date */
.timeline-date { 
    width: 50px; 
    flex-shrink: 0; 
    text-align: center; 
    z-index: 2; 
}
.timeline-date .month { font-family: 'Oswald', sans-serif; font-size: 0.85rem; color: #dc3545; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 2px; }
.timeline-date .day { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #fff; line-height: 1; display: block; }

/* 🌟 FIX: Vertically Centered Dot */
.timeline-marker { 
    position: absolute; 
    left: 80px; 
    top: 50%; /* Center vertically */
    transform: translate(-50%, -50%); 
    width: 11px; 
    height: 11px; 
    background: #020202; 
    border: 2px solid #333; 
    border-radius: 50%; 
    z-index: 2; 
    transition: all 0.4s ease; 
}
.timeline-item:hover .timeline-marker { border-color: #dc3545; background: #dc3545; box-shadow: 0 0 15px rgba(220,53,69,0.6); }

/* 🌟 MERGED TIMELINE CARD & ORIGINAL GRID STYLES */
.timeline-content { 
    flex: 1; 
    display: flex; 
    background: #070707; /* Original dark bg */
    border: 1px solid #1a1a1a; /* Original border */
    border-radius: 10px; 
    overflow: hidden; 
    text-decoration: none; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    min-height: 280px; /* 🌟 FIX: Forces card height so excerpt doesn't hide */
}

.timeline-content:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 15px rgba(220, 53, 69, 0.15); 
    border-color: #333; 
}

.blog-img-box { width: 42%; position: relative; overflow: hidden; background: #000; border-right: 1px solid #1a1a1a; }
.blog-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; opacity: 0.8; filter: grayscale(20%); } /* Original Image Filter */
.timeline-content:hover .blog-img-box img { transform: scale(1.08); opacity: 1; filter: grayscale(0%); }

/* Original Solid Red Tag */
.blog-tag { position: absolute; top: 15px; left: 15px; background: #dc3545; color: #fff; padding: 4px 12px; font-family: 'Oswald', sans-serif; font-size: 0.75rem; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3); z-index: 2; }

/* The Text Container */
.blog-text-box { width: 58%; padding: 35px 40px; display: flex; flex-direction: column; justify-content: center; }

.blog-meta { color: #71717a; font-family: 'Inter', sans-serif; font-size: 0.8rem; display: flex; gap: 20px; margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }
.blog-meta i { color: #dc3545; margin-right: 6px; }

.blog-title { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #fff; line-height: 1.25; margin: 0 0 12px; transition: color 0.3s; letter-spacing: 0.5px; }
.timeline-content:hover .blog-title { color: #dc3545; }

/* 🌟 EXCERPT RESTORED */
.blog-excerpt { color: #a1a1aa; font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 1.6; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 300; }

.blog-read-more { font-family: 'Oswald', sans-serif; font-size: 0.95rem; color: #dc3545; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; margin-top: auto; text-transform: uppercase; transition: gap 0.3s; }
.timeline-content:hover .blog-read-more { gap: 15px; } /* Original Hover gap expansion */

.empty-state { text-align: center; width: 100%; color: #71717a; padding: 80px 20px; font-family: 'Inter', sans-serif; border: 1px dashed #27272a; border-radius: 10px; background: #070707; }

/* 🌟 PURE CSS STAGGERED REVEAL (Original) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.timeline-item:nth-child(even) { transition-delay: 0.1s; }

/* 🌟 MOBILE RESPONSIVENESS */
@media (max-width: 850px) {
    .blog-hero { background-attachment: scroll; }
    
    .timeline-track { left: 25px; }
    .timeline-item { flex-direction: column; gap: 20px; padding-left: 50px; margin-bottom: 50px; align-items: flex-start; }
    
    .timeline-date { width: auto; text-align: left; display: flex; align-items: baseline; gap: 10px; padding-top: 0; }
    .timeline-date .day { font-size: 1.6rem; }
    .timeline-date .month { margin: 0; font-size: 0.9rem; }
    
    /* Center the dot on the mobile line */
    .timeline-marker { left: 25px; top: 12px; transform: translateX(-50%); } 
    
    .timeline-content { flex-direction: column; height: auto; }
    .blog-img-box { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid #1a1a1a; }
    .blog-text-box { width: 100%; padding: 30px; }
    .blog-title { font-size: 1.5rem; }
    
    .timeline-item:nth-child(even) { transition-delay: 0s; }
}