/* ========================================
   BLOG STYLES - Minimal Design
======================================== */

/* Homepage Blog Section */
.blog-section {
    padding: 30px 0;
    background: #f8fafc;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 25px;
}

.blog-section .section-kicker {
    display: inline-block;
    color: var(--primary-color, #f97316);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.blog-section .section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* Blog Grid - 3 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card - Minimal */
.blog-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Card Image - Compact */
.blog-card-image {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Card Content - Compact */
.blog-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 10px;
}

.blog-card-date svg {
    width: 14px;
    height: 14px;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #0f172a;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color, #f97316);
}

.blog-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color, #f97316);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-card-link:hover {
    gap: 10px;
}

.blog-card-link svg {
    width: 16px;
    height: 16px;
}

/* View All Button */
.blog-view-all {
    text-align: center;
    margin-top: 25px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color, #f97316);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: #ea580c;
    gap: 12px;
}

.btn-view-all svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   BLOG LISTING PAGE
======================================== */
.blog-listing-section {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 60vh;
}

.blog-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background: var(--primary-color, #f97316);
    color: #fff;
    border-color: var(--primary-color, #f97316);
}

.blog-pagination span.current {
    background: var(--primary-color, #f97316);
    color: #fff;
    border-color: var(--primary-color, #f97316);
}

.blog-pagination .prev-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-pagination .prev-next svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   BLOG DETAIL PAGE
======================================== */
.blog-detail-section {
    padding: 60px 0;
    background: #fff;
}

.blog-detail-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-detail-main {
    background: #fff;
}

.blog-detail-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 24px;
}

.blog-detail-content {
    padding: 0;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
}

.blog-detail-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-date svg {
    width: 16px;
    height: 16px;
}

.blog-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 24px 0;
}

.blog-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.blog-detail-body p {
    margin-bottom: 16px;
}

.blog-detail-body h2,
.blog-detail-body h3 {
    color: #0f172a;
    margin: 24px 0 12px;
}

.blog-detail-body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

/* Share Section */
.blog-share {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.blog-share-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.blog-share-btn:hover {
    opacity: 0.9;
}

.blog-share-btn.facebook {
    background: #1877f2;
}

.blog-share-btn.twitter {
    background: #1da1f2;
}

.blog-share-btn.whatsapp {
    background: #25d366;
}

.blog-share-btn.linkedin {
    background: #0077b5;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar-widget {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.blog-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #f97316);
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-item a {
    text-decoration: none;
    display: block;
}

.blog-sidebar-item-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.blog-sidebar-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-sidebar-item a:hover .blog-sidebar-item-title {
    color: var(--primary-color, #f97316);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {

    .blog-grid,
    .blog-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-section {
        padding: 40px 0;
    }

    .blog-section .section-title {
        font-size: 24px;
    }

    .blog-grid,
    .blog-listing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-content {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    .blog-detail-title {
        font-size: 22px;
    }

    .blog-share-buttons {
        flex-direction: column;
    }

    .blog-share-btn {
        justify-content: center;
    }
}