/* General Blog Details Styling */
.blog-details {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: #333333;
    line-height: 1.8;
    background: linear-gradient(to bottom, #ffffff, #eef2f9); /* Subtle gradient for modern look */
    padding: 60px 0;
    overflow-x: hidden;
}

/* Blog Container Styling */
.blog-details .container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff; /* White content area */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Enhanced shadow for depth */
    border-radius: 20px; /* Softer rounded corners */
    padding: 50px;
    transition: all 0.4s ease; /* Smoother transitions */
}

.blog-details .container:hover {
    transform: translateY(-5px); /* Subtle hover effect */
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

/* Blog Title Styling */
.blog-details h1 {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 1.5px;
    text-transform: capitalize;
}

.blog-details h1::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #f26513);
    width: 100px;
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Blog Metadata Area */
.blog-details .blog-meta {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-details .blog-meta span, .blog-details .blog-meta time {
    display: inline-block;
    font-size: 0.9rem;
    color: #495057;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.blog-details .blog-meta span:hover, .blog-details .blog-meta time:hover {
    background: #eef2f9;
    transform: translateY(-2px);
}

.blog-details .blog-meta i {
    color: #f26513;
    margin-right: 5px;
}

.blog-details .blog-meta .badge {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 100px;
    color: #ffffff;
    background: linear-gradient(to right, #007bff, #0056b3);
    text-transform: uppercase;
    transition: all 0.25s ease-in-out;
    margin: 5px;
}

.blog-details .blog-meta .badge:hover {
    background: linear-gradient(to right, #f77f00, #fc4a1a);
    transform: scale(1.1);
}

/* Banner Image Styling */
.blog-banner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 40px 0;
    position: relative;
}

.blog-banner img {
    width: 100%;
    transition: transform 0.7s ease;
    display: block;
}

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

/* Reading Progress Bar */
.reading-progress-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 5px;
    background: #f1f1f1;
    z-index: 100;
    margin-bottom: 30px;
}

.reading-progress-bar {
    height: 5px;
    background: linear-gradient(to right, #f26513, #ff9d45);
    width: 0%;
    transition: width 0.3s ease;
}

/* Blog Content Wrapper */
.blog-content-wrapper {
    padding: 20px 0;
}

/* Fade-in animation for content blocks */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated underline for headings */
.animated-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #f26513;
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
}

.animated-underline:hover::after,
section:hover .animated-underline::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Intro and Content Styling */
.blog-content {
    font-size: 1.2rem; /* Larger, readable font size */
    color: #636e72;
    line-height: 2;
    word-break: break-word; /* Prevent layout issues with long words */
    margin-top: 30px;
}

.introduction-block .lead {
    font-size: 1.35rem;
    line-height: 1.8;
    color: #4a4a4a;
    font-style: italic;
    border-left: 4px solid #f26513;
    padding-left: 20px;
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding: 0 10px;
}

/* Blog Section Titles */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin: 30px 0 20px;
    color: #384158;
    line-height: 1.5;
    font-weight: 700;
}

.blog-content h1 {
    font-size: 2.8rem;
}

.blog-content h2 {
    font-size: 2.1rem;
    color: #384158;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    padding-left: 20px;
}

.blog-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(to bottom, #f26513, #ff9d45);
    border-radius: 5px;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: #457b9d;
    position: relative;
    padding-left: 15px;
    margin-top: 30px;
}

.blog-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #f26513;
    border-radius: 50%;
}

/* Custom List Styling */
.custom-list ul {
    list-style: none;
    padding-left: 20px;
}

.custom-list ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.custom-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f26513;
    font-weight: bold;
}

/* Fancy Blockquote Styling */
.fancy-quote {
    background: #f9f9f9;
    border-left: 8px solid #f26513;
    padding: 40px;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    position: relative;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fancy-quote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4em;
    position: absolute;
    left: 10px;
    top: -10px;
    color: #f26513;
    opacity: 0.3;
}

.fancy-quote::after {
    content: '\201D';
    font-family: Georgia, serif;
    font-size: 4em;
    position: absolute;
    right: 10px;
    bottom: -40px;
    color: #f26513;
    opacity: 0.3;
}

.fancy-quote p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.blockquote-footer {
    margin-top: 15px;
    color: #777;
    font-size: 1rem;
    font-style: normal;
    text-align: right;
}

/* Custom Accordion Styling */
.custom-accordion .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.custom-accordion .accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.custom-accordion .accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 20px;
    color: #384158;
    background: linear-gradient(to right, #ffffff, #f5f7fa);
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #f26513;
    background: #fff;
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #f26513;
}

.custom-accordion .accordion-body {
    padding: 25px;
    background: #ffffff;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Image Styling */
.content-image, .hero-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin: 30px 0;
    position: relative;
}

.content-image img, .hero-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.content-image:hover img, .hero-image:hover img {
    transform: scale(1.03);
}

figcaption {
    padding: 10px 15px;
    text-align: center;
    font-style: italic;
    color: #666;
    background: #f9f9f9;
}

/* Call-to-Action Styling */
.cta-section {
    background: linear-gradient(135deg, #f26513, #ff9d45);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.cta-section:hover {
    transform: translateY(-5px);
}

.cta-content {
    color: white;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.cta-section .btn-success {
    background: #fff;
    color: #f26513;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-section .btn-success:hover {
    background: #384158;
    color: white;
    transform: scale(1.05);
}

/* No Content Message */
.no-content-message {
    text-align: center;
    padding: 50px 0;
    color: #aaa;
}

.no-content-message i {
    color: #ddd;
    margin-bottom: 20px;
}

/* Share Buttons Section */
.share-buttons {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.share-buttons h4 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.social-share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.twitter {
    background: #1DA1F2;
}

.facebook {
    background: #4267B2;
}

.linkedin {
    background: #0077B5;
}

.email {
    background: #f26513;
}

/* Related Posts Section */
.related-posts {
    background: #f5f7fa;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #384158;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #f26513;
    margin: 15px auto 0;
    border-radius: 2px;
}

.post-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    height: 200px;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.post-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #384158;
    margin-bottom: 10px;
}

.post-card .card-text {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.post-card .btn-primary {
    background: #f26513;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-card .btn-primary:hover {
    background: #384158;
    transform: translateX(5px);
}

/* Media Query for Smartphones */
@media (max-width: 768px) {
    .blog-details .container {
        padding: 25px;
        border-radius: 15px;
    }

    .blog-details h1 {
        font-size: 2rem; /* Reduce heading size */
        margin-bottom: 15px;
    }

    .blog-details .blog-meta {
        font-size: 0.9rem; /* Decrease meta text size */
        flex-direction: column; /* Stack meta fields */
        gap: 10px; /* Reduce gaps */
    }

    .blog-details .blog-meta .badge {
        font-size: 0.8rem; /* Smaller badges */
        padding: 6px 8px;
    }

    .blog-content {
        font-size: 1rem; /* Simplify readability */
        padding: 0 5px; /* Reduce side padding */
    }

    .blog-content h1 {
        font-size: 2rem; /* Adjust heading size */
    }

    .blog-content blockquote {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .blog-content img {
        width: 100%; /* Ensure images scale down */
        height: auto;
        margin-bottom: 20px; /* Add space below images */
        border-radius: 8px; /* Keep styling consistent */
    }

    .blog-details .tags span {
        font-size: 0.8rem;
        padding: 5px 10px;
        margin-bottom: 5px;
        display: inline-block;
    }

    .fancy-quote {
        padding: 25px;
    }

    .cta-section {
        padding: 25px;
    }

    .social-share-icons {
        flex-wrap: wrap;
    }

    .custom-accordion .accordion-button {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .blog-details .container {
        max-width: 100%; /* Full-width for smaller devices */
        padding: 15px;
        border-radius: 0; /* Remove rounded corners */
    }

    .blog-details h1 {
        font-size: 1.7rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content {
        font-size: 1.1rem; /* Adjust font size on very small screens */
    }

    .introduction-block .lead {
        font-size: 1.1rem;
    }

    .social-share-icons .btn-social {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .fancy-quote {
        padding: 20px;
        font-size: 1rem;
    }
}
