/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
    padding: 80px 0 60px;
    color: white;
    margin-bottom: 40px;
}

.blog-meta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.blog-meta h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.95rem;
}

.blog-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Main Article */
.blog-article {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 40px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #444;
    margin: 30px 0 15px;
}

.article-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Social Share */
.social-share {
    padding: 30px 40px;
    border-top: 1px solid #eee;
}

.social-share h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.facebook {
    background: #1877f2;
}

.twitter {
    background: #1da1f2;
}

.whatsapp {
    background: #25d366;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateX(5px);
}

.related-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.related-content h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-date {
    font-size: 0.85rem;
    color: #888;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #555;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #ff6b9d;
    transform: translateX(5px);
}

.category-list span {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-meta h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 60px 0 40px;
    }

    .blog-meta h1 {
        font-size: 1.8rem;
    }

    .blog-info {
        flex-direction: column;
        gap: 10px;
    }

    .article-content {
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-meta h1 {
        font-size: 1.5rem;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .related-post img {
        width: 60px;
        height: 60px;
    }

    .related-content h4 {
        font-size: 0.9rem;
    }
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1E1B39;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff6b9d, #f093fb);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Featured Post */
.featured-post-section {
    margin-bottom: 60px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    padding: 40px;
}

.featured-post .blog-post-image {
    height: 80%;
    width: 80%;
    object-fit: cover;
    border-radius: 15px;
}

.featured-post .blog-post-content {
    padding: 0;
}

.featured-post .blog-post-content h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background-color: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.blog-post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1E1B39;
    font-weight: 600;
}

.blog-post-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e0558a;
}

    .blog-post-content p {
        font-size: 0.9rem; /* Kurangi ukuran paragraf */
        text-align: left; /* Kembali ke rata kiri untuk readability */
    }
    .read-more {
        align-self: center; /* Pusatkan link */
    }

/* Responsive Design */
@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr; /* Ubah ke satu kolom pada tablet/mobile */
        gap: 20px;
    }
    .blog-post-image {
        width: 100%; /* Gambar full width */
        border-radius: 15px 15px 0 0; /* Sudut atas rounded */
    }
    .blog-post-content {
        padding: 20px; /* Kurangi padding */
        text-align: center; /* Pusatkan teks */
    }
    .blog-post-content h3 {
        font-size: 1rem; /* Kurangi ukuran judul */
    }
    .blog-post-content p {
        font-size: 0.9rem; /* Kurangi ukuran paragraf */
        text-align: left; /* Kembali ke rata kiri untuk readability */
    }
    .read-more {
        align-self: center; /* Pusatkan link */
    }
}

@media (max-width: 480px) {
    .featured-post-section {
        padding: 0 10px; /* Kurangi padding luar */
    }
    .blog-post-content {
        padding: 15px; /* Padding lebih kecil */
    }
    .blog-post-content h3 {
        font-size: 1.3rem; /* Font judul lebih kecil */
    }
    .blog-post-content p {
        font-size: 0.85rem; /* Font paragraf lebih kecil */
    }
}