/* =====================================================
   Body layout, post cards and sidebar widgets
   Laptop + mobile. Header and footer are not styled here.
   ===================================================== */

:root {
    --jd-red: #e4161c;
    --jd-dark: #111;
    --jd-text: #333;
    --jd-muted: #777;
    --jd-line: #ececec;
    --jd-card: #fff;
    --jd-soft: #f8f9fb;
    --jd-radius: 14px;
}

/* ---------- page width ---------- */
#wrapper > .container {
    width: auto;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

#wrapper img {
    max-width: 100%;
}

#wrapper iframe,
#wrapper video {
    max-width: 100%;
}

/* ---------- breadcrumb + page title ---------- */
#wrapper .page-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 18px 0 6px;
    font-size: 13px;
}

#wrapper .page-title {
    font-size: clamp(26px, 2.3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--jd-dark);
    margin: 4px 0 22px;
}

/* ---------- listing grid (category, tag, search, posts) ---------- */
#content > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#content > .row:before,
#content > .row:after {
    display: none;
}

#content > .row > .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

#content > .row > [class*="col-sm-6"] {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

/* ---------- post card (vertical list style) ---------- */
#content > .row > [class*="col-sm-6"] > .post-item {
    margin-bottom: 30px;
    background: transparent;
}

/* image box with fixed ratio, image never leaves the box */
#wrapper .post-item .post-item-image {
    position: relative;
    margin: 0 0 12px;
}

#wrapper .post-item .post-item-image a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
    border-radius: 10px;
}

#wrapper .post-item .post-item-image a > img.img-bg,
#wrapper .post-item .post-item-image a > img.img-responsive.img-bg {
    display: none;
}

#wrapper .post-item .post-item-image .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#wrapper .post-item .post-item-image img.img-cover,
#wrapper .post-item .post-item-image .img-container img,
#wrapper .post-item .post-item-image a > img.img-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

/* play / music icon for video and audio posts */
#wrapper .post-item .post-item-image .media-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
    pointer-events: none;
}

#wrapper .post-item .post-item-image .media-icon em {
    display: none;
}

/* title */
#wrapper .post-item h3.title {
    margin: 0 0 6px;
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.6;
}

#wrapper .post-item h3.title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--jd-dark);
}

#wrapper .post-item h3.title a:hover {
    color: var(--jd-red);
}

/* meta line */
#wrapper .post-item .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin: 0 0 8px;
    font-size: 12.5px;
    color: var(--jd-muted);
}

#wrapper .post-item .post-meta a {
    font-weight: 700;
    color: #444;
}

#wrapper .post-item .post-meta i {
    margin-right: 4px;
}

/* summary */
#wrapper .post-item .description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--jd-muted);
}

/* ---------- post card (horizontal list style) ---------- */
#wrapper .post-item-horizontal {
    display: flex;
    align-items: flex-start;
    margin: 0 0 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--jd-line);
}

#wrapper .post-item-horizontal:before,
#wrapper .post-item-horizontal:after {
    display: none;
}

#wrapper .post-item-horizontal > .item-image {
    flex: 0 0 38%;
    max-width: 38%;
    width: auto;
    float: none;
    min-width: 0;
}

#wrapper .post-item-horizontal > .item-content {
    flex: 1 1 0;
    width: auto;
    float: none;
    min-width: 0;
}

#wrapper .post-item-horizontal .post-item-image {
    position: relative;
    margin: 0;
}

#wrapper .post-item-horizontal .post-item-image a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
    border-radius: 10px;
}

#wrapper .post-item-horizontal .post-item-image a > img.img-bg {
    display: none;
}

#wrapper .post-item-horizontal .post-item-image .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#wrapper .post-item-horizontal .post-item-image img.img-cover,
#wrapper .post-item-horizontal .post-item-image .img-container img,
#wrapper .post-item-horizontal .post-item-image a > img.img-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

#wrapper .post-item-horizontal .post-item-image .media-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: clamp(36px, 3.4vw, 52px);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
    pointer-events: none;
}

#wrapper .post-item-horizontal .post-item-image .media-icon em {
    display: none;
}

#wrapper .post-item-horizontal h3.title {
    margin: 0 0 6px;
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.6;
}

#wrapper .post-item-horizontal h3.title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--jd-dark);
}

#wrapper .post-item-horizontal h3.title a:hover {
    color: var(--jd-red);
}

#wrapper .post-item-horizontal .small-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin: 0 0 8px;
    font-size: 12.5px;
    color: var(--jd-muted);
}

#wrapper .post-item-horizontal .small-post-meta a {
    font-weight: 700;
    color: #444;
}

#wrapper .post-item-horizontal .small-post-meta i {
    margin-right: 4px;
}

#wrapper .post-item-horizontal .description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--jd-muted);
}

/* ---------- pagination ---------- */
#wrapper ul.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

#wrapper ul.pagination > li {
    display: block;
    float: none;
}

#wrapper ul.pagination > li > a,
#wrapper ul.pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid var(--jd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--jd-dark);
    font-weight: 600;
}

#wrapper ul.pagination > li > a:hover {
    color: #fff;
}

/* =====================================================
   Sidebar widgets
   ===================================================== */
#sidebar .sidebar-widget {
    background: var(--jd-card);
    border: 1px solid var(--jd-line);
    border-radius: var(--jd-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    margin: 0 0 26px;
    overflow: hidden;
}

#sidebar .sidebar-widget .widget-head {
    background: var(--jd-soft);
    border: 0;
    border-bottom: 1px solid var(--jd-line);
    margin: 0;
    padding: 20px 18px 16px;
}

/* widget title: bar + red word + red tag + fading line */
#sidebar .sidebar-widget .widget-head .title {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--jd-red);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

#sidebar .sidebar-widget .widget-head .title:after {
    content: "";
    flex: 1 1 auto;
    min-width: 18px;
    height: 2px;
    margin-left: 6px;
    background: linear-gradient(90deg, var(--jd-red), rgba(228, 22, 28, 0));
}

#sidebar .sidebar-widget .widget-head .title .tt-first {
    display: inline-block;
    padding-left: 10px;
    border-left: 4px solid var(--jd-red);
    color: var(--jd-red);
}

#sidebar .sidebar-widget .widget-head .title .tt-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 18px 4px 10px;
    background: var(--jd-red);
    color: #fff;
    font-size: .62em;
    line-height: 1.4;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

#sidebar .sidebar-widget .widget-body {
    padding: 16px;
}

/* small thumbnail items used inside widgets */
#sidebar .post-item-small {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#sidebar .post-item-small .left {
    flex: 0 0 96px;
    width: 96px;
    float: none;
    margin: 0;
}

#sidebar .post-item-small .left a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eee;
    border-radius: 8px;
}

#sidebar .post-item-small .left a > img.img-bg {
    display: none;
}

#sidebar .post-item-small .left .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#sidebar .post-item-small .left img.img-cover,
#sidebar .post-item-small .left .img-container img,
#sidebar .post-item-small .left a > img.img-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

#sidebar .post-item-small .right {
    flex: 1 1 auto;
    min-width: 0;
    float: none;
    margin: 0;
    padding: 0;
    width: auto;
}

#sidebar .post-item-small .right .title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

#sidebar .post-item-small .right .title a {
    color: var(--jd-dark);
}

#sidebar .post-item-small .right .title a:hover {
    color: var(--jd-red);
}

#sidebar .small-post-meta {
    margin: 0;
    font-size: 12px;
    color: var(--jd-muted);
}

/* ---------- popular posts: numbered list ---------- */
#sidebar .widget-popular-posts .widget-body {
    padding: 0 18px 14px;
}

#sidebar .widget-popular-posts .nav-tabs {
    display: flex;
    margin: 0 0 6px;
    border-bottom: 1px solid var(--jd-line);
}

#sidebar .widget-popular-posts .nav-tabs > li {
    float: none;
    flex: 1 1 0;
    margin: 0;
    text-align: center;
}

#sidebar .widget-popular-posts .nav-tabs > li > a {
    display: block;
    margin: 0;
    padding: 12px 6px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    font-size: 13px;
    color: var(--jd-muted);
    cursor: pointer;
}

#sidebar .widget-popular-posts .nav-tabs > li.active > a,
#sidebar .widget-popular-posts .nav-tabs > li.active > a:hover,
#sidebar .widget-popular-posts .nav-tabs > li.active > a:focus {
    border: 0;
    border-bottom: 2px solid var(--jd-red);
    background: none;
    color: var(--jd-dark);
    font-weight: 700;
}

#sidebar .widget-popular-posts ul.popular-posts {
    counter-reset: pp;
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
}

#sidebar .widget-popular-posts ul.popular-posts > li {
    counter-increment: pp;
    position: relative;
    margin: 0;
    padding: 12px 0 12px 44px;
    border-bottom: 1px solid #f3f3f3;
}

#sidebar .widget-popular-posts ul.popular-posts > li:last-child {
    border-bottom: 0;
}

#sidebar .widget-popular-posts ul.popular-posts > li:before {
    content: counter(pp);
    position: absolute;
    left: 0;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--jd-dark);
}

#sidebar .widget-popular-posts ul.popular-posts > li:first-child:before {
    background: var(--jd-red);
    border-color: var(--jd-red);
    color: #fff;
}

#sidebar .widget-popular-posts ul.popular-posts > li:first-child .title a {
    color: var(--jd-red);
}

#sidebar .widget-popular-posts .post-item-small .left,
#sidebar .widget-popular-posts .post-item-small .small-post-meta {
    display: none;
}

/* ---------- recommended posts ---------- */
#sidebar .widget-body > ul.recommended-posts {
    margin: -16px;
    padding: 0;
    list-style: none;
}

#sidebar ul.recommended-posts > li {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f3f3;
}

#sidebar ul.recommended-posts > li:last-child {
    border-bottom: 0;
}

#sidebar ul.recommended-posts > li.recommended-posts-first {
    padding: 0;
    border-bottom: 0;
}

#sidebar ul.recommended-posts .recommended-posts-first .post-item-image a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

#sidebar ul.recommended-posts .recommended-posts-first .post-item-image a > img.img-bg {
    display: none;
}

#sidebar ul.recommended-posts .recommended-posts-first .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#sidebar ul.recommended-posts .recommended-posts-first img.img-cover,
#sidebar ul.recommended-posts .recommended-posts-first .img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* ---------- follow us: 2 x 2 buttons ---------- */
#sidebar .sidebar-widget .widget-body > ul.widget-follow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar ul.widget-follow > li {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

#sidebar ul.widget-follow > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 10px;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    background: var(--jd-soft) !important;
    color: var(--jd-dark) !important;
    font-size: 14px;
    font-weight: 700;
}

#sidebar ul.widget-follow > li > a i {
    position: static;
    margin: 0;
    font-size: 16px;
    color: inherit;
}

#sidebar ul.widget-follow > li > a:hover {
    background: #fff !important;
    border-color: var(--jd-red);
    color: var(--jd-red) !important;
}

/* ---------- tags: pills ---------- */
#sidebar .sidebar-widget .widget-body > ul.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar ul.tag-list > li {
    float: none;
    margin: 0;
    padding: 0;
}

#sidebar ul.tag-list > li > a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #cfdcf7;
    border-radius: 999px;
    background: #fff;
    color: #1a56db;
    font-size: 14px;
    line-height: 1.3;
}

/* ---------- custom html widget ---------- */
#sidebar .sidebar-widget .widget-body img {
    max-width: 100%;
    height: auto;
}

#sidebar .sidebar-widget .widget-body table {
    max-width: 100%;
}

#sidebar .sidebar-widget .widget-body {
    overflow-wrap: anywhere;
}

/* ---------- random slider ---------- */
#sidebar .random-slider-container {
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

#sidebar .random-slider .post-item .post-item-image a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

#sidebar .random-slider .post-item .post-item-image a > img.img-bg {
    display: none;
}

#sidebar .random-slider .post-item .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#sidebar .random-slider .post-item img.img-cover,
#sidebar .random-slider .post-item .img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* ---------- poll ---------- */
#sidebar .poll .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

#sidebar .poll .progress {
    border-radius: 999px;
    box-shadow: none;
}

/* =====================================================
   Image boxes: the box holds the ratio, the link fills it.
   Title and meta always start below the image.
   ===================================================== */
#wrapper .post-item .post-item-image,
#wrapper .post-item-horizontal .post-item-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    margin: 0 0 12px;
    padding: 0;
    overflow: hidden;
    background: #eee;
    border-radius: 10px;
}

#wrapper .post-item-horizontal .post-item-image {
    margin: 0;
}

#wrapper .post-item .post-item-image > a,
#wrapper .post-item-horizontal .post-item-image > a {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    display: block;
}

#wrapper .post-item h3.title,
#wrapper .post-item-horizontal h3.title {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    clear: both;
}

/* small thumbnails in widgets */
#sidebar .post-item-small .left {
    position: relative;
    height: auto !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eee;
    border-radius: 8px;
}

#sidebar .post-item-small .left > a {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

/* first recommended item and slider keep their own caption layout */
#sidebar ul.recommended-posts .recommended-posts-first .post-item-image,
#sidebar .random-slider .post-item .post-item-image {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #eee;
}

#sidebar ul.recommended-posts .recommended-posts-first .post-item-image > a,
#sidebar .random-slider .post-item .post-item-image > a {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

/* =====================================================
   Tablet
   ===================================================== */
@media (max-width: 991px) {
    #content > .row > [class*="col-sm-6"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 767px) {
    #wrapper > .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    #wrapper .page-title {
        margin-bottom: 16px;
    }

    #content > .row > [class*="col-sm-6"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* card look: white box, image on top, title below */
    #content > .row > [class*="col-sm-6"] > .post-item {
        margin-bottom: 18px;
        border: 1px solid var(--jd-line);
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    }

    #wrapper .post-item .post-item-image {
        margin: 0;
        border-radius: 0;
    }

    #wrapper .post-item .post-item-image a {
        border-radius: 0;
    }

    #wrapper .post-item h3.title {
        padding: 12px 14px 0;
        font-size: 19px;
    }

    #wrapper .post-item .post-meta {
        padding: 0 14px;
        margin-bottom: 12px;
    }

    #wrapper .post-item .description {
        display: none;
    }

    #wrapper .post-item .post-item-image .media-icon {
        font-size: 46px;
    }

    /* horizontal list: small picture on the left, title on the right */
    #wrapper .post-item-horizontal {
        align-items: center;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    #wrapper .post-item-horizontal > .item-image {
        flex: 0 0 40%;
        max-width: 40%;
        padding-left: 15px;
        padding-right: 8px;
    }

    #wrapper .post-item-horizontal > .item-content {
        padding-left: 8px;
        padding-right: 15px;
    }

    #wrapper .post-item-horizontal .post-item-image {
        aspect-ratio: 4 / 3;
    }

    #wrapper .post-item-horizontal h3.title {
        margin: 0;
        font-size: 16px;
        line-height: 1.55;
    }

    #wrapper .post-item-horizontal .small-post-meta,
    #wrapper .post-item-horizontal .description {
        display: none;
    }

    #wrapper .post-item-horizontal .post-item-image .media-icon {
        font-size: 32px;
    }

    #sidebar .sidebar-widget {
        margin-bottom: 20px;
    }

    #sidebar .sidebar-widget .widget-head {
        padding: 16px 14px 14px;
    }

    #sidebar .sidebar-widget .widget-body {
        padding: 14px;
    }

    #sidebar .widget-popular-posts .widget-body {
        padding: 0 14px 12px;
    }

    #sidebar .widget-body > ul.recommended-posts {
        margin: -14px;
    }
}


/* =====================================================
   Mobile bottom bar (built by theme-custom.js)
   ===================================================== */
.jd-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    body.has-bottom-nav {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    .jd-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 990;
        background: #fff;
        box-shadow: 0 -2px 14px rgba(0, 0, 0, .1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transition: transform .25s ease;
    }

    .jd-bottom-nav.is-hidden {
        transform: translateY(110%);
    }

    .jd-bottom-nav a {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 62px;
        padding: 0 2px;
        color: #222;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.1;
        text-align: center;
    }

    .jd-bottom-nav a svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .jd-bottom-nav a.active {
        color: var(--jd-red);
    }

    .jd-bottom-nav.is-dark {
        background: #1b1c22;
        box-shadow: 0 -2px 14px rgba(0, 0, 0, .5);
    }

    .jd-bottom-nav.is-dark a {
        color: #eee;
    }

    .jd-bottom-nav.is-dark a.active {
        color: var(--jd-red);
    }

    body.has-bottom-nav .scrollup {
        bottom: 84px !important;
    }
}

/* =====================================================
   Admin custom widgets: "more links" blocks
   ===================================================== */
#sidebar .sidebar-widget:has(.jd-more-pills),
#sidebar .sidebar-widget:has(.jd-link-list) {
    border: 0;
    box-shadow: none;
    background: none;
    overflow: visible;
}

#sidebar .sidebar-widget:has(.jd-more-pills) .widget-head,
#sidebar .sidebar-widget:has(.jd-link-list) .widget-head {
    display: none;
}

#sidebar .sidebar-widget:has(.jd-more-pills) .widget-body,
#sidebar .sidebar-widget:has(.jd-link-list) .widget-body {
    padding: 0;
}

.jd-more-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
}

.jd-more-pills .jd-more-label {
    font-size: 18px;
    color: #222;
}

.jd-more-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #d7e0f5;
    border-radius: 999px;
    background: #fff;
    color: #1a56db;
    font-size: 17px;
    line-height: 1.4;
}

.jd-more-pills a:before {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cline x1='7' y1='9' x2='17' y2='9'/%3E%3Cline x1='7' y1='13' x2='17' y2='13'/%3E%3C/svg%3E") center / contain no-repeat;
}

.jd-more-pills a:hover {
    border-color: var(--jd-red);
    color: var(--jd-red);
}

.jd-link-list {
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.jd-link-list .jd-link-title {
    display: block;
    margin: 0;
    padding: 14px 18px;
    background: #e9effb;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.jd-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid #eef0f4;
    color: #222;
    font-size: 17px;
}

.jd-link-list a:after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-top: 2px solid #888;
    transform: rotate(45deg);
}

.jd-link-list a:hover {
    color: var(--jd-red);
}


/* =====================================================
   Section headings (homepage blocks, latest posts)
   ===================================================== */
#content .section {
    margin-bottom: 34px;
}

#content .section .section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0;
    border: 0 !important;
    background: none;
}

#content .section .section-head .title {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none !important;
    border: 0;
    color: var(--jd-red);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

#content .section .section-head .title:after {
    content: "";
    flex: 1 1 auto;
    min-width: 18px;
    height: 2px;
    margin-left: 8px;
    background: linear-gradient(90deg, var(--jd-red), rgba(228, 22, 28, 0));
}

#content .section .section-head .title a {
    display: flex;
    align-items: center;
    color: var(--jd-red);
}

#content .section .section-head .title .tt-first {
    display: inline-block;
    padding-left: 10px;
    border-left: 4px solid var(--jd-red);
    color: var(--jd-red);
}

#content .section .section-head .title .tt-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 18px 4px 10px;
    background: var(--jd-red);
    color: #fff;
    font-size: .62em;
    line-height: 1.4;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

#content .section .section-head .a-view-all {
    flex: 0 0 auto;
    margin: 0;
    font-size: 14px;
    color: var(--jd-muted);
    white-space: nowrap;
}

#content .section .section-head .a-view-all:hover {
    color: var(--jd-red);
}

@media (max-width: 767px) {
    #content .section .section-head {
        margin-bottom: 14px;
        gap: 10px;
    }

    #content .section .section-head .title {
        font-size: 20px;
    }
}


/* =====================================================
   Breaking news bar
   Laptop: label + one headline that changes.
   Phone / tablet: one line that keeps scrolling.
   ===================================================== */
#jd-breaking-top {
    padding-top: 16px;
}

#jd-breaking-top > .row {
    margin: 0;
}

#jd-breaking-top .news-ticker-cnt {
    float: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

#jd-breaking-top .news-ticker-cnt > .row {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    height: 50px;
    margin: 0;
    padding: 0 26px;
    border-radius: 999px;
    background: #e4161c;
    color: #fff;
    overflow: hidden;
}

#jd-breaking-top .news-ticker-cnt > .row:before,
#jd-breaking-top .news-ticker-cnt > .row:after {
    display: none;
}

#jd-breaking-top .news-ticker-cnt .left {
    flex: 0 0 auto;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

#jd-breaking-top .news-ticker-cnt .news-ticker-title {
    display: block;
    width: auto;
    height: auto;
    margin: 0 18px 0 0;
    padding: 0 18px 0 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .6);
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: clamp(17px, 1.5vw, 22px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

#jd-breaking-top .news-ticker-cnt .right {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#jd-breaking-top .news-ticker-cnt .news-ticker {
    width: 100%;
}

#jd-breaking-top .news-ticker-cnt .news-ticker li a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 700;
    color: #fff;
}

#jd-breaking-top .news-ticker-cnt .news-ticker-btn-cnt {
    display: none;
}

/* once the script has built the live bar, the old list is hidden */
#jd-breaking-top .news-ticker-cnt.jd-ready .news-ticker {
    display: none;
}

.jd-breaking {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
}

.jd-breaking-one {
    display: none;
    align-items: center;
    height: 100%;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 700;
    opacity: 1;
    transition: opacity .3s ease;
}

.jd-breaking-one.is-fading {
    opacity: 0;
}

.jd-breaking-one a {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
}

.jd-breaking-track {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}

.jd-breaking-run {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: jd-run 40s linear infinite;
    will-change: transform;
}

.jd-breaking-set {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.jd-breaking-set a {
    padding: 0 2px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.jd-breaking-set .jd-sep {
    margin: 0 14px;
    opacity: .7;
}

.jd-breaking-track:hover .jd-breaking-run,
.jd-breaking-track:active .jd-breaking-run {
    animation-play-state: paused;
}

@keyframes jd-run {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    #jd-breaking-top {
        padding-top: 12px;
    }

    #jd-breaking-top .news-ticker-cnt {
        max-width: none;
        margin-bottom: 16px;
        padding: 0;
    }

    #jd-breaking-top .news-ticker-cnt > .row {
        height: 44px;
        padding: 0 16px;
    }

    #jd-breaking-top .news-ticker-cnt .news-ticker-title {
        margin-right: 12px;
        padding-right: 12px;
        font-size: 14px;
    }

    .jd-breaking-one {
        display: none;
    }

    .jd-breaking-track {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-breaking-run {
        animation-duration: 120s;
    }
}

/* =====================================================
   Homepage: blocks (posts inside category sections)
   ===================================================== */
#content .section .post-item-small {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 18px;
}

#content .section .post-item-small .left {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    height: auto !important;
    aspect-ratio: 3 / 2;
    float: none;
    margin: 0;
    overflow: hidden;
    background: #eee;
    border-radius: 10px;
}

#content .section .post-item-small .left > a {
    position: absolute !important;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

#content .section .post-item-small .left a > img.img-bg {
    display: none;
}

#content .section .post-item-small .left .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#content .section .post-item-small .left img.img-cover,
#content .section .post-item-small .left .img-container img,
#content .section .post-item-small .left a > img.img-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

#content .section .post-item-small .right {
    flex: 1 1 auto;
    min-width: 0;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

#content .section .post-item-small .right .title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

#content .section .post-item-small .right .title a {
    color: var(--jd-dark);
}

#content .section .post-item-small .right .title a:hover {
    color: var(--jd-red);
}

#content .section .small-post-meta {
    margin: 0;
    font-size: 12px;
    color: var(--jd-muted);
}

/* =====================================================
   Homepage: featured heading (added by theme-custom.js)
   ===================================================== */
.jd-featured-head {
    display: none;
}

/* =====================================================
   Homepage: mobile
   ===================================================== */
@media (max-width: 767px) {

    /* featured slider: rounded card with round arrows */
    .section-featured .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-featured .featured-left,
    .section-featured .featured-right {
        float: none;
        width: 100%;
        padding: 0;
    }

    .section-featured .slider-container {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
    }

    #featured-slider .featured-slider-item .img-link {
        display: block;
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    #featured-slider .featured-slider-item .img-link > img.img-bg {
        display: none;
    }

    #featured-slider .featured-slider-item .img-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    #featured-slider .featured-slider-item img.img-cover,
    #featured-slider .featured-slider-item .img-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
    }

    #featured-slider .category-label {
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
    }

    #featured-slider .featured-slider-item .caption .title {
        font-size: clamp(19px, 5.4vw, 24px);
        line-height: 1.5;
    }

    #featured-slider .featured-slider-item .caption .post-meta {
        display: none;
    }

    #featured-slider-nav {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        z-index: 5;
        display: flex;
        justify-content: space-between;
        padding: 0 12px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    #featured-slider-nav button {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin: 0;
        padding: 0;
        border: 2px solid rgba(255, 255, 255, .4);
        border-radius: 50%;
        background: rgba(196, 40, 60, .92);
        color: #fff;
        font-size: 16px;
        pointer-events: auto;
    }

    /* featured posts: numbered list */
    .section-featured .featured-right {
        counter-reset: fb;
        margin-top: 8px;
    }

    .jd-featured-head {
        display: flex;
        align-items: center;
        margin: 22px 0 16px;
        color: var(--jd-red);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .jd-featured-head:after {
        content: "";
        flex: 1 1 auto;
        min-width: 18px;
        height: 2px;
        margin-left: 8px;
        background: linear-gradient(90deg, var(--jd-red), rgba(228, 22, 28, 0));
    }

    .jd-featured-head .tt-first {
        display: inline-block;
        padding-left: 10px;
        border-left: 4px solid var(--jd-red);
        color: var(--jd-red);
    }

    .jd-featured-head .tt-tag {
        display: inline-block;
        margin-left: 8px;
        padding: 4px 18px 4px 10px;
        background: var(--jd-red);
        color: #fff;
        font-size: .62em;
        line-height: 1.4;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    }

    .section-featured .featured-boxes-top,
    .section-featured .featured-boxes-bottom {
        display: block;
        width: 100%;
        height: auto;
        float: none;
        padding: 0;
    }

    .section-featured .featured-box {
        counter-increment: fb;
        position: relative;
        display: block;
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 12px;
        padding: 14px 14px 14px 64px;
        border: 1px solid var(--jd-line);
        border-left: 3px solid #cfd3d9;
        border-radius: 10px;
        background: #fff;
    }

    .section-featured .featured-box:first-child {
        border-left-color: var(--jd-red);
    }

    .section-featured .featured-box:before {
        content: counter(fb);
        position: absolute;
        left: 14px;
        top: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #eef0f3;
        color: #333;
        font-size: 14px;
        font-weight: 700;
        transform: translateY(-50%);
    }

    .section-featured .featured-boxes-top .featured-box:first-child:before {
        background: var(--jd-red);
        color: #fff;
    }

    .section-featured .featured-box .box-inner {
        position: static;
        height: auto;
    }

    .section-featured .featured-box .box-inner > a {
        display: none;
    }

    .section-featured .featured-box .caption {
        position: static;
        padding: 0;
        background: none;
    }

    .section-featured .featured-box .caption .title {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.55;
        color: #bf2f06;
    }

    .section-featured .featured-box .caption .post-meta {
        display: none;
    }

    /* blocks: cards and list */
    #content .section .post-item {
        margin-bottom: 18px;
        border: 1px solid var(--jd-line);
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    }

    #content .section .post-item .post-item-image {
        margin: 0;
        border-radius: 0;
    }

    #content .section .post-item h3.title {
        padding: 12px 14px 0;
        font-size: 19px;
    }

    #content .section .post-item .post-meta {
        padding: 0 14px;
        margin-bottom: 12px;
    }

    #content .section .post-item .description {
        display: none;
    }

    #content .section .post-item-small .left {
        flex: 0 0 38%;
        width: 38%;
    }

    #content .section .post-item-small .right .title {
        font-size: 17px;
    }

    #content .section .post-item-small .small-post-meta {
        display: none;
    }
}


/* =====================================================
   Live updates timeline
   ===================================================== */
.jd-live-card {
    padding: 22px 22px 6px;
    border: 1px solid var(--jd-line);
    border-radius: 14px;
    background: var(--jd-soft);
}

.jd-live-card-title {
    margin: 0 0 22px;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.3;
    color: #222;
}

.jd-live-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jd-live-list > li {
    position: relative;
    min-height: 44px;
    margin: 0;
    padding: 0 0 24px 66px;
}

.jd-live-list > li:not(:last-child):after {
    content: "";
    position: absolute;
    left: 21px;
    top: 48px;
    bottom: 2px;
    width: 2px;
    background: #dde1e6;
}

.jd-live-no {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #d33a49;
    border-radius: 50%;
    background: #fff;
    color: #d33a49;
    font-size: 18px;
    font-weight: 700;
}

.jd-live-list > li.is-archived .jd-live-no {
    border-color: #2e9e4f;
    color: #2e9e4f;
}

.jd-live-badge {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 4px;
    background: #d33a49;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.jd-live-list > li.is-archived .jd-live-badge {
    background: #2e9e4f;
}

.jd-live-link {
    display: block;
    font-size: clamp(17px, 1.3vw, 19px);
    font-weight: 600;
    line-height: 1.55;
    color: #111;
}

.jd-live-link:hover {
    color: var(--jd-red);
}

.jd-live-time {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--jd-muted);
}

@media (max-width: 767px) {
    .jd-live-card {
        padding: 18px 16px 4px;
    }

    .jd-live-list > li {
        padding-left: 58px;
    }

    .jd-live-no {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .jd-live-list > li:not(:last-child):after {
        left: 19px;
        top: 44px;
    }
}


/* =====================================================
   Three-column cards inside homepage blocks
   ===================================================== */
#wrapper .post-item-mid {
    margin-bottom: 24px;
}

#wrapper .post-item-mid .post-item-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 0 0 12px;
    overflow: hidden;
    background: #eee;
    border-radius: 10px;
}

#wrapper .post-item-mid .post-item-image > a {
    position: absolute !important;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

#wrapper .post-item-mid .post-item-image a > img.img-bg {
    display: none;
}

#wrapper .post-item-mid .post-item-image .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#wrapper .post-item-mid .post-item-image img.img-cover,
#wrapper .post-item-mid .post-item-image .img-container img,
#wrapper .post-item-mid .post-item-image a > img.img-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

#wrapper .post-item-mid .post-item-image .media-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #fff;
    font-size: clamp(36px, 3.4vw, 52px);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
    pointer-events: none;
}

#wrapper .post-item-mid .post-item-image .media-icon em {
    display: none;
}

#wrapper .post-item-mid h3.title {
    position: relative;
    z-index: 1;
    margin: 0 0 6px !important;
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 700;
    line-height: 1.6;
}

#wrapper .post-item-mid h3.title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--jd-dark);
}

#wrapper .post-item-mid h3.title a:hover {
    color: var(--jd-red);
}

#wrapper .post-item-mid .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    font-size: 12.5px;
    color: var(--jd-muted);
}

#wrapper .post-item-mid .post-meta a {
    font-weight: 700;
    color: #444;
}

#wrapper .post-item-mid .post-meta i {
    margin-right: 4px;
}

/* =====================================================
   Sub-category tabs in block headings
   ===================================================== */
#content .section .section-head .sub-block-tabs {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 4px;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
}

#content .section .section-head .sub-block-tabs > li {
    float: none;
    margin: 0;
}

#content .section .section-head .sub-block-tabs > li > a {
    margin: 0;
    padding: 5px 12px;
    border: 0 !important;
    border-radius: 999px;
    background: none !important;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

#content .section .section-head .sub-block-tabs > li.active > a,
#content .section .section-head .sub-block-tabs > li > a:hover {
    background: #fdecec !important;
    color: var(--jd-red);
}

#content .section .section-head .sub-block-tabs-mobile {
    position: relative;
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    #wrapper .post-item-mid {
        margin-bottom: 18px;
        border: 1px solid var(--jd-line);
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    }

    #wrapper .post-item-mid .post-item-image {
        margin: 0;
        border-radius: 0;
    }

    #wrapper .post-item-mid h3.title {
        padding: 12px 14px 0;
        font-size: 19px;
    }

    #wrapper .post-item-mid .post-meta {
        padding: 0 14px;
        margin-bottom: 12px;
    }
}


/* =====================================================
   Laptop dropdown menu: post cards
   ===================================================== */
@media (min-width: 992px) {
    header#header .megamenu-content .row-menu-right {
        display: flex;
        flex-wrap: wrap;
    }

    header#header .megamenu-content .row-menu-right:before,
    header#header .megamenu-content .row-menu-right:after {
        display: none;
    }

    header#header .megamenu-content .menu-post-item {
        min-width: 0;
        padding: 0 10px 18px;
    }

    header#header .megamenu-content .single-sub-menu .menu-post-item {
        flex: 0 0 20%;
        width: 20%;
        max-width: 20%;
    }

    header#header .megamenu-content .menu-post-item .post-item-image {
        position: relative;
        display: block;
        width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 10;
        margin: 0 0 10px;
        overflow: hidden;
        background: #eee;
        border-radius: 6px;
    }

    header#header .megamenu-content .menu-post-item .post-item-image > a {
        position: absolute !important;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
    }

    header#header .megamenu-content .menu-post-item .post-item-image a > img.img-bg {
        display: none;
    }

    header#header .megamenu-content .menu-post-item .post-item-image .img-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    header#header .megamenu-content .menu-post-item .post-item-image img.img-cover,
    header#header .megamenu-content .menu-post-item .post-item-image .img-container img,
    header#header .megamenu-content .menu-post-item .post-item-image a > img.img-post {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
    }

    header#header .megamenu-content .menu-post-item h3.title {
        margin: 0 0 4px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.6;
    }

    header#header .megamenu-content .menu-post-item h3.title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--jd-dark);
    }

    header#header .megamenu-content .menu-post-item h3.title a:hover {
        color: var(--jd-red);
    }

    header#header .megamenu-content .menu-post-item .post-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 10px;
        margin: 0;
        font-size: 12px;
        color: var(--jd-muted);
    }

    header#header .megamenu-content .menu-post-item .post-meta a {
        font-weight: 700;
        color: #444;
    }
}


/* =====================================================
   Breaking news bar: polish
   Laptop: red pill with a blinking dot. Phone: bolt box + moving line.
   ===================================================== */
#jd-breaking-top .news-ticker-cnt > .row {
    height: 46px;
    background: linear-gradient(90deg, #d8121a 0%, #ee2a31 100%);
    box-shadow: 0 8px 20px rgba(228, 22, 28, .25);
}

#jd-breaking-top .news-ticker-cnt .news-ticker-title {
    display: flex;
    align-items: center;
    font-size: clamp(16px, 1.35vw, 20px);
    letter-spacing: .3px;
}

#jd-breaking-top .news-ticker-cnt .news-ticker-title:before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 10px;
    border-radius: 50%;
    background: #fff;
    animation: jd-pulse 1.6s infinite;
}

@keyframes jd-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (min-width: 992px) {
    .jd-breaking-set a {
        font-size: clamp(15px, 1.2vw, 18px);
    }
}

@media (max-width: 767px) {
    #jd-breaking-top .news-ticker-cnt > .row {
        height: 44px;
        padding: 0 12px 0 0;
        border: 1px solid var(--jd-line);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 8px rgba(0, 0, 0, .07);
        color: #111;
    }

    #jd-breaking-top .news-ticker-cnt .news-ticker-title {
        display: block;
        width: 48px;
        height: 100%;
        margin: 0 12px 0 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #e4161c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / 22px no-repeat;
        font-size: 0;
        line-height: 0;
        color: transparent;
    }

    #jd-breaking-top .news-ticker-cnt .news-ticker-title:before {
        display: none;
    }

    .jd-breaking-set a {
        color: #111;
        font-size: 15px;
    }

    .jd-breaking-set .jd-sep {
        color: #e4161c;
        opacity: 1;
    }
}

/* =====================================================
   Videos page: only video posts, large rounded cards
   (page is detected by theme-custom.js)
   ===================================================== */
body.jd-videos-page #content > .row > [class*="col-sm-6"]:not(:has(.media-icon)),
body.jd-videos-page #content > .row > .col-sm-12:has(.post-item-horizontal):not(:has(.media-icon)) {
    display: none;
}

body.jd-videos-page #content .post-item,
body.jd-videos-page #content .post-item-horizontal {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 11;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

body.jd-videos-page #content .post-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body.jd-videos-page #content .post-item-horizontal {
    display: block;
}

body.jd-videos-page #content .post-item:before,
body.jd-videos-page #content .post-item-horizontal:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .88) 100%);
    pointer-events: none;
}

body.jd-videos-page #content .post-item .post-item-image,
body.jd-videos-page #content .post-item-horizontal .post-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
}

body.jd-videos-page #content .post-item-horizontal > .item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 0;
}

body.jd-videos-page #content .post-item-horizontal > .item-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 0 18px 16px;
}

body.jd-videos-page #content .post-item h3.title,
body.jd-videos-page #content .post-item-horizontal h3.title {
    position: relative;
    z-index: 2;
    margin: 0 0 6px !important;
    padding: 0 18px;
    font-size: 19px;
    line-height: 1.55;
}

body.jd-videos-page #content .post-item-horizontal h3.title {
    padding: 0;
}

body.jd-videos-page #content .post-item h3.title a,
body.jd-videos-page #content .post-item-horizontal h3.title a {
    color: #fff;
}

body.jd-videos-page #content .post-item .post-meta,
body.jd-videos-page #content .post-item-horizontal .small-post-meta {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    padding: 0 18px;
    color: rgba(255, 255, 255, .8);
}

body.jd-videos-page #content .post-item-horizontal .small-post-meta {
    padding: 0;
    margin-bottom: 0;
}

body.jd-videos-page #content .post-item .post-meta a,
body.jd-videos-page #content .post-item-horizontal .small-post-meta a {
    color: #fff;
}

body.jd-videos-page #content .post-item .description,
body.jd-videos-page #content .post-item-horizontal .description {
    display: none;
}

body.jd-videos-page #content .post-item .post-item-image .media-icon,
body.jd-videos-page #content .post-item-horizontal .post-item-image .media-icon {
    z-index: 2;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-size: 42px;
}

@media (max-width: 767px) {
    body.jd-videos-page #content .post-item,
    body.jd-videos-page #content .post-item-horizontal {
        aspect-ratio: 4 / 5;
        margin-bottom: 20px;
        scroll-snap-align: center;
    }

    body.jd-videos-page #sidebar {
        display: none;
    }

    html:has(body.jd-videos-page) {
        scroll-snap-type: y proximity;
    }
}


/* =====================================================
   Featured area: spacing, readable text, no overlap
   ===================================================== */
.section-featured {
    margin-bottom: 30px;
}

#featured .featured-box .box-inner,
#featured .featured-slider-item {
    background: #1d1f24;
}

img.jd-img-fail {
    visibility: hidden;
}

@media (max-width: 767px) {
    .section-featured {
        margin-bottom: 20px;
    }

    /* slider: the caption always sits on the picture */
    #featured-slider .featured-slider-item {
        position: relative;
        height: auto !important;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    #featured-slider .featured-slider-item .img-link {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    #featured-slider .featured-slider-item .category-label {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 4;
    }

    #featured-slider .featured-slider-item .caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        padding: 48px 16px 16px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .85) 100%);
    }

    #featured-slider .featured-slider-item .caption .title {
        margin: 0;
        color: #fff;
    }

    /* featured posts list: one card per row, dark red text on white */
    #featured .featured-right {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        counter-reset: fb;
    }

    #featured .featured-boxes-top,
    #featured .featured-boxes-bottom {
        display: block !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #featured .featured-box {
        position: relative !important;
        display: block !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 14px 14px 14px 64px !important;
        border: 1px solid var(--jd-line) !important;
        border-left: 3px solid #cfd3d9 !important;
        border-radius: 10px;
        background: #fff !important;
        overflow: hidden;
    }

    #featured .featured-boxes-top .featured-box.box-1 {
        border-left-color: var(--jd-red) !important;
    }

    #featured .featured-box:before {
        z-index: 2;
    }

    #featured .featured-box .box-inner {
        position: static !important;
        height: auto !important;
        background: none !important;
    }

    #featured .featured-box .box-inner > a {
        display: none !important;
    }

    #featured .featured-box .caption {
        position: static !important;
        width: auto !important;
        padding: 0 !important;
        background: none !important;
    }

    #featured .featured-box .caption .title {
        margin: 0 !important;
        color: #bf2f06 !important;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.55;
    }

    #featured .featured-box .caption .post-meta {
        display: none !important;
    }

    /* breaking bar: the bolt box needs a height to be visible */
    #jd-breaking-top .news-ticker-cnt .left {
        display: flex;
        align-self: stretch;
    }

    #jd-breaking-top .news-ticker-cnt .news-ticker-title {
        flex: 0 0 48px;
        height: auto;
        align-self: stretch;
    }
}

/* =====================================================
   Header: breaking news button (blinking light) and list
   ===================================================== */
.jd-bn-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: jd-blink 1s ease-in-out infinite;
}

@keyframes jd-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .12;
    }
}

.jd-bn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
}

header#header .top-bar .jd-bn-li {
    display: flex;
    align-items: center;
}

header#header .top-bar .jd-bn-desktop {
    margin-right: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    color: #c83200;
    font-size: clamp(11px, .9vw, 14px);
    letter-spacing: .3px;
    text-transform: uppercase;
}

header#header .top-bar .jd-bn-desktop .jd-bn-dot {
    background: #e4161c;
}

header#header .m-hdr-actions .jd-bn-mobile {
    position: relative;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #e4161c;
}

header#header .m-hdr-actions .jd-bn-mobile svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

header#header .m-hdr-actions .jd-bn-mobile .jd-bn-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    box-shadow: 0 0 0 2px #e4161c;
}

@media (max-width: 380px) {
    header#header .m-hdr-actions .jd-bn-mobile {
        width: 36px;
        height: 36px;
    }
}

.jd-bn-panel {
    position: fixed;
    z-index: 2000;
    display: none;
    width: 380px;
    max-width: calc(100vw - 20px);
    max-height: 70vh;
    overflow: auto;
    border-top: 3px solid #e4161c;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
}

.jd-bn-panel.is-open {
    display: block;
}

.jd-bn-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #e4161c;
    font-size: 16px;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
}

.jd-bn-head .jd-bn-dot {
    background: #e4161c;
}

.jd-bn-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.jd-bn-list li a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f3f3;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.jd-bn-list li:last-child a {
    border-bottom: 0;
}

.jd-bn-list li a:hover {
    background: #fff6f6;
    color: #e4161c;
}

.jd-bn-empty {
    padding: 16px;
    color: #777;
    font-size: 14px;
}


/* =====================================================
   Featured posts (mobile): two cards per row, whole card opens the news
   ===================================================== */
@media (max-width: 767px) {
    #featured .featured-boxes-top,
    #featured .featured-boxes-bottom {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0 0 10px !important;
    }

    #featured .featured-box {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 12px 10px 12px 50px !important;
    }

    #featured .featured-box:before {
        left: 10px;
        top: 12px;
        width: 30px;
        height: 30px;
        font-size: 14px;
        transform: none;
    }

    #featured .featured-box .caption .title {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #a5161d !important;
        font-size: 14.5px;
        line-height: 1.55;
        word-break: break-word;
    }

    /* the picture link becomes an invisible cover, so a tap anywhere (number too) opens the news */
    #featured .featured-box .box-inner > a {
        display: none !important;
    }

    #featured .featured-box .box-inner > a:nth-child(2) {
        display: block !important;
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        width: 100%;
        height: 100%;
        font-size: 0;
        opacity: 0;
    }
}

@media (max-width: 340px) {
    #featured .featured-box {
        padding-left: 44px !important;
    }

    #featured .featured-box:before {
        left: 8px;
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    #featured .featured-box .caption .title {
        font-size: 13.5px;
    }
}

/* =====================================================
   See more button (replaces the load more look)
   ===================================================== */
#wrapper .btn-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto !important;
    min-width: 190px;
    margin: 26px auto 12px;
    padding: 14px 36px;
    border: 0;
    border-radius: 999px;
    background: #e4161c;
    box-shadow: 0 8px 20px rgba(228, 22, 28, .28);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#wrapper .btn-load-more:before {
    content: "See More";
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
}

#wrapper .btn-load-more:after {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg);
}

#wrapper .btn-load-more:hover,
#wrapper .btn-load-more:focus {
    background: #c90f15;
    box-shadow: 0 12px 24px rgba(228, 22, 28, .35);
    transform: translateY(-2px);
}

/* =====================================================
   View all posts button (laptop)
   ===================================================== */
@media (min-width: 992px) {
    #content .section .section-head .a-view-all {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 18px;
        border: 1.5px solid #e4161c;
        border-radius: 999px;
        background: #fff;
        color: #e4161c;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    }

    #content .section .section-head .a-view-all i {
        font-size: 12px;
        transition: transform .2s ease;
    }

    #content .section .section-head .a-view-all:hover {
        background: #e4161c;
        color: #fff;
        box-shadow: 0 6px 16px rgba(228, 22, 28, .28);
    }

    #content .section .section-head .a-view-all:hover i {
        transform: translateX(4px);
    }
}


/* =====================================================
   Latest list: category tag must not sit on the title
   (only for items that have no picture)
   ===================================================== */
#wrapper .post-item-horizontal:not(:has(> .item-image)) {
    flex-wrap: wrap;
    align-items: flex-start;
}

#wrapper .post-item-horizontal:not(:has(> .item-image)) > a {
    display: block;
    flex: 0 0 100%;
    margin: 0 0 6px;
    padding: 0 15px;
}

#wrapper .post-item-horizontal:not(:has(> .item-image)) .category-label-horizontal {
    position: static;
    display: inline-block;
    float: none;
    margin: 0;
}

#wrapper .post-item-horizontal:not(:has(> .item-image)) > .item-content {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 767px) {
    #wrapper .post-item-horizontal:not(:has(> .item-image)) > .item-content {
        padding-left: 15px;
    }
}

/* =====================================================
   Featured posts (mobile): four neat cards, 2 per row
   ===================================================== */
@media (max-width: 767px) {
    html body #featured .featured-left,
    html body #featured .slider-container,
    html body #featured-slider,
    html body #featured-slider .slick-list {
        height: auto !important;
        min-height: 0 !important;
    }

    html body #featured .featured-left {
        margin-bottom: 0 !important;
    }

    html body #featured .featured-right {
        display: block !important;
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body #featured .jd-featured-head {
        display: flex !important;
        position: relative;
        z-index: 2;
        visibility: visible;
        opacity: 1;
    }

    html body #featured .featured-right .featured-boxes-top,
    html body #featured .featured-right .featured-boxes-bottom {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
    }

    html body #featured .featured-right [class*="featured-boxes"] .featured-box {
        position: relative !important;
        display: block !important;
        float: none !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 12px 10px 12px 42px !important;
        border: 1px solid var(--jd-line) !important;
        border-left: 3px solid #cfd3d9 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
        overflow: hidden !important;
    }

    html body #featured .featured-right .featured-boxes-top .featured-box.box-1 {
        border-left-color: var(--jd-red) !important;
    }

    html body #featured .featured-right [class*="featured-boxes"] .featured-box:before {
        left: 8px;
        top: 12px;
        width: 26px;
        height: 26px;
        border-radius: 7px;
        font-size: 13px;
        transform: none;
    }

    html body #featured .featured-right [class*="featured-boxes"] .featured-box .box-inner {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
    }

    html body #featured .featured-right [class*="featured-boxes"] .featured-box .caption {
        display: block !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
    }

    html body #featured .featured-right [class*="featured-boxes"] .featured-box .caption .title {
        display: -webkit-box !important;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        overflow-wrap: break-word;
        color: #a5161d !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }
}


/* =====================================================
   Featured area (mobile): space above the cards, label not cut
   ===================================================== */
@media (max-width: 767px) {
    html body #featured .featured-right {
        margin-top: 20px !important;
    }

    html body #featured .featured-right:has(.jd-featured-head) {
        margin-top: 0 !important;
    }

    /* heading, used only when the script heading is not there */
    html body #featured .featured-right:before {
        content: "FEATURED POSTS";
        display: block;
        margin: 0 0 16px;
        padding: 2px 0 8px 10px;
        border-left: 4px solid var(--jd-red);
        background: linear-gradient(90deg, #e4161c, rgba(228, 22, 28, 0)) left bottom / 100% 2px no-repeat;
        color: var(--jd-red);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.3;
    }

    html body #featured .featured-right:has(.jd-featured-head):before {
        display: none;
    }

    html body #featured-slider .featured-slider-item .category-label {
        display: inline-block;
        height: auto !important;
        overflow: visible !important;
        line-height: 1.6 !important;
    }
}

/* See more button after it was moved to the end of the page (mobile) */
.jd-see-more-end {
    margin-bottom: 24px;
}


/* =====================================================
   Featured posts heading (mobile): sits inside the card grid, always visible
   ===================================================== */
@media (max-width: 767px) {
    html body #featured .jd-featured-head {
        display: none !important;
    }

    html body #featured .featured-right:before {
        content: none !important;
        display: none !important;
    }

    html body #featured .featured-right {
        margin-top: 0 !important;
    }

    html body #featured .featured-right .featured-boxes-top:before {
        content: "FEATURED POSTS";
        grid-column: 1 / -1;
        display: block;
        margin: 24px 0 6px;
        padding: 2px 0 8px 10px;
        border-left: 4px solid var(--jd-red);
        background: linear-gradient(90deg, #e4161c, rgba(228, 22, 28, 0)) left bottom / 100% 2px no-repeat;
        color: var(--jd-red);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.3;
    }
}

/* =====================================================
   Post page: author row at the top
   ===================================================== */
.post-content .jd-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #e9e9e9;
}

.post-content .jd-pm-avatar {
    flex: 0 0 auto;
    display: block;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    background: #eee;
}

.post-content .jd-pm-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.jd-pm-info {
    flex: 1 1 auto;
    min-width: 0;
}

.jd-pm-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.jd-pm-name a {
    color: #111;
}

.jd-verified {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d9bf0' d='M12 1.5l2.6 1.9 3.2-.1 1 3 2.6 1.9-.9 3.1.9 3.1-2.6 1.9-1 3-3.2-.1L12 22.5l-2.6-1.9-3.2.1-1-3-2.6-1.9.9-3.1-.9-3.1 2.6-1.9 1-3 3.2.1z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7.8 12.4l3 3 5.6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.jd-pm-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.jd-pm-line .post-details-meta-date,
.jd-pm-line .post-comment-pageviews {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    float: none;
    gap: 2px 10px;
    margin: 0;
    padding: 0;
}

.jd-pm-line .sp-left {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.jd-pm-line i {
    margin-right: 4px;
}

/* =====================================================
   Post page: share bar at the top
   ===================================================== */
.post-content .post-share {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.jd-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
    padding: 9px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #fafafa;
}

.jd-share-url {
    flex: 1 1 70px;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    overflow: hidden;
    border: 1.5px dashed #bdbdbd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 31px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jd-copy {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.5px solid #3b82f6;
    border-radius: 8px;
    background: #fff;
    color: #1a73e8;
    cursor: pointer;
}

.jd-copy.is-done {
    border-color: #2e9e4f;
    background: #e8f7ee;
    color: #2e9e4f;
}

.jd-copy svg,
.jd-share-main svg,
.jd-share-label svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jd-circle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d6d6d6;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.jd-circle i {
    font-size: 16px;
    line-height: 1;
    color: inherit;
}

.jd-c-wa {
    color: #25d366;
}

.jd-c-fb {
    color: #1877f2;
}

.jd-share-main {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffc400;
    color: #fff;
    cursor: pointer;
}

.jd-share-main.is-done {
    background: #2e9e4f;
}

/* =====================================================
   Post page: share row below the article
   ===================================================== */
.jd-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 8px;
    padding: 18px 0;
    border-top: 2px dotted #d9d9d9;
    border-bottom: 2px dotted #d9d9d9;
}

.jd-share-label {
    display: flex;
    color: #222;
}

.jd-share-label svg {
    width: 24px;
    height: 24px;
}

.jd-share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.jd-sb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1;
    cursor: pointer;
}

.jd-sb:hover {
    color: #fff;
    opacity: .92;
}

.jd-sb i {
    font-size: 15px;
    line-height: 1;
}

.jd-sb span {
    text-transform: uppercase;
}

.jd-sb-fb {
    padding: 0 16px;
    background: #6f9cf5;
}

.jd-sb-x {
    width: 38px;
    padding: 0;
    background: #0b1114;
}

.jd-sb-wa {
    width: 38px;
    padding: 0;
    background: #10d98a;
}

.jd-more {
    position: relative;
}

.jd-more-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 38px;
    padding: 0;
    border: 0;
    background: none;
    color: #222;
    cursor: pointer;
}

.jd-more-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.jd-more-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 30;
    display: none;
    min-width: 200px;
    padding: 6px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.jd-more.is-open .jd-more-panel {
    display: block;
}

.jd-more-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.jd-more-panel a:hover {
    background: #f5f5f5;
}

.jd-more-panel a i {
    width: 18px;
    font-size: 15px;
    text-align: center;
}

/* =====================================================
   Post page: author box below the article
   ===================================================== */
.jd-author {
    margin: 26px 0 8px;
}

.jd-author-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.jd-author-avatar {
    flex: 0 0 auto;
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 50%;
    background: #eee;
}

.jd-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.jd-author-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.3;
    text-transform: uppercase;
}

.jd-author-social {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.jd-author-social li {
    float: none;
    margin: 0;
    padding: 0;
}

.jd-author-social a {
    display: flex;
    color: #222;
    font-size: 20px;
    line-height: 1;
}

.jd-author-profile svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.jd-author-bio {
    margin: 16px 0 0;
    color: #222;
    font-size: 16px;
    line-height: 1.9;
}

@media (max-width: 380px) {
    .jd-share-actions {
        gap: 6px;
    }

    .jd-sb-fb {
        padding: 0 11px;
    }

    .jd-share-bar {
        gap: 6px;
        padding: 8px;
    }
}


/* =====================================================
   Post page: nothing may go outside the screen
   ===================================================== */
#content .post-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.post-content .post-share {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.jd-share-bar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.jd-share-url {
    flex: 1 1 0;
    width: 0;
    min-width: 56px;
    max-width: 260px;
}

.jd-circle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jd-circle.is-busy {
    opacity: .45;
    pointer-events: none;
    animation: jd-blink 1s ease-in-out infinite;
}

.jd-share-row,
.jd-author {
    box-sizing: border-box;
    max-width: 100%;
}

.jd-share-actions {
    min-width: 0;
}

.jd-author-bio {
    overflow-wrap: anywhere;
}

@media (max-width: 380px) {
    .jd-circle,
    .jd-copy {
        width: 34px;
        height: 34px;
    }

    .jd-share-main {
        width: 38px;
        height: 38px;
    }

    .jd-share-bar {
        gap: 5px;
        padding: 8px 7px;
    }
}

@media (max-width: 360px) {
    .jd-sb-fb {
        width: 38px;
        padding: 0;
    }

    .jd-sb-fb span {
        display: none;
    }
}


/* =====================================================
   Post page: one share bar above the article (final look)
   ===================================================== */
.jd-share-bottom {
    display: none !important;
}

.post-content .post-share {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    overflow: visible;
}

.post-content .jd-share-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 18px;
    padding: 9px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #fafafa;
}

.post-content .jd-share-url {
    display: block;
    box-sizing: border-box;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    overflow: hidden;
    border: 1.5px dashed #bdbdbd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 13px;
    line-height: 31px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-content .jd-circle.jd-print {
    text-decoration: none;
}

.post-content .jd-circle.jd-print i {
    font-size: 17px;
    color: #222;
}

.jd-share-wrap {
    position: relative;
}

.jd-share-pop {
    position: absolute;
    right: -6px;
    bottom: calc(100% + 14px);
    z-index: 40;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.jd-share-wrap.is-open .jd-share-pop {
    display: flex;
}

.jd-share-pop > a,
.jd-share-pop > button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.jd-share-pop > a:hover,
.jd-share-pop > button:hover {
    background: #e6e6e6;
    color: #111;
}

.jd-share-pop svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.jd-share-pop > a svg {
    fill: none;
}

.jd-pop-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: none;
    min-width: 200px;
    padding: 6px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.jd-share-wrap.show-more .jd-pop-panel {
    display: block;
}

.jd-pop-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.jd-pop-panel a:hover {
    background: #f5f5f5;
}

.jd-pop-panel a i {
    width: 18px;
    font-size: 15px;
    text-align: center;
}

@media (max-width: 380px) {
    .post-content .jd-share-bar {
        gap: 6px;
        padding: 8px 7px;
    }

    .jd-share-pop {
        gap: 6px;
        padding: 8px 10px;
    }

    .jd-share-pop > a,
    .jd-share-pop > button {
        width: 38px;
        height: 38px;
    }
}
