/* Blog Page Styles */
* {
    box-sizing: border-box;
}

.blog-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff0055;
    /* Use a vibrant color matching the theme if possible */
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #d40047;
}

/* Single Blog Page Layout - Two Columns */
.single-blog-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.single-blog-main {
    flex: 3;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-blog-sidebar {
    flex: 1;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

/* Keep original styles for content elements */
.single-blog-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #ff0055;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.email {
    background-color: #ea4335;
}

.share-btn.whatsapp {
    background-color: #25d366;
}


/* Sidebar Related Posts */
.single-blog-sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
    border-bottom: 2px solid #ff0055;
    padding-bottom: 10px;
    display: inline-block;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-card {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
}

.related-post-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-post-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
}

.related-post-info span {
    font-size: 0.8rem;
    color: #888;
}

.related-post-card:hover .related-post-info h4 {
    color: #ff0055;
}

/* Default existing styles needed for content */
.single-blog-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    /* For older browsers */
}

.single-blog-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.single-blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .single-blog-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .single-blog-main,
    .single-blog-sidebar {
        flex: none;
        width: 100%;
    }

    .single-blog-sidebar {
        position: static;
        margin-top: 0;
    }
}

@media (max-width: 768px) {

    .blog-container,
    .single-blog-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .blog-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .single-blog-main {
        padding: 20px 15px;
    }

    .single-blog-title {
        font-size: 1.6rem;
    }

    .social-share {
        gap: 8px;
    }

    .share-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        flex-grow: 1;
        text-align: center;
    }

    .related-post-card img {
        width: 60px;
        height: 45px;
    }

    .related-post-info h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.5rem;
    }

    .single-blog-title {
        font-size: 1.4rem;
    }

    .single-blog-meta {
        font-size: 0.8rem;
    }

    .single-blog-content {
        font-size: 1rem;
    }

    .related-post-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-post-card img {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
}