/* ==========================================================================
   Blog Single — Layout
   ========================================================================== */

.myblog-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    border-bottom: #6b7280 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.myblog-single__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.myblog-single__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.35;
    color: #111111;
    margin: 0;
    max-width: 720px;
}

.myblog-single__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #515151;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 6px;
}


/* ==========================================================================
   Featured Image
   ========================================================================== */

.myblog-single__thumb {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.myblog-single__thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Two Column Layout
   ========================================================================== */

.myblog-single__columns {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    align-items: start;
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.myblog-single__content {

    line-height: 1.7;
    color: #515151;
    min-width: 0;
}

.myblog-single__content p {
    margin: 0 0 20px;
}

.myblog-single__content h2,
.myblog-single__content h3 {
    font-size: 20px;

    font-weight: 700;
    color: #000;
    margin: 32px 0 12px;
}

.myblog-single__content h2:first-child,
.myblog-single__content h3:first-child {
    margin-top: 0;
}

.myblog-single__content strong {
    color: #111111;
    font-weight: 600;
}

.myblog-single__content ul,
.myblog-single__content ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.myblog-single__content li {
    margin-bottom: 8px;
}

.myblog-single__content a {
    color: #1e3a8a;
    text-decoration: underline;
}

.myblog-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* Optional: style a "Final Thought" / CTA callout block if wrapped in a class */
.myblog-single__content .myblog-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.myblog-single__content .myblog-cta p {
    margin: 0 0 8px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.myblog-single__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

/* ==========================================================================
   Table of Contents (Easy Table of Contents plugin, overridden to match design)
   ========================================================================== */

.myblog-toc {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

/* Kill plugin's own container styling completely */
.myblog-toc #ez-toc-container {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Title row */
.myblog-toc .ez-toc-title-container {
    display: block;
    margin-bottom: 14px;
}

.myblog-toc .ez-toc-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: default !important;
}

/* Hide the collapse/toggle button entirely — always show full list */
.myblog-toc .ez-toc-title-toggle {
    display: none !important;
}

body .myblog-toc .ez-toc-link,
body .myblog-toc a {
    font-size: 18px ! important;
    color: #515151 ! important;
    line-height: 1.7 !important;
}

/* List container */
.myblog-toc nav {
    display: block !important;
}

.myblog-toc .ez-toc-list,
.myblog-toc ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.myblog-toc li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Nested sub-lists (if headings have sub-levels) */
.myblog-toc li ul {
    margin-top: 10px !important;
    padding-left: 14px !important;
    gap: 8px !important;
}

/* Links */
.myblog-toc .ez-toc-link,
.myblog-toc a {
    display: block;
    font-weight: 400 !important;
    color: #6b7280;
    text-decoration: none !important;
    line-height: 1.2;
    transition: color 0.15s ease;
}

.myblog-toc .ez-toc-link:hover {
    color: #1e3a8a;
}

/* Active/currently-viewed heading (for scroll-spy JS, if added later) */
.myblog-toc li.is-active>a,
.myblog-toc a.is-active {
    color: #1e3a8a;
    font-weight: 600;
}

/* ==========================================================================
   Share Box
   ========================================================================== */

.myblog-share {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.myblog-share__title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 14px;
    line-height: 1.5;
}

.myblog-share__url {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.myblog-share__url input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    height: 46px;
}

.myblog-share__url input:focus {
    outline: none;
    border-color: #1e3a8a;
}

.myblog-share__url button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.myblog-share__url button:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

.myblog-share__social {
    display: flex;
    gap: 10px;
}

.myblog-share__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: #1e3a8a;
    color: #ffffff;
    transition: background 0.2s ease;
}

.myblog-share__social a:hover {
    background: #1e40af;
}

.myblog-share__social a svg {

    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Responsive — Small desktops / Laptops (1025px – 1199px)
   ========================================================================== */

@media (max-width: 1199px) and (min-width: 1025px) {
    .myblog-single__columns {
        grid-template-columns: 1fr 260px;
        gap: 36px;
    }
}

/* ==========================================================================
   Responsive — Tablets (768px – 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .myblog-single {
        padding: 40px 20px 64px;
    }

    .myblog-single__title {
        font-size: 36px;
    }

    .myblog-single__columns {
        grid-template-columns: 1fr 240px;
        gap: 28px;
    }

    .myblog-single__thumb {
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   Responsive — Small tablets / Large phones (601px – 767px)
   Sidebar drops below content
   ========================================================================== */

@media (max-width: 767px) {
    .myblog-single {
        padding: 32px 16px 56px;
    }

    .myblog-single__header {
        flex-direction: column;
        gap: 8px;
    }

    .myblog-single__title {
        font-size: 28px;
        max-width: 100%;
    }

    .myblog-single__date {
        margin-top: 0;
    }

    .myblog-single__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .myblog-single__sidebar {
        position: static;
        display: none;
    }
}

/* ==========================================================================
   Responsive — Mobile phones (max 600px)
   ========================================================================== */

@media (max-width: 600px) {
    .myblog-single {
        padding: 28px 16px 48px;
    }

    .myblog-single__title {
        font-size: 20px;
    }

    .myblog-single__thumb {
        border-radius: 8px;
        margin-bottom: 24px;
    }



    .myblog-single__content h2,
    .myblog-single__content h3 {

        margin: 24px 0 10px;
    }

    .myblog-toc,
    .myblog-share {
        padding: 16px;
    }
}

/* ==========================================================================
   Responsive — Extra small phones (max 380px)
   ========================================================================== */

@media (max-width: 380px) {
    .myblog-single__title {
        font-size: 18px;
    }

    .myblog-share__social a {
        width: 30px;
        height: 30px;
    }
}