/* Sorov Source / Downloads Behance Style */

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

.bhs-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,216,140,.11), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(0,216,140,.07), transparent 32%),
        var(--bhs-bg);
    color: var(--bhs-white);
}

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

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

.bhs-page h1,
.bhs-page h2,
.bhs-page h3 {
    font-weight: 720;
    letter-spacing: -.8px;
}

.bhs-page p {
    color: var(--bhs-muted);
    line-height: 1.72;
    font-size: 16px;
}

.bhs-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s ease;
}

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

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

/* Source index hero */
.bhs-hero {
    padding: 76px 0 34px;
}

.bhs-hero-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 18px;
}

.bhs-hero h1 {
    max-width: 820px;
    font-size: clamp(42px, 5.7vw, 72px);
    line-height: 1.02;
}

.bhs-hero p {
    max-width: 740px;
    margin-top: 14px;
    font-size: 17px;
}

.bhs-count-card {
    min-width: 180px;
    padding: 20px;
    border-radius: 22px;
    background: var(--bhs-surface);
    border: 1px solid var(--bhs-border);
}

.bhs-count-card strong {
    display: block;
    color: var(--bhs-green);
    font-size: 38px;
    line-height: 1;
}

.bhs-count-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
}

/* Filter */
.bhs-filter-section {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 0 18px;
    background: rgba(11,15,20,.86);
    border-top: 1px solid rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(255,255,255,.075);
    backdrop-filter: blur(16px);
}

.bhs-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 190px 170px auto;
    gap: 12px;
    align-items: center;
}

.bhs-search-box {
    position: relative;
}

.bhs-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bhs-muted);
}

.bhs-search-box input,
.bhs-filter-bar select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--bhs-border);
    background: rgba(255,255,255,.05);
    color: #fff;
    outline: none;
}

.bhs-search-box input {
    padding-left: 42px;
}

.bhs-filter-bar select option {
    background: #101820;
    color: #fff;
}

.bhs-filter-bar button {
    height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: var(--bhs-green);
    color: #06120d;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bhs-category-pills {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-top: 12px;
    scrollbar-width: none;
}

.bhs-category-pills::-webkit-scrollbar {
    display: none;
}

.bhs-category-pills a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--bhs-border);
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.bhs-category-pills a.active,
.bhs-category-pills a:hover {
    background: var(--bhs-green);
    color: #06120d;
    border-color: var(--bhs-green);
}

/* Cards */
.bhs-grid-section {
    padding: 38px 0 86px;
}

.bhs-grid,
.bhs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bhs-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--bhs-surface);
    border: 1px solid var(--bhs-border);
    transition: .24s ease;
}

.bhs-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,216,140,.30);
}

.bhs-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(255,255,255,.035);
}

.bhs-card-cover img,
.bhs-empty-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bhs-muted);
    transition: transform .5s ease;
}

.bhs-empty-cover {
    flex-direction: column;
    gap: 8px;
}

.bhs-empty-cover i {
    color: var(--bhs-green);
    font-size: 34px;
}

.bhs-card:hover .bhs-card-cover img {
    transform: scale(1.05);
}

.bhs-card-overlay {
    position: absolute;
    inset: 12px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 16px;
    border-radius: 16px;
    opacity: 0;
    background: linear-gradient(to top, rgba(0,0,0,.62), transparent 70%);
    color: #fff;
    transition: .25s ease;
}

.bhs-card:hover .bhs-card-overlay {
    opacity: 1;
}

.bhs-card-overlay span {
    font-weight: 750;
}

.bhs-card-body {
    padding: 16px;
}

.bhs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.bhs-card-tags span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 650;
}

.bhs-card-title {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 720;
    letter-spacing: -.35px;
}

.bhs-card-title:hover {
    color: var(--bhs-green);
}

.bhs-card-body p {
    margin-top: 9px;
    font-size: 14px;
}

.bhs-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: rgba(255,255,255,.56);
    font-size: 13px;
}

.bhs-card-footer div,
.bhs-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bhs-card-footer a {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.bhs-card-footer i {
    color: var(--bhs-green);
}

.bhs-empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: 24px;
    background: var(--bhs-surface);
    border: 1px solid var(--bhs-border);
}

.bhs-empty-state h2 {
    font-size: 28px;
}

.bhs-empty-state p {
    margin-top: 10px;
}

.bhs-pagination {
    text-align: center;
    margin-top: 42px;
}

.bhs-pagination nav {
    display: inline-flex;
}

.bhs-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 13px 18px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--bhs-border);
    text-decoration: none;
    font-weight: 700;
}

/* Detail page */
.bhs-detail-hero {
    padding: 72px 0 40px;
}

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

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

.bhs-detail-title {
    max-width: 930px;
    margin: 0 auto;
    text-align: center;
}

.bhs-detail-title h1 {
    margin-top: 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
}

.bhs-detail-title p {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 17px;
}

.bhs-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.bhs-main-download,
.bhs-copy-link,
.bhs-sidebar-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.bhs-main-download,
.bhs-sidebar-download {
    background: var(--bhs-green);
    color: #06120d;
}

.bhs-main-download:hover,
.bhs-sidebar-download:hover {
    color: #06120d;
    background: #00ef9b;
}

.bhs-copy-link {
    background: rgba(255,255,255,.045);
    color: #fff;
    border-color: var(--bhs-border);
    cursor: pointer;
}

.bhs-source-cover {
    overflow: hidden;
    margin-top: 40px;
    border-radius: 28px;
    border: 1px solid var(--bhs-border);
    background: rgba(255,255,255,.035);
}

.bhs-source-cover img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
    display: block;
}

.bhs-detail-body {
    padding: 48px 0 86px;
}

.bhs-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

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

.bhs-side-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--bhs-surface);
    border: 1px solid var(--bhs-border);
}

.bhs-side-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
}

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

.bhs-info-list small {
    display: block;
    color: var(--bhs-muted);
    margin-bottom: 5px;
}

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

.bhs-sidebar-download {
    width: 100%;
    margin-top: 22px;
}

.bhs-detail-content {
    min-width: 0;
}

.bhs-content-section {
    margin-bottom: 58px;
}

.bhs-content-section h2 {
    margin-top: 13px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.bhs-rich-text {
    margin-top: 18px;
    color: rgba(255,255,255,.74);
    line-height: 1.85;
    font-size: 17px;
}

.bhs-preview-image {
    overflow: hidden;
    margin: 28px 0 0;
    border-radius: 22px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.bhs-preview-image img {
    width: 100%;
    display: block;
    height: auto;
}

.bhs-related-section {
    padding: 70px 0 90px;
    background: rgba(255,255,255,.018);
    border-top: 1px solid rgba(255,255,255,.055);
}

.bhs-section-head {
    margin-bottom: 30px;
}

.bhs-section-head h2 {
    margin-top: 13px;
    font-size: clamp(32px, 4.5vw, 54px);
}

/* Header compact */
.navbar-brand img,
.logo img,
.site-logo img,
.header-logo img,
.custom-logo,
header img.logo {
    max-height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Responsive */
@media (max-width: 991px) {
    .bhs-hero-row,
    .bhs-detail-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .bhs-count-card {
        width: fit-content;
    }

    .bhs-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .bhs-filter-bar button {
        grid-column: 1 / -1;
    }

    .bhs-grid,
    .bhs-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bhs-detail-sidebar {
        position: static;
    }
}

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

    .bhs-hero {
        padding: 50px 0 28px;
    }

    .bhs-hero h1,
    .bhs-detail-title h1 {
        font-size: 38px;
        line-height: 1.12;
        letter-spacing: -.7px;
    }

    .bhs-hero p,
    .bhs-detail-title p {
        font-size: 15.5px;
    }

    .bhs-filter-section {
        position: relative;
        top: auto;
    }

    .bhs-filter-bar {
        grid-template-columns: 1fr;
    }

    .bhs-grid,
    .bhs-related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bhs-grid-section,
    .bhs-detail-body,
    .bhs-related-section {
        padding: 44px 0 62px;
    }

    .bhs-card-body {
        padding: 14px;
    }

    .bhs-card-title {
        font-size: 19px;
    }

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

    .bhs-detail-layout {
        gap: 26px;
    }

    .bhs-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bhs-main-download,
    .bhs-copy-link {
        width: 100%;
    }

    .navbar-brand img,
    .logo img,
    .site-logo img,
    .header-logo img,
    .custom-logo,
    header img.logo {
        max-height: 38px !important;
        max-width: 170px !important;
    }
}

@media (max-width: 390px) {
    .bhs-hero h1,
    .bhs-detail-title h1 {
        font-size: 34px;
    }
}
