/* ============================================
   STYLING UNTUK SECTION BERITA DI SINGLE POST
   ============================================ */

/* Block Title Umum */
.digital-newspaper-block-title {
    margin: 40px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FD4F18;
    position: relative;
}

.digital-newspaper-block-title span {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #27272a;
    background: #fff;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.digital-newspaper-block-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #FD4F18 10%, #F09819 100%);
}

/* ============================================
   BERITA TERKAIT (Related Posts)
   ============================================ */
.single-related-posts-wrap {
    margin: 30px 0 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.single-related-posts-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.single-related-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
}

.single-related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #FD4F18;
}

.single-related-post-thumb {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.single-related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-related-post-item:hover .single-related-post-thumb img {
    transform: scale(1.05);
}

.single-related-post-thumb:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}

.single-related-post-content {
    padding: 20px;
}

.single-related-post-title {
    margin: 0 0 10px;
    line-height: 1.4;
}

.single-related-post-title a {
    color: #27272a;
    font-family: 'Cabin', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.single-related-post-title a:hover {
    color: #FD4F18;
}

.single-related-post-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
}

.single-related-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-related-post-date i {
    color: #FD4F18;
    font-size: 13px;
}

/* ============================================
   BERITA LAINNYA (More Posts)
   ============================================ */
.single-more-posts-wrap {
    margin: 30px 0 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.single-more-posts-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.single-more-post-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.single-more-post-item:hover {
    background: #fff;
    transform: translateX(5px);
    border-left-color: #FD4F18;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.single-more-post-number {
    background: linear-gradient(135deg, #FD4F18 10%, #F09819 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.single-more-post-content {
    flex: 1;
}

.single-more-post-title {
    margin: 0 0 5px;
    line-height: 1.3;
}

.single-more-post-title a {
    color: #27272a;
    font-family: 'Cabin', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.single-more-post-title a:hover {
    color: #FD4F18;
}

.single-more-post-meta {
    color: #666;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
}

/* ============================================
   REKOMENDASI UNTUK ANDA (Recommended Posts)
   ============================================ */
.single-recommended-posts-wrap {
    margin: 30px 0 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.single-recommended-posts-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.single-recommended-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
}

.single-recommended-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #FD4F18;
}

.single-recommended-post-thumb {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.single-recommended-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-recommended-post-item:hover .single-recommended-post-thumb img {
    transform: scale(1.05);
}

.single-recommended-post-content {
    padding: 15px;
}

.single-recommended-post-title {
    margin: 0 0 8px;
    line-height: 1.3;
}

.single-recommended-post-title a {
    color: #27272a;
    font-family: 'Cabin', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.single-recommended-post-title a:hover {
    color: #FD4F18;
}

.single-recommended-post-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
}

.single-recommended-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-recommended-post-date i {
    color: #FD4F18;
    font-size: 12px;
}

/* ============================================
   TOGLE BUTTON UNTUK TOPKATA LAINNYA
   ============================================ */
.single-related-posts-section-wrap {
    position: relative;
    margin: 30px 0 40px;
}

.single-related-posts-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: relative;
}

.related_post_close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f1f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.related_post_close:hover {
    background: #FD4F18;
    color: white;
}

.related_post_close i {
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .single-related-posts-inner,
    .single-recommended-posts-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .single-related-post-thumb {
        height: 160px;
    }
    
    .single-recommended-post-thumb {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .single-related-posts-inner,
    .single-recommended-posts-inner {
        grid-template-columns: 1fr;
    }
    
    .digital-newspaper-block-title span {
        font-size: 22px;
    }
    
    .single-related-post-thumb {
        height: 180px;
    }
    
    .single-recommended-post-thumb {
        height: 160px;
    }
    
    .single-more-post-item {
        padding: 12px;
    }
    
    .single-more-post-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 12px;
    }
}

@media (max-width: 576px) {
    .single-related-posts-wrap,
    .single-more-posts-wrap,
    .single-recommended-posts-wrap,
    .single-related-posts-section {
        padding: 15px;
    }
    
    .digital-newspaper-block-title {
        margin: 30px 0 20px;
    }
    
    .digital-newspaper-block-title span {
        font-size: 20px;
        padding-right: 15px;
    }
    
    .single-related-post-thumb {
        height: 150px;
    }
    
    .single-recommended-post-thumb {
        height: 130px;
    }
    
    .single-related-post-content,
    .single-recommended-post-content {
        padding: 15px;
    }
}

/* ============================================
   ANIMASI & HOVER EFFECTS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.single-related-post-item,
.single-more-post-item,
.single-recommended-post-item {
    animation: fadeInUp 0.5s ease forwards;
}

.single-related-post-item:nth-child(1) { animation-delay: 0.1s; }
.single-related-post-item:nth-child(2) { animation-delay: 0.2s; }
.single-related-post-item:nth-child(3) { animation-delay: 0.3s; }
.single-related-post-item:nth-child(4) { animation-delay: 0.4s; }
.single-related-post-item:nth-child(5) { animation-delay: 0.5s; }
.single-related-post-item:nth-child(6) { animation-delay: 0.6s; }

.single-more-post-item:nth-child(1) { animation-delay: 0.1s; }
.single-more-post-item:nth-child(2) { animation-delay: 0.2s; }
.single-more-post-item:nth-child(3) { animation-delay: 0.3s; }
.single-more-post-item:nth-child(4) { animation-delay: 0.4s; }
.single-more-post-item:nth-child(5) { animation-delay: 0.5s; }
.single-more-post-item:nth-child(6) { animation-delay: 0.6s; }
.single-more-post-item:nth-child(7) { animation-delay: 0.7s; }
.single-more-post-item:nth-child(8) { animation-delay: 0.8s; }

.single-recommended-post-item:nth-child(1) { animation-delay: 0.1s; }
.single-recommended-post-item:nth-child(2) { animation-delay: 0.2s; }
.single-recommended-post-item:nth-child(3) { animation-delay: 0.3s; }
.single-recommended-post-item:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   BADGE KATEGORI (Opsional - jika ingin tambah)
   ============================================ */
.post-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FD4F18;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.single-related-post-item .post-category-badge {
    background: linear-gradient(135deg, #FD4F18 10%, #F09819 100%);
}

.single-recommended-post-item .post-category-badge {
    background: linear-gradient(135deg, #0284c7 10%, #06b6d4 100%);
}