/* ========================================
   BLOG CUSTOM STYLES - ASTHA ACADEMY
   ======================================== */

/* Blog Container */
.blog-index,
.blog-view,
.blog-search {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

/* Page Headers */
.page-header,
.search-header,
.article-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #007bff;
}

.page-title,
.search-title,
.article-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-subtitle,
.search-subtitle,
.section-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

.search-count {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

/* Search Form */
.search-form {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.search-form .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.search-form .form-control {
    border: 1px solid #e9ecef;
    border-right: none;
    padding: 12px 15px;
    font-size: 14px;
}

.search-form .btn {
    border-radius: 0 6px 6px 0;
    padding: 12px 20px;
    font-weight: 600;
    border: 1px solid #007bff;
}

/* Blog Cards */
.blog-post .card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.blog-post .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.blog-post .card-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-post .card-body {
    padding: 25px;
}

.blog-post .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

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

.blog-post .card-title a:hover {
    color: #007bff;
}

.blog-meta {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
}

.blog-meta i {
    margin-right: 5px;
    color: #007bff;
}

.blog-meta .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

.blog-post .card-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Sidebar */
.sidebar .card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.sidebar .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
}

.sidebar .card-header h5 {
    margin: 0;
    color: #fff;
}

.sidebar .card-header i {
    margin-right: 8px;
}

.sidebar .card-body {
    padding: 20px;
}

.sidebar .list-group-item {
    border: none;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.sidebar .list-group-item:last-child {
    border-bottom: none;
}

.sidebar .list-group-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
}

.sidebar .list-group-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.sidebar .list-group-item a:hover {
    color: #007bff;
}

/* Article Content */
.article-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.article-excerpt {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Social Share */
.social-share {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-facebook {
    background: #3b5998;
    color: #fff;
}

.btn-facebook:hover {
    background: #2d4373;
    color: #fff;
}

.btn-twitter {
    background: #1da1f2;
    color: #fff;
}

.btn-twitter:hover {
    background: #0c85d0;
    color: #fff;
}

.btn-linkedin {
    background: #0077b5;
    color: #fff;
}

.btn-linkedin:hover {
    background: #005885;
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ea952;
    color: #fff;
}

/* Related Posts */
.related-posts {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.related-posts h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.related-posts .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.related-posts .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.related-posts .card-title a {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.related-posts .card-title a:hover {
    color: #007bff;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Featured Blogs Section */
.featured-blogs {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-card .card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #007bff;
}

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

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

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

/* Author Info */
.author-avatar {
    color: #6c757d;
    margin-bottom: 15px;
}

.author-avatar i {
    font-size: 3rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Badges */
.badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #007bff;
    color: #fff;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-secondary {
    background: #6c757d;
    color: #fff;
}

.badge-light {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-index,
    .blog-view,
    .blog-search {
        padding: 20px 0;
    }
    
    .page-title,
    .search-title,
    .article-title,
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-header,
    .search-header,
    .article-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .blog-post .card-body {
        padding: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .meta-item {
        display: block;
        margin-bottom: 5px;
    }
    
    .featured-blogs {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .page-title,
    .search-title,
    .article-title,
    .section-title {
        font-size: 1.5rem;
    }
    
    .blog-post .card-title {
        font-size: 1.2rem;
    }
    
    .sidebar .card-header h5 {
        font-size: 14px;
    }
}

/* Loading States */
.blog-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.blog-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #007bff;
}

/* Empty States */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.blog-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Print Styles */
@media print {
    .blog-index,
    .blog-view,
    .blog-search {
        background: #fff;
        padding: 0;
    }
    
    .sidebar,
    .social-share,
    .share-buttons {
        display: none;
    }
    
    .blog-post .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}
