/* =============================================================
   WOD Articles Widget — Stylesheet
   Mirrors the exact HTML prototype design
   ============================================================= */

/* ── Widget wrapper ──────────────────────────────────────────── */
.wod-articles-widget {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Section header ──────────────────────────────────────────── */
.wod-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.wod-section-header-left {
    flex: 1;
}

.wod-section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 8px;
}

.wod-section-sub {
    font-size: .88rem;
    color: #334155;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.wod-see-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 600;
    color: #4aa8d4;
    text-decoration: none;
    white-space: nowrap;
    transition: gap .2s;
}
.wod-see-all:hover { gap: 8px; color: #2d8bb8; }

/* ── Main layout: article list + ebook card ──────────────────── */
.wod-articles-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ── Article list ────────────────────────────────────────────── */
.wod-art-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;         /* controlled by Elementor slider */
    min-width: 0;
}

/* ── Individual article row ──────────────────────────────────── */
.wod-art-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Number */
.wod-art-num {
    font-size: .72rem;
    font-weight: 700;
    color: #cbd4de;          /* overridden by Elementor color control */
    min-width: 20px;
    padding-top: 4px;
    line-height: 1;
    flex-shrink: 0;
}

/* Thumbnail block */
.wod-art-thumb {
    width: 260px;            /* overridden by Elementor slider */
    height: 96px;            /* overridden by Elementor slider */
    min-width: 260px;
    border-radius: 12px;     /* overridden by Elementor slider */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.wod-art-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: inherit;
}

/* When showing a real image, no bg color bleed needed */
.wod-art-thumb--image {
    background-color: #f1f4f7 !important; /* neutral fallback while image loads */
}

.wod-art-thumb-icon {
    opacity: .75;
    flex-shrink: 0;
}

/* Text body */
.wod-art-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
}

.wod-art-tag {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity .2s;
}
.wod-art-tag:hover { opacity: .8; }

.wod-art-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 8px;
}

.wod-art-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.wod-art-title a:hover { color: #4aa8d4; }

.wod-art-meta {
    font-size: .78rem;
    color: #94a3b8;          /* overridden by Elementor color control */
    margin: 0;
}

.wod-no-posts {
    color: #94a3b8;
    font-size: .88rem;
}

/* ── Ebook card ──────────────────────────────────────────────── */
.wod-ebook-card {
    width: 38%;
    min-width: 260px;
    flex-shrink: 0;
    background-color: #0c2340;   /* overridden by Elementor */
    border-radius: 20px;          /* overridden by Elementor */
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-self: stretch;          /* full height */
    box-sizing: border-box;
}

.wod-ebook-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6ec1e4;              /* overridden by accent color control */
    margin-bottom: 16px;
}

.wod-ebook-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 20px;
    font-weight: 400;
}

.wod-ebook-title em {
    font-style: italic;
    color: #6ec1e4;              /* overridden by accent color control */
}

/* Feature list */
.wod-ebook-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.wod-ebook-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}

.wod-ebook-feature::before {
    content: '';
    display: inline-flex;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid #6ec1e4;   /* overridden by accent color control */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ec1e4' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 1px;
}

/* Download button */
.wod-ebook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #6ec1e4;   /* overridden by accent color control */
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 50px;
    margin-top: 28px;
    transition: background-color .2s, transform .15s;
}
.wod-ebook-btn:hover {
    background-color: #4aa8d4;
    transform: translateY(-1px);
    color: #ffffff;
}
.wod-ebook-btn svg {
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wod-articles-layout {
        flex-direction: column;
    }
    .wod-ebook-card {
        width: 100%;
        min-width: unset;
        align-self: auto;
    }
}

@media (max-width: 768px) {
    .wod-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wod-art-thumb {
        width: 120px !important;
        min-width: 120px !important;
        height: 80px !important;
    }
    .wod-art-row {
        gap: 12px;
    }
    .wod-ebook-card {
        padding: 24px 20px;
    }
    .wod-ebook-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 480px) {
    .wod-art-num { display: none; }
    .wod-art-thumb {
        width: 96px !important;
        min-width: 96px !important;
        height: 70px !important;
    }
}
