/*
 * 12 Oaks Integrative Dentistry — Blog Post Styles
 * File: assets/css/blog-post.css
 * Prepared by Mad Rose Media
 *
 * All rules scoped under .ok-blog-wrap to prevent
 * leaking into the rest of the site.
 */

/* ── TOKENS — scoped to blog wrap only ──────────────────────────────────── */
.ok-blog-wrap {
    --ok-dark:          #02403F;
    --ok-teal:          #0D9E8C;
    --ok-teal-light:    #e6f7f5;
    --ok-teal-mid:      rgba(13, 158, 140, 0.10);
    --ok-cream:         #f7f4ee;
    --ok-warm:          #f0ebe0;
    --ok-text:          #1a2b2a;
    --ok-muted:         #5a6e6d;
    --ok-border:        rgba(2, 64, 63, 0.12);
    --ok-white:         #ffffff;
    --ok-shadow:        0 16px 48px rgba(2, 64, 63, 0.10);
    --ok-shadow-sm:     0 6px 20px rgba(2, 64, 63, 0.07);
    --ok-radius-lg:     24px;
    --ok-radius-md:     14px;
    --ok-radius-sm:     8px;
    --f-head:           'Bricolage Grotesque', system-ui, sans-serif;
    --f-body:           'Hanken Grotesk', system-ui, sans-serif;

    background: var(--ok-cream);
    color: var(--ok-text);
    font-family: var(--f-body);
}

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

/* ── EYEBROW ─────────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ok-teal);
    margin-bottom: 16px;
}

.ok-blog-wrap .ok-eyebrow::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ok-teal);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-hero {
    background: var(--ok-white);
    padding: 160px 0 56px;
    border-bottom: 1px solid var(--ok-border);
}

.ok-blog-wrap .ok-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 52px;
    align-items: center;
}

.ok-blog-wrap .ok-post-title {
    font-family: var(--f-head);
    font-size: clamp(32px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--ok-dark);
    margin: 0 0 22px;
}

.ok-blog-wrap .ok-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--ok-muted);
    margin-bottom: 20px;
}

.ok-blog-wrap .ok-meta-sep {
    color: var(--ok-teal);
    font-size: 8px;
}

.ok-blog-wrap .ok-read-pill {
    background: var(--ok-teal-light);
    color: var(--ok-dark);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ok-blog-wrap .ok-intro {
    font-family: var(--f-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ok-muted);
    max-width: 500px;
    margin: 0;
}

.ok-blog-wrap .ok-hero-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ok-shadow);
    aspect-ratio: 4 / 3;
}

.ok-blog-wrap .ok-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── BODY LAYOUT ─────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-body-section {
    padding: 64px 0 80px;
}

.ok-blog-wrap .ok-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ok-blog-wrap .ok-sidebar-card {
    background: var(--ok-white);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-md);
    padding: 22px;
    box-shadow: var(--ok-shadow-sm);
}

.ok-blog-wrap .ok-sidebar-heading {
    font-family: var(--f-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--ok-dark);
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

/* TOC */
.ok-blog-wrap .ok-toc {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ok-blog-wrap .ok-toc a {
    font-family: var(--f-body);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ok-muted);
    text-decoration: none;
    padding: 6px 10px 6px 12px;
    border-left: 2px solid var(--ok-border);
    border-radius: 0;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    display: block;
}

.ok-blog-wrap .ok-toc a:hover,
.ok-blog-wrap .ok-toc a.active {
    color: var(--ok-dark);
    border-left-color: var(--ok-teal);
    background: var(--ok-teal-mid);
    border-radius: 0 6px 6px 0;
}

/* Sidebar CTA card */
.ok-blog-wrap .ok-sidebar-cta {
    background: var(--ok-dark);
    border-color: transparent;
}

.ok-blog-wrap .ok-sidebar-cta .ok-sidebar-heading {
    color: var(--ok-white);
}

.ok-blog-wrap .ok-sidebar-cta p {
    font-family: var(--f-body);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 16px;
}

.ok-blog-wrap .ok-small-btn {
    display: block;
    background: var(--ok-teal);
    color: var(--ok-white);
    text-align: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.ok-blog-wrap .ok-small-btn:hover {
    background: #0b8879;
    color: var(--ok-white);
    transform: translateY(-1px);
}

/* ── ARTICLE ─────────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-article {
    min-width: 0;
}

.ok-blog-wrap .ok-content {
    background: var(--ok-white);
    border-radius: var(--ok-radius-lg);
    box-shadow: var(--ok-shadow);
    padding: 52px 56px;
}

.ok-blog-wrap .ok-content > *:first-child { margin-top: 0; }
.ok-blog-wrap .ok-content > *:last-child  { margin-bottom: 0; }

.ok-blog-wrap .ok-content h2 {
    font-family: var(--f-head);
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ok-dark);
    margin: 52px 0 16px;
}

.ok-blog-wrap .ok-content h3 {
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ok-teal);
    margin: 36px 0 12px;
}

.ok-blog-wrap .ok-content h4 {
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--ok-dark);
    margin: 28px 0 10px;
}

.ok-blog-wrap .ok-content p {
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.82;
    color: var(--ok-text);
    margin: 0 0 22px;
}

.ok-blog-wrap .ok-content a {
    color: var(--ok-teal);
    font-weight: 600;
    text-underline-offset: 3px;
    text-decoration-color: rgba(13, 158, 140, 0.4);
}

.ok-blog-wrap .ok-content a:hover {
    color: var(--ok-dark);
}

.ok-blog-wrap .ok-content ul,
.ok-blog-wrap .ok-content ol {
    margin: 0 0 24px;
    padding-left: 1.4em;
    font-family: var(--f-body);
}

.ok-blog-wrap .ok-content li {
    font-size: 17px;
    line-height: 1.72;
    color: var(--ok-text);
    margin-bottom: 10px;
}

.ok-blog-wrap .ok-content ul li::marker {
    color: var(--ok-teal);
}

.ok-blog-wrap .ok-content ol li::marker {
    color: var(--ok-teal);
    font-weight: 700;
}

.ok-blog-wrap .ok-content blockquote {
    margin: 40px 0;
    padding: 26px 30px;
    background: var(--ok-teal-light);
    border-left: 4px solid var(--ok-teal);
    border-radius: 0 var(--ok-radius-md) var(--ok-radius-md) 0;
    font-family: var(--f-head);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--ok-dark);
}

.ok-blog-wrap .ok-content blockquote p {
    font-family: var(--f-head);
    font-size: 21px;
    font-weight: 600;
    color: var(--ok-dark);
    margin: 0;
}

.ok-blog-wrap .ok-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 36px 0;
    border-radius: 16px;
}

.ok-blog-wrap .ok-content .wp-caption {
    max-width: 100%;
}

.ok-blog-wrap .ok-content .wp-caption-text {
    margin-top: -24px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--ok-muted);
    text-align: center;
    font-style: italic;
}

.ok-blog-wrap .ok-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    font-size: 16px;
}

.ok-blog-wrap .ok-content th {
    background: var(--ok-dark);
    color: var(--ok-white);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    text-align: left;
    letter-spacing: -0.01em;
}

.ok-blog-wrap .ok-content td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--ok-border);
    color: var(--ok-text);
    vertical-align: top;
}

.ok-blog-wrap .ok-content tr:nth-child(even) td {
    background: var(--ok-cream);
}

/* ── CALLOUT BOX ─────────────────────────────────────────────────────────── */
/*
   Usage in WordPress editor — HTML block:
   <div class="ok-callout">
     <div class="ok-eyebrow">Complete Health Dentistry</div>
     <p>Your message here.</p>
   </div>
*/
.ok-blog-wrap .ok-callout {
    background: var(--ok-cream);
    border: 1px solid rgba(13, 158, 140, 0.22);
    border-radius: var(--ok-radius-md);
    padding: 22px 26px;
    margin: 32px 0;
}

.ok-blog-wrap .ok-callout .ok-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
}

.ok-blog-wrap .ok-callout p {
    font-size: 16px !important;
    margin: 0 !important;
    color: var(--ok-text) !important;
}

/* ── POST TAGS ───────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--ok-border);
}

.ok-blog-wrap .ok-tag {
    background: var(--ok-teal-light);
    color: var(--ok-dark);
    padding: 5px 14px;
    border-radius: 999px;
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
}

.ok-blog-wrap .ok-tag:hover {
    background: var(--ok-teal);
    color: var(--ok-white);
}

/* ── CTA SECTION ─────────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-cta-section {
    padding: 0 0 72px;
}

.ok-blog-wrap .ok-cta-block {
    background: var(--ok-dark);
    border-radius: 28px;
    padding: 52px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    position: relative;
    overflow: hidden;
}

.ok-blog-wrap .ok-cta-block::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(13, 158, 140, 0.22), transparent 65%);
    pointer-events: none;
}

.ok-blog-wrap .ok-cta-content h2 {
    font-family: var(--f-head);
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    color: var(--ok-white);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    max-width: 480px;
}

.ok-blog-wrap .ok-cta-content p {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    max-width: 460px;
    margin: 0;
}

.ok-blog-wrap .ok-btn {
    flex-shrink: 0;
    display: inline-block;
    background: var(--ok-teal);
    color: var(--ok-white);
    padding: 16px 30px;
    border-radius: 999px;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.ok-blog-wrap .ok-btn:hover {
    background: #0b8879;
    color: var(--ok-white);
    transform: translateY(-2px);
}

/* ── RELATED POSTS ───────────────────────────────────────────────────────── */
.ok-blog-wrap .ok-related-section {
    padding: 0 0 90px;
}

.ok-blog-wrap .ok-section-head {
    margin-bottom: 30px;
}

.ok-blog-wrap .ok-section-head h2 {
    font-family: var(--f-head);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--ok-dark);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
}

.ok-blog-wrap .ok-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ok-blog-wrap .ok-related-card {
    background: var(--ok-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(2, 64, 63, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.ok-blog-wrap .ok-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(2, 64, 63, 0.13);
}

.ok-blog-wrap .ok-related-thumb {
    display: block;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
}

.ok-blog-wrap .ok-related-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ok-blog-wrap .ok-related-card:hover .ok-related-thumb img {
    transform: scale(1.04);
}

.ok-blog-wrap .ok-related-body {
    padding: 20px 22px;
}

.ok-blog-wrap .ok-related-date {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ok-teal);
    margin-bottom: 7px;
}

.ok-blog-wrap .ok-related-body h3 {
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--ok-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.ok-blog-wrap .ok-related-body h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.18s;
}

.ok-blog-wrap .ok-related-body h3 a:hover {
    color: var(--ok-teal);
}

.ok-blog-wrap .ok-related-body p {
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--ok-muted);
    line-height: 1.55;
    margin: 0;
}

/* ── MOBILE TOC STRIP ────────────────────────────────────────────────────── */
.ok-toc-strip {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid rgba(2, 64, 63, 0.12);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ok-toc-strip::-webkit-scrollbar {
    display: none;
}

.ok-toc-pill {
    flex-shrink: 0;
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #5a6e6d;
    background: #f7f4ee;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(2, 64, 63, 0.12);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.ok-toc-pill.active,
.ok-toc-pill:hover {
    background: #e6f7f5;
    color: #02403F;
    border-color: #0D9E8C;
}

/* ── TABLET: 1024px ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    .ok-blog-wrap .ok-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ok-blog-wrap .ok-hero-img-wrap {
        aspect-ratio: 16 / 7;
    }

    .ok-blog-wrap .ok-intro {
        max-width: 100%;
    }

    .ok-blog-wrap .ok-layout {
        grid-template-columns: 1fr;
    }

    .ok-blog-wrap .ok-sidebar {
        position: static;
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        display: none;
    }

    .ok-blog-wrap .ok-content {
        padding: 40px 44px;
    }

    .ok-blog-wrap .ok-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ok-blog-wrap .ok-cta-block {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 44px;
    }

    .ok-blog-wrap .ok-btn {
        width: 100%;
        text-align: center;
    }

}

/* ── MOBILE: 767px ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    .ok-blog-wrap .ok-hero {
        padding: 120px 0 32px;
    }

    .ok-blog-wrap .ok-post-title {
        font-size: clamp(28px, 9vw, 40px);
    }

    .ok-blog-wrap .ok-intro {
        font-size: 16px;
    }

    .ok-blog-wrap .ok-hero-img-wrap {
        aspect-ratio: 16 / 8;
        border-radius: 16px;
    }

    .ok-blog-wrap .ok-body-section {
        padding: 40px 0 60px;
    }

    .ok-toc-strip {
        display: flex;
    }

    .ok-blog-wrap .ok-content {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .ok-blog-wrap .ok-content h2 {
        font-size: clamp(22px, 6vw, 30px);
        margin-top: 40px;
    }

    .ok-blog-wrap .ok-content h3 {
        font-size: 19px;
    }

    .ok-blog-wrap .ok-content p,
    .ok-blog-wrap .ok-content li {
        font-size: 16px;
    }

    .ok-blog-wrap .ok-content blockquote {
        font-size: 18px;
        padding: 20px 22px;
    }

    .ok-blog-wrap .ok-cta-section {
        padding: 0 0 52px;
    }

    .ok-blog-wrap .ok-cta-block {
        border-radius: 20px;
        padding: 32px 28px;
    }

    .ok-blog-wrap .ok-cta-content h2 {
        font-size: clamp(22px, 7vw, 32px);
    }

    .ok-blog-wrap .ok-related-section {
        padding: 0 0 60px;
    }

    .ok-blog-wrap .ok-related-grid {
        grid-template-columns: 1fr;
    }

    .ok-blog-wrap .ok-related-card {
        display: grid;
        grid-template-columns: 110px 1fr;
        border-radius: 16px;
    }

    .ok-blog-wrap .ok-related-thumb {
        aspect-ratio: auto;
        height: 100%;
        min-height: 110px;
    }

    .ok-blog-wrap .ok-section-head h2 {
        font-size: clamp(24px, 7vw, 34px);
    }

}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ok-blog-wrap .ok-related-card,
    .ok-blog-wrap .ok-related-thumb img,
    .ok-blog-wrap .ok-btn,
    .ok-blog-wrap .ok-small-btn,
    .ok-blog-wrap .ok-toc a,
    .ok-toc-pill {
        transition: none;
    }
}

