/* Shared listing layout for Epiloguely blog and news archives. */
.blog-wrapper,
.news-wrapper {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    min-height: 80vh;
    font-family: 'Inter', sans-serif;
}

.blog-hero,
.news-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 58px 34px;
    border-radius: 24px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 14% 22%, rgba(56, 189, 248, 0.26), transparent 32%),
        radial-gradient(circle at 86% 78%, rgba(14, 165, 233, 0.20), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #172554 55%, #082f49 100%);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.14);
}

.blog-hero h1,
.news-hero h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.15rem, 4.8vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.blog-hero h1 span,
.news-hero h1 span { color: #38bdf8; }

.blog-hero p,
.news-hero p {
    position: relative;
    z-index: 2;
    max-width: 790px;
    margin: 0 auto;
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.72;
}

.blog-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.blog-card,
.news-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.055);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.blog-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 20px 40px rgba(14, 116, 144, 0.11);
}

.blog-img-wrap,
.news-img-wrap {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    aspect-ratio: 1920 / 728;
    min-height: 180px;
    overflow: hidden;
    background: #0f172a;
}

.blog-img-wrap > img,
.news-img-wrap > img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
}

.blog-img-bg,
.news-img-bg {
    z-index: 0;
    object-fit: cover;
    filter: blur(18px) brightness(.63);
    transform: scale(1.12);
}

.blog-img,
.news-img {
    z-index: 1;
    object-fit: contain;
    object-position: center;
}

.blog-content,
.news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.blog-date,
.news-date {
    color: #0284c7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.blog-title,
.news-title {
    margin: 10px 0 12px;
    font-size: 1.28rem;
    line-height: 1.35;
}

.blog-title a,
.news-title a { color: #0f172a; text-decoration: none; }
.blog-title a:hover,
.news-title a:hover { color: #0284c7; }

.blog-excerpt,
.news-excerpt {
    margin: 0 0 20px;
    color: #475569;
    font-size: .97rem;
    line-height: 1.72;
}

.blog-card-footer,
.news-card-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.blog-author a,
.news-author a { color: #0369a1; font-weight: 800; text-decoration: none; }

.blog-wrapper .read-more-link,
.news-wrapper .read-more-link { color: #0f172a; font-weight: 800; text-decoration: none; }
.blog-wrapper .read-more-link:hover,
.news-wrapper .read-more-link:hover { color: #0284c7; }

.blog-wrapper .load-more-btn,
.news-wrapper .load-more-btn {
    border: 0;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .2);
}
.blog-wrapper .load-more-btn:hover,
.news-wrapper .load-more-btn:hover { background: #0284c7; }

@media (max-width: 760px) {
    .blog-wrapper,
    .news-wrapper { padding: 12px; }
    .blog-hero,
    .news-hero { padding: 42px 20px; border-radius: 18px; }
    .blog-grid,
    .news-grid { grid-template-columns: 1fr; gap: 18px; }
    .blog-img-wrap,
    .news-img-wrap { aspect-ratio: 16 / 9; min-height: 170px; }
    .blog-content,
    .news-content { padding: 19px; }
    .blog-card-footer,
    .news-card-footer { align-items: flex-start; flex-direction: column; }
}
