/* --- Section & Background Overlap --- */
.custom-testimonial-section {
    position: relative;
    padding: 100px 0; /* Padding creates space for image to break out */
    z-index: 1;
}

/* --- Background Image with Parallax & Blue Overlay --- */
.testimonial-bg-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 45%; /* Controls the height of the bar */
    
    /* 1. The transparent dark blue overlay (rgba matches your #0d1624 color at 90% opacity) */
    /* 2. The background image URL (replace with your actual image path) */
    background-image: 
        linear-gradient(rgb(0 0 0 / 85%), rgb(0 0 0 / 85%)), url(https://www.diydesignconstruction.com/public/DIYDESIGNCONSTRUCTION/themeaB9xY12z/assets/images/backgrounds/testimonial-bg.webp);
    
    background-size: cover;
    background-position: center;
    
    /* CSS Parallax Effect */
    background-attachment: fixed; 
    
    z-index: -1;
}

.relative-container {
    position: relative;
    z-index: 2;
}

/* --- Left Side: Image --- */
.testimonial-image-box {
    width: 100%;
    height: 480px; /* Forces uniform height for all images */
    overflow: hidden;
    border-radius: 4px; /* Optional slight rounding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.testimonial-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Ensures heads aren't cut off */
}

/* --- Right Side: Content --- */
.testimonial-text-box {
    padding: 40px 0 40px 40px;
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.quote-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border: 2px solid var(--color-3);
    color: var(--color-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.author-info h4 {
    color:var(--color-2);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.author-info span {
    color: #a0aab8;
    font-size: 14px;
    font-weight: 500;
}

.testi-body p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* --- Navigation Arrows --- */
.testimonial-nav {
    position: absolute;
    bottom: 20px;
    left: calc(33.333% + 40px); /* Aligns perfectly under the text based on bootstrap col sizes */
    display: flex;
    gap: 0; /* Arrows touching like in the image */
    z-index: 10;
}

.testi-button-prev,
.testi-button-next {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 1px solid var(--color-2);
    color: var(--color-2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.testi-button-prev i,
.testi-button-next i{
	color: var(--color-2)!important;
}
.testi-button-prev:hover,
.testi-button-next:hover {
    background-color: var(--color-2);
    color: #ffffff;
}
.testi-button-prev:hover i,
.testi-button-next:hover i {
    color: #ffffff!important;
}
/* Responsive fixes for mobile */
@media (max-width: 991px) {
    .testimonial-bg-bar { height: 100%; }
    .custom-testimonial-section { padding: 50px 0; }
    .testimonial-image-box { height: 350px; margin-bottom: 30px; }
    .testimonial-text-box { padding: 0 15px; }
    .testimonial-nav { position: relative; left: 0; margin-top: 30px; padding-left: 15px;}
}