﻿/* ===== TESTIMONIAL SECTION ===== */

.pn-testimonials-section {
    padding: 40px 0;

    overflow: hidden;
}

/* ===== HEADER ===== */

.pn-testimonials-head {
    text-align: center;
    margin-bottom: 20px;
}


.pn-section-head h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    color: var(--pn-dark);
    letter-spacing: -0.8px;
}

.pn-section-head span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}


/* ===== SWIPER ===== */

.pn-testimonials-swiper {
    width: 85%;
    padding: 80px 0 !important;
}

    /* ===== SLIDES ===== */
    .pn-testimonials-swiper .swiper-slide {
        flex: 0 0 auto;
        width: 300px; /* تنظیم مناسب برای 3 اسلاید */
        opacity: 0.35;
        transform: scale(0.85);
        transition: transform 0.5s ease, opacity 0.5s ease;
        display: flex;
        justify-content: center;
    }

    .pn-testimonials-swiper .swiper-slide-active {
        transform: scale(1.08);
        opacity: 1;
        z-index: 10;
    }

    .pn-testimonials-swiper .swiper-slide-prev,
    .pn-testimonials-swiper .swiper-slide-next {
        transform: scale(0.92);
        opacity: 0.6;
    }

   

/* ===== CARD ===== */

.pn-testimonial-card {
    position: relative;
    height: 260px;
    width: 100%;
    display: flex;
    flex-direction: column; /* 👈 مهم */
    justify-content: flex-end; /* 👈 می‌بره پایین */
    padding: 30px;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    isolation: isolate;
    border-radius: 7px;
}

/* ===== USER ===== */

.pn-testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pn-testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #d6d9de;
    display: flex;
    align-items: center;
    justify-content:end;
    color: white;
    font-size: 26px;
}

.pn-testimonial-user h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 22px;
    font-weight: 800;
    
}

.pn-testimonial-user p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ===== QUOTES ===== */

.pn-quote {
    position: absolute;
    color: #522474;
    font-size: 70px;
    font-weight: bold;
    line-height: 1;
}

    .pn-quote.top {
        top: 15px;
        right: 20px;
    }

    .pn-quote.bottom {
        bottom: -10px;
        left: 20px;
    }

/* ===== PAGINATION ===== */

.pn-testimonials-swiper .swiper-pagination {
    margin-top: 110px;
    position: relative !important;
}

.pn-testimonials-swiper .swiper-pagination-bullet {
    width: 35px;
    height: 4px;
    border-radius: 20px;
    background: #bbb;
    opacity: 1;
}

.pn-testimonials-swiper .swiper-pagination-bullet-active {
    background: #7b1b74;
}

/* ===== MOBILE ===== */

@media(max-width:768px) {

    .pn-testimonials-swiper .swiper-slide {
        width: 260px !important;
    }

    .pn-testimonial-card {
        height: 190px;
    }

    .pn-testimonials-head h2 {
        font-size: 36px;
    }
}
.pn-testimonial-avatar i {
    font-size: 26px;
    color: #7b1b74;
}

/* ===== IMAGE BG (BALANCED) ===== */

.pn-card-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(.9) saturate(1.1);
    transition: .5s ease;
    z-index: 0;
}




.pn-testimonial-card:hover .pn-card-bg {
    transform: scale(1.08);
    filter: blur(0px);
    opacity: 1;
}

/* ===== CARD BASE ===== */
.pn-testimonial-card {
 

}

/* ===== BACKGROUND IMAGE ===== */
.pn-card-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(.95) saturate(1.05);
    transition: .5s ease;
    z-index: 0;
}

/* ===== OVERLAY (خیلی سبک) ===== */
.pn-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( to top, rgba(0,0,0,.65), rgba(0,0,0,.25), rgba(0,0,0,0) );
}

/* ===== CONTENT ===== */
.pn-testimonial-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    z-index: 2;
    text-align: center;
    color: #fff;
}
/* ===== HOVER ===== */
.pn-testimonial-card:hover .pn-card-bg {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.2);
}


/* متن‌ها */
.pn-testimonial-user h3,
.pn-testimonial-user p {
    color: #fff;
}
.pn-testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

    .pn-testimonial-info h3,
    .pn-testimonial-info p {
        margin: 0;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0,0,0,.6);
    }

    .pn-testimonial-info p {
        font-size: 13px;
        opacity: .85;
    }

.pn-testimonial-card:hover .pn-card-bg {
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.2);
}
