/* ═══════════════════════════════════════════════════════
   EOW SEO Blog — Stylesheet v1.0.0
   Conform Aizy SEO template specifications
   ═══════════════════════════════════════════════════════ */

:root {
    --eohw-primary: #001945;
    --eohw-accent: #0073e6;
    --eohw-text: #1a1a1a;
    --eohw-text-light: #555;
    --eohw-bg: #ffffff;
    --eohw-bg-light: #f7f9fc;
    --eohw-border: #e2e8f0;
    --eohw-max-width: 1200px;
    --eohw-content-width: 740px;
    --eohw-sidebar-width: 280px;
    --eohw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --eohw-radius: 8px;
}

/* ─── Reset for our template area ─── */
.eohw-blog-main {
    font-family: var(--eohw-font);
    color: var(--eohw-text);
    line-height: 1.7;
    font-size: 17px;
    background: var(--eohw-bg);
    -webkit-font-smoothing: antialiased;
}

.eohw-blog-main *,
.eohw-blog-main *::before,
.eohw-blog-main *::after {
    box-sizing: border-box;
}

.eohw-container {
    max-width: var(--eohw-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════ */
.eohw-breadcrumb-wrapper {
    padding: 16px 0 0;
}

.eohw-breadcrumb {
    font-size: 14px;
    color: var(--eohw-text-light);
}

.eohw-breadcrumb a {
    color: var(--eohw-accent);
    text-decoration: none;
}

.eohw-breadcrumb a:hover {
    text-decoration: underline;
}

.eohw-breadcrumb .breadcrumb_last {
    color: var(--eohw-text-light);
}

/* ═══════════════════════════════════════════════════════
   HEADER: H1 + META
   ═══════════════════════════════════════════════════════ */
.eohw-article__header {
    padding: 24px 0 16px;
}

.eohw-article__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--eohw-primary);
    margin: 0 0 20px;
    padding: 0;
}

/* Meta data */
.eohw-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.eohw-meta__author-photo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.eohw-meta__info {
    font-size: 14px;
    line-height: 1.5;
}

.eohw-meta__author,
.eohw-meta__dates {
    margin: 0;
    color: var(--eohw-text-light);
}

.eohw-meta__author a,
.eohw-meta__category {
    color: var(--eohw-accent);
    text-decoration: none;
    font-weight: 600;
}

.eohw-meta__author a:hover,
.eohw-meta__category:hover {
    text-decoration: underline;
}

.eohw-meta__sep {
    margin: 0 4px;
    color: #ccc;
}

.eohw-meta__reading-time {
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   FEATURED IMAGE
   ═══════════════════════════════════════════════════════ */
.eohw-article__featured-image {
    padding: 0 0 24px;
}

.eohw-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--eohw-radius);
    display: block;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT: SIDEBAR + BODY CONTENT
   ═══════════════════════════════════════════════════════ */
.eohw-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.eohw-sidebar {
    width: var(--eohw-sidebar-width);
    flex-shrink: 0;
    order: -1;
}

.eohw-sidebar__sticky {
    position: sticky;
    top: 100px;
}

.eohw-article__body {
    flex: 1;
    min-width: 0;
    max-width: var(--eohw-content-width);
}

.eohw-article__body--full {
    max-width: 100%;
}

/* TOC mobile: hidden on desktop */
.eohw-toc-mobile {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════════════════════ */
.eohw-toc {
    background: var(--eohw-bg-light);
    border: 1px solid var(--eohw-border);
    border-radius: var(--eohw-radius);
    padding: 20px 24px;
}

.eohw-toc__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    padding: 0;
    color: var(--eohw-primary);
}

.eohw-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eohw-toc__list li {
    margin: 0;
    padding: 0;
}

.eohw-toc__list li p {
    margin: 0;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: border-color 0.2s;
}

.eohw-toc__list li p a {
    color: var(--eohw-text);
    text-decoration: none;
}

.eohw-toc__list li p a:hover {
    color: var(--eohw-accent);
}

.eohw-toc__list li.eohw-toc__item--sub p {
    padding-left: 28px;
    font-size: 13px;
}

/* Active state (set via JS) */
.eohw-toc__list li.eohw-toc--active p {
    border-left-color: var(--eohw-accent);
}

.eohw-toc__list li.eohw-toc--active p a {
    color: var(--eohw-accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   BODY CONTENT — HTML ELEMENT STYLING (Aizy spec)
   ═══════════════════════════════════════════════════════ */
.eohw-content p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 1.25em;
    padding: 0;
    color: var(--eohw-text);
}

.eohw-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2em 0 0.75em;
    padding: 0;
    color: var(--eohw-primary);
}

.eohw-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.75em 0 0.6em;
    padding: 0;
    color: var(--eohw-primary);
}

.eohw-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 1.5em 0 0.5em;
    padding: 0;
    color: var(--eohw-primary);
}

.eohw-content h5,
.eohw-content h6 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 1.25em 0 0.5em;
    padding: 0;
    color: var(--eohw-primary);
}

/* Links: distinct color from body text */
.eohw-content a {
    color: var(--eohw-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eohw-content a:hover {
    color: var(--eohw-primary);
}

/* Lists with proper spacing */
.eohw-content ul,
.eohw-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.75em;
}

.eohw-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.eohw-content ul li {
    list-style-type: disc;
}

.eohw-content ol li {
    list-style-type: decimal;
}

/* Bold & italic */
.eohw-content strong,
.eohw-content b {
    font-weight: 700;
}

.eohw-content em,
.eohw-content i {
    font-style: italic;
}

/* Blockquote */
.eohw-content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--eohw-accent);
    background: var(--eohw-bg-light);
    border-radius: 0 var(--eohw-radius) var(--eohw-radius) 0;
    font-style: italic;
    color: var(--eohw-text-light);
}

.eohw-content blockquote p:last-child {
    margin-bottom: 0;
}

.eohw-content cite {
    font-size: 14px;
    color: var(--eohw-text-light);
    font-style: normal;
}

/* Tables: responsive */
.eohw-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
    overflow-x: auto;
    display: block;
}

.eohw-content thead th {
    background: var(--eohw-primary);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
}

.eohw-content tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--eohw-border);
}

.eohw-content tbody tr:nth-child(even) {
    background: var(--eohw-bg-light);
}

/* Images in content */
.eohw-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--eohw-radius);
}

/* ═══════════════════════════════════════════════════════
   CTA ELEMENTS
   ═══════════════════════════════════════════════════════ */

/* Full-width banner CTA (shortcode) */
.eohw-cta-banner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    border-radius: var(--eohw-radius);
    margin: 2em 0;
    overflow: hidden;
}

.eohw-cta-banner__image {
    flex-shrink: 0;
    width: 200px;
}

.eohw-cta-banner__image img {
    width: 100%;
    height: auto;
    border-radius: var(--eohw-radius);
}

.eohw-cta-banner__content {
    flex: 1;
}

.eohw-cta-banner__heading {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}

.eohw-cta-banner__text {
    margin: 0 0 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.eohw-cta-banner__button {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--eohw-primary);
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.eohw-cta-banner__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Card CTA (shortcode) */
.eohw-cta-card {
    display: flex;
    gap: 24px;
    border: 2px solid var(--eohw-border);
    border-radius: var(--eohw-radius);
    padding: 24px;
    margin: 2em 0;
    background: var(--eohw-bg-light);
}

.eohw-cta-card__image {
    flex-shrink: 0;
    width: 160px;
}

.eohw-cta-card__image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.eohw-cta-card__content {
    flex: 1;
}

.eohw-cta-card__heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--eohw-primary);
}

.eohw-cta-card__text {
    margin: 0 0 16px;
    color: var(--eohw-text-light);
    line-height: 1.6;
}

.eohw-cta-card__button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--eohw-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.eohw-cta-card__button:hover {
    background: var(--eohw-accent);
}

/* Bottom CTA button (hardcoded) */
.eohw-bottom-cta {
    margin: 2em 0;
    text-align: center;
}

.eohw-bottom-cta__button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--eohw-primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.eohw-bottom-cta__button:hover {
    background: var(--eohw-accent);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   SOCIAL SHARE
   ═══════════════════════════════════════════════════════ */
.eohw-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--eohw-border);
    border-bottom: 1px solid var(--eohw-border);
    margin: 0 0 2em;
}

.eohw-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--eohw-text-light);
    white-space: nowrap;
}

.eohw-share__icons {
    display: flex;
    gap: 8px;
}

.eohw-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--eohw-bg-light);
    color: var(--eohw-text-light);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.eohw-share__icon:hover {
    background: var(--eohw-primary);
    color: #fff;
}

.eohw-share__icon--whatsapp:hover { background: #25d366; }
.eohw-share__icon--facebook:hover { background: #1877f2; }
.eohw-share__icon--linkedin:hover { background: #0a66c2; }

/* ═══════════════════════════════════════════════════════
   AUTHOR BOX
   ═══════════════════════════════════════════════════════ */
.eohw-author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--eohw-bg-light);
    border: 1px solid var(--eohw-border);
    border-radius: var(--eohw-radius);
    margin: 2.5em 0;
}

.eohw-author-box__photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.eohw-author-box__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    padding: 0;
}

.eohw-author-box__name a {
    color: var(--eohw-primary);
    text-decoration: none;
}

.eohw-author-box__name a:hover {
    color: var(--eohw-accent);
}

.eohw-author-box__function {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eohw-accent);
    margin: 0 0 8px;
    padding: 0;
}

.eohw-author-box__bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--eohw-text-light);
    margin: 0 0 12px;
}

.eohw-author-box__social {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.eohw-author-box__social a {
    color: var(--eohw-text-light);
    transition: color 0.2s;
}

.eohw-author-box__social a:hover {
    color: var(--eohw-accent);
}

.eohw-author-box__more {
    font-size: 14px;
    font-weight: 600;
    color: var(--eohw-accent);
    text-decoration: none;
}

.eohw-author-box__more:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════ */
.eohw-related-posts {
    padding: 3em 0;
    border-top: 1px solid var(--eohw-border);
}

.eohw-related-posts__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eohw-primary);
    margin: 0 0 24px;
    padding: 0;
}

.eohw-related-posts__slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.eohw-post-card {
    border: 1px solid var(--eohw-border);
    border-radius: var(--eohw-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: var(--eohw-bg);
}

.eohw-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.eohw-post-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.eohw-post-card__content {
    padding: 16px;
}

.eohw-post-card__category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--eohw-accent);
    letter-spacing: 0.5px;
}

.eohw-post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 8px 0;
}

.eohw-post-card__title a {
    color: var(--eohw-primary);
    text-decoration: none;
}

.eohw-post-card__title a:hover {
    color: var(--eohw-accent);
}

.eohw-post-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--eohw-text-light);
    margin: 0 0 12px;
}

.eohw-post-card__footer {
    font-size: 12px;
    color: var(--eohw-text-light);
    margin-bottom: 8px;
}

.eohw-post-card__sep {
    margin: 0 4px;
}

.eohw-post-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--eohw-accent);
    text-decoration: none;
}

.eohw-post-card__link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════════════════ */
.eohw-comments {
    padding: 2em 0 3em;
    border-top: 1px solid var(--eohw-border);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .eohw-related-posts__slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .eohw-article__title {
        font-size: 1.75rem;
    }

    .eohw-content h2 {
        font-size: 1.375rem;
    }

    .eohw-content h3 {
        font-size: 1.15rem;
    }

    /* Stack layout: hide sidebar TOC, show mobile TOC */
    .eohw-layout {
        flex-direction: column;
        gap: 0;
    }

    .eohw-sidebar {
        display: none;
    }

    .eohw-toc-mobile {
        display: block;
        margin-bottom: 2em;
    }

    .eohw-article__body {
        max-width: 100%;
    }

    /* CTA banner stacks */
    .eohw-cta-banner {
        flex-direction: column;
        padding: 24px;
    }

    .eohw-cta-banner__image {
        width: 100%;
    }

    /* CTA card stacks */
    .eohw-cta-card {
        flex-direction: column;
    }

    .eohw-cta-card__image {
        width: 100%;
    }

    /* Author box stacks */
    .eohw-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .eohw-author-box__social {
        justify-content: center;
    }

    /* Related posts: horizontal scroll slider */
    .eohw-related-posts__slider {
        grid-template-columns: none;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
    }

    .eohw-post-card {
        min-width: 280px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Share icons wrap */
    .eohw-share {
        flex-wrap: wrap;
    }

    /* Featured image full bleed */
    .eohw-featured-img {
        border-radius: 0;
    }

    .eohw-container {
        padding: 0 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .eohw-article__title {
        font-size: 1.5rem;
    }

    .eohw-blog-main {
        font-size: 16px;
    }

    .eohw-content p {
        font-size: 16px;
    }

    .eohw-post-card {
        min-width: 260px;
    }
}

/* Fix: Divi sticky header z-index conflict */
/* Divi custom CSS zet #main-content op z-index:9999 wat de sticky header bedekt */
.single-post #main-content {
    z-index: 1 !important;
}

.single-post #main-header,
.single-post #top-header {
    z-index: 99999 !important;
}

/* Force sticky header on blog posts - Divi's JS adds et-fixed-header but needs help on custom templates */
.single-post.et_fixed_nav #top-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
}

.single-post.et_fixed_nav #main-header {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99998 !important;
    width: 100% !important;
}

/* Compensate for fixed header height so content doesn't hide behind it */
.single-post.et_fixed_nav #main-content {
    padding-top: 120px !important;
}

@media (max-width: 980px) {
    .single-post.et_fixed_nav #main-content {
        padding-top: 80px !important;
    }
}
