/* Bdevs Post Rows — Agntix-style list of the latest posts */
.bd-pr {
    --bd-pr-line: rgba(255, 255, 255, 0.1);
    --bd-pr-accent: #d4ff3f;
    --bd-pr-thumb: 300px;
    border-top: 1px solid var(--bd-pr-line);
    font-family: "Instrument Sans", system-ui, sans-serif;
}

.bd-pr .bd-pr-row {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr var(--bd-pr-thumb) 48px;
    align-items: center;
    gap: 32px;
    padding: 34px 8px;
    border-bottom: 1px solid var(--bd-pr-line);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr .bd-pr-row:hover {
    background: rgba(255, 255, 255, 0.025);
    padding-left: 20px;
}

.bd-pr-meta {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #a7a3b5;
}

.bd-pr-meta b {
    font-weight: 600;
    color: #f4f4f1;
}

.bd-pr-cat {
    justify-self: start;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 60px;
    background: rgba(212, 255, 63, 0.12);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bd-pr-accent);
}

.bd-pr-title {
    font-family: "Big Shoulders Display", "Oswald", sans-serif;
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 800;
    line-height: 1.02;
    text-transform: uppercase;
    color: #f4f4f1;
    transition: color 0.4s ease;
}

.bd-pr .bd-pr-row:hover .bd-pr-title {
    color: var(--bd-pr-accent);
}

/* thumbnail: always visible; zooms gently on hover */
.bd-pr-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    clip-path: inset(0 0 0 0 round 16px);
    transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1;
    transition: scale 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr .bd-pr-row:hover .bd-pr-thumb {
    clip-path: inset(0 0 0 0 round 16px);
}

.bd-pr .bd-pr-row:hover .bd-pr-thumb img {
    scale: 1.08;
}

.bd-pr-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--bd-pr-line);
    border-radius: 50%;
    font-size: 18px;
    color: #f4f4f1;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.bd-pr .bd-pr-row:hover .bd-pr-arrow {
    background: var(--bd-pr-accent);
    border-color: var(--bd-pr-accent);
    color: #070707;
    transform: rotate(45deg);
}

.bd-pr-empty {
    padding: 30px 0;
    color: #a7a3b5;
}

@media (hover: none), (max-width: 1024px) {
    .bd-pr-thumb {
        clip-path: inset(0 0 0 0 round 16px);
    }

    .bd-pr-thumb img {
        scale: 1;
    }
}

@media (max-width: 1024px) {
    .bd-pr .bd-pr-row {
        grid-template-columns: 180px 1fr 200px;
        gap: 24px;
    }

    .bd-pr-arrow {
        display: none;
    }
}

/* ---------- featured layout: one large post + a compact list (Agntix blog) */
.bd-pr.is-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
    align-items: stretch;
    border-top: 0;
}

.bd-pr.is-featured a {
    color: inherit;
    text-decoration: none;
}

/* the title underline that draws in on hover */
.bd-pr-line {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-feat:hover .bd-pr-line,
.bd-pr-mini:hover .bd-pr-line {
    background-size: 100% 1px;
}

.bd-pr-feat {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bd-pr-feat-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: 8px;
    border-radius: 24px;
    background: #121019;
}

/* a hairline edge so dark images still read as a card on the black page */
.bd-pr-feat-img::after,
.bd-pr-mini-img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.bd-pr-feat-img img,
.bd-pr-mini-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-feat:hover .bd-pr-feat-img img,
.bd-pr-mini:hover .bd-pr-mini-img img {
    scale: 1.06;
}

.bd-pr.is-featured .bd-pr-feat-img .bd-pr-cat {
    position: absolute;
    left: 20px;
    top: 20px;
    margin: 0;
    padding: 8px 14px;
    background: #D4FF3F;
    color: #070707;
}

.bd-pr.is-featured .bd-pr-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #8F8A9F;
}

.bd-pr.is-featured .bd-pr-title {
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #F4F4F1;
}

.bd-pr-feat .bd-pr-title {
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.2;
}

.bd-pr-ex {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.6;
    color: #A7A3B5;
}

.bd-pr-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bd-pr-accent);
}

.bd-pr-more i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bd-pr-accent);
    color: #070707;
    font-style: normal;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-feat:hover .bd-pr-more i {
    transform: rotate(45deg);
}

.bd-pr-side {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--bd-pr-line);
}

/* the list rows share the featured card's height, so both columns end on the same line */
.bd-pr-mini {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--bd-pr-line);
}

.bd-pr-mini-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    background: #121019;
}

.bd-pr-mini-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bd-pr.is-featured .bd-pr-mini .bd-pr-cat {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 11px;
}

.bd-pr-mini .bd-pr-title {
    font-size: 20px;
    line-height: 1.3;
}

.bd-pr.is-featured .bd-pr-mini .bd-pr-arrow {
    display: inline-flex;
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.bd-pr.is-featured .bd-pr-mini:hover .bd-pr-arrow {
    background: var(--bd-pr-accent);
    border-color: var(--bd-pr-accent);
    color: #070707;
    transform: rotate(45deg);
}

@media (max-width: 1024px) {
    .bd-pr.is-featured {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 767px) {
    .bd-pr-mini {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 16px;
        padding: 20px 0;
    }

    .bd-pr-mini-img {
        border-radius: 12px;
    }

    .bd-pr.is-featured .bd-pr-mini .bd-pr-arrow {
        display: none;
    }

    .bd-pr-mini .bd-pr-title {
        font-size: 17px;
    }

    .bd-pr-feat-img {
        border-radius: 18px;
    }
}

/* ---------- grid layout (Agntix creative blog): rounded image, "category | date", underlined title */
.bd-pr.is-grid {
    --bd-pr-cols: 3;
    --bd-pr-radius: 20px;
    display: grid;
    grid-template-columns: repeat(var(--bd-pr-cols), minmax(0, 1fr));
    gap: 48px 30px;
    border-top: 0;
}

.bd-pr-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.bd-pr-card:hover {
    color: inherit;
}

.bd-pr-card-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: 28px;
    border-radius: var(--bd-pr-radius);
    background: #121019;
    isolation: isolate;
}

.bd-pr-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.bd-pr-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: perspective(600px) rotateX(0deg) scale(1);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-card:hover .bd-pr-card-img img {
    transform: perspective(600px) rotateX(0.09deg) scale(1.1);
}

/* lime "Read ↗" badge that pops into the middle of the image */
.bd-pr-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 2px;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    background: var(--bd-pr-accent);
    color: #070707;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    scale: 0;
    transition: scale 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-badge b {
    font-weight: 700;
}

.bd-pr-badge i {
    font-size: 16px;
    font-style: normal;
}

.bd-pr-card:hover .bd-pr-badge {
    scale: 1;
}

.bd-pr.is-grid .bd-pr-meta {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
}

.bd-pr.is-grid .bd-pr-meta span + span {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.3);
}

.bd-pr.is-grid .bd-pr-meta .bd-pr-c {
    color: var(--bd-pr-accent);
}

.bd-pr.is-grid .bd-pr-title {
    display: block;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #f4f4f1;
}

/* Agntix tp-line: the underline draws in from the left and leaves to the right */
.bd-pr.is-grid .bd-pr-line {
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
    background-position: 100% 100%, 0 100%;
    background-size: 0% 1px, 0% 1px;
    transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr.is-grid .bd-pr-card:hover .bd-pr-line {
    background-size: 0% 1px, 100% 1px;
}

@media (hover: none) {
    .bd-pr-badge {
        display: none;
    }
}

@media (max-width: 767px) {
    .bd-pr.is-grid {
        gap: 44px;
    }

    .bd-pr-card-img {
        margin-bottom: 22px;
    }

    .bd-pr.is-grid .bd-pr-meta {
        margin-bottom: 14px;
        font-size: 13px;
    }
}

/* ---------- cards layout (clean grid: image, meta, title) */
.bd-pr.is-cards {
    --bd-pr-cols: 4;
    --bd-pr-card: #ffffff;
    display: grid;
    grid-template-columns: repeat(var(--bd-pr-cols), minmax(0, 1fr));
    gap: 24px;
    border-top: 0;
}

.bd-pr.is-cards .bd-pr-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 12px 12px 24px;
    border: 1px solid var(--bd-pr-line);
    border-radius: 24px;
    background: var(--bd-pr-card);
    box-shadow: 0 24px 60px -36px rgba(40, 20, 110, 0.35);
    transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.bd-pr.is-cards .bd-pr-row:hover {
    padding-left: 12px;
    background: var(--bd-pr-card);
    translate: 0 -6px;
    box-shadow: 0 34px 70px -34px rgba(40, 20, 110, 0.45);
}

.bd-pr.is-cards .bd-pr-thumb {
    order: -1;
    aspect-ratio: 16 / 11;
    border-radius: 16px;
    clip-path: inset(0 0 0 0 round 16px);
}

.bd-pr.is-cards .bd-pr-meta {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    font-size: 13px;
}

.bd-pr.is-cards .bd-pr-meta b {
    display: none;
}

.bd-pr.is-cards .bd-pr-cat {
    order: -1;
    margin-top: 0;
    padding: 5px 10px;
    font-size: 11px;
    background: color-mix(in srgb, var(--bd-pr-accent) 12%, transparent);
}

.bd-pr.is-cards .bd-pr-title {
    padding: 0 8px;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none;
}

.bd-pr.is-cards .bd-pr-arrow {
    display: inline-flex;
    width: 40px;
    height: 40px;
    margin: auto 8px 0;
    font-size: 15px;
    color: var(--bd-pr-accent);
}

.bd-pr.is-cards .bd-pr-row:hover .bd-pr-arrow {
    color: #ffffff;
    background: var(--bd-pr-accent);
    border-color: var(--bd-pr-accent);
}

@media (max-width: 1024px) {
    .bd-pr.is-cards .bd-pr-row {
        grid-template-columns: none;
    }
}

@media (max-width: 767px) {
    .bd-pr.is-cards .bd-pr-row,
    .bd-pr.is-cards .bd-pr-row:hover {
        padding: 10px 10px 20px;
    }

    .bd-pr .bd-pr-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 0;
    }

    .bd-pr .bd-pr-row:hover {
        padding-left: 0;
    }

    .bd-pr-thumb {
        order: -1;
    }

    .bd-pr-meta {
        grid-auto-flow: column;
        justify-content: start;
        align-items: center;
        gap: 12px;
    }

    .bd-pr-cat {
        margin-top: 0;
    }
}

/* ---------- grid extras: excerpt, byline row, big first card, topic tabs + search (journal page) */
.bd-pr-card[hidden] {
    display: none !important;
}

.bd-pr.is-grid .bd-pr-ex {
    display: -webkit-box;
    margin-top: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.58);
}

.bd-pr-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    font-size: 14px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
}

.bd-pr.is-grid .bd-pr-card .bd-pr-title + .bd-pr-foot,
.bd-pr.is-grid .bd-pr-card .bd-pr-ex + .bd-pr-foot {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--bd-pr-line);
}

.bd-pr-av {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(150deg, #a66cff, #6a3cf0);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bd-pr-foot b {
    font-weight: 600;
    color: #f4f4f1;
}

.bd-pr-foot em {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-style: normal;
    font-weight: 600;
    color: var(--bd-pr-accent);
}

.bd-pr-foot em i {
    font-style: normal;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-pr-card:hover .bd-pr-foot em i {
    transform: translateX(5px);
}

/* the grid cards stretch to the row height, so byline rows line up */
.bd-pr.is-grid .bd-pr-card {
    height: 100%;
}

/* big first card: two columns × two rows, picture fills the free height */
@media (min-width: 1025px) {
    .bd-pr.is-grid.has-lead .bd-pr-card.is-lead {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bd-pr.is-grid.has-lead .is-lead .bd-pr-card-img {
        flex: 1 1 auto;
        min-height: 380px;
        aspect-ratio: auto;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bd-pr.is-grid.has-lead .bd-pr-card.is-lead {
        grid-column: 1 / -1;
    }

    .bd-pr.is-grid.has-lead .is-lead .bd-pr-card-img {
        aspect-ratio: 16 / 9;
    }
}

.bd-pr.is-grid.has-lead .is-lead .bd-pr-title {
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.bd-pr.is-grid.has-lead .is-lead .bd-pr-ex {
    -webkit-line-clamp: 3;
    max-width: 640px;
    font-size: 17px;
}

.bd-pr.is-grid.has-lead .is-lead .bd-pr-badge {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    font-size: 16px;
}

/* topic tabs + search */
.bd-pr-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
    margin-bottom: 46px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--bd-pr-line, rgba(255, 255, 255, 0.1));
    font-family: "Instrument Sans", system-ui, sans-serif;
}

.bd-pr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bd-pr-filter .bd-pr-tab {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.02);
    color: #d9d5e4;
    font: 600 15px/1 "Instrument Sans", system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}

.bd-pr-filter .bd-pr-tab sup {
    top: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.6;
}

.bd-pr-filter .bd-pr-tab:hover,
.bd-pr-filter .bd-pr-tab:focus-visible {
    border-color: rgba(212, 255, 63, 0.6);
    background: rgba(212, 255, 63, 0.06);
    color: #fff;
}

.bd-pr-filter .bd-pr-tab.is-active {
    border-color: #d4ff3f;
    background: #d4ff3f;
    color: #070707;
}

.bd-pr-search {
    position: relative;
    display: block;
    flex: 0 1 300px;
    margin: 0;
}

.bd-pr-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.bd-pr-search input[type="search"] {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 20px 0 50px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.03);
    color: #f4f4f1;
    font: 500 15px/1 "Instrument Sans", system-ui, sans-serif;
    box-shadow: none;
    outline: 0;
    transition: border-color 0.3s, background-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.bd-pr-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.bd-pr-search input[type="search"]:focus {
    border-color: #d4ff3f;
    background: rgba(212, 255, 63, 0.04);
}

.bd-pr-none {
    margin: 10px 0 0;
    padding: 46px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    text-align: center;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 767px) {
    .bd-pr-filter {
        margin-bottom: 34px;
        padding-bottom: 20px;
    }

    .bd-pr-tabs {
        flex-wrap: nowrap;
        width: 100%;
        margin: 0 -18px;
        padding: 0 18px 4px;
        overflow-x: auto;
        scrollbar-width: none;
        width: calc(100% + 36px);
    }

    .bd-pr-tabs::-webkit-scrollbar {
        display: none;
    }

    .bd-pr-filter .bd-pr-tab {
        flex: 0 0 auto;
        padding: 11px 16px;
        font-size: 14px;
    }

    .bd-pr-search {
        flex: 1 1 100%;
    }

    .bd-pr.is-grid .bd-pr-ex {
        font-size: 15px;
    }
}
