/* blogs.css - Custom Styles for Blogs Page */

.blogs-main-section {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

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

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

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.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);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
}

.read-more-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    background: #218838;
    color: white;
    transform: translateX(5px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.show-more-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.show-more-btn i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .blog-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .blogs-main-section {
        padding: 40px 0;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
        align-items: start;
    }
}

/* Spinner */
#spinner {
    z-index: 9999;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Blog Modal Styles */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    position: relative;
}

.blog-modal-overlay.active .blog-modal-content {
    transform: scale(1);
}

.blog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.blog-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.blog-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.blog-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.blog-modal-body {
    padding: 20px;
}

.blog-modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-modal-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-modal-date {
    color: #666;
    font-size: 0.9rem;
}

.blog-modal-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.blog-modal-text h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-modal-text h4 {
    color: #34495e;
    margin-top: 15px;
    margin-bottom: 8px;
}

.blog-modal-text ul, .blog-modal-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.blog-modal-text li {
    margin-bottom: 5px;
}

.blog-modal-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-modal-like-btn, .blog-modal-share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-modal-like-btn {
    background: #f8f9fa;
    color: #666;
}

.blog-modal-like-btn:hover {
    background: #e9ecef;
}

.blog-modal-share-btn {
    background: #007bff;
    color: white;
}

.blog-modal-share-btn:hover {
    background: #0056b3;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .blog-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .blog-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .blog-modal-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .blog-modal-body {
        padding: 15px;
    }
    
    .blog-modal-header {
        padding: 15px;
    }
    
    .blog-modal-actions {
        flex-direction: column;
    }
}


/* Home Page Blogs Section */
.home-blogs-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.home-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.home-blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.home-blog-content {
    padding: 25px;
}

.home-blog-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.home-blog-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.home-blog-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.home-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.home-blog-date {
    color: #999;
    font-size: 0.9rem;
}

.home-read-more {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.home-read-more:hover {
    background: #218838;
    color: white;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-blog-content {
        padding: 20px;
    }
}

/* Consistent Button Styles for Home Page */
.load-more-btn, .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-more-btn:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* AI Prompts Section Button */
#goToPromptsBtn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

#goToPromptsBtn:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
}

/* Blogs Section Button */
.home-blogs-section .btn-primary {
    background: linear-gradient(135deg, #6f42c1 0%, #59359f 100%) !important;
}

.home-blogs-section .btn-primary:hover {
    background: linear-gradient(135deg, #59359f 0%, #472c7d 100%) !important;
}

/* Home Blogs Grid Specific Styles */
.home-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.home-blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.home-blog-content {
    padding: 25px;
}

.home-blog-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.home-blog-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.home-blog-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.home-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.home-blog-date {
    color: #999;
    font-size: 0.9rem;
}

.home-read-more {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.home-read-more:hover {
    background: #218838;
    color: white;
    transform: translateX(5px);
}




/* add new for page number seciotn  */



/* add new for page number seciotn  */

/* Blogs Pagination Styles */
.blogs-pagination-container {
    margin: 3rem 0;
    text-align: center;
}

.blogs-pagination {
    display: inline-block;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blogs-pagination-info {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.blogs-pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.blogs-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    cursor: pointer;
    font-size: 1rem;
}

.blogs-page-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

.blogs-page-btn.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.blogs-page-btn.prev-btn,
.blogs-page-btn.next-btn {
    background: #007bff;
    color: white;
    border-color: #007bff;
    padding: 0.6rem 1.5rem;
}

.blogs-page-btn.prev-btn:hover,
.blogs-page-btn.next-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.blogs-page-dots {
    padding: 0.6rem;
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 768px) {
    .blogs-pagination-controls {
        gap: 0.3rem;
    }
    
    .blogs-page-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

/* end  */





/* end  */