.blog-details-container {
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 0 20px;
}

.blog-details-breadcrumb {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.1);
}

.blog-details-breadcrumb-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
}

.blog-details-breadcrumb-separator {
    margin: 0 8px;
    color: #a0aec0;
}

.blog-details-breadcrumb-current {
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
}

.blog-details-hero {
    padding: 60px 0;
    background: linear-gradient(to bottom, #E2F6DD, #A6C9FD);
}

.blog-details-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.blog-details-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.blog-details-hero-image img {
    width: 100%;
    border-radius: 15px;
}

.blog-details-main-content {
    background: white;
    border-radius: 20px 20px 0 0;
}

.blog-details-content-wrapper {
    padding: 60px 0;
}

.blog-details-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.blog-details-tag {
    background: #f7fafc;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-details-content-with-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

.blog-details-toc-sidebar {
    position: relative;
}

.blog-details-toc-sticky {
    position: sticky;
    top: 100px;
}

.blog-details-toc-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-details-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e2e8f0;
}

.blog-details-toc-item {
    margin: 0;
    position: relative;
}

.blog-details-toc-link {
    display: block;
    padding: 8px 0 8px 20px;
    text-decoration: none;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    position: relative;
}

.blog-details-toc-link::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.blog-details-toc-link:hover {
    color: #2d3748;
}

.blog-details-toc-link:hover::before,
.blog-details-toc-link.active::before {
    background: linear-gradient(135deg, #E2F6DD, #A6C9FD);
}

.blog-details-toc-link.active {
    color: #2d3748;
    font-weight: 500;
}

.blog-details-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-details-intro-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.8;
}

.blog-details-article h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 40px 0 20px 0;
    font-weight: 600;
}

.blog-details-article p {
    margin-bottom: 20px;
    color: #4a5568;
    line-height: 1.8;
}

.blog-details-feature-list,
.blog-details-challenge-list {
    list-style: none;
    margin: 30px 0;
}

.blog-details-feature-list li,
.blog-details-challenge-list li {
    margin-bottom: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #A6C9FD;
}

.blog-details-feature-list li strong,
.blog-details-challenge-list li strong {
    color: #2d3748;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.blog-details-social-share {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.blog-details-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.blog-details-social-btn.facebook {
    background: #3b5998;
}

.blog-details-social-btn.twitter {
    background: #1da1f2;
}

.blog-details-social-btn.linkedin {
    background: #0077b5;
}

.blog-details-social-btn.email {
    background: #ea4335;
}

.blog-details-latest-posts {
    background: white;
    padding: 80px 0;
}

.blog-details-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.blog-details-section-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    font-weight: 600;
}

.blog-details-view-all-btn {
    background: linear-gradient(135deg, #E2F6DD, #A6C9FD);
    color: #2d3748;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.blog-details-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-details-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-details-post-image {
    height: 200px;
    overflow: hidden;
}

.blog-details-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details-post-content {
    padding: 25px;
    position: relative;
}

.blog-details-post-number {
    position: absolute;
    top: -15px;
    left: 25px;
    background: linear-gradient(135deg, #E2F6DD, #A6C9FD);
    color: #2d3748;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.blog-details-post-content h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .blog-details-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .blog-details-hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .blog-details-container {
        padding: 0 15px;
    }

    .blog-details-hero {
        padding: 40px 0;
    }

    .blog-details-hero-text h1 {
        font-size: 2.2rem;
    }

    .blog-details-content-wrapper {
        padding: 40px 0;
    }

    .blog-details-section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .blog-details-section-header h2 {
        font-size: 2rem;
    }

    .blog-details-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-details-social-share,
    .blog-details-blog-tags {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .blog-details-content-with-sidebar {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }

    .blog-details-toc-sticky {
        top: 80px;
    }
}

@media (max-width: 768px) {
    .blog-details-content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-details-toc-sidebar {
        order: -1;
    }

    .blog-details-toc-sticky {
        position: static;
        background: #f8fafc;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }

    .blog-details-toc-title {
        margin-bottom: 15px;
        font-size: 0.85rem;
    }

    .blog-details-toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        border-left: none;
    }

    .blog-details-toc-item {
        flex: 1;
        min-width: calc(50% - 5px);
    }

    .blog-details-toc-link {
        padding: 10px 15px;
        background: white;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
        text-align: center;
        font-size: 0.8rem;
    }

    .blog-details-toc-link::before {
        display: none;
    }

    .blog-details-toc-link:hover,
    .blog-details-toc-link.active {
        background: linear-gradient(135deg, #E2F6DD, #A6C9FD);
        border-color: transparent;
    }
}

@media (max-width: 480px) {
    .blog-details-hero-text h1 {
        font-size: 1.8rem;
    }

    .blog-details-breadcrumb {
        padding: 10px 0;
    }

    .blog-details-breadcrumb-current {
        display: block;
        margin-top: 5px;
    }

    .blog-details-tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    .blog-details-toc-sticky {
        padding: 15px;
    }

    .blog-details-toc-list {
        flex-direction: column;
    }

    .blog-details-toc-item {
        min-width: 100%;
    }

    .blog-details-toc-link {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-state {
    font-size: 1.1rem;
}

.error-state {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.error-state p {
    margin: 10px 0;
}

.error-state a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.error-state a:hover {
    text-decoration: underline;
}