/* Blog Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa !important;
    line-height: 1.6;
}

/* Header Styles */
.blog-header {
    background: #ffffff !important;
    padding: 1rem 0 !important;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-bottom: none !important;
}

.blog-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.blog-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0;
    color: #5a6c7d;
}

/* Responsive Header */
@media (max-width: 768px) {
    .blog-header {
        padding: 0.75rem 0 !important;
    }

    .blog-title {
        font-size: 1.3rem;
    }

    .blog-subtitle {
        font-size: 0.8rem;
    }

    .blog-header .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
        margin: 0 0.2rem;
    }

    .search-box .form-control {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }
}

.search-icon {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #ffc107;
}

/* Search Section */
.search-section {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.search-box .form-control {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.placeholder-image {
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #667eea;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-date {
    display: flex;
    align-items: center;
}

/* Blog Post Detail */
.blog-post-detail {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 2rem;
    border: none !important;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    color: #6c757d;
    font-size: 1rem;
}

.post-image {
    margin-bottom: 2rem;
}

.post-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.post-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.social-share .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.blog-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    border-radius: 50%;
    margin: 0 0.25rem;
    border: 2px solid #e9ecef;
    color: #667eea;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-post-detail {
        padding: 1.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .blog-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .post-meta {
    text-align: right;
}

[dir="rtl"] .social-share {
    text-align: left;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
