/* ===== BLOGS PAGE STYLING ===== */

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
    font-size: 48px;
    color: #041a77;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Blog Filters */
.blog-filters {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-filter-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    min-width: 300px;
    flex: 1;
}

.search-input {
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    flex: 1;
    outline: none;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

.category-filter {
    min-width: 180px;
}

.category-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.filter-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-btn:hover {
    background: #047857;
}

.clear-filters {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    padding: 8px;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Results Info */
.results-info {
    margin-bottom: 30px;
}

.results-info p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* No Blogs Found */
.no-blogs {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed #e5e7eb;
}

.no-blogs-icon {
    font-size: 64px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.no-blogs h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 15px;
}

.no-blogs p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Blog Image */
.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Content */
.blog-content {
    padding: 25px;
}

.blog-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    line-height: 1.3;
}

.blog-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #2563eb;
}

.blog-excerpt {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    --webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.read-more-btn:hover {
    color: #1d4ed8;
    gap: 12px;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #6b7280;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-left span,
.meta-right span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    font-size: 12px;
    color: #9ca3af;
}

/* Pagination */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.pagination-info {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 15px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.pagination-number.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-dots {
    color: #9ca3af;
    font-weight: bold;
    padding: 0 8px;
}

/* ===== BLOG DETAILS PAGE STYLING ===== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb i {
    font-size: 12px;
    color: #9ca3af;
}

.breadcrumb .current {
    color: #374151;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Blog Article */
.blog-article {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-category {
    margin-bottom: 20px;
}

.article-category .category-link {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.article-category .category-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.article-title {
    font-size: 42px;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 30px 0;
    font-weight: 800;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.author-title {
    font-size: 14px;
    color: #6b7280;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.meta-right span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-right i {
    color: #9ca3af;
}

/* Article Image */
.article-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1f2937;
    font-weight: 700;
    margin: 30px 0 15px 0;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 32px;
}

.article-content h3 {
    font-size: 28px;
}

.article-content h4 {
    font-size: 24px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f8fafc;
    font-style: italic;
    font-size: 20px;
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Article Tags */
.article-tags {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
}

.article-tags h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f1f5f9;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e2e8f0;
    color: #4b5563;
}

/* Social Share */
.social-share {
    padding: 30px 0;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.social-share h4 {
    margin: 0 0 20px 0;
    color: #374151;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.copy-link {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Related Blogs */
.related-blogs {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.related-blogs h3 {
    font-size: 28px;
    color: #1f2937;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-blog-card {
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-blog-image {
    height: 150px;
    overflow: hidden;
}

.related-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-blog-card:hover .related-blog-image img {
    transform: scale(1.05);
}

.related-blog-content {
    padding: 20px;
}

.related-blog-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
}

.related-blog-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-blog-title a:hover {
    color: #2563eb;
}

.related-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
}

.related-blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
    font-size: 28px;
    color: #1f2937;
    margin: 0 0 30px 0;
    font-weight: 700;
}

/* Comment Form */
.comment-form {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.comment-user {
    margin-bottom: 15px;
    font-size: 16px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.login-to-comment {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed #e5e7eb;
    margin-bottom: 30px;
}

.login-to-comment p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.login-to-comment a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    margin-top: 30px;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-style: italic;
}

.comment {
    padding: 25px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fafafa;
}

.comment.reply {
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    margin-left: 30px;
    margin-top: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-author {
    color: #1f2937;
    font-size: 16px;
}

.comment-date {
    color: #6b7280;
    font-size: 14px;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
}

.comment-replies {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .related-blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .content-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .blog-article {
        padding: 25px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .pagination-numbers {
        margin: 0 10px;
    }
    
    .comment {
        padding: 20px;
    }
    
    .comment.reply {
        margin-left: 15px;
    }
}