.testimonialSection { padding: 4rem 0; overflow: hidden; background: linear-gradient(to right, #f9fafb 50%, #ffffff 50%); /* Subtle separation if needed */ background: #f8fafc; } .layoutContainer { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; position: relative; padding: 0 2rem; gap: 0; /* No gap because we force overlap */ } /* LEFT SIDE CARD */ .leftCard { flex: 0 0 450px; background: var(--primary); /* Assuming green/primary color */ background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 32px; padding: 4rem 3rem; color: white; position: relative; z-index: 10; /* Above slider */ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Make it overlap the slider area */ margin-right: -40px; overflow: hidden; /* For pattern */ min-height: 500px; display: flex; flex-direction: column; justify-content: center; } /* Decorative pattern roughly matching image curves */ .leftCard::before { content: ''; position: absolute; bottom: -50px; right: -50px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, 0.1); } .leftCard::after { content: ''; position: absolute; bottom: -80px; right: -80px; width: 300px; height: 300px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, 0.05); } .cardContent { position: relative; z-index: 2; } .cardTitle { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: white; } .cardDescription { font-size: 1.1rem; line-height: 1.6; opacity: 0.9; margin-bottom: 3rem; max-width: 90%; color: #fff; } .miniStats { display: flex; gap: 2rem; margin-bottom: 3rem; } .statBadge { display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 255, 255, 0.1); padding: 0.75rem 1rem; border-radius: 12px; backdrop-filter: blur(5px); } .statIcon { font-size: 1.5rem; } .statBadge strong { display: block; font-size: 1.1rem; line-height: 1; } .statBadge span { font-size: 0.8rem; opacity: 0.8; } .readMoreBtn { background: white; color: var(--primary); border: none; padding: 1rem 2rem; border-radius: 12px; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; } .readMoreBtn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } /* RIGHT SIDE SLIDER */ .sliderContainer { flex: 1; position: relative; z-index: 1; /* Below Left Card */ overflow: hidden; padding: 4rem 0 4rem 6rem; /* Extra left padding to compensate overlap */ /* Mask/gradient to fade out right side? Optional. */ mask-image: linear-gradient(to right, black 80%, transparent 100%); } .sliderTrack { display: flex; gap: 2rem; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); } .sliderCard { flex: 0 0 320px; background: white; border-radius: 20px; padding: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border: 1px solid #edf2f7; transition: transform 0.3s ease; display: flex; flex-direction: column; } .sliderCard:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); } .cardHeader { display: flex; align-items: center; margin-bottom: 1.5rem; gap: 1rem; } .userImage { width: 48px; height: 48px; border-radius: 50%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; } .userInfo { display: flex; flex-direction: column; gap: 0.25rem; } .userInfo h4 { font-size: 1.1rem; font-weight: 700; margin: 0; color: #2d3748; } .userCompany { font-size: 0.85rem; color: #718096; display: block; } .rating { font-size: 0.75rem; color: #fbbf24; /* yellow-400 */ letter-spacing: 1px; } .reviewTitle { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: #1a202c; } .reviewText { font-size: 0.95rem; line-height: 1.6; color: #4a5568; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } /* NAVIGATION */ .sliderNav { display: flex; gap: 1rem; margin-top: 2rem; justify-content: flex-start; padding-left: 2rem; } .navBtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cbd5e0; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: #4a5568; } .navBtn:hover { background: var(--primary); color: white; border-color: var(--primary); } /* RESPONSIVE */ .cardBgPattern { display: none; } @media (max-width: 1024px) { .layoutContainer { flex-direction: column; align-items: stretch; gap: 2rem; padding: 0 1rem; } .leftCard { flex: none; margin-right: 0; width: 100%; min-height: auto; padding: 3rem 2rem; border-radius: 24px; } .sliderContainer { padding: 0; mask-image: none; overflow: hidden; /* Restore hidden overflow for slider */ } .sliderTrack { padding-bottom: 2rem; /* Re-enable JS slider */ /* overflow-x: auto; */ /* transform: none !important; */ } .sliderCard { flex: 0 0 280px; } } @media (max-width: 480px) { .layoutContainer { padding: 0 1rem; width: 100%; overflow: hidden; /* Prevent container burst */ } .leftCard { padding: 2.5rem 1.5rem; width: 100%; margin-right: 0; border-radius: 20px; } .cardTitle { font-size: 2rem; } .sliderTrack { /* Ensure track aligns well */ gap: 1rem; } .sliderCard { flex: 0 0 260px; /* Slightly smaller card for small mobile */ padding: 1.5rem; } /* Stack stats one by one on mobile */ .miniStats { flex-direction: column; gap: 1rem; } .statBadge { width: 100%; } }