/* ========================================
   HOLIDAYS DECODE — BLOG STYLESHEET
   Version: 3.0

   Purpose: Styles SPECIFIC to blog pages that aren't in custom.css.
   All shared components (cards, hero, buttons, footer) come from custom.css.

   DO NOT redefine: navbar, footer, blog-card, buttons
   ======================================== */


/* ===== 1. BLOG HERO (homepage banner) ===== */
.blog-hero {
    background: linear-gradient(135deg, #0A1E3D 0%, #0B6B65 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
}

.blog-hero h1 {
    color: #fff;
    border-bottom: none;
    display: block;
    margin-bottom: 1rem;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 2.5rem 0;
    }
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    .blog-hero .lead {
        font-size: 1rem;
    }
}


/* ===== 2. SINGLE POST HERO ===== */
.blog-post-hero {
    background: linear-gradient(135deg, #0A1E3D 0%, #0B6B65 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}

.blog-post-hero h1 {
    color: #fff;
    border-bottom: none;
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

.blog-post-hero .blog-category-badge {
    background: #D97706;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-post-hero .blog-category-badge:hover {
    background: #B45309;
    color: #fff;
    text-decoration: none;
}

.blog-post-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.blog-post-meta i {
    color: #5EEAD4;
}

@media (max-width: 767.98px) {
    .blog-post-hero {
        padding: 2.5rem 0 2rem;
    }
    .blog-post-hero h1 {
        font-size: 1.5rem;
    }
}


/* ===== 3. CATEGORY HERO ===== */
.blog-category-hero {
    background: linear-gradient(135deg, #0A1E3D 0%, #0B6B65 100%);
    color: #fff;
    padding: 4rem 0;
}

.blog-category-hero h1 {
    color: #fff;
    border-bottom: none;
    display: block;
    margin-bottom: 1rem;
}

.blog-category-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.blog-category-badge {
    background: #D97706;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.blog-category-search .form-control {
    background: #fff;
    color: #1E293B;
    font-size: 0.9rem;
}

.blog-category-search .form-control::placeholder {
    color: #94A3B8;
}

.blog-category-search .btn-primary {
    background: #0B6B65;
    border-color: #0B6B65;
    font-weight: 600;
}

.blog-category-search .btn-primary:hover {
    background: #08544F;
    border-color: #08544F;
}

@media (max-width: 767.98px) {
    .blog-category-hero {
        padding: 2.5rem 0;
    }
    .blog-category-hero h1 {
        font-size: 1.5rem;
    }
}


/* ===== 4. SINGLE POST — BODY CONTENT ===== */
.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1E293B;
}

.post-body h2,
.post-body h3 {
    color: #0A1E3D;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.post-body a {
    color: #0B6B65;
    text-decoration: underline;
    text-decoration-color: #D4F0EE;
    text-underline-offset: 3px;
}

.post-body a:hover {
    color: #08544F;
    text-decoration-color: #0B6B65;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-body blockquote {
    border-left: 4px solid #0B6B65;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
    background: #D4F0EE;
    border-radius: 0 12px 12px 0;
}

.post-body pre {
    background: #0A1E3D;
    color: #E2E8F0;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}


/* ===== 4b. TABLES — Auto-responsive with borders ===== */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(11, 107, 101, 0.08);
}

/* Header row */
.post-body table thead {
    background: linear-gradient(135deg, #0A1E3D 0%, #0B6B65 100%);
}

.post-body table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #061428;
    vertical-align: middle;
}

.post-body table thead th:last-child {
    border-right: none;
}

/* Body cells */
.post-body table tbody td {
    padding: 12px 18px;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    color: #1E293B;
    line-height: 1.6;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-word;
}

.post-body table tbody td:last-child {
    border-right: none;
}

.post-body table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating rows */
.post-body table tbody tr:nth-child(even) {
    background: #FAFAF8;
}

/* Row hover */
.post-body table tbody tr:hover {
    background: #D4F0EE;
}

/* First column emphasis */
.post-body table tbody td:first-child {
    font-weight: 600;
    color: #0A1E3D;
    border-left: 3px solid #0B6B65;
}

/* Mobile horizontal scroll */
@media (max-width: 767.98px) {
    .post-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }
    .post-body table thead th,
    .post-body table tbody td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .post-body table thead th,
    .post-body table tbody td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}


/* ===== 5. SUMMARY BOX ===== */
.summary-box {
    background: #D4F0EE;
    border-left: 4px solid #0B6B65;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    color: #0A1E3D;
    font-size: 1.05rem;
    line-height: 1.7;
}

.summary-title {
    color: #0A1E3D;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}


/* ===== 6. NOTE BOX ===== */
.note-box {
    background: #FEF3C7;
    border-left: 4px solid #D97706;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.note-box h5 {
    color: #0A1E3D;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}


/* ===== 7. CODE EXAMPLE ===== */
.code-example {
    background: #0A1E3D;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header {
    background: #061428;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.code-example pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    background: transparent;
    color: #E2E8F0;
    font-size: 0.9rem;
}

.code-example code {
    font-family: 'Courier New', monospace;
    color: #E2E8F0;
}


/* ===== 8. KEY TAKEAWAY ===== */
.key-takeaway {
    background: #F5EDE3;
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
    border-left: 4px solid #0B6B65;
}

.key-points {
    background: #FAFAF8;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.key-points li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}


/* ===== 9. POST TAGS ===== */
.post-tags {
    padding: 1.5rem 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.post-tags .tag {
    display: inline-block;
    background: #D4F0EE;
    color: #08544F;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.post-tags .tag:hover {
    background: #0B6B65;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}


/* ===== 10. SHARE BUTTONS ===== */
.share-facebook  { background: #1877F2 !important; color: #fff !important; border: none !important; }
.share-facebook:hover { background: #0d65d9 !important; color: #fff !important; }

.share-x         { background: #000 !important; color: #fff !important; border: none !important; }
.share-x:hover   { background: #222 !important; color: #fff !important; }

.share-linkedin  { background: #0A66C2 !important; color: #fff !important; border: none !important; }
.share-linkedin:hover { background: #0855a3 !important; color: #fff !important; }

.share-whatsapp  { background: #25D366 !important; color: #fff !important; border: none !important; }
.share-whatsapp:hover { background: #1dbb57 !important; color: #fff !important; }

.share-email     { background: #64748B !important; color: #fff !important; border: none !important; }
.share-email:hover { background: #475569 !important; color: #fff !important; }

.share-copy      { background: #0B6B65 !important; color: #fff !important; border: none !important; }
.share-copy:hover { background: #08544F !important; color: #fff !important; }


/* ===== 11. TABLE OF CONTENTS ===== */
.toc-sidebar .card-header {
    background: #fff;
    color: #0A1E3D;
    border-bottom: 2px solid #D4F0EE;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.toc-sidebar .card-body {
    background: #fff;
    color: #1E293B;
    max-height: 350px;
    overflow-y: auto;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E2E8F0;
}

.toc-nav li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toc-link {
    color: #475569;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
}

.toc-link:hover {
    color: #0B6B65;
    transform: translateX(5px);
    text-decoration: none;
}

.toc-link.active {
    color: #0B6B65;
    font-weight: 600;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #0B6B65;
    border-radius: 50%;
}


/* ===== 12. AUTHOR BIO CARD ===== */
.author-bio-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(11, 107, 101, 0.1);
    border-left: 4px solid #0B6B65;
    overflow: hidden;
    margin-top: 2rem;
}

.author-bio-card .card-body {
    padding: 1.75rem;
}


/* ===== 13. RELATED POSTS (SIDEBAR) ===== */
.related-post-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 1rem;
}

.related-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.related-post-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-item h6 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.related-post-item h6 a {
    color: #0A1E3D;
    text-decoration: none;
}

.related-post-item h6 a:hover {
    color: #0B6B65;
}

.related-post-item small {
    color: #64748B !important;
}


/* ===== 14. RELATED POSTS (BOTTOM) ===== */
.related-category-posts {
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    margin-top: 3rem;
}

.category-post-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(11, 107, 101, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    border-left: 3px solid #0B6B65;
}

.category-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 107, 101, 0.15);
}

.category-post-card img {
    height: 120px;
    object-fit: cover;
}

.category-post-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.category-post-card .card-title a {
    color: #0A1E3D;
    text-decoration: none;
}

.category-post-card .card-title a:hover {
    color: #0B6B65;
}


/* ===== 15. COMMENTS SECTION ===== */
.comments-section .card {
    border: none;
    box-shadow: 0 2px 8px rgba(11, 107, 101, 0.08);
    border-radius: 12px;
}

.comment-item {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(11, 107, 101, 0.06);
    margin-bottom: 1.25rem;
    border-left: 3px solid #D4F0EE;
}

.comment-actions a {
    font-size: 0.85rem;
    color: #0B6B65;
}


/* ===== 16. STICKY SIDEBAR ===== */
@media (min-width: 992px) {
    .sticky-sidebar-content {
        position: sticky;
        top: 90px;
        z-index: 10;
    }
}


/* ===== 17. BREADCRUMB ===== */
.breadcrumb {
    background: #D4F0EE;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #0B6B65;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #08544F;
}

.breadcrumb-item.active {
    color: #0A1E3D;
    font-weight: 600;
}


/* ===== 18. PAGINATION (blog context) ===== */
.blog-pagination .page-link {
    color: #0B6B65;
    border-color: #E2E8F0;
    padding: 0.5rem 1rem;
    margin: 0 0.15rem;
    border-radius: 8px !important;
    font-weight: 500;
}

.blog-pagination .page-link:hover {
    background: #D4F0EE;
    color: #08544F;
    border-color: #0B6B65;
    text-decoration: none;
}

.blog-pagination .page-item.active .page-link {
    background: #0B6B65;
    border-color: #0B6B65;
    color: #fff;
}


/* ===== 19. EMPTY STATE ===== */
.blog-empty-state {
    background: #D4F0EE;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.blog-empty-state i {
    color: #0B6B65;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-empty-state h3 {
    color: #0A1E3D;
    margin-bottom: 0.75rem;
}


/* ===== 20. RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .post-body {
        font-size: 1rem;
    }

    .post-body pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .author-bio-card .card-body {
        padding: 1.25rem;
    }
}


/* ===== 21. PRINT ===== */
@media print {
    .blog-post-hero,
    .blog-category-hero,
    .toc-sidebar,
    .related-posts-sidebar,
    .author-bio-card,
    .related-category-posts,
    .comments-section,
    .post-tags,
    .share-facebook,
    .share-x,
    .share-linkedin,
    .share-whatsapp,
    .share-email,
    .share-copy {
        display: none !important;
    }

    .post-body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post-body a {
        color: #000;
        text-decoration: none;
    }

    .post-body table {
        font-size: 10pt;
        display: table;
        overflow-x: visible;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .post-body table thead {
        background: #eee !important;
        color: #000 !important;
    }
}