/* ===================================================
   Blog Index - Single CSS File
   Used by all unit berita index pages
   =================================================== */

/* Hero Section */
.berita-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #dee2e6;
}
.berita-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    border-radius: 50%;
}
.berita-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
}
.berita-hero-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Search Box */
.search-box-wrapper {
    max-width: 500px;
}
.search-box {
    display: flex;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within {
    border-color: #4fc3f7;
    box-shadow: 0 4px 25px rgba(79,195,247,0.2);
}
.search-box input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    outline: none;
    background: transparent;
}
.search-box button {
    background: #0f3460;
    color: #fff;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover {
    background: #4fc3f7;
}

/* Featured Post */
.featured-section {
    padding: 60px 0;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4fc3f7;
    border-radius: 2px;
}
.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.featured-card .card-img-top {
    height: 300px;
    object-fit: cover;
}
.featured-card .card-body {
    padding: 25px;
}
.featured-card .card-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #0f3460;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.featured-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.featured-card:hover .card-title {
    color: #4fc3f7;
}
.featured-card .card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.featured-card .card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}
.featured-card .card-meta i {
    color: #4fc3f7;
    margin-right: 5px;
}

/* Popular Posts Sidebar */
.popular-section {
    padding: 60px 0;
    background: #f8f9fa;
}
.popular-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.popular-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.popular-card .popular-img {
    width: 90px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.popular-card .popular-info {
    flex: 1;
}
.popular-card .popular-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.popular-card:hover .popular-title {
    color: #4fc3f7;
}
.popular-card .popular-meta {
    font-size: 12px;
    color: #888;
}
.popular-card .popular-meta i {
    color: #4fc3f7;
    margin-right: 4px;
}
.popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e3f2fd;
    color: #0f3460;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* All Posts Grid */
.all-posts-section {
    padding: 60px 0;
}
.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: none;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.post-card .post-img-wrapper {
    position: relative;
    overflow: hidden;
}
.post-card .post-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}
.post-card:hover .post-img-wrapper img {
    transform: scale(1.05);
}
.post-card .post-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 55px;
}
.post-card .post-date-badge .day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}
.post-card .post-date-badge .month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}
.post-card .card-body {
    padding: 20px;
}
.post-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s;
    text-decoration: none;
    display: block;
}
.post-card .card-title:hover {
    color: #4fc3f7;
}
.post-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
}
.post-card .card-meta i {
    color: #4fc3f7;
}
.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f3460;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.3s;
}
.post-card .read-more:hover {
    color: #4fc3f7;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
}
.pagination .page-item .page-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s;
}
.pagination .page-item .page-link:hover {
    background: #e3f2fd;
    color: #0f3460;
}
.pagination .page-item.active .page-link {
    background: #0f3460;
    color: #fff;
}

@media (max-width: 768px) {
    .berita-hero-title {
        font-size: 1.8rem;
    }
    .featured-card .card-img-top {
        height: 200px;
    }
}
