:root {
--primary-color: #AD573A;
--secondary-color: #F4F1E7;
--BG: #FFFFFF;
--Rating: #F59E0B;
--text: #374151;
}

body {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
overflow-x: hidden;
background-color: var(--BG);
}

.testimonials-section {
background-color: var(--BG);
background-image: url("https://transparenttextures.com/patterns/arches.png");
padding: 50px 0;
position: relative;
overflow: hidden;
width: 100%;
}

.section-title {
font-size: 2.2rem;
text-align: center;
font-weight: 700;
color: var(--primary-color);
margin: 0 0 0.8rem 0;
}

.services-divider-icon {
display: table;
margin: 8px auto 5px;
position: relative;
}

.services-divider-icon img {
height: 50px;
width: auto;
vertical-align: middle;
}

.services-divider-icon::before,
.services-divider-icon::after {
content: '';
display: block;
width: 80px;
height: 1px;
background: var(--primary-color);
position: absolute;
top: 50%;
}
.services-divider-icon::before { left: -90px; }
.services-divider-icon::after { right: -90px; }

.premium-carousel-container {
width: 100%;
max-width: 1400px;
margin: 0 auto;
overflow: visible;
position: relative;
padding: 0 40px 20px;
box-sizing: border-box;
}

.premium-track {
display: flex;
width: 100%;
gap: 20px;
padding: 0;
box-sizing: border-box;
overflow-x: auto;
scroll-behavior: auto;
cursor: grab;
-ms-overflow-style: none;
scrollbar-width: none;
}

.premium-track:active, .premium-track.paused {
cursor: grabbing;
}

.premium-track::-webkit-scrollbar {
display: none;
}

.premium-track.is-dragging {
user-select: none;
-webkit-user-select: none;
}

.testimonial-carousel-control {
position: absolute;
top: auto;
bottom: 27px;
z-index: 3;
width: 44px;
height: 44px;
border: 1px solid #eaded1;
border-radius: 50%;
background: #fffdfa;
box-shadow: 0 4px 10px rgba(63, 42, 31, 0.1);
color: #714330;
cursor: pointer;
display: grid;
place-items: center;
transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
font-size: 0.9rem;
}

.testimonial-carousel-control:hover {
background: #fff;
box-shadow: 0 6px 14px rgba(63, 42, 31, 0.14);
transform: translateY(-2px);
}

.testimonial-carousel-control:focus-visible,
.testimonial-carousel-dot:focus-visible,
.premium-action-btn:focus-visible,
.premium-modal-close:focus-visible {
outline: 3px solid rgba(173, 87, 58, 0.34);
outline-offset: 3px;
}

.testimonial-carousel-prev { left: 0px; }
.testimonial-carousel-next { right: 0px; }

.testimonial-carousel-pagination {
display: flex;
justify-content: center;
gap: 8px;
min-height: 12px;
margin-top: 0;
}

.testimonial-carousel-dot {
width: 10px;
height: 10px;
padding: 0;
border: 0;
border-radius: 50%;
background: #ded7cf;
cursor: pointer;
transition: width 0.2s ease, background-color 0.2s ease;
}

.testimonial-carousel-dot.is-active {
width: 10px;
background: #a9644b;
}

@keyframes fadeInUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}

.premium-card {
flex: 0 0 calc((100% - 40px) / 3);
max-width: 400px;
height: 350px;
flex-shrink: 0;
background: #fffdfa;
border-radius: 18px;
box-shadow: 0 8px 20px rgba(70, 49, 38, 0.06);
border: 1px solid #eadfd4;
padding: 18px 20px 20px;
display: flex;
flex-direction: column;
position: relative;
transition: transform 0.25s ease, box-shadow 0.25s ease;
box-sizing: border-box;
overflow: hidden;
opacity: 0;
animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.premium-card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 24px rgba(70, 49, 38, 0.1);
}

.premium-card::before {
content: "\201D";
font-family: Georgia, serif;
font-size: 56px;
font-weight: 900;
color: #f1e5d6;
position: absolute;
top: 14px;
right: 18px;
line-height: 1;
z-index: 1;
pointer-events: none;
}

.premium-card-header {
display: flex;
align-items: center;
gap: 12px;
margin: 0 0 12px;
position: relative;
z-index: 2;
}

.premium-card-img {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
border: 1px solid #be7a60;
}

.premium-card-name {
font-family: Georgia, 'Times New Roman', serif;
font-weight: 700;
color: #743e2b;
font-size: 1.1rem;
line-height: 1.2;
margin: 0;
}

.premium-card-role {
display: block;
margin-top: 3px;
color: #655c55;
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.1em;
line-height: 1.2;
text-transform: uppercase;
}

.premium-card-body {
position: relative;
z-index: 2;
display: flex;
flex: 1;
min-height: 0;
}

.premium-card-content {
display: flex;
width: 100%;
min-height: 0;
}

.has-video-and-text .premium-card-content {
display: grid;
grid-template-columns: 110px minmax(0, 1fr);
gap: 12px;
align-items: start;
}

.has-video-only .premium-card-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
gap: 10px;
}

.premium-card-copy {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
}

.premium-quote-copy {
position: relative;
padding-top: 24px;
}

.premium-quote-copy::before {
content: "\201C";
position: absolute;
top: 0;
left: 0;
color: #a9654b;
font-family: Georgia, serif;
font-size: 24px;
font-weight: 700;
line-height: 1;
}

.premium-card-text {
color: #3f3d3a;
font-style: italic;
line-height: 1.5;
margin: 0;
font-size: 0.8rem;
text-align: left;
display: -webkit-box;
-webkit-line-clamp: 6;
-webkit-box-orient: vertical;
overflow: hidden;
}

.premium-video-inline {
width: 110px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
margin: 0;
z-index: 5;
position: relative;
cursor: pointer;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 6px 12px rgba(43, 35, 30, 0.14);
}

.has-video-and-text .premium-video-inline { max-width: 110px; }
.has-video-only .premium-video-inline { max-width: 160px; margin: 0 auto; }

.premium-video-inline video {
width: 100%;
aspect-ratio: 9 / 16;
object-fit: cover;
background: #000;
display: block;
}

.play-btn-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 34px;
height: 34px;
background: rgba(255, 255, 255, 0.95);
border: 1px solid rgba(117, 62, 43, 0.22);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-size: 0.75rem;
padding-left: 2px;
pointer-events: none;
box-shadow: 0 3px 10px rgba(63, 42, 31, 0.18);
z-index: 10;
}

.yt-video-controls {
display: none;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
padding: 8px 8px 6px 8px;
box-sizing: border-box;
flex-direction: column;
gap: 4px;
z-index: 10;
}

.yt-timeline-container {
width: 100%;
height: 10px;
display: flex;
align-items: center;
cursor: pointer;
position: relative;
}

.yt-timeline-bg {
width: 100%;
height: 3px;
background: rgba(255, 255, 255, 0.35);
border-radius: 2px;
position: relative;
transition: height 0.15s ease;
}

.yt-timeline-container:hover .yt-timeline-bg {
height: 4px;
}

.yt-timeline-progress {
height: 100%;
background: #ad573a;
width: 0%;
border-radius: 2px;
position: relative;
pointer-events: none;
}

.yt-timeline-progress::after {
content: '';
position: absolute;
right: -4px;
top: 50%;
transform: translateY(-50%) scale(0);
width: 8px;
height: 8px;
background: #ad573a;
border-radius: 50%;
transition: transform 0.15s ease;
}

.yt-timeline-container:hover .yt-timeline-progress::after {
transform: translateY(-50%) scale(1);
}

.yt-time-display {
color: #ffffff;
font-size: 0.65rem;
font-family: system-ui, -apple-system, sans-serif;
font-weight: 500;
user-select: none;
display: flex;
align-items: center;
gap: 3px;
letter-spacing: 0.2px;
text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.premium-card-footer {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #eadfd4;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
}

.premium-card-action {
display: flex;
justify-content: flex-start;
width: 100%;
margin-top: 14px;
}

.has-video-only .premium-card-action {
justify-content: center;
}

.has-video-and-text .premium-card-action {
margin-top: auto;
padding-top: 10px;
border-top: 1px solid #ded2c6;
}

.premium-action-btn {
color: var(--primary-color);
background: none;
border: none;
font-weight: 700;
font-size: 0.8rem;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
transition: color 0.2s ease;
text-decoration: none;
padding: 0;
}
.premium-action-btn:hover { color: #7d3f2d; }
.premium-action-btn:hover i { transform: translateX(3px); }
.premium-action-btn i { transition: transform 0.2s ease; font-size: 0.8rem; }

.testimonial-rating-summary { display: flex; align-items: center; gap: 6px; }
.premium-card-rating { display: flex; gap: 3px; color: #d69a2e; font-size: 0.85rem; }

.premium-rating-star.is-filled { color: #d69a2e; }
.premium-rating-star.is-empty { color: #d9d5cf; }

.rating-number { font-size: 0.8rem; font-weight: 700; color: #3f3d3a; }
.testimonial-footer-divider { width: 1px; height: 18px; background: #dfd3c7; }
.testimonial-verified { display: inline-flex; align-items: center; gap: 5px; color: #4e4a46; font-size: 0.7rem; }
.testimonial-verified i { color: #c78a28; font-size: 0.8rem; }

.premium-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.premium-modal-overlay.active { opacity: 1; visibility: visible; }
.premium-modal-content {
background: var(--BG);
width: 100%;
max-width: 450px;
max-height: 80vh;
border-radius: 16px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
position: relative;
transform: scale(0.95);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
overflow: hidden;
}
.premium-modal-overlay.active .premium-modal-content { transform: scale(1); }
.premium-modal-close {
position: absolute;
top: 12px; right: 12px;
width: 30px; height: 30px;
background: var(--secondary-color);
border: 2px solid var(--primary-color);
border-radius: 50%;
color: var(--primary-color);
font-size: 1rem;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
z-index: 100;
}
.premium-modal-body { padding: 24px; padding-top: 30px; display: flex; flex-direction: column; max-height: 100%; }
.modal-text-wrapper { display: flex; gap: 12px; flex: 1; min-height: 0; }
.modal-quote-icon { color: var(--secondary-color); font-size: 1.5rem; margin-top: -2px; flex-shrink: 0; }
.modal-text-scrollable { flex: 1; max-height: 50vh; overflow-y: auto; padding-right: 12px; font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.modal-text-scrollable p { margin: 0; text-align: justify; white-space: pre-line; }
.modal-text-scrollable::-webkit-scrollbar { width: 4px; }
.modal-text-scrollable::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

@media (max-width: 1200px) {
.premium-card {
flex: 0 0 calc((100% - 20px) / 2);
}
}

@media (max-width: 900px) {
.premium-carousel-container { width: min(100%, 680px); padding-left: 40px; padding-right: 40px; }
.premium-card { flex-basis: 100%; height: auto; min-height: 360px; padding: 18px; }
.has-video-and-text .premium-card-content { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
.testimonials-section { padding: 40px 0 42px; }
.section-title {
margin-top: -10px;
font-size: 1.6rem !important;
}
.services-divider-icon { margin-bottom: 0px; }
.services-divider-icon img { height: 40px; }
.premium-carousel-container { width: min(100%, 680px); padding-left: 28px; padding-right: 28px; }
.premium-track { gap: 16px; }
.testimonial-carousel-control { width: 36px; height: 36px; font-size: 0.8rem; }
.testimonial-carousel-prev { left: 4px; }
.testimonial-carousel-next { right: 4px; }
.premium-card-text {
font-size: 0.9rem !important;
line-height: 1.5 !important;
}
.premium-card:has(.premium-video-inline) .premium-card-action,
.premium-card:has(video) .premium-card-action,
.has-video-and-text .premium-card-action,
.has-video-only .premium-card-action {
display: flex !important;
justify-content: center !important;
align-items: center !important;
width: 100% !important;
text-align: center !important;
}
.premium-card:has(.premium-video-inline) .premium-action-btn,
.premium-card:has(video) .premium-action-btn,
.has-video-and-text .premium-action-btn,
.has-video-only .premium-action-btn {
margin: 0 auto !important;
}
}

@media (max-width: 620px) {
.premium-carousel-container { width: 100%; padding: 0 16px 20px; }
.premium-card { flex: 0 0 300px; min-height: 400px; padding: 18px; border-radius: 16px; margin: 0 auto; }
.has-video-and-text .premium-card-content { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.premium-video-inline { margin: 0 auto; width: 200px; justify-content: center; }
.has-video-and-text .premium-video-inline, .has-video-only .premium-video-inline { max-width: 160px; }
.has-video-and-text .premium-quote-copy { display: none; }

.premium-card-action,
.has-video-and-text .premium-card-action,
.has-video-only .premium-card-action {
margin-top: 14px !important;
border-top: none !important;
padding-top: 0 !important;
display: flex !important;
justify-content: center !important;
width: 100% !important;
text-align: center !important;
}

.premium-action-btn { margin: 0 auto !important; }
.testimonial-carousel-control { display: none; }

.premium-video-inline video { aspect-ratio: 4 / 5; }
.is-text-testimonial .premium-card-text { -webkit-line-clamp: 9; }
}