/* Playbook Category Cards */
.playbook-category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.playbook-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.playbook-category-card .category-icon {
    font-size: 3rem;
    line-height: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-weight: 700;
}

.hero-section .btn-primary {
    background-color: white;
    color: #667eea;
    border: none;
}

.hero-section .btn-primary:hover {
    background-color: #f8f9fa;
    color: #764ba2;
}

/* Playbook Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card .card-title a {
    color: #333;
}

.card .card-title a:hover {
    color: #667eea;
}

/* Category Filter Buttons */
.category-filter .btn {
    margin-bottom: 0.5rem;
    border-radius: 20px;
}

/* Latest Playbooks Section */
.latest-playbooks {
    background-color: white !important;
    border-radius: 8px;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

/* Single Playbook Styles */
.playbook-single .entry-title {
    font-weight: 700;
    line-height: 1.2;
}

.playbook-single .entry-meta {
    font-size: 0.95rem;
}

.playbook-single .entry-meta i {
    margin-right: 0.25rem;
}

.playbook-single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.playbook-single .entry-content h2,
.playbook-single .entry-content h3,
.playbook-single .entry-content h4,
.playbook-single .entry-content h5,
.playbook-single .entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.playbook-single .entry-content ul,
.playbook-single .entry-content ol {
    margin-bottom: 1.5rem;
}

.playbook-single .entry-content ul li,
.playbook-single .entry-content ol li {
    margin-bottom: 0.5rem;
}

.playbook-single .entry-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.playbook-single .share-buttons .btn {
    border-radius: 20px;
}

/* Related Playbooks */
.related-playbooks {
    background-color: #f8f9fa !important;
}

.related-playbooks .card {
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* Badge Styling */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    font-size: 0.85em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .playbook-single .entry-content {
        font-size: 1rem;
    }
}

/* ============================================
   BLOG ARCHIVE STYLES
   ============================================ */

/* Blog Archive Hero - Light background (differentiated from playbook dark hero) */
.blog-archive-hero {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.blog-archive-hero h1 {
    color: #212529;
}

/* Blog Category Filter Buttons */
.blog-category-btn {
    transition: all 0.2s ease;
}

.blog-category-btn:hover {
    background: #212529;
    color: white !important;
    border-color: #212529;
    transform: translateY(-2px);
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.blog-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Blog Featured Post */
.blog-featured {
    transition: all 0.3s ease;
}

.blog-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.2) !important;
}

.blog-featured .object-fit-cover {
    object-fit: cover;
}

/* Blog CTA Banner */
.blog-cta-banner {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

/* ============================================
   BLOG SINGLE POST STYLES
   ============================================ */

/* Single Post Article */
.blog-single-article .entry-title {
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
}

.blog-single-article .entry-meta {
    font-size: 0.95rem;
}

.blog-single-article .entry-meta a {
    transition: color 0.2s ease;
}

.blog-single-article .entry-meta a:hover {
    color: #667eea !important;
}

/* Article Content Typography */
.blog-single-article .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.blog-single-article .entry-content h2,
.blog-single-article .entry-content h3,
.blog-single-article .entry-content h4,
.blog-single-article .entry-content h5,
.blog-single-article .entry-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529;
    scroll-margin-top: 100px; /* For sticky header offset */
}

.blog-single-article .entry-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-single-article .entry-content h3 {
    font-size: 1.35rem;
}

.blog-single-article .entry-content p {
    margin-bottom: 1.5rem;
}

.blog-single-article .entry-content ul,
.blog-single-article .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-single-article .entry-content ul li,
.blog-single-article .entry-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Blockquotes / Pull Quotes */
.blog-single-article .entry-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #555;
}

.blog-single-article .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images in Content */
.blog-single-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-single-article .entry-content figure {
    margin: 2rem 0;
}

.blog-single-article .entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Code Blocks */
.blog-single-article .entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-single-article .entry-content code {
    background: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #e83e8c;
}

.blog-single-article .entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ============================================
   AUTHOR BIO BOX
   ============================================ */

.author-bio-box {
    border: 1px solid #e9ecef;
}

.author-bio-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-bio-box a:hover {
    color: #667eea !important;
}

/* ============================================
   TABLE OF CONTENTS SIDEBAR
   ============================================ */

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

.toc-sidebar {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.toc-nav ul {
    font-size: 0.875rem;
}

.toc-nav .toc-link {
    display: block;
    padding: 0.25rem 0;
    color: #6c757d;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.toc-nav .toc-link:hover {
    color: #212529;
    border-left-color: #667eea;
}

.toc-nav .toc-link.active {
    color: #667eea;
    font-weight: 500;
    border-left-color: #667eea;
}

/* ============================================
   PLAYBOOK CTA BOX (Sidebar)
   ============================================ */

.playbook-cta-box {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.playbook-cta-box .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */

.share-buttons-header .btn,
.share-sidebar .btn {
    transition: all 0.2s ease;
}

.share-buttons-header .btn:hover,
.share-sidebar .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   POST NAVIGATION
   ============================================ */

.post-navigation a {
    transition: color 0.2s ease;
}

.post-navigation a:hover {
    color: #667eea !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    /* Hide sidebar on mobile */
    .blog-single aside {
        display: none;
    }

    /* Full width content on mobile */
    .blog-single main {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .blog-archive-hero h1 {
        font-size: 2rem;
    }

    .blog-archive-hero .lead {
        font-size: 1rem;
    }

    .blog-single-article .entry-title {
        font-size: 1.75rem;
    }

    .blog-single-article .entry-content {
        font-size: 1rem;
    }

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

    .blog-single-article .entry-content h3 {
        font-size: 1.25rem;
    }

    .blog-featured .card-body {
        padding: 1.5rem !important;
    }

    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }

    .author-bio-box .flex-grow-1 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }
}

/* ============================================
   PAGINATION STYLING (for both blog and playbooks)
   ============================================ */

.pagination {
    justify-content: center;
}

.pagination .page-link {
    border: none;
    color: #212529;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: #212529;
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: #adb5bd;
}
