/* Post page: views/blog-detail/_bd-*.php; behaviour in assets/js/blog-detail.js. Shares .pd-*, .pj-*
   and .sd-* with project-detail.css, projects-page.css and service-detail.css. */

/* ---------- hero ---------- */
.bd-hero-wrap {
    margin-top: 40px;
}
.bd-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    padding: 38px 44px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(150deg, #0E0B26, #1C1747 55%, #241E58);
    box-shadow: 0 34px 70px -34px rgba(17, 14, 45, .8);
}
.bd-hero-aura {
    position: absolute;
    top: -15%;
    left: -5%;
    z-index: -1;
    width: 58%;
    height: 130%;
    background-position: center;
    background-size: cover;
    filter: blur(80px) saturate(1.7);
    opacity: .5;
}
[dir="ltr"] .bd-hero-aura {
    right: -5%;
    left: auto;
}
.bd-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #EE5D38;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: background-color .25s;
}
.bd-cat:hover {
    color: #fff;
    background: #FF6A43;
}
.bd-cat span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}
.bd-title {
    margin-top: 14px;
    font-size: 34px;
    line-height: 1.55;
}
.bd-intro {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 2.1;
    color: rgba(255, 255, 255, .68);
}
.bd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}
.bd-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bd-meta [hidden] {
    display: none;
}
.bd-meta b {
    font-weight: 700;
}
.bd-meta svg {
    color: #FF9A6B;
}
.bd-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.bd-share button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: 12.5px;
    color: #fff;
    transition: background-color .25s, border-color .25s;
}
.bd-share button:hover {
    border-color: #EE5D38;
    background: rgba(238, 93, 56, .25);
}
.bd-share button[aria-expanded="true"] {
    border-color: #EE5D38;
    background: #EE5D38;
}
.bd-nets {
    display: grid;
    flex-basis: 100%;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s;
}
.bd-nets.is-open {
    grid-template-rows: 1fr;
}
.bd-nets > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    min-height: 0;
    visibility: hidden;
    transition: visibility .3s;
}
.bd-nets.is-open > div {
    visibility: visible;
}
.bd-share .bd-net {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    transition: transform .2s, background-color .2s, border-color .2s;
}
.bd-net[hidden] {
    display: none !important;
}
.bd-nets.is-open .bd-net {
    animation: bdNetIn .3s calc(var(--i) * 35ms) backwards;
}
@keyframes bdNetIn {
    from { opacity: 0; transform: translateY(8px) scale(.85); }
}
.bd-share .bd-net:hover {
    border-color: transparent;
    background: #EE5D38;
    transform: translateY(-2px);
}
.bd-share .bd-net-telegram:hover { background: #229ED9; }
.bd-share .bd-net-whatsapp:hover { background: #25A244; }
.bd-share .bd-net-linkedin:hover { background: #0A66C2; }
.bd-share .bd-net-x:hover { background: #000; }
.bd-share .bd-net-facebook:hover { background: #1877F2; }
.bd-cover {
    position: relative;
    padding-bottom: 26px;
}
.bd-cover-frame {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 26px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .85);
    transform: rotate(-1.5deg);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.bd-cover:hover .bd-cover-frame {
    transform: rotate(0) scale(1.015);
}
.bd-cover-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 19px;
    object-fit: cover;
}
.bd-cover .pd-pad {
    --tint: 238, 93, 56;
}

/* ---------- in this post ---------- */
.bd-toc-wrap {
    margin-top: 28px;
}
.bd-map {
    padding: 24px 26px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 50px -36px rgba(17, 14, 45, .5);
}
.bd-map-title {
    font-size: 18px;
    color: #110E2D;
}
.bd-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.bd-map-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #EDF1F5;
    border-radius: 16px;
    background: #F8FAFC;
    color: #110E2D;
    transition: border-color .25s, background-color .25s, transform .25s;
}
.bd-map-list a:hover {
    border-color: rgba(238, 93, 56, .45);
    background: #fff;
    transform: translateY(-2px);
}
.bd-map-list span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: #110E2D;
    font-size: 12px;
    color: #fff;
    transition: background-color .25s;
}
.bd-map-list a:hover span {
    background: #EE5D38;
}
.bd-map-list em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-style: normal;
    line-height: 1.75;
}

.bd-map:not(.is-open) .bd-map-list li:nth-child(n+9) {
    display: none;
}
.bd-map-more {
    display: block;
    margin: 12px auto 0;
    padding: 7px 18px;
    border-radius: 999px;
    background: #F1F4F7;
    font-size: 13px;
    font-weight: 700;
    color: #110E2D;
    transition: background-color .25s, color .25s;
}
.bd-map-more:hover {
    color: #fff;
    background: #EE5D38;
}

/* ---------- the article ---------- */
.bd-main {
    min-width: 0;
}
.bd-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
.bd-focus-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #E3E8EF;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    color: #110E2D;
    transition: border-color .25s, color .25s, background-color .25s;
}
.bd-focus-btn:hover,
.bd-focus-btn[aria-pressed="true"] {
    border-color: #EE5D38;
    color: #EE5D38;
}
.sd-layout.bd-focus {
    grid-template-columns: minmax(0, 1fr);
}
.sd-layout.bd-focus .sd-aside {
    display: none;
}
.sd-layout.bd-focus .bd-main {
    width: min(820px, 100%);
    margin: 0 auto;
}
.sd-layout.bd-focus .sd-body {
    font-size: 17.5px;
    line-height: 2.3;
}
.sd-layout .sd-body img {
    cursor: zoom-in;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.sd-layout .sd-body img:hover {
    box-shadow: 0 24px 44px -26px rgba(17, 14, 45, .6);
    transform: scale(1.01);
}

/* the box for the service of the post's subject */
.bd-solution {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 22px;
    overflow: hidden;
    margin: 30px 0;
    padding: 24px 26px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(420px circle at 15% 50%, rgba(238, 93, 56, .3), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(150deg, #0E0B26, #1C1747 55%, #241E58);
}
.bd-solution:not(.is-inline) {
    margin: 28px 0 0;
}
.bd-solution-img {
    display: block;
}
.bd-solution-img img {
    display: block;
    width: 100%;
    max-height: 190px;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .4));
}
.bd-solution-label {
    margin: 0 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-align: start !important;
    color: #FF9A6B;
}
.bd-solution-title {
    margin: 4px 0 0 !important;
    font-size: 21px;
    line-height: 1.6;
    text-align: start !important;
    color: #fff;
}
.bd-solution-text {
    margin: 6px 0 0 !important;
    font-size: 14px;
    line-height: 2;
    text-align: start !important;
    color: rgba(255, 255, 255, .7);
}
.bd-solution .pj-actions {
    margin-top: 16px;
}
.sd-body .bd-solution a {
    color: #fff;
    text-decoration: none;
}
.bd-solution .pj-btn {
    height: 44px;
    padding: 0 18px;
    font-size: 13.5px;
}

/* questions */
.bd-faq {
    margin-top: 34px;
}
.bd-faq-title {
    margin-bottom: 14px;
    font-size: 24px;
    color: #110E2D;
}
.bd-q {
    margin-top: 10px;
    border: 1px solid #E8EDF3;
    border-radius: 20px;
    background: #fff;
    transition: border-color .3s, box-shadow .3s;
}
.bd-q[open] {
    border-color: rgba(238, 93, 56, .35);
    box-shadow: 0 20px 40px -30px rgba(238, 93, 56, .55);
}
.bd-q summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
.bd-q summary::-webkit-details-marker {
    display: none;
}
.bd-q-n {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #FDEEEA;
    font-size: 13px;
    color: #EE5D38;
}
.bd-q-t {
    flex: 1;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.8;
    color: #110E2D;
}
.bd-q-i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #110E2D;
    background: #F1F4F7;
    transition: transform .3s, background-color .3s, color .3s;
}
.bd-q[open] .bd-q-i {
    color: #fff;
    background: #EE5D38;
    transform: rotate(45deg);
}
.bd-q-a {
    padding: 0 18px 16px;
    padding-inline-start: 64px;
    font-size: 14.5px;
    line-height: 2.1;
    color: rgba(17, 14, 45, .72);
}

/* ---------- projects ---------- */
.bd-projects {
    margin-top: 56px;
}

/* ---------- comments ---------- */
.bd-comments {
    margin-top: 60px;
}
.bd-comments > section {
    margin-top: 0;
}

/* ---------- a large image ---------- */
.bd-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 5, 18, .92);
    cursor: zoom-out;
}
.bd-lb[hidden] {
    display: none;
}
.bd-lb img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.bd-lb-x {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: #EE5D38;
}

@media (max-width: 1023px) {
    .bd-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 22px;
    }
    .bd-cover {
        order: -1;
    }
    .bd-tools {
        display: none;
    }
}
@media (max-width: 639px) {
    .bd-hero-wrap {
        margin-top: 20px;
    }
    .bd-hero {
        padding: 20px 16px;
        border-radius: 24px;
    }
    .bd-title {
        font-size: 23px;
    }
    .bd-map {
        padding: 18px 14px;
        border-radius: 22px;
    }
    .bd-solution {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 16px;
    }
    .bd-q-a {
        padding-inline-start: 18px;
    }
    .bd-q-t {
        font-size: 14.5px;
    }
}
