.section { position: relative; padding: 80px 10px; background-color: #0a0a0a; /* Dark background matching design */ background-image: url('/images/testimonial-bg.webp'); background-size: cover; /* background-position: center; */ background-repeat: no-repeat; color: #fff; overflow: hidden; min-height: 800px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .smallHeading { font-size: var(--small-text-size); color: var(--color-paragraph); font-family: var(--font-lato); font-weight: 600; letter-spacing: 2px; margin-bottom: 1rem; } .title { font-family: var(--font-cinzel), serif; /* Assuming Cinzel is available or similar serif */ font-size: 2.5rem; color: var(--color-paragraph); text-align: center; margin-bottom: 60px; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; } .sliderContainer { display: flex; justify-content: center; gap: 30px; max-width: 1400px; width: 100%; position: relative; padding: 0 60px; /* Space for arrows */ } .track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; } .card { background: #242323; border: 14px solid rgb(196, 156, 92); border-radius: 30px; padding: 40px 30px; text-align: center; position: relative; /* Flex basis for 3 items: 100% / 3 = 33.333% */ flex: 0 0 33.333%; max-width: 33.333%; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); box-sizing: border-box; margin: 0 15px; /* Visual gap */ /* Adjust flex basis to account for margin: calc(33.333% - 30px) */ flex: 0 0 calc(33.333% - 30px); max-width: calc(33.333% - 30px); } .avatarContainer { width: 120px; height: 120px; margin: 0 auto 20px; position: relative; border-radius: 50%; padding: 7px; background: rgb(196, 156, 92); /* Gold gradient border effect */ } .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; /* Inner border to separate from gold */ background-color: #333; } .authorImageWrapper { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; } .authorImage { border-radius: 50%; object-fit: cover; } .name { font-family: var(--font-inter), sans-serif; /* Assuming Inter or similar */ font-size: 1.1rem; color: var(--color-paragraph); margin-bottom: 30px; font-weight: 500; } .text { font-family: var(--font-cinzel), serif; font-size: 1.2rem; line-height: 1.6; color: #e0e0e0; margin-bottom: 30px; font-style: italic; } .stars { color: var(--color-paragraph); font-size: 1.5rem; letter-spacing: 5px; } .arrow { position: absolute; top: 50%; transform: translateY(-50%); color: var(--color-paragraph); font-size: 3rem; cursor: pointer; background: none; border: none; transition: transform 0.2s; z-index: 10; } .arrow:hover { transform: translateY(-50%) scale(1.1); } .prevArrow { left: 0; } .nextArrow { right: 0; } /* Lanterns decoration placeholder */ .lanterns { position: absolute; top: 0; right: 50px; width: 150px; height: auto; z-index: 5; } .button { display: inline-block; margin-top: 3rem; padding: 0.8rem 2rem; border: 1px solid var(--color-gold); color: #d3cab3; font-family: var(--font-lato); text-transform: uppercase; text-decoration: none; transition: all 0.3s ease; background: transparent; cursor: pointer; } .button:hover { background-color: var(--color-gold); color: #d3cab3; } /* Responsive adjustments for different viewport sizes */ @media (max-width: 1400px) { .sliderContainer { padding: 0 50px; } .arrow { font-size: 2.8rem; } } @media (max-width: 1200px) { .sliderContainer { padding: 0 40px; } .arrow { font-size: 2.5rem; } } @media (max-width: 1024px) { .sliderContainer { padding: 0 30px; } .card { flex: 0 0 100%; max-width: 50%; margin: 0; } .card:nth-child(3) { display: none; } .arrow { font-size: 2.2rem; } .prevArrow { left: 5px; } .nextArrow { right: 5px; } .title { font-size: 2.5rem; margin-bottom: 40px; } } @media (max-width: 768px) { .sliderContainer { padding: 0 20px; } .arrow { font-size: 2rem; } .prevArrow { left: 0; } .nextArrow { right: 0; } } @media (max-width: 480px) { .sliderContainer { padding: 0 15px; } .card { flex: 0 0 100%; max-width: 100%; margin: 0; } .card:nth-child(2) { display: none; } .card:nth-child(3) { display: none; } .arrow { font-size: 1.8rem; } .title { font-size: 2rem; } }