/* ===================================
   Blog Styles
   =================================== */

/* Section Titles */
.section-title-wrapper {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #007bff, #0056b3);
    border-radius: 2px;
}

/* ===================================
   Blog Cards - List View
   =================================== */

.blog-card, .featured-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.blog-image, .blog-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-category {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.blog-category:hover {
    color: #0056b3;
    text-decoration: underline;
}

.blog-date, .blog-reading-time {
    color: #6c757d;
}

/* Blog Title */
.blog-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.75rem;
}

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

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

/* Blog Excerpt */
.blog-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

/* Author */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
}

.author-name {
    font-weight: 500;
    color: #495057;
}

.blog-footer {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* ===================================
   Blog Detail Page
   =================================== */

.blog-detail-section {
    background: #f8f9fa;
}

.blog-post {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-category-badge .badge {
    font-size: 0.9rem;
    padding: 6px 14px;
    font-weight: 500;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

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

.author-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6c757d;
}

.blog-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-excerpt-box {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.blog-excerpt-box .lead {
    color: #495057;
    font-size: 1.1rem;
}

/* Blog Content Styling */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 4px;
}

.blog-post-content pre {
    background: #2c3e50;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #e83e8c;
}

.blog-post-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.blog-post-content table th,
.blog-post-content table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

.blog-post-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
    border: none;
}

.btn-facebook:hover {
    background: #0d65d9;
    color: #fff;
}

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

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

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

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

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

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

/* Author Bio Box */
.author-bio-box {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.author-avatar-xl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder-xl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #6c757d;
}

/* Related Posts */
.related-blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-category-small {
    font-size: 0.8rem;
    color: #007bff;
    font-weight: 500;
}

.blog-excerpt-small {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.blog-meta-small {
    font-size: 0.8rem;
}

/* ===================================
   Sidebar
   =================================== */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #007bff;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-list li a:hover,
.category-list li.active a {
    background: #007bff;
    color: #fff;
}

.post-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.category-list li.active a .post-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Recent Posts */
.recent-post-image {
    width: 80px;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

/* ===================================
   Pagination
   =================================== */

.pagination {
    margin-top: 2rem;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 4px;
}

.page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

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

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .author-avatar-large {
        width: 50px;
        height: 50px;
    }

    .author-avatar-xl {
        width: 80px;
        height: 80px;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .author-info {
        margin-right: 0 !important;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-card-content,
    .featured-blog-card .blog-card-content {
        padding: 1rem !important;
    }

    .blog-title a {
        font-size: 1rem;
    }

    .featured-blog-card .blog-title a {
        font-size: 1.1rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .recent-post-image {
        width: 60px;
    }

    .recent-post-image img {
        height: 45px;
    }
}

/* ===================================
   Common Header Styles (reusable)
   =================================== */

.com-header-title {
    font-size: 2.3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.com-header-desc {
    font-size: 1.3rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .com-header-title {
        font-size: 2rem;
    }

    .com-header-desc {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .com-header-title {
        font-size: 1.6rem;
    }

    .com-header-desc {
        font-size: 0.95rem;
    }
}

