/* =============================================
   PROFESSIONAL BLOG PAGE STYLES
   ============================================= */

/* Page Header */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: var(--font-display, "Michroma", sans-serif);
}

.page-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Wrapper */
.search-wrapper {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-wrapper .input-group {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-search {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border: none;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.btn-search i {
    margin-right: 0.5rem;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

/* Blog Image */
.blog-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-content {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-lang-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Blog Content */
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 1rem;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-date i {
    color: #3b82f6;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.875rem;
    line-height: 1.5;
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #3b82f6;
}

.blog-description {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #06b6d4;
    gap: 0.75rem;
}

.blog-read-more i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(4px);
}

/* Pagination */
.blog-pagination {
    margin-top: 3rem;
}

.blog-pagination .pagination {
    gap: 0.5rem;
}

.blog-pagination .page-item .page-link {
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0;
}

.blog-pagination .page-item .page-link:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
}

.blog-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination-info {
    margin-top: 1.5rem;
}

.pagination-info p {
    font-size: 0.9375rem;
    margin: 0;
}

/* Sub Banner */
.sub-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.sub-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.sub-banner .breadcrumb-item {
    color: #cbd5e1;
}

.sub-banner .breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sub-banner .breadcrumb-item a:hover {
    color: #06b6d4;
}

.sub-banner .breadcrumb-item.active {
    color: #06b6d4;
}

.sub-banner .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}

/* Page Content */
.page-content {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

/* Alert Styles */
.alert-info {
    background: #e0f2fe;
    border: 2px solid #0284c7;
    color: #0c4a6e;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-title {
        font-size: 2rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.25rem;
    }

    .search-wrapper {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .search-wrapper .input-group {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
    }

    .blog-image {
        height: 180px;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-title {
        font-size: 1.125rem;
    }

    .blog-pagination .page-item .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575px) {
    .blog-pagination .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .blog-pagination .page-item .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }
}

/* Loading State */
.js-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    color: #475569;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #94a3b8;
}
