/* EKO / Behance-inspired case study layout */

:root {
    --eko-bg: #0b0f14;
    --eko-surface: rgba(255,255,255,.045);
    --eko-border: rgba(255,255,255,.11);
    --eko-muted: rgba(255,255,255,.58);
    --eko-text: rgba(255,255,255,.84);
    --eko-green: #00d88c;
    --eko-white: #f7f8fa;
}

body {
    background: var(--eko-bg) !important;
}

.eko-case-page {
    min-height: 100vh;
    color: var(--eko-white);
    background:
        radial-gradient(circle at 10% 0%, rgba(0,216,140,.12), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(0,216,140,.08), transparent 30%),
        var(--eko-bg);
}

.eko-container {
    width: min(1180px, calc(100% - 42px));
    margin: 0 auto;
}

.eko-case-page h1,
.eko-case-page h2,
.eko-case-page h3,
.eko-case-page p {
    margin: 0;
}

.eko-case-page h1,
.eko-case-page h2,
.eko-case-page h3 {
    font-weight: 740;
    letter-spacing: -.9px;
}

.eko-case-page p {
    color: var(--eko-muted);
    line-height: 1.75;
}

.eko-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.eko-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eko-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--eko-green);
    background: rgba(0,216,140,.08);
    border: 1px solid rgba(0,216,140,.18);
    font-size: 13px;
    font-weight: 800;
}

.eko-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255,255,255,.68);
    text-decoration: none;
    font-weight: 700;
}

.eko-back-link:hover {
    color: var(--eko-green);
}

.eko-case-hero {
    padding: 72px 0 38px;
}

.eko-case-intro {
    max-width: 930px;
    margin: 0 auto;
    text-align: center;
}

.eko-case-intro h1 {
    margin-top: 18px;
    font-size: clamp(44px, 6.8vw, 86px);
    line-height: .98;
}

.eko-case-intro p {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 17px;
}

.eko-case-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.eko-case-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.045);
    border: 1px solid var(--eko-border);
    font-size: 13px;
    font-weight: 700;
}

.eko-case-meta i {
    color: var(--eko-green);
}

.eko-cover {
    overflow: hidden;
    margin: 42px 0 0;
    border-radius: 30px;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--eko-border);
}

.eko-cover img {
    width: 100%;
    max-height: 780px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.eko-case-main {
    padding: 52px 0 90px;
}

.eko-case-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.eko-sidebar {
    position: sticky;
    top: 92px;
}

.eko-side-card {
    padding: 22px;
    border-radius: 24px;
    background: var(--eko-surface);
    border: 1px solid var(--eko-border);
    backdrop-filter: blur(16px);
}

.eko-side-card h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.eko-info-list {
    display: grid;
    gap: 17px;
}

.eko-info-list small,
.eko-tools small {
    display: block;
    margin-bottom: 6px;
    color: var(--eko-muted);
    font-size: 13px;
}

.eko-info-list strong {
    display: block;
    color: #fff;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.eko-tools {
    margin-top: 22px;
}

.eko-tools div,
.eko-end-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eko-tools span,
.eko-end-tags span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    font-size: 12px;
    font-weight: 700;
}

.eko-side-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.eko-side-actions a,
.eko-side-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--eko-border);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.eko-content {
    min-width: 0;
}

.eko-overview,
.eko-gallery-section,
.eko-end {
    margin-bottom: 70px;
}

.eko-overview h2,
.eko-gallery-head h2,
.eko-end h2 {
    margin-top: 13px;
    font-size: clamp(32px, 4.8vw, 56px);
    line-height: 1.08;
}

.eko-rich-text {
    max-width: 850px;
    margin-top: 20px;
    color: rgba(255,255,255,.74);
    line-height: 1.9;
    font-size: 17px;
}

.eko-gallery {
    display: grid;
    gap: 26px;
    margin-top: 32px;
}

.eko-case-image {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.085);
}

.eko-case-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.eko-case-image figcaption {
    padding: 13px 16px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.eko-empty {
    padding: 34px;
    border-radius: 24px;
    background: var(--eko-surface);
    border: 1px solid var(--eko-border);
}

.eko-empty h3 {
    font-size: 24px;
}

.eko-empty p {
    margin-top: 8px;
}

.eko-end {
    text-align: center;
    padding: 46px 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0,216,140,.13), transparent 36%),
        var(--eko-surface);
    border: 1px solid rgba(0,216,140,.18);
}

.eko-end h2 {
    margin-top: 0;
}

.eko-end-tags {
    justify-content: center;
    margin-top: 20px;
}

.eko-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    margin-top: 24px;
    padding: 0 20px;
    border-radius: 14px;
    background: var(--eko-green);
    color: #06120d;
    text-decoration: none;
    font-weight: 850;
}

.eko-contact-btn:hover {
    color: #06120d;
    background: #00ef9b;
}

/* Make old Behance CSS less intrusive on this page */
.eko-case-page .bhx-case-hero,
.eko-case-page .bhx-case-body {
    display: none !important;
}

@media (max-width: 991px) {
    .eko-case-layout {
        grid-template-columns: 1fr;
    }

    .eko-sidebar {
        position: static;
        order: 2;
    }

    .eko-content {
        order: 1;
    }
}

@media (max-width: 767px) {
    .eko-container {
        width: min(100% - 30px, 1180px);
    }

    .eko-case-hero {
        padding: 48px 0 28px;
    }

    .eko-case-intro h1 {
        font-size: 38px;
        line-height: 1.1;
        letter-spacing: -.7px;
    }

    .eko-case-intro p,
    .eko-rich-text {
        font-size: 15.5px;
    }

    .eko-cover {
        margin-top: 28px;
        border-radius: 20px;
    }

    .eko-case-main {
        padding: 36px 0 66px;
    }

    .eko-overview,
    .eko-gallery-section,
    .eko-end {
        margin-bottom: 52px;
    }

    .eko-overview h2,
    .eko-gallery-head h2,
    .eko-end h2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .eko-gallery {
        gap: 18px;
        margin-top: 24px;
    }

    .eko-case-image {
        border-radius: 16px;
    }

    .eko-side-card {
        padding: 20px;
        border-radius: 20px;
    }

    .eko-end {
        padding: 30px 18px;
        border-radius: 22px;
    }
}

@media (max-width: 390px) {
    .eko-case-intro h1 {
        font-size: 34px;
    }

    .eko-overview h2,
    .eko-gallery-head h2,
    .eko-end h2 {
        font-size: 27px;
    }
}
