
/* ======================================
   Home Categories Box
====================================== */


.prism-category-box {

    background:
        var(--prism-surface);

    border:
        1px solid var(--prism-border);

    border-radius:
        22px;

    padding:
        22px 28px 35px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.06);

}





.prism-category-header {

    display:flex;

    align-items:center;

    gap:20px;

    margin-bottom:45px;

}



.prism-category-title {

    display:flex;

    align-items:center;

    gap:12px;

    white-space:nowrap;

    font-size:22px;

    font-weight:700;

    color:var(--prism-text);

}




.prism-category-list {

    display:flex;

    justify-content:center;

    align-items:center;

    gap:70px;

    flex-wrap:wrap;

}





.prism-category-item {

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:20px;

}




.prism-category-icon {

    width:70px;

    height:70px;

}




.prism-category-icon svg {

    width:45px;

    height:45px;

}





.prism-category-title {

    font-size:15px;

}
/* ======================================
   Home Featured
====================================== */

.prism-home-featured {
    padding:45px 0;
}

.prism-featured-grid {
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

.prism-featured-main {
    position:relative;
    overflow:hidden;
    border-radius:32px;
    min-height:480px;
    color:#fff;
}

.prism-featured-image {
    position:absolute;
    inset:0;
}

.prism-featured-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.prism-featured-main::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        transparent,
        rgba(8,45,36,.9)
    );
}

.prism-featured-content {
    position:absolute;
    bottom:40px;
    right:40px;
    left:40px;
    z-index:2;
}

.prism-featured-badge {
    color:#E8C76A;
    font-size:14px;
}

.prism-featured-content h2 {
    font-size:32px;
    margin:15px 0;
}

.prism-featured-content p {
    line-height:2;
}

.prism-featured-side {
    display:flex;
    flex-direction:column;
    gap:30px;
}

.prism-featured-card {
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.prism-featured-card-image {
    height:180px;
}

.prism-featured-card-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.prism-featured-card h3 {
    padding:20px;
    color:#082D24;
}

/* ======================================
   Home Articles (section wrapper)
====================================== */

.prism-home-articles {
    padding:10px 0 10px;
}

.prism-section-header {
    margin-bottom:40px;
    text-align:center;
}

.prism-section-header span {
    color:#0F4C3A;
    font-size:15px;
}

.prism-section-header h2 {
    margin-top:10px;
    font-size:34px;
    color:#082D24;
}

.prism-article-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}


/*==========================================================
Latest Content Header
==========================================================*/

.prism-latest-header{
    display:flex;
    align-items:center;
    gap:20px;
    width:100%;
    padding:18px 28px;
    margin-bottom:35px;
    border-radius:22px;
    background:var(--prism-surface);
    border:1px solid var(--prism-border);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:
        0 15px 40px rgba(0,0,0,.06);
}

/* Title */

.prism-latest-title{
    display:flex;
    align-items:center;
    gap:12px;
    white-space:nowrap;
    font-family:"Rokh",sans-serif;
    font-size:22px;
    font-weight:600;
    color:var(--prism-text);
}

/* Gold Dot */

.prism-latest-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#D4AF37;
    box-shadow:
        0 0 0 6px rgba(212,175,55,.15);
}

/* Dotted Line */

.prism-latest-line{
    flex:1;
    height:1px;
    background:

    repeating-linear-gradient(
        to left,
        var(--prism-border) 0,
        var(--prism-border) 6px,
        transparent 6px,
        transparent 14px
    );
}

/* More Button */

.prism-latest-more{
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 20px;
    border-radius:20px;
    background:rgba(15,76,58,.08);
    color:var(--prism-primary);
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
    white-space:nowrap;
}

.prism-latest-more:hover{
    background:var(--prism-primary);
    color:#fff;
    transform:translateY(-2px);
}

/*==========================================================
 Prism Article Slider
==========================================================*/

.prism-article-slider-wrapper{
    position:relative;
}

/* Slider */

.prism-article-slider{
    overflow:hidden;
}

/* Track — the part JS actually moves */

.prism-article-track{
    display:flex;
    gap:28px;
    direction:rtl;
    transition:transform .45s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
}

/* Card */

.prism-article-card{
    flex:0 0 calc(20% - 23px);
    background:var(--prism-surface);
    border:1px solid var(--prism-border);
    border-radius:32px;
    overflow:hidden;
    box-shadow:
        0 20px 50px rgba(0,0,0,.08);
    transition:.35s;
}

.prism-article-card:hover{
    transform:translateY(-8px);
}

/* Image */

.prism-article-image{
    position:relative;
    height:280px;
    overflow:hidden;
}

.prism-article-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.prism-article-card:hover img{
    transform:scale(1.06);
}

/* Placeholder */

.prism-article-placeholder{
    width:100%;
    height:100%;
    background:
    linear-gradient(
        135deg,
        #0f4c3a,
        #082d24
    );
}

/* Category */

.prism-article-category{
    position:absolute;
    top:20px;
    left:20px;
    z-index:3;
    opacity:1;
    visibility:visible;
    padding:7px 18px;
    border-radius:30px;
    background:rgba(255,255,255,.28);
    backdrop-filter:blur(18px) saturate(180%);
    -webkit-backdrop-filter:blur(18px) saturate(180%);
    border:1px solid rgba(255,255,255,.45);
    box-shadow:0 4px 14px rgba(0,0,0,.08);
    color:#ffffff;
    font-size:13px;
    font-weight:700;
    text-shadow:0 1px 3px rgba(0,0,0,.35);
}

/* Body */

.prism-article-body{
    padding:28px;
}

.prism-article-body h3{
    font-family:"Rokh",sans-serif;
    font-size:23px;
    line-height:1.8;
    margin:0 0 15px;
    color:var(--prism-text);
}

.prism-article-body p{
    color:var(--prism-text-soft);
    line-height:2;
    font-size:15px;
    min-height:60px;
    text-align:justify;
    text-justify:inter-word;
}

/* Divider */

.prism-article-divider{
    height:1px;
    background:var(--prism-border);
    margin:20px 0;
}

/* Footer */

.prism-article-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
}

.prism-article-footer a{
    color:var(--prism-primary);
    font-weight:700;
    text-decoration:none;
}

.prism-article-footer span{
    color:var(--prism-text-soft);
}

/* Buttons */

.prism-article-slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border-radius:50%;
    border:1px solid var(--prism-border);
    background:var(--prism-surface);
    color:var(--prism-text);
    font-size:34px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:
        0 10px 30px rgba(0,0,0,.15);
    z-index:10;
}

.prism-article-slider-btn:hover{
    background:var(--prism-primary);
    color:white;
}

.prism-article-slider-btn.prev{
    right:-25px;
}

.prism-article-slider-btn.next{
    left:-25px;
}


/* =====================================================
   RESPONSIVE — Desktop / Tablet / Mobile
   Breakpoints: 1200px (small desktop), 992px (tablet
   landscape), 768px (tablet portrait), 576px (mobile)
===================================================== */

/* ---------- 1200px and below ---------- */
@media (max-width:1200px){

    .prism-article-card{
        flex:0 0 calc(25% - 21px);
    }

}

/* ---------- 992px and below (tablet) ---------- */
@media (max-width:992px){

    /* Category icons */
    .prism-category-list{
        gap:24px;
    }

    .prism-category-item{
        min-width:75px;
    }

    /* Featured */
    .prism-featured-grid{
        grid-template-columns:1fr;
    }

    .prism-featured-main{
        min-height:360px;
    }

    .prism-featured-side{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .prism-featured-side .prism-featured-card{
        flex:1 1 calc(50% - 15px);
    }

    /* Article grid (legacy 3-col) */
    .prism-article-grid{
        grid-template-columns:repeat(3,1fr);
    }

    /* Section headers */
    .prism-section-header h2{
        font-size:28px;
    }

    /* Latest header */
    .prism-latest-header{
        padding:14px 20px;
    }

    .prism-latest-title{
        font-size:19px;
    }

    /* Article slider cards: 2 per row on tablet */
    .prism-article-card{
        flex:0 0 calc(50% - 14px);
    }

    .prism-article-image{
        height:220px;
    }

    .prism-article-body{
        padding:22px;
    }

    .prism-article-body h3{
        font-size:19px;
    }

    .prism-article-slider-btn{
        display:none;
    }

}

/* ---------- 768px and below (large mobile / tablet portrait) ---------- */
@media (max-width:768px){

    .prism-home-categories,
    .prism-home-featured,
    .prism-home-articles{
        padding:40px 0;
    }

    .prism-category-list{
        gap:20px;
    }

    .prism-category-icon{
        width:48px;
        height:48px;
    }

    .prism-category-icon svg{
        width:34px;
        height:34px;
    }

    .prism-category-title{
        font-size:13px;
    }

    .prism-featured-content h2{
        font-size:24px;
    }

    .prism-featured-content{
        bottom:24px;
        right:24px;
        left:24px;
    }

    .prism-featured-side{
        flex-direction:column;
    }

    .prism-featured-side .prism-featured-card{
        flex:1 1 100%;
    }

    /* Latest header wraps on small screens */
    .prism-latest-header{
        flex-wrap:wrap;
        gap:12px;
    }

    .prism-latest-line{
        display:none;
    }

    .prism-latest-more{
        margin-right:auto;
    }

}

/* ---------- 576px and below (mobile) ---------- */
@media (max-width:576px){

    /* Category icons: 3 per row */
    .prism-category-list{
        gap:18px;
    }

    .prism-category-item{
        min-width:calc(33.33% - 12px);
    }

    /* Featured */
    .prism-featured-main{
        border-radius:22px;
        min-height:280px;
    }

    .prism-featured-content h2{
        font-size:20px;
        margin:10px 0;
    }

    .prism-featured-card-image{
        height:150px;
    }

    /* Article grid legacy */
    .prism-article-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    /* Section header */
    .prism-section-header h2{
        font-size:22px;
    }

    /* Latest header */
    .prism-latest-header{
        padding:12px 16px;
        border-radius:16px;
    }

    .prism-latest-title{
        font-size:16px;
    }

    .prism-latest-more{
        font-size:13px;
        padding:7px 14px;
    }

    /* Article slider: 1 full-width card per view */
    .prism-article-track{
        gap:16px;
    }

    .prism-article-card{
        flex:0 0 88%;
        border-radius:22px;
    }

    .prism-article-image{
        height:190px;
    }

    .prism-article-category{
        top:14px;
        left:14px;
        padding:5px 14px;
        font-size:12px;
    }

    .prism-article-body{
        padding:18px;
    }

    .prism-article-body h3{
        font-size:17px;
        line-height:1.6;
        margin:0 0 10px;
    }

    .prism-article-body p{
        font-size:13px;
        line-height:1.8;
        min-height:auto;
    }

    .prism-article-divider{
        margin:14px 0;
    }

    .prism-article-footer{
        font-size:13px;
    }

}

.prism-article-slider{

    overflow:hidden;

    width:100%;

}


.prism-article-track{

    display:flex;

    gap:28px;

    width:max-content;

    transition:transform .45s ease;

    will-change:transform;

}


.prism-article-card{

    flex:0 0 280px;

}
/* ======================================
   Article Slider Final Layout
====================================== */


.prism-article-slider {

    overflow:hidden;

    width:100%;

}



.prism-article-track {

    display:flex;

    gap:28px;

    direction:rtl;

    width:max-content;

    transition:
        transform .45s ease;

    will-change:transform;

}



.prism-article-card {

    flex:0 0 320px;

}
/* ======================================
   Editorial Premium Layout
====================================== */


.prism-home-editorial {

    padding:25px 0 15px;

}


.prism-editorial-grid {

    display:grid;

    grid-template-columns:320px minmax(500px,1fr) 320px;

    gap:24px;

}



/* Side Boxes */

.prism-editorial-column {

    background:
        var(--prism-surface);

    border:
        1px solid var(--prism-border);

    border-radius:28px;

    padding:20px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);

    height:max-content;

}



/* Header */


.prism-editorial-title {

    display:flex;

    align-items:center;

    gap:10px;

    font-size:20px;

    margin:0 0 18px;

}


.prism-editorial-title::before {

    content:"";

    width:8px;

    height:8px;

    border-radius:50%;

    background:#D4AF37;

}





/* Small Posts */


.prism-editorial-small {

    position:relative;

    padding:14px 0;

    border-bottom:1px dashed var(--prism-border);

    transition:.3s;

}


.prism-editorial-small:last-child {

    border-bottom:none;

}



.prism-editorial-small:hover {

    transform:translateX(-5px);

}



.prism-editorial-small h4 {

    font-size:15px;

    line-height:1.8;

    margin:0 0 8px;

    font-weight:700;

}



.prism-editorial-small span {

    font-size:13px;

    color:var(--prism-text-soft);

}





/* Center Banner */


.prism-editorial-featured {

    position:relative;

    min-height:460px;

    border-radius:32px;

    overflow:hidden;

    box-shadow:

        0 25px 70px rgba(0,0,0,.14);

}



.prism-editorial-featured img {

    width:100%;

    height:460px;

    object-fit:cover;

}





.prism-editorial-overlay {

    position:absolute;

    inset:0;

    padding:40px;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    background:

    linear-gradient(
        0deg,
        rgba(8,45,36,.95),
        rgba(8,45,36,.08)
    );

}



.prism-editorial-badge {

    background:#D4AF37;

    color:#082D24;

    width:max-content;

    padding:6px 16px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

}





.prism-editorial-overlay h2 {

    color:#fff;

    font-size:32px;

    line-height:1.5;

    margin:16px 0;

}



.prism-editorial-overlay p {

    color:rgba(255,255,255,.85);

    font-size:15px;

    line-height:2;

    margin:0;

}





.prism-editorial-meta {

    display:flex;

    align-items:center;

    gap:22px;

    margin-top:22px;

}



.prism-editorial-meta a {

    background:#fff;

    color:#0F4C3A;

    padding:11px 24px;

    border-radius:25px;

    font-weight:700;

    text-decoration:none;

}



.prism-editorial-meta span {

    color:#fff;

    font-size:14px;

}
/* ======================================
   Editorial Small Cards Fix
====================================== */


.prism-editorial-list {
    display:flex;
    flex-direction:column;
    gap:14px;
}



.prism-editorial-small {

    display:flex !important;

    align-items:center;

    gap:14px;

    padding:12px;

    background:var(--prism-surface);

    border:1px solid var(--prism-border);

    border-radius:18px;

    overflow:hidden;

    transition:.3s ease;

}



.prism-editorial-small:hover {

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}



.prism-editorial-thumb {

    width:72px !important;

    height:62px !important;

    flex:0 0 72px;

    border-radius:12px;

    overflow:hidden;

}



.prism-editorial-thumb img {

    width:100% !important;

    height:100% !important;

    object-fit:cover !important;

    display:block;

}



.prism-editorial-info {

    flex:1;

    min-width:0;

}



.prism-editorial-info h4 {

    font-size:14px;

    line-height:1.8;

    margin:0 0 6px;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

}



.prism-editorial-info span {

    font-size:12px;

    color:var(--prism-text-soft);

}



/* Featured Image Fix */

.prism-editorial-featured {

    position:relative;

    overflow:hidden;

    border-radius:30px;

    min-height:430px;

}



.prism-editorial-featured > img {

    position:absolute;

    inset:0;

    width:100% !important;

    height:100% !important;

    object-fit:cover !important;

}



/* Mobile */

@media(max-width:992px){

    .prism-editorial-grid{

        grid-template-columns:1fr;

    }

}

.test-editorial {
    outline:5px solid red !important;
}
/* ======================================
   Home Promo Banner
====================================== */


.prism-home-promo {

    padding:25px 0 5px;

}


/* Grid */

.prism-promo-grid {

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:24px;

}


/* Cards */

.prism-promo-grid a {

    position:relative;

    display:block;

    overflow:hidden;

    border-radius:28px;

    min-height:240px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.10);

}


/* Image */

.prism-promo-grid img {

    width:100%;

    height:100%;

    min-height:240px;

    object-fit:cover;

    transition:.5s ease;

}



.prism-promo-grid a:hover img {

    transform:scale(1.06);

}



/* Overlay */

.prism-promo-overlay {

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    color:#fff;

    background:

    linear-gradient(
        0deg,
        rgba(8,45,36,.75),
        transparent 70%
    );

}


/* Title */

.prism-promo-overlay h2,
.prism-promo-overlay h3 {

    margin:0 0 8px;

    font-size:26px;

    font-weight:800;

    line-height:1.5;

}


/* Description */

.prism-promo-overlay span {

    font-size:14px;

    opacity:.9;

}


/* Large Banner */

.prism-promo-grid a:first-child 
.prism-promo-overlay h2 {

    font-size:32px;

}


/* Mobile */

@media(max-width:992px){

    .prism-promo-grid {

        grid-template-columns:1fr;

    }


    .prism-promo-grid a {

        min-height:220px;

    }


}


@media(max-width:576px){


    .prism-home-promo {

        padding:20px 0 5px;

    }


    .prism-promo-overlay {

        padding:20px;

    }


    .prism-promo-overlay h2,
    .prism-promo-overlay h3 {

        font-size:20px;

    }


}

/* ======================================
   Home Popular Section
====================================== */


.prism-home-popular{
    padding:40;
    margin-top:40px;
    margin-bottom:25px;
}


/* ======================================
   Popular Layout 1/3 - 2/3
====================================== */


.prism-popular-grid{

    display:grid;

    grid-template-columns:1fr 2fr;

    gap:25px;

    align-items:stretch;

}



/* ======================================
   Main Category Box
====================================== */


.prism-popular-main{

    background:var(--prism-surface);

    border:1px solid var(--prism-border);

    border-radius:28px;

    padding:18px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);

    display:flex;

    flex-direction:column;

}



/* Header */

.prism-section-header{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:20px;

}



.prism-section-line{

    flex:1;

    height:1px;

    background:
    repeating-linear-gradient(
        to left,
        var(--prism-border) 0,
        var(--prism-border) 6px,
        transparent 6px,
        transparent 14px
    );

}



/* ======================================
   Category Slider
====================================== */


.prism-popular-slider{

    flex:1;

}



.prism-category-slider{

    display:none;

}



.prism-category-slider.active{

    display:block;

}


/* ======================================
   Popular Feature Slider Premium Animation
====================================== */


.prism-popular-feature-slider{

    position:relative;
    width:100%;
    min-height:420px;
    overflow:hidden;

}


/* Slide */

.prism-popular-feature-card{

    display:none;

    width:100%;

    background:var(--prism-surface);

    border-radius:22px;

    overflow:hidden;

    border:1px solid var(--prism-border);

    opacity:0;

}



/* Active */

.prism-popular-feature-card.active{

    display:block;

    animation:
        popularCardFade .9s ease forwards;

}



/* Card Fade */

@keyframes popularCardFade{


    from{

        opacity:0;

        transform:
        translateY(25px)
        scale(.97);

    }


    to{

        opacity:1;

        transform:
        translateY(0)
        scale(1);

    }

}



/* ======================================
   Image Premium Motion
====================================== */


.prism-popular-feature-image{

    height:230px;

    overflow:hidden;

    position:relative;

}



/* Dark overlay */

.prism-popular-feature-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        180deg,
        transparent 40%,
        rgba(8,45,36,.45)
    );

    z-index:2;

}




.prism-popular-feature-image img{


    width:100%;

    height:100%;

    object-fit:cover;

    transform:
    scale(1.18)
    translateX(0);

    filter:
    blur(3px)
    brightness(.85);

}



/* Image Animation */

.prism-popular-feature-card.active
.prism-popular-feature-image img{


    animation:
    popularImageZoom 1.8s cubic-bezier(.22,.61,.36,1)
    forwards;


}




@keyframes popularImageZoom{


    from{

        transform:
        scale(1.18)
        translateX(20px);

        filter:
        blur(3px)
        brightness(.85);

    }


    to{

        transform:
        scale(1)
        translateX(0);

        filter:
        blur(0)
        brightness(1);

    }

}




/* ======================================
   Content Animation
====================================== */


.prism-popular-feature-body{

    padding:22px;

    animation:
    popularText .8s ease .25s both;

}



@keyframes popularText{


    from{

        opacity:0;

        transform:
        translateY(20px);

    }


    to{

        opacity:1;

        transform:
        translateY(0);

    }

}



/* ======================================
   Arrows RTL Fix
====================================== */


.prism-popular-slider-controls{


    position:absolute;

    top:50%;

    right:0;

    left:0;

    transform:translateY(-50%);

    display:flex;

    justify-content:space-between;

    padding:0 15px;

    z-index:30;

}




.prism-popular-prev,
.prism-popular-next{


    width:46px;

    height:46px;

    border-radius:50%;

    background:
    rgba(255,255,255,.9);

    color:var(--prism-primary);

    border:1px solid rgba(255,255,255,.5);

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    box-shadow:
    0 10px 30px rgba(0,0,0,.15);

    transition:.35s;

}



.prism-popular-prev:hover,
.prism-popular-next:hover{


    background:var(--prism-primary);

    color:#fff;

    transform:scale(1.1);

}



/*
   RTL Direction

   right arrow  → previous
   left arrow   → next

*/


.prism-popular-prev svg{

    transform:rotate(180deg);

}


.prism-popular-next svg{

    transform:rotate(0deg);

}





/* ======================================
   Dots
====================================== */


.prism-popular-dots{


    position:absolute;

    bottom:18px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:8px;

    z-index:30;

}



.prism-popular-dots span{


    width:8px;

    height:8px;

    border-radius:20px;

    background:#ddd;

    transition:.35s;

}



.prism-popular-dots span.active{


    width:28px;

    background:#D4AF37;

}

/* ======================================
   Image Animation
====================================== */


.prism-popular-feature-image{

    height:230px;

    overflow:hidden;

    position:relative;

}



.prism-popular-feature-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(8,45,36,.35)
        );

}



.prism-popular-feature-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transform:scale(1.12);

    filter:
        brightness(.95)
        saturate(1.1);

    transition:

        transform 1.8s ease,

        filter 1s ease;

}



.prism-popular-feature-card.active
.prism-popular-feature-image img{

    transform:scale(1);

    filter:
        brightness(1)
        saturate(1.15);

}



/* ======================================
   Content
====================================== */


.prism-popular-feature-body{

    padding:22px;

    animation:
        popularContentFade .8s ease both;

}



@keyframes popularContentFade{

    from{

        opacity:0;

        transform:translateY(25px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }

}



.prism-popular-feature-body h3{

    font-size:20px;

    line-height:1.8;

    margin:0 0 12px;

}



.prism-popular-feature-body p{

    font-size:14px;

    line-height:2;

    color:var(--prism-text-soft);

}



/* Meta */


.prism-popular-feature-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:22px;

    font-size:13px;

}



.prism-popular-feature-meta a{

    color:var(--prism-primary);

    font-weight:700;

    text-decoration:none;

}



/* ======================================
   Right Popular Posts 2x2
====================================== */


.prism-popular-sidebar-box{

    background:var(--prism-surface);

    border:1px solid var(--prism-border);

    border-radius:28px;

    padding:22px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);

}


/* ======================================
   Popular Posts 3 Columns
====================================== */


.prism-popular-mini-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}


.prism-popular-mini-card{

    border:1px solid var(--prism-border);

    border-radius:20px;

    overflow:hidden;

    transition:.35s;

}



.prism-popular-mini-card:hover{

    transform:translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.1);

}



.prism-mini-image{

    height:140px;

    overflow:hidden;

}



.prism-mini-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}



.prism-popular-mini-card:hover img{

    transform:scale(1.06);

}



.prism-mini-content{

    padding:14px;

}



.prism-mini-content h4{

    font-size:14px;

    line-height:1.8;

    margin:0 0 10px;

}


/* ======================================
   Popular Mini Card Meta Fix
====================================== */


.prism-mini-content{
    padding:14px;
}


.prism-mini-content h4{

    font-size:14px;
    line-height:1.8;
    margin:0 0 12px;

}


/* Bottom Row */

.prism-mini-meta{

    display:flex;

    align-items:center;

    justify-content:space-between;

    width:100%;

    margin-top:12px;

    font-size:12px;

}


/* Reading Time */

.prism-mini-meta span{

    color:var(--prism-text-soft);

    white-space:nowrap;

}



/* Link Left */

.prism-mini-meta a{

    color:var(--prism-primary);

    font-size:13px;

    font-weight:700;

    text-decoration:none;

    margin-right:auto;

    transition:.3s;

}


.prism-mini-meta a:hover{

    color:#D4AF37;

}

/* ======================================
   Slider Controls RTL
====================================== */


.prism-popular-slider-controls{

    position:absolute;

    top:50%;

    right:0;

    left:0;

    transform:translateY(-50%);

    display:flex;

    justify-content:space-between;

    padding:0 15px;

    z-index:20;

    pointer-events:none;

}



/* Buttons */


.prism-popular-prev,
.prism-popular-next{

    width:46px;

    height:46px;

    border-radius:50%;

    border:1px solid rgba(255,255,255,.5);

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(12px);

    color:var(--prism-primary);

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    pointer-events:auto;

    transition:.3s;

}



.prism-popular-prev:hover,
.prism-popular-next:hover{

    background:var(--prism-primary);

    color:white;

}



/* RTL Direction Fix */

/* سمت راست تصویر */

.prism-popular-prev{

    order:2;

}


/* سمت چپ تصویر */

.prism-popular-next{

    order:1;

}



.prism-popular-prev svg,
.prism-popular-next svg{

    width:22px;

    height:22px;

    stroke:currentColor;

    fill:none;

    stroke-width:2.5;

}



/* ======================================
   Dots
====================================== */


.prism-popular-dots{

    position:absolute;

    bottom:16px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:7px;

}



.prism-popular-dots span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#ddd;

    transition:.3s;

}



.prism-popular-dots span.active{

    width:25px;

    border-radius:20px;

    background:#D4AF37;

}



/* ======================================
   Responsive
====================================== */


@media(max-width:992px){

    .prism-popular-grid{

        grid-template-columns:1fr;

    }

}



@media(max-width:576px){

    .prism-popular-mini-grid{

        grid-template-columns:1fr;

    }


    .prism-popular-feature-slider{

        min-height:auto;

    }

}
