/* ── BASE ─────────────────────────────────────────────────── */
.jp-wrap { font-family: inherit; }
.jp-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.jp-wrap a { text-decoration: none; color: inherit; }
.jp-empty  { color: #aaa; font-size: 13px; padding: 12px 0; }


/* ── HERO GRID ─────────────────────────────────────────────── */
.jp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 28px;
     align-items: start;
}

.jp-hero-img {
    flex: 0 0 60%;
    /* border-radius: 6px; */
    aspect-ratio: 16/9;
    align-self: stretch;
    /* height:100%; */
    min-height:100%;
    /* position: absolute; */
    /* top: 0; left: 0; right: 0; bottom: 0; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ccc;
    transition: transform 0.3s ease;
}

/* .jp-hero-left {
    position: relative;
    display: block;
    height: 400px;
    border-radius: 8px;
    /* overflow: hidden;
    overflow:visible;
    cursor: pointer;} */

.jp-hero-left {
    position: relative;
    display: block;
    height: 400px;
    border-radius: 8px;
    overflow: hidden; /* ← change back to hidden */
    cursor: pointer;
}

.jp-hero-left:hover .jp-hero-img { transform: scale(1.04); }

.jp-hero-right {
    display: flex;
    height:400px;
    flex-direction: column;
    gap: 1px;
}

.jp-hero-sm {
    position: relative;
    display: flex;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
}
.jp-hero-sm:hover .jp-hero-img { transform: scale(1.03); }

.jp-cover {
    position:relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height:100%;
    width:100%;
    /* gap: 12px; */
    overflow: hidden;
    border-radius: 8px;}


/* ── OVERLAY ───────────────────────────────────────────────── */
.jp-overlay {
    /* position: absolute; */
    /* bottom: 0; left: 0; right: 0; */
    /* background: linear-gradient(transparent, rgba(0,0,0,0.82)); */
    background:  linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, 1) 55%);
    padding: 24px 16px 16px;
    z-index: 2;
    margin-top: -30px;
}

.jp-overlay{flex:1;
display: flex;
flex-direction: column;
justify-content: center;
gap:6px;
}

.jp-cat {
     align-self: flex-start;
    display: inline-block;
    background: #2196F3;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jp-title-lg {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 7px;
    color: #fff;
}

.jp-title-sm {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    margin-bottom: -17px;
}

.jp-new{display:flex;
flex-direction:column ;
gap:10px;}

.jp-hero-sm .jp-title-sm { color: #1a1a1a; }

.jp-meta { font-size: 12px; color: rgba(255,255,255,0.75); }
.jp-meta strong { color: rgba(255,255,255,0.75); font-weight: 500; }


/* ── NEWS WRAP (Latest + Sidebar) ─────────────────────────── */
.jp-news-wrap {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}


/* ── SECTION HEADING ───────────────────────────────────────── */
.jp-sec-head {
    font-size: 22px;
    font-weight: 800;
    /* text-transform: uppercase; */
    letter-spacing: 0.04em;
    color: #0a0a0a;
    border-bottom: 2px solid #ececec;
    margin-bottom: 22px;
    line-height: 1;
}

.jp-sec-head span {
    display: inline-block;
    border-bottom: 3px solid #E53E3E;
    padding-bottom: 11px;
    margin-bottom: -2px;
}


/* ── PAGINATION ────────────────────────────────────────────── */
.jp-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 2px solid #e8e8e8;
    position: relative;
    z-index: 10;
    clear: both;
}

.jp-page-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: #eeeeee;
    color: #333;
    transition: background 0.2s;
}
.jp-page-btn:hover      { background: rgb(225,74,92); color: #fff; }
.jp-page-btn--active    { background: rgb(225,74,92); color: #fff; }
.jp-page-btn--disabled  { background: #eeeeee; color: #bbb; cursor: not-allowed; pointer-events: none; }
.jp-page-info           { display: none; }


/* ── SIDEBAR ───────────────────────────────────────────────── */
.jp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ── BANNER CARD ───────────────────────────────────────────── */
.jp-banner-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* padding: 32px 20px; */
    min-height: 240px;
    display: flex;
    align-items: center;
}

.jp-banner-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.55;
}
.jp-banner-deco--teal {
    width: 150px; height: 150px;
    background: conic-gradient(from 180deg, #00bcd4, transparent 60%);
    top: -40px; right: -30px;
    border: 3px solid rgba(0,188,212,0.4);
}
.jp-banner-deco--pink {
    width: 100px; height: 100px;
    background: conic-gradient(from 90deg, #e040fb, transparent 55%);
    top: 10px; right: 50px;
    border: 2px solid rgba(224,64,251,0.35);
}
.jp-banner-deco--yellow {
    width: 65px; height: 65px;
    border: 3px solid #f9a825;
    bottom: 20px; right: 20px;
    background: transparent;
}

.jp-banner-content  { position: relative; z-index: 2; }

.jp-banner-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00bcd4;
    margin-bottom: 10px;
}

.jp-banner-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.jp-banner-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
}

.jp-banner-btn {
    display: inline-block;
    background: #E53E3E;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}
.jp-banner-btn:hover { background: #c0392b; }


/* ── TRENDING DEALS BOX ────────────────────────────────────── */
.jp-deals-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 26px 22px;
}

.jp-deals-heading {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    color: #16181d;
    margin-bottom: 22px;
}

.jp-deals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jp-deal-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.jp-deal-thumb {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.jp-deal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jp-deal-info   { flex: 1; min-width: 0; }

.jp-deal-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jp-deal-price {
    font-size: 14.5px;
    font-weight: 700;
    color: #E53E3E;
}


/* ── FIX: wd-fill overlay covering pagination ──────────────── */
/* .wd-posts.wd-blog-holder { position: relative; z-index: 1; } */
.wd-posts.wd-blog-holder .wd-post-thumb {
    position: relative;
}

.jp-pagination {
    position: relative;
    z-index: 10;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .jp-hero-grid  { grid-template-columns: 1fr; }
    .jp-hero-left  { height: 300px; }
    /* .jp-hero-right { flex-direction: row; } */
    .jp-hero-sm    { height: auto; }
    .jp-news-wrap  { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
    .jp-hero-right { display: grid; grid-template-columns: 1fr; gap: 6px; }
    .jp-hero-sm    { height: auto; }
    .jp-title-lg   { font-size: 17px; }
    .jp-title-sm   { font-size: 13px; }
}

/* ── MOBILE HERO FIX ───────────────────────────────────────── */
@media (max-width: 768px) {

    .jp-hero-grid {
        grid-template-columns: 1fr;
    }

    .jp-hero-left {
        height: auto;
    }

    .jp-hero-right {
        height: auto;
        flex-direction: column;
    }

    .jp-hero-sm {
        flex-direction: column;
        height: auto;
    }

    /* Stack image on top, text below */
    .jp-cover {
        flex-direction: column;
    }

    /* Image takes natural 16/9 height */
    .jp-hero-img {
        flex: none;
        width: 100%;
        min-height: unset;
        aspect-ratio: 16 / 9;
    }

    /* Text overlay sits below image, not on top of it */
    .jp-overlay {
        padding: 12px 14px;
        background: #fff;
        /* background: #444; */
        position: static;
    }

    .jp-title-sm {
        color: #1a1a1a;
        font-size: 13px;
    }

    .jp-meta {
        color: #666;
    }

     .jp-title-lg {
        /* color: #1a1a1a; */
         color: #1a1a1a;
        font-size: 17px;
    }

    .jp-meta strong {
        color: #444;
    }

    .jp-new{display:flex;
     flex-direction:row;
    gap:15px;}
}


/* ── LEFT HERO: overlay sits ON TOP of image ───────────────── */
.jp-hero-left .jp-cover {
    position: relative;
    flex-direction: row;
}

.jp-hero-left .jp-hero-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    flex: none;
}

.jp-hero-left .jp-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    padding: 24px 16px 16px;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.jp-hero-left .jp-title-lg {
    color: #fff;
}

.jp-hero-left .jp-meta {
    color: rgba(255,255,255,0.75);
}

/* ── MOBILE: left hero also stacks correctly ───────────────── */
@media (max-width: 768px) {
    .jp-hero-left .jp-cover {
        flex-direction: column;
        position: relative;
    }

    .jp-hero-left .jp-hero-img {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .jp-hero-left .jp-overlay {
        position: static;
        background: #fff;
        padding: 12px 14px;
    }

    .jp-hero-left .jp-title-lg {
        color: #1a1a1a;
    }

    .jp-hero-left .jp-meta {
        color: #666;
    }
}


/* ── Laptop: right hero also stacks correctly ───────────────── */

.jp-overlay{gap:41px;}


 @media (max-width: 768px) {
   .jp-overlay {
    gap: 0px !important;
    }

  .jp-hero-right .jp-overlay{gap:25px !important;}
  .jp-title-sm{font-size: 17px;}
}

/* @media (max-width:768px) {
    .jp-hero-right .jp-overlay{gap:10px;}
} */


.jp-hero-left .jp-overlay{gap:5px !important;}

.wd-meta-date{font-size:15px; }

