/* ============================================================
   Blog Public Styles — ubahpulsa.com/blog
   Premium design matching the existing site aesthetics
   ============================================================ */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0 50px;
    margin-top: -24px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 180, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    color: #ffffff;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.blog-hero h1 span {
    background: linear-gradient(135deg, #f5b400, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

.blog-hero .breadcrumb-blog {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.blog-hero .breadcrumb-blog a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-hero .breadcrumb-blog a:hover {
    color: #f5b400;
}

/* Blog Layout */
.blog-section {
    padding: 50px 0 80px;
    background: #f8fafc;
    min-height: 60vh;
}

.blog-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.blog-main {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
}

.blog-sidebar-col {
    width: 320px;
    flex-shrink: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

.blog-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(245, 180, 0, 0.95);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.blog-card__body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card__meta i {
    font-size: 0.75rem;
}

.blog-card__title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #f5b400;
}

.blog-card__excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.blog-card__readmore {
    color: #f5b400;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.blog-card__readmore:hover {
    color: #d4a000;
    gap: 10px;
}

.blog-card__views {
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar .sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.blog-sidebar .sidebar-widget h4 {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5b400;
}

.blog-sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .category-list li {
    margin-bottom: 4px;
}

.blog-sidebar .category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-sidebar .category-list li a:hover,
.blog-sidebar .category-list li a.active {
    background: rgba(245, 180, 0, 0.08);
    color: #f5b400;
}

.blog-sidebar .category-list li a .count {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-sidebar .category-list li a:hover .count,
.blog-sidebar .category-list li a.active .count {
    background: rgba(245, 180, 0, 0.15);
    color: #f5b400;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item__img {
    width: 70px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-item__img-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.popular-post-item__content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-item__content h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-post-item__content h5 a:hover {
    color: #f5b400;
}

.popular-post-item__content .date {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Blog Detail */
.blog-detail {
    padding: 50px 0 80px;
    background: #f8fafc;
}

.blog-detail__content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.blog-detail__featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.blog-detail__title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

.blog-detail__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-detail__meta span i {
    color: #f5b400;
}

.blog-detail__body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

.blog-detail__body h2,
.blog-detail__body h3,
.blog-detail__body h4 {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #1e293b;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-detail__body h2 { font-size: 1.6rem; }
.blog-detail__body h3 { font-size: 1.3rem; }
.blog-detail__body h4 { font-size: 1.1rem; }

.blog-detail__body p {
    margin-bottom: 18px;
}

.blog-detail__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-detail__body blockquote {
    border-left: 4px solid #f5b400;
    padding: 16px 24px;
    margin: 24px 0;
    background: #fffdf0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.blog-detail__body ul, .blog-detail__body ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.blog-detail__body li {
    margin-bottom: 8px;
}

.blog-detail__body a {
    color: #f5b400;
    text-decoration: underline;
}

.blog-detail__body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-detail__body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}

.blog-detail__body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Blog Share */
.blog-share {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.blog-share__title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 1rem;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.blog-share__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-share-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-share-btn--wa { background: #25D366; }
.blog-share-btn--fb { background: #1877F2; }
.blog-share-btn--tw { background: #1DA1F2; }
.blog-share-btn--copy { background: #64748b; }

/* Article Media & Content Responsiveness */
.blog-detail__body table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-detail__body table th,
.blog-detail__body table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.blog-detail__body iframe,
.blog-detail__body video {
    max-width: 100%;
    border-radius: 10px;
}

/* Related Posts */
.related-posts {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.related-posts h3 {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5b400;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination a {
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.blog-pagination a:hover {
    background: #f5b400;
    color: #1a1a2e;
    border-color: #f5b400;
}

.blog-pagination span.active,
.blog-pagination .active a {
    background: #f5b400;
    color: #1a1a2e;
    border-color: #f5b400;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.blog-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.blog-empty h3 {
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.blog-empty p {
    color: #94a3b8;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet & Mobile Stack (<= 991px) */
@media (max-width: 991px) {
    .blog-layout {
        flex-direction: column;
        gap: 36px;
    }

    .blog-sidebar-col {
        width: 100%;
        max-width: 100%;
    }

    .blog-sidebar {
        position: static;
        top: 0;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .blog-section,
    .blog-detail {
        padding: 32px 0 60px;
    }

    .blog-hero {
        padding: 36px 0 28px;
        margin-top: 0;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card__body {
        padding: 20px 18px;
    }

    .blog-card__title {
        font-size: 1.15rem;
    }

    .blog-detail__content {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .blog-detail__featured-image {
        max-height: 320px;
        margin-bottom: 20px;
    }

    .blog-detail__title {
        font-size: 1.5rem;
        margin-bottom: 14px;
    }

    .blog-detail__meta {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        font-size: 0.85rem;
    }

    .blog-detail__body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-detail__body h2 { font-size: 1.35rem; margin-top: 24px; }
    .blog-detail__body h3 { font-size: 1.2rem; margin-top: 20px; }
    .blog-detail__body h4 { font-size: 1.05rem; }

    .related-posts {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    .blog-hero {
        padding: 24px 0 20px;
    }

    .blog-hero h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .breadcrumb-blog {
        font-size: 0.8rem;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

    .blog-card__image {
        height: 185px;
    }

    .blog-card__body {
        padding: 16px 14px;
    }

    .blog-card__title {
        font-size: 1.05rem;
    }

    .blog-card__excerpt {
        font-size: 0.875rem;
        margin-bottom: 12px;
    }

    .blog-card__footer {
        padding-top: 12px;
    }

    .blog-detail__content {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .blog-detail__title {
        font-size: 1.28rem;
        line-height: 1.35;
    }

    .blog-detail__featured-image {
        max-height: 220px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .blog-detail__body blockquote {
        padding: 12px 16px;
        margin: 16px 0;
        font-size: 0.9rem;
    }

    .blog-share {
        padding: 18px 14px;
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .blog-share__buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .blog-share-btn {
        justify-content: center;
        padding: 9px 8px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .blog-sidebar .sidebar-widget {
        padding: 18px 14px;
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .popular-post-item__img {
        width: 60px;
        height: 48px;
        border-radius: 8px;
    }

    .popular-post-item__content h5 {
        font-size: 0.8rem;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

