/* Testimonials Wrapper */
.testimonials__wrapper {
    position: relative;
    width: 100%;
}

/* Section Header */
.testimonials__wrapper .testimonials-section {
    padding: 60px 0;
}

.testimonials__wrapper .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials__wrapper .section-title {
    font-size: 54px;
    font-weight: 600;
    color: #212444;
    margin-bottom: 15px;
}

/* Google Reviews Header */
.testimonials__wrapper .google-reviews-header {
    background: rgba(239, 239, 239, 0.9);
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonials__wrapper .google-reviews-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.testimonials__wrapper .google-reviews-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Google Logo Styling */
.testimonials__wrapper .google-logo {
    display: flex;
    align-items: baseline;
    font-weight: 600;
    font-size: 1.5rem;
}

.testimonials__wrapper .google-g { color: #4285F4; }
.testimonials__wrapper .google-o1 { color: #EA4335; }
.testimonials__wrapper .google-o2 { color: #FBBC05; }
.testimonials__wrapper .google-g2 { color: #4285F4; }
.testimonials__wrapper .google-l { color: #34A853; }
.testimonials__wrapper .google-e { color: #EA4335; }

.testimonials__wrapper .reviews-text {
    color: #212444;
    font-weight: 400;
    margin-left: 5px;
}

/* Rating Section */
.testimonials__wrapper .rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonials__wrapper .rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: #212444;
}

.testimonials__wrapper .rating-section .stars {
    display: flex;
}

.testimonials__wrapper .rating-section .star {
    color: #E0E0E0;
    font-size: 30px;
}

.testimonials__wrapper .rating-section .star.filled {
    color: #FBBC05;
}

.testimonials__wrapper .rating-section .star.half-filled {
    background: linear-gradient(90deg, #FBBC05 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials__wrapper .review-count {
    font-size: 1rem;
    color: #7d7e8a;
}

/* Google Review Button */
.testimonials__wrapper .btn-google-review {
    background: #d7672e;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.testimonials__wrapper .btn-google-review:hover {
    background: #e28b56;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 139, 86, 0.3);
}

/* Partners Logos */
.testimonials__wrapper .partners-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.testimonials__wrapper .partner-logo {
    width: 100%;
    max-width: 100px;
    height: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials__wrapper .partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.testimonials__wrapper .partner-logo-link {
    text-decoration: none;
    display: block;
}

.testimonials__wrapper .partner-logo-link:hover .partner-logo {
    transform: scale(1.05);
}

/* Testimonial Slider */
.testimonials__wrapper .testimonials-slider {
    padding: 20px 0 70px;
    position: relative;
}

/* Testimonial Card */
.testimonials__wrapper .testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(215, 103, 46, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Testimonial Card without Avatar */
.testimonials__wrapper .testimonial-card.no-avatar {
    padding: 16px 20px;
}

.testimonials__wrapper .testimonial-card.no-avatar .testimonial-header-text-only {
    margin-bottom: 12px;
}

.testimonials__wrapper .testimonial-card.no-avatar .testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonials__wrapper .testimonial-card.no-avatar .name-verified {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials__wrapper .testimonial-card.no-avatar .testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: #212444;
    margin: 0;
}

.testimonials__wrapper .testimonial-card.no-avatar .review-time {
    font-size: 12px;
    color: #7d7e8a;
    margin: 0;
}

/* Testimonial Header */
.testimonials__wrapper .testimonial-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 10px;
}

.testimonials__wrapper .avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.testimonials__wrapper .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f3f5;
}

.testimonials__wrapper .testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials__wrapper .google-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonials__wrapper .google-g-small {
    font-size: 12px;
    font-weight: 700;
    color: #4285F4;
}

.testimonials__wrapper .testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonials__wrapper .name-verified {
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonials__wrapper .testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: #212444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonials__wrapper .verified-icon {
    flex-shrink: 0;
}

.testimonials__wrapper .review-time {
    font-size: 12px;
    color: #7d7e8a;
    font-weight: 400;
}

/* Testimonial Rating */
.testimonials__wrapper .testimonial-rating {
    display: flex;
    margin-bottom: 10px;
}

.testimonials__wrapper .testimonial-rating .star {
    color: #E0E0E0;
    font-size: 20px;
}

.testimonials__wrapper .testimonial-rating .star.filled {
    color: #FBBC05;
}

.testimonials__wrapper .testimonial-rating .star.half-filled {
    background: linear-gradient(90deg, #FBBC05 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonial Body */
.testimonials__wrapper .testimonial-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonials__wrapper .testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: #212444;
    font-weight: 400;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonials__wrapper .read-more {
    color: #212444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.testimonials__wrapper .read-more:hover {
    color: #212444;
    text-decoration: underline;
}

/* Custom Arrows */
.testimonials__wrapper .splide__arrows {
    display: flex;
    gap: 0;
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    transform: translateY(-45%);
    pointer-events: none;
    z-index: 10;
}

.testimonials__wrapper .splide__arrow {
    background: #6b7280;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: white;
    position: absolute;
    transform: translateY(-50%);
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.testimonials__wrapper .splide__arrow--prev {
    left: -30px;
    top: 45%;
    transform: translateY(-45%) rotate(180deg);
}

.testimonials__wrapper .splide__arrow--next {
    right: -30px;
    top: 45%;
    transform: translateY(-45%);
}

.testimonials__wrapper .splide__arrow:hover {
    background: #4b5563;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.testimonials__wrapper .splide__arrow--prev:hover {
    transform: translateY(-45%) rotate(180deg) scale(1.05);
}

.testimonials__wrapper .splide__arrow--next:hover {
    transform: translateY(-45%) scale(1.05);
}

.testimonials__wrapper .splide__arrow:disabled {
    opacity: 0;
    visibility: hidden;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.testimonials__wrapper .splide__arrow svg {
    width: 24px;
    height: 24px;
}

/* Custom Pagination */
.testimonials__wrapper .splide__pagination {
    bottom: 20px;
    padding: 0;
}

.testimonials__wrapper .splide__pagination__page {
    background: rgba(239, 239, 239, 0.9);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: none;
    opacity: 0.5;
}

.testimonials__wrapper .splide__pagination__page.is-active {
    background: #212444;
    opacity: 1;
    transform: scale(1.3);
}

/* CTA Section */
.testimonials__wrapper .cta-section {
    text-align: center;
    margin-top: 40px;
}

.testimonials__wrapper .btn-view-all {
    display: inline-block;
    background: #d7672e;
    color: white;
    padding: 16px 48px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(226, 139, 86, 0.2);
}

.testimonials__wrapper .btn-view-all:hover {
    background: #e28b56;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 139, 86, 0.35);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonials__wrapper .splide__arrow--prev {
        left: -20px;
    }

    .testimonials__wrapper .splide__arrow--next {
        right: -20px;
    }
}

@media (max-width: 1024px) {
    .testimonials__wrapper .container {
        padding: 0 15px;
    }

    .testimonials__wrapper .splide__arrow--prev {
        left: -20px;
    }

    .testimonials__wrapper .splide__arrow--next {
        right: -20px;
    }

    .testimonials__wrapper .splide__arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials__wrapper .section-title {
        font-size: 2rem;
    }

    .testimonials__wrapper .google-reviews-header {
        flex-direction: column;
        padding: 25px 30px;
        text-align: center;
    }

    .testimonials__wrapper .google-reviews-left {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .testimonials__wrapper .google-reviews-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    .testimonials__wrapper .partners-logos {
        justify-content: center;
        gap: 10px;
    }

    .testimonials__wrapper .partner-logo {
        width: 100%;
        max-width: 100px;
        height: 50px;
    }

    .testimonials__wrapper .btn-google-review {
        width: 100%;
        text-align: center;
    }

    .testimonials__wrapper .testimonial-card {
        padding: 24px;
    }

    .testimonials__wrapper .testimonial-name {
        font-size: 0.95rem;
    }

    .testimonials__wrapper .testimonial-text {
        font-size: 14px;
    }

    .testimonials__wrapper .splide__arrow--prev {
        left: -20px;
    }

    .testimonials__wrapper .splide__arrow--next {
        right: -20px;
    }

    .testimonials__wrapper .splide__arrow {
        width: 36px;
        height: 36px;
        background: #6b7280;
    }

    .testimonials__wrapper .splide__arrow svg {
        width: 18px;
        height: 18px;
    }

    .testimonials__wrapper .btn-view-all {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials__wrapper .container {
        padding: 0 15px;
    }

    .testimonials__wrapper .section-title {
        font-size: 1.75rem;
    }

    .testimonials__wrapper .google-reviews-header {
        padding: 20px;
    }

    .testimonials__wrapper .google-logo {
        font-size: 1.25rem;
    }

    .testimonials__wrapper .rating-number {
        font-size: 1.75rem;
    }

    .testimonials__wrapper .partner-logo {
        width: 100%;
        max-width: 100px;
        height: 40px;
    }

    .testimonials__wrapper .testimonial-card {
        padding: 20px;
    }

    .testimonials__wrapper .testimonial-avatar {
        width: 44px;
        height: 44px;
    }

    .testimonials__wrapper .google-badge {
        width: 18px;
        height: 18px;
    }

    .testimonials__wrapper .google-g-small {
        font-size: 11px;
    }

    .testimonials__wrapper .testimonial-name {
        font-size: 0.9rem;
    }

    .testimonials__wrapper .review-time {
        font-size: 14px;
    }

    .testimonials__wrapper .testimonial-text {
        font-size: 0.875rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* Modal Popup */
.testimonials__wrapper .testimonial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.testimonials__wrapper .testimonial-modal.active {
    display: flex;
}

.testimonials__wrapper .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.testimonials__wrapper .modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.testimonials__wrapper .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #666;
    z-index: 2;
}

.testimonials__wrapper .modal-close:hover {
    background: #f1f3f5;
    color: #333;
}

.testimonials__wrapper .modal-close svg {
    width: 24px;
    height: 24px;
}

.testimonials__wrapper .modal-body {
    padding-top: 10px;
}

.testimonials__wrapper .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.testimonials__wrapper .modal-rating {
    display: flex;
    margin-bottom: 15px;
}

.testimonials__wrapper .modal-rating .star {
    color: #E0E0E0;
    font-size: 20px;
}

.testimonials__wrapper .modal-rating .star.filled {
    color: #FBBC05;
}

.testimonials__wrapper .modal-rating .star.half-filled {
    background: linear-gradient(90deg, #FBBC05 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal without avatar */
.testimonials__wrapper .modal-header #modal-avatar-wrapper {
    display: flex;
}

.testimonials__wrapper .modal-header #modal-avatar-wrapper[style*="display: none"] {
    display: none !important;
}

/* Modal header without avatar - adjust layout */
.testimonials__wrapper .modal-header:has(#modal-avatar-wrapper[style*="display: none"]) {
    flex-direction: column;
    align-items: flex-start;
}

.testimonials__wrapper .modal-header:has(#modal-avatar-wrapper[style*="display: none"]) .testimonial-info {
    margin-left: 0;
    margin-top: 0;
}

/* Fallback for browsers without :has() support */
.testimonials__wrapper .modal-header.no-avatar {
    flex-direction: column;
    align-items: flex-start;
}

.testimonials__wrapper .modal-header.no-avatar .testimonial-info {
    margin-left: 0;
    margin-top: 0;
}

.testimonials__wrapper .modal-text {
    margin-top: 10px;
}

.testimonials__wrapper .modal-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #212444;
    font-weight: 400;
    white-space: pre-wrap;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.testimonials__wrapper .testimonial-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .testimonials__wrapper .modal-content {
        padding: 30px 25px;
        max-height: 90vh;
        border-radius: 16px;
    }

    .testimonials__wrapper .modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .testimonials__wrapper .modal-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .testimonials__wrapper .testimonial-modal {
        padding: 15px;
    }

    .testimonials__wrapper .modal-content {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .testimonials__wrapper .modal-close {
        top: 12px;
        right: 12px;
    }

    .testimonials__wrapper .modal-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Admin Styles for Partners */
.partner-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.partner-item .partner-preview {
    margin-bottom: 10px;
}

.partner-item input[type="url"] {
    width: 100%;
    margin-bottom: 10px;
}

#partners-container {
    margin-bottom: 15px;
}

#add-partner {
    margin-top: 10px;
}
