/* Blog Page Styles */

/* Main container - 100% width */
.blog-page-content {
    width: 100%;
    min-height: 100vh;
}

/* Blog Banner Section */
.blog-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/blog-banner-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.blog-banner-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.blog-banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-banner-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.breadcrumb-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

#breadcrumbs {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

#breadcrumbs a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

#breadcrumbs a:hover {
    color: #007bff;
}

#breadcrumbs .current {
    color: #007bff;
    font-weight: 500;
}

/* Blog Content Section - 1400px max width container */
.blog-content-section {
    width: 100%;
    background-color: #ffffff;
    padding: 60px 0;
}

.blog-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Blog Posts Grid */
.blog-posts-wrapper {
    width: 100%;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog Post Card */
.blog-post-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog-post-image img.lazy {
    opacity: 0;
}

.blog-post-image img.lazy.loaded {
    opacity: 1;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,123,255,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.post-day {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.post-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 2px;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.post-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-author {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #007bff;
}

.blog-post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.read-more-btn {
    background: #007bff;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    background: #0056b3;
    transform: translateX(3px);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6c757d;
    font-size: 13px;
}

.post-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-posts-found h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #495057;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    min-width: 45px;
    height: 45px;
}

.blog-pagination .page-numbers a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.blog-pagination .page-numbers .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Sidebar Styles */
.blog-sidebar {
    width: 100%;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

/* Search Widget */
.search-form {
    position: relative;
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #007bff;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #0056b3;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.recent-post-content h5 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 12px;
    color: #6c757d;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.categories-list a:hover {
    color: #007bff;
}

.category-count {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-content-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .blog-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-sidebar {
        order: -1;
    }

    .blog-banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-content-section {
        padding: 40px 0;
    }

    .blog-content-container {
        padding: 0 15px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-banner {
        height: 300px;
    }

    .blog-banner-title {
        font-size: 2rem;
    }

    .blog-banner-subtitle {
        font-size: 1rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-post-content {
        padding: 20px;
    }

    .blog-post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .breadcrumb-container {
        padding: 0 15px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Loading States */
.blog-posts-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.read-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #0056b3;
}

.sidebar-toggle.active {
    background: #dc3545;
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }

    .blog-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 1001;
        overflow-y: auto;
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .blog-sidebar.mobile-show {
        right: 0;
    }

    .blog-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .blog-sidebar.mobile-show::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Zoom Effect */
.hover-zoom {
    transform: scale(1.05) !important;
}

/* Default blog image styling */
.default-blog-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.default-blog-image i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.default-blog-image span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.default-recent-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
}