/* ==========================================================================
   DC Blog Showcase — featured "window" card + satellite stories,
   connected by dashed wires (inspired by design/hero-banner.png)
   ========================================================================== */

.dcbs {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 60px);
    background:
        radial-gradient(680px 440px at 90% 4%, rgba(0, 119, 204, 0.07), transparent 65%),
        var(--dc-bg);
    font-family: var(--dc-font-body);
}

.dcbs__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.dcbs__orb--a {
    width: 360px; height: 360px;
    top: -140px; right: -90px;
    background: radial-gradient(circle, rgba(0, 119, 204, 0.16), transparent 70%);
}
.dcbs__orb--b {
    width: 320px; height: 320px;
    bottom: -150px; left: -110px;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.13), transparent 70%);
}

.dcbs__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---- Board: featured + satellite rows ---------------------------------- */
.dcbs__board {
    position: relative;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: clamp(22px, 3vw, 46px);
    margin-top: 8px;
}

/* decorative dashed connectors */
.dcbs__wires {
    position: absolute;
    inset: -4% -2%;
    width: 104%;
    height: 108%;
    z-index: 0;
    pointer-events: none;
}
.dcbs__wires path {
    fill: none;
    stroke: rgba(0, 85, 157, 0.3);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 9;
    animation: dcbs-flow 1.4s linear infinite;
}
.dcbs__wires path:nth-child(2) { animation-duration: 1.9s; }
.dcbs__wires path:nth-child(3) { animation-duration: 2.4s; }

.dcbs__dot {
    position: absolute;
    z-index: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dc-primary-2);
    box-shadow: 0 0 0 5px rgba(0, 119, 204, 0.14);
    animation: dcbs-pulse 3s ease-in-out infinite;
}
.dcbs__dot--1 { top: 12%; left: 58%; }
.dcbs__dot--2 { top: 60%; left: 50%; background: var(--dc-accent); box-shadow: 0 0 0 5px rgba(0, 191, 166, 0.16); animation-delay: -1s; }
.dcbs__dot--3 { bottom: 14%; left: 61%; animation-delay: -2s; }

/* ---- Featured "window" card -------------------------------------------- */
.dcbs__feature {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius-lg);
    overflow: hidden;
    box-shadow: var(--dc-shadow-md);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}
.dcbs__feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--dc-shadow-lg);
}

.dcbs__winbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: var(--dc-bg-2);
    border-bottom: 1px solid var(--dc-line);
}
.dcbs__winbar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dcbs__winbar span:nth-child(1) { background: var(--dc-accent); }
.dcbs__winbar span:nth-child(2) { background: var(--dc-accent-2); }
.dcbs__winbar span:nth-child(3) { background: var(--dc-primary-2); }

.dcbs__feature-media {
    position: relative;
    display: block;
    overflow: hidden;
}
.dcbs__feature-img {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--dc-bg-2);
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dcbs__feature:hover .dcbs__feature-img { transform: scale(1.05); }

.dcbs__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--dc-primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dcbs__feature-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(20px, 2.4vw, 30px);
}
.dcbs__meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dc-muted);
}
.dcbs__meta svg { width: 15px; height: 15px; }
.dcbs__feature-title {
    margin: 0;
    font-family: var(--dc-font-display);
    font-size: clamp(20px, 1.9vw, 27px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
}
.dcbs__feature-title a { color: var(--dc-ink); text-decoration: none; transition: color 0.2s ease; }
.dcbs__feature-title a:hover { color: var(--dc-primary); }
.dcbs__feature-excerpt {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--dc-ink-soft);
}
.dcbs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dc-primary);
    text-decoration: none;
    margin-top: 2px;
}
.dcbs__link svg { width: 17px; height: 17px; transition: transform 0.3s ease; }
.dcbs__link:hover svg { transform: translateX(5px); }

/* ---- Satellite story rows ---------------------------------------------- */
.dcbs__rows {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.6vw, 20px);
}
.dcbs__row {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius-md);
    box-shadow: var(--dc-shadow-sm);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.dcbs__row:hover {
    transform: translateX(6px);
    box-shadow: var(--dc-shadow-md);
}
.dcbs__row-thumb {
    flex-shrink: 0;
    width: clamp(84px, 9vw, 104px);
    align-self: stretch;
    border-radius: var(--dc-radius-sm);
    overflow: hidden;
    display: block;
}
.dcbs__row-thumb span {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 78px;
    background-color: var(--dc-bg-2);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dcbs__row:hover .dcbs__row-thumb span { transform: scale(1.08); }
.dcbs__row-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 6px 4px 0;
    min-width: 0;
}
.dcbs__row-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.dcbs__row-title a { color: var(--dc-ink); text-decoration: none; transition: color 0.2s ease; }
.dcbs__row-title a:hover { color: var(--dc-primary); }
.dcbs__row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dc-primary);
    text-decoration: none;
}
.dcbs__row-link svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.dcbs__row:hover .dcbs__row-link svg { transform: translateX(4px); }

/* ---- CTA ---------------------------------------------------------------- */
.dcbs__cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(34px, 4vw, 52px);
}
.dcbs__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-primary-2));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(0, 85, 157, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dcbs__cta svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.dcbs__cta:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0, 85, 157, 0.95); }
.dcbs__cta:hover svg { transform: translateX(5px); }

/* ---- Motion ------------------------------------------------------------- */
@keyframes dcbs-flow { to { stroke-dashoffset: -22; } }
@keyframes dcbs-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.35); opacity: 1; }
}

.dcbs[data-dcbs-armed] .dcbs__feature,
.dcbs[data-dcbs-armed] .dcbs__row {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--dcbs-i, 0) * 0.12s);
}
.dcbs[data-dcbs-armed].is-in .dcbs__feature,
.dcbs[data-dcbs-armed].is-in .dcbs__row {
    opacity: 1;
    transform: none;
}
.dcbs[data-dcbs-armed] .dcbs__wires,
.dcbs[data-dcbs-armed] .dcbs__dot {
    opacity: 0;
    transition: opacity 0.8s ease 0.4s;
}
.dcbs[data-dcbs-armed].is-in .dcbs__wires,
.dcbs[data-dcbs-armed].is-in .dcbs__dot { opacity: 1; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
    .dcbs__board { grid-template-columns: 1fr; }
    .dcbs__wires { display: none; }
    .dcbs__dot { display: none; }
    .dcbs__rows { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .dcbs__rows { grid-template-columns: 1fr; }
    .dcbs__feature-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .dcbs *, .dcbs *::before, .dcbs *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .dcbs[data-dcbs-armed] .dcbs__feature,
    .dcbs[data-dcbs-armed] .dcbs__row,
    .dcbs[data-dcbs-armed] .dcbs__wires,
    .dcbs[data-dcbs-armed] .dcbs__dot { opacity: 1; transform: none; }
}
