/* ==========================================================================
   SINGLE BLOG POST MASTER & CONTAINER (#FDFFF6 Background)
   ========================================================================== */

.ow-single-blog-master {
    width: 100%;
    max-width: 100%;;
    margin: 0 auto;
    background-color: #FDFFF6;
    box-sizing: border-box;
    overflow: hidden;
}

.ow-single-article-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    width: 100%;
    background-color: #FDFFF6;
    box-sizing: border-box;
}

.ow-single-article-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 32px;
    width: 100%;
    max-width: 1344px;
    border-radius: 16px;
    box-sizing: border-box;
}

/* ==========================================================================
   1. ARTICLE HERO HEADER
   ========================================================================== */

.ow-single-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding: 32px 0;
    width: 100%;
    max-width: 1040px;
}

.ow-single-hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.ow-single-meta-pills {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ow-single-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    background-color: rgba(145, 128, 255, 0.25); /* #9180ff40 */
    border-radius: 4px;
    font-family: 'DM Mono-Medium', 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 16.8px;
    color: #2A2A2A;
    text-transform: uppercase;
}

.ow-single-meta-sep {
    font-family: 'Inter-Medium', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #15100D;
    opacity: 0.2;
}

.ow-single-date {
    font-family: 'DM Mono-Medium', 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 16.8px;
    color: #2A2A2A;
    text-transform: uppercase;
}

.ow-news-single-back {
    font-family: 'Inter-Medium', 'Inter', sans-serif;
    font-size: 14px;
    color: #15100D;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Main Article H1: Aspekta 400, 48px, Center Aligned */
.ow-single-title {
    font-family: 'Aspekta-400', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 52.8px;
    letter-spacing: -0.96px;
    color: #111111;
    text-align: center;
    max-width: 710px;
    margin: 0;
}

/* Featured Image with Top-Left & Bottom-Right 20px Chamfer */
.ow-single-featured-media-wrap {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1.54;
    position: relative;
}

.ow-single-featured-media {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #E2E2E2;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

/* Author & Read Time Sub-bar */
.ow-single-author-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ow-single-author-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
    background-color: #111111;
}

.ow-single-author-label,
.ow-single-read-time {
    font-family: 'Inter-Medium', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 17.6px;
    color: #15100D;
    opacity: 0.6;
}

/* ==========================================================================
   2. ARTICLE PROSE (800px Max-Width Content Column)
   ========================================================================== */

.ow-single-body-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
    max-width: 800px;
    padding-bottom: 48px;
}

.ow-single-prose {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: rgba(21, 16, 13, 0.7); /* #15100db2 */
}

.ow-single-prose p {
    margin: 0;
}

.ow-single-prose strong,
.ow-single-prose b {
    font-family: 'Inter-Bold', 'Inter', sans-serif;
    font-weight: 700;
    color: #15100D;
}

.ow-single-prose a {
    color: #15100D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Subheadings inside post content */
.ow-single-prose h2,
.ow-single-prose h3 {
    font-family: 'Aspekta-500', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 35.2px;
    letter-spacing: -0.64px;
    color: #111111;
    margin: 16px 0 0 0;
}

.ow-single-prose h4 {
    font-family: 'Aspekta-500', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 28.8px;
    color: #111111;
    margin: 12px 0 0 0;
}

/* Lists */
.ow-single-prose ul,
.ow-single-prose ol {
    margin: 0;
    padding-left: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Figures & Captions */
.ow-single-prose figure,
.ow-single-prose .wp-block-image {
    margin: 12px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ow-single-prose figure img,
.ow-single-prose .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.ow-single-prose figcaption {
    font-family: 'Aspekta-400', 'Aspekta', sans-serif;
    font-size: 16px;
    line-height: 22.4px;
    color: rgba(21, 16, 13, 0.7);
    text-align: center;
}

/* Green Callout / Blockquote (#56DB81) */
.ow-single-prose blockquote,
.ow-single-prose .wp-block-quote {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    margin: 12px 0;
    width: 100%;
    background-color: #56DB81;
    border-left: 4px solid #111111;
    font-family: 'Aspekta-Regular', 'Aspekta', sans-serif;
    font-size: 18px;
    line-height: 27px;
    color: #15100D;
    box-sizing: border-box;
}

.ow-single-prose blockquote p {
    color: #15100D;
}

/* Tables inside Prose */
.ow-single-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.ow-single-prose th,
.ow-single-prose td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.ow-single-prose th {
    font-family: 'Inter-SemiBold', 'Inter', sans-serif;
    font-weight: 600;
    color: #111111;
    background-color: #DBD5FF;
}

.ow-single-prose td:nth-child(1) { background-color: #EAE6FF; color: #111111; font-weight: 500; }
.ow-single-prose td:nth-child(2) { background-color: #E2F7B8; color: #111111; }
.ow-single-prose td:nth-child(3) { background-color: #FFE4CC; color: #111111; }

/* ==========================================================================
   3. AUTHOR INSIGHT CARD (#262626) & SHARE BUTTONS
   ========================================================================== */

.ow-single-insight-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    width: 100%;
}

.ow-single-insight-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    width: 100%;
    max-width: 586px;
    background-color: #262626;
    border-radius: 16px;
    box-sizing: border-box;
}

.ow-single-insight-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.ow-single-author-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
    background-color: #111111;
    flex-shrink: 0;
}

.ow-single-insight-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ow-single-insight-name {
    font-family: 'Inter-SemiBold', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 17.6px;
    color: #FFFFFF;
    margin: 0;
}

.ow-single-insight-bio {
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.ow-single-insight-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ow-single-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter-Medium', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: underline;
}

/* ==========================================================================
   SHARE & AI SUMMARIZE BLOCK
   ========================================================================== */

.ow-single-action-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 586px;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 24px;
    box-sizing: border-box;
}

.ow-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.ow-action-label {
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(17, 17, 17, 0.6); /* Gray text matching design */
}

/* Vertical separator lines */
.ow-action-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(17, 17, 17, 0.15);
}

.ow-action-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Base button/link styles for the icons */
.ow-action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    opacity: 0.85;
}

.ow-action-icon-btn:hover {
    opacity: 1;
}

/* The copy link button has a faint border in the design */
.ow-action-icon-btn.bordered {
    border: 1px solid rgba(17, 17, 17, 0.12);
    width: 36px;
    height: 36px;
    background-color: #FFFFFF;
}

.ow-action-icon-btn.bordered:hover {
    background-color: rgba(17, 17, 17, 0.04);
}

/* Copy link: "Copied!" confirmation bubble shown for 2 seconds after a successful copy */
.ow-copy-link-btn {
    position: relative;
}

.ow-copy-link-btn.is-copied {
    background-color: #CAED57;
    border-color: #CAED57;
    opacity: 1;
}

.ow-copy-link-btn.is-copied::after {
    content: 'Copied!';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #111111;
    color: #FFFFFF;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    line-height: 120%;
    white-space: nowrap;
    pointer-events: none;
}

/* Slightly scale the AI icons up to match design */
.ow-action-icon-btn.ai-btn svg {
    transition: transform 0.2s ease;
}

.ow-action-icon-btn.ai-btn:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 640px) {
    .ow-single-action-block {
        gap: 20px;
    }
    
    .ow-action-row {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   4. FAQ ACCORDION SECTION (#E2DFF8 Chamfered Cards)
   ========================================================================== */

.ow-single-faq-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
}

.ow-single-faq-header {
    padding: 12px 0;
    width: 100%;
}

.ow-single-faq-title {
    font-family: 'Aspekta-500', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 35.2px;
    letter-spacing: -0.64px;
    color: #111111;
    margin: 0;
}

.ow-single-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Individual FAQ Card with Top-Left & Bottom-Right 20px Chamfer */
.ow-single-faq-item {
    width: 100%;
    background-color: #E2DFF8;
    padding: 20px 28px;
    box-sizing: border-box;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.ow-single-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.ow-single-faq-summary::-webkit-details-marker {
    display: none;
}

.ow-single-faq-q {
    font-family: 'Inter-Medium', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #111111;
}

.ow-single-faq-item[open] .ow-single-faq-q {
    font-family: 'Aspekta-500', 'Aspekta', sans-serif;
}

.ow-single-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ow-single-faq-item .icon-close {
    display: none;
}

.ow-single-faq-item[open] .icon-plus {
    display: none;
}

.ow-single-faq-item[open] .icon-close {
    display: block;
}

.ow-single-faq-a {
    margin-top: 16px;
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(17, 17, 17, 0.75);
}

.ow-single-faq-a p {
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 775px) {
    .ow-single-article-card {
        padding: 16px;
    }

    .ow-single-title {
        font-size: clamp(32px, 7vw, 48px);
        line-height: 1.15;
    }

    .ow-single-prose h2,
    .ow-single-prose h3,
    .ow-single-faq-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .ow-single-insight-top {
        flex-direction: column;
    }

    .ow-single-faq-item {
        padding: 18px 20px;
    }

    .ow-single-faq-q {
        font-size: 18px;
    }
}

/* ==========================================================================
   Contact form on the single blog page: lavender section background.
   Uses the same shared partial, ACF fields and form styles as every other page; only the
   section background differs. The form card is already #DBD5FF, so it blends into the section.
   The selector is two classes deep so it also wins over the tablet rule (.contact-section, #FDFFF6).
   ========================================================================== */
.ow-single-blog-master .contact-section {
    background-color: #DBD5FF;
}
