/*
 * Dana Prime — Testimonials Slider
 * Font: SF Pro Display (Medium 500 & Bold 700)
 */

.dp-testi-container {
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    text-align: left;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── HOME PAGE SPECIFIC: BG IMAGE & OVERLAY ── */
.page-id-1142 .dp-testi-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                      url('/wp-content/uploads/2026/04/testimonial-bg-img.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff; /* Change base text to white */
}

/* ── HOME PAGE SPECIFIC: TESTIMONIAL IMAGE ROUNDING ── */
.page-id-1142 .dp-testi-img {
    background: #ffffff;
    border-radius: 999px;
    padding: 3px;
    width: 60px;
    height: 60px; /* Fixed typo from heightt */
    overflow: hidden; /* Ensures the image doesn't bleed out of the circle */
}


/* Adjust text colors for visibility on dark BG (Home Page Only) */
.page-id-1142 .dp-testi-text,
.page-id-1142 .dp-testi-name {
    color: #ffffff !important;
}

.page-id-1142 .dp-testi-title {
    color: rgba(255, 255, 255, 0.7) !important;
}

.page-id-1142 .dp-testi-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-id-1142 .dp-testi-quote-icon {
    color: rgba(201, 168, 71, 0.2); /* Make quote icon subtle gold */
}

/* ── SHARED STYLES ── */
.dp-testi-quote-icon {
    display: block;
    font-size: 85px;
    font-family: serif;
    color: #f8f1e0;
    line-height: 1;
    margin-bottom: -15px; 
    margin-left: -5px;
    pointer-events: none;
}

.dp-testi-slider {
    position: relative;
    display: grid;
    grid-template-columns: 100%;
}

.dp-testi-card {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.dp-testi-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.dp-testi-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.dp-testi-stars .star {
    font-size: 20px;
    color: #ddd;
    position: relative;
    line-height: 1;
}

.dp-testi-stars .star.full { color: #C9A847; }

.dp-testi-stars .star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #C9A847;
}

.dp-testi-text {
    font-size: 22px;
    line-height: 1.6;
    color: #2C3E50;
    font-weight: 500;
    margin-bottom: 30px;
}

.dp-testi-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.dp-testi-img {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-testi-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dp-testi-info {
    flex: 1;
}

.dp-testi-name {
    display: block;
    font-weight: 700;
    color: #2C3E50;
    font-size: 16px;
}

.dp-testi-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #7f8c8d;
    margin-top: 2px;
}

.dp-testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dp-testi-dot {
    width: 30px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dp-testi-dot.active {
    background: #C9A847;
    width: 50px;
}

@media (max-width: 768px) {
    .dp-testi-container { padding: 40px 25px 25px; margin: 20px 10px; }
    .dp-testi-quote-icon { font-size: 60px; margin-bottom: -10px; }
    .dp-testi-text { font-size: 18px; line-height: 1.5; }
}