
/* Blog List Container */
.blog-section {
    /* padding: 60px 0; */
    background-color: #f8f9fa;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #0f1419;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    display: inline-block;
    background: #e6f0ff;
    color: #0066ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f1419;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #0066ff;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e8eef5;
    font-size: 0.85rem;
    color: #999999;
}

.blog-card-author {
    font-weight: 500;
    color: #0f1419;
}

.blog-card-date {
    display: flex;
    align-items: center;
}

.blog-card-date::before {
    content: '📅';
    margin-right: 5px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: #0066ff;
    font-weight: 600;
    margin-top: 10px;
    transition: gap 0.3s ease;
    gap: 5px;
}

.blog-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more {
    gap: 10px;
}

.blog-card:hover .blog-read-more::after {
    transform: translateX(3px);
}

/* Blog Detail Page */
.blog-detail-section {
    /* padding: 60px 0; */
    min-height: 100vh;
}

.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-detail-category {
    display: inline-block;
    background: #e6f0ff;
    color: #0066ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f1419;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align:left;
}

.blog-detail-meta {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    color: #666666;
    font-size: 0.95rem;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8eef5;
}

.blog-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-meta-item strong {
    color: #0f1419;
}

.blog-detail-image {
    width: 100%;
    height: 400px;
    /* object-fit: cover; */
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-detail-content {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.8;
}

.blog-detail-content h2 {
    font-size: 1.8rem;
    color: #0f1419;
    font-weight: 700;
    margin: 30px 0 15px 0;
}

.blog-detail-content h3 {
    font-size: 1.3rem;
    color: #0066ff;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.blog-detail-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 15px 0 15px 30px;
}

.blog-detail-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item a {
    color: #0066ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0052cc;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-item.active {
    color: #666666;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-button:hover {
    gap: 12px;
    color: #0052cc;
}

.back-button::before {
    content: '←';
    font-size: 1.2rem;
}

/* Related Blogs Section */
.related-blogs-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e8eef5;
}

.related-blogs-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f1419;
    margin-bottom: 30px;
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e8eef5;
    border-radius: 6px;
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-item:hover {
    background-color: #e6f0ff;
    border-color: #0066ff;
}

.pagination-item.active {
    background-color: #0066ff;
    color: white;
    border-color: #0066ff;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    background-color: transparent;
    border-color: #e8eef5;
}

/* Sidebar Styles */
.blog-sidebar {
    margin-top: 40px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f1419;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eef5;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 10px 0;
    border-bottom: 1px solid #e8eef5;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #0066ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: #0052cc;
}

/* Search Box */
.blog-search-box {
    position: relative;
    margin-bottom: 30px;
}

.blog-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-search-box input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f1419;
    margin-bottom: 10px;
}

.empty-state-message {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-detail-title {
        font-size: 1.8rem;
    }

    .blog-detail-image {
        height: 250px;
    }

    .blog-detail-meta {
        gap: 15px;
        font-size: 0.85rem;
    }

    .blog-detail-content h2 {
        font-size: 1.5rem;
    }

    .blog-detail-content h3 {
        font-size: 1.1rem;
    }

    .related-blogs-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 40px 0;
    }

    .blog-header h1 {
        font-size: 1.5rem;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-detail-title {
        font-size: 1.5rem;
    }

    .blog-detail-content {
        font-size: 1rem;
    }

    .pagination {
        gap: 4px;
    }

    .pagination-item {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
