/* ============================================
   News & Insights Pages (list + detail)
   ============================================ */

/* ---------- List: Header & Background Pattern ---------- */
.blog-header {
    padding: 80px 0 50px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.blog-header::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(0deg, var(--color-origin-ultra-light-red) 0%, transparent 40%);
    transform: rotate(-3deg);
    z-index: -1;
    pointer-events: none;
}
.blog-badge-top {
    color: var(--color-origin-red);
    background-color: var(--color-origin-ultra-light-red);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
}
.blog-title-main {
    color: var(--color-origin-maroon);
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
}
.blog-subtitle {
    color: var(--color-origin-soft-red);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ---------- List: Search Input ---------- */
.search-container { max-width: 450px; margin: 0 auto; position: relative; }
.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 10px;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s;
    font-size: 0.95rem;
}
.search-input:focus {
    outline: none;
    border-color: var(--color-origin-soft-red);
    box-shadow: 0 0 0 4px var(--color-origin-ultra-light-red);
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

/* ---------- List: Blog Grid System ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- List: Kartu Artikel ---------- */
.blog-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(64,1,13,0.06);
    border-color: rgba(166,3,33,0.1);
}
.blog-card-img-wrapper { overflow: hidden; aspect-ratio: 16/10; background: var(--color-origin-ultra-light-red); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category {
    color: var(--color-origin-soft-red);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: capitalize;
}
.blog-card-title {
    color: var(--color-origin-maroon);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.blog-card-title i { font-size: 1.1rem; color: #333; transition: transform 0.3s ease, color 0.3s ease; }
.blog-card:hover .blog-card-title i { transform: translate(3px, -3px); color: var(--color-origin-red); }
.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* ---------- List: Author Info di Footer Card ---------- */
.blog-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-info h6 { margin: 0 0 2px 0; font-size: 0.85rem; font-weight: 700; color: var(--color-origin-maroon); }
.author-info span { font-size: 0.75rem; color: #888; display: block; }

/* ---------- List: Load More Button ---------- */
.btn-load-more {
    background-color: var(--color-origin-ultra-light-red);
    color: var(--color-origin-maroon);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-load-more:hover { background-color: var(--color-origin-red); color: #fff; }

/* ---------- List: Empty State ---------- */
.news-empty {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 60px;
}
.news-empty i { font-size: 3rem; color: var(--color-origin-soft-red); }

/* ---------- Detail: Header Background ---------- */
.article-header-bg {
    background: linear-gradient(135deg, var(--color-origin-ultra-light-red) 0%, #ffffff 100%);
    padding: 80px 0 120px;
    border-bottom: 1px solid #f0f0f0;
}

/* ---------- Detail: Kontainer Artikel ---------- */
.article-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(64, 1, 13, 0.03);
    padding: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    border: 1px solid #eef0f2;
}
.article-content { font-size: 1.125rem; line-height: 1.85; color: #444; }
.article-content h2 { color: var(--color-origin-maroon); font-weight: 700; margin-top: 2.5rem; margin-bottom: 1.25rem; font-size: 1.75rem; }
.article-content h3 { color: var(--color-origin-red); font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; font-size: 1.35rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul { margin-bottom: 1.5rem; padding-left: 1.2rem; }
.article-content ol { margin-bottom: 1.5rem; padding-left: 1.2rem; }
.article-content li { margin-bottom: 0.75rem; }
.article-content a { color: var(--color-origin-red); }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f2;
}
.article-content blockquote {
    border-left: 3px solid var(--color-origin-soft-red);
    background: var(--color-origin-ultra-light-red);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    color: var(--color-origin-maroon);
    font-style: italic;
    margin: 1.5rem 0;
}
.article-img-main {
    border-radius: 20px;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.figcaption { font-size: 0.85rem; color: #888; text-align: center; margin-top: 10px; font-style: italic; }

/* ---------- Detail: Share Buttons ---------- */
.share-btn {
    font-weight: 600;
    transition: 0.3s;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    white-space: nowrap;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Detail: Artikel Terkait / Related (optional) ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .blog-title-main { font-size: 2.25rem; }
    .article-container { padding: 25px; margin-top: -40px; }
    .article-header-bg { padding: 60px 0 80px; }
    .article-content { font-size: 1.05rem; }
}
