/* ============================================
   About Page - Testimonial Map Responsive CSS
   ============================================ */

/* ============================================
   Desktop: Fix Map Boxes - Compact & Premium
   ============================================ */

/* Make boxes smaller and prevent overflow */
.testimonial-wrapper-2 .map-bg {
    overflow: visible;
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 {
    min-width: 340px;
    max-width: 360px;
    padding: 20px 22px;
    border-radius: 10px;
    left: -140%;
    bottom: calc(100% + 10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gt-theme, #c9a34d);
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .star {
    margin-bottom: 8px;
    font-size: 12px;
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .star i {
    font-size: 12px;
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--gt-header, #1a1a1a);
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 0;
    color: var(--gt-text, #555);
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .client-info {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .client-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .client-info span {
    font-size: 12px;
    color: var(--gt-theme, #c9a34d);
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .arrow-shape {
    bottom: -18px;
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 .arrow-shape img {
    width: 20px;
    height: auto;
}

/* Client icon below box */
.testimonial-wrapper-2 .testimonial-box-area .client-info-image {
    margin-top: 24px;
}

/* ---- Reposition each box to stay within bounds ---- */

/* Style 1 (default - top left area) */
.testimonial-wrapper-2 .testimonial-box-area {
    top: 25%;
    left: 8%;
}

.testimonial-wrapper-2 .testimonial-box-area .testimonial-box-2 {
    left: 0;
}

/* Style 2 (bottom left area) */
.testimonial-wrapper-2 .testimonial-box-area.style-2 {
    bottom: 50px;
    top: initial;
    left: 22%;
}

.testimonial-wrapper-2 .testimonial-box-area.style-2 .testimonial-box-2 {
    left: 0;
}

/* Style 3 (top center) */
.testimonial-wrapper-2 .testimonial-box-area.style-3 {
    left: 42%;
    transform: translateX(-50%);
    top: 15%;
}

.testimonial-wrapper-2 .testimonial-box-area.style-3 .testimonial-box-2 {
    left: -50%;
}

/* Style 4 (right side) */
.testimonial-wrapper-2 .testimonial-box-area.style-4 {
    top: 25%;
    right: 8%;
    left: initial;
}

.testimonial-wrapper-2 .testimonial-box-area.style-4 .testimonial-box-2 {
    left: auto;
    right: 0;
}

/* Style 5 (bottom right) */
.testimonial-wrapper-2 .testimonial-box-area.style-5 {
    top: initial;
    bottom: 50px;
    right: 8%;
    left: initial;
}

.testimonial-wrapper-2 .testimonial-box-area.style-5 .testimonial-box-2 {
    left: auto;
    right: 0;
}

/* Hover z-index fix */
.testimonial-wrapper-2 .testimonial-box-area:hover {
    z-index: 999;
}

/* ============================================
   Desktop: Hide mobile slider, show map
   ============================================ */
.about-testimonial-mobile-slider {
    display: none;
}

/* ============================================
   Tablet & Mobile: Show slider, hide map
   ============================================ */
@media (max-width: 1199px) {

    /* Hide the map-based layout on smaller screens */
    .testimonial-wrapper-2 .map-bg {
        display: none;
    }

    /* Show the mobile slider */
    .about-testimonial-mobile-slider {
        display: block;
        margin-top: 40px;
    }

    /* Testimonial Card Styling */
    .about-testimonial-card {
        background: var(--gt-white, #fff);
        border: 1.5px solid var(--gt-theme, #c9a34d);
        border-radius: 12px;
        padding: 28px 24px;
        text-align: left;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .about-testimonial-card .star {
        color: #FCD554;
        margin-bottom: 14px;
        font-size: 14px;
    }

    .about-testimonial-card .star i {
        margin-right: 2px;
    }

    .about-testimonial-card p {
        font-size: 15px;
        font-style: italic;
        font-weight: 500;
        color: var(--gt-text, #555);
        line-height: 1.65;
        margin-bottom: 20px;
        flex: 1;
    }

    .about-testimonial-author {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .about-testimonial-author .testimonial-user-icon {
        color: var(--gt-theme, #c9a34d);
        font-size: 18px;
        flex-shrink: 0;
    }

    .about-testimonial-author h4 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 2px;
        color: var(--gt-header, #1a1a1a);
        font-family: "Gilda Display", sans-serif;
    }

    .about-testimonial-author span {
        font-size: 13px;
        color: var(--gt-text, #777);
    }

    /* Swiper pagination bullets */
    .about-testimonial-pagination {
        text-align: center;
        margin-top: 24px;
    }

    .about-testimonial-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(0, 0, 0, 0.15);
        opacity: 1;
        transition: all 0.3s ease;
        margin: 0 4px;
    }

    .about-testimonial-pagination .swiper-pagination-bullet-active {
        background: var(--gt-theme, #c9a34d);
        width: 28px;
        border-radius: 60px;
    }
}

/* Tablet: 2 cards side by side */
@media (min-width: 768px) and (max-width: 1199px) {
    .about-testimonial-card {
        padding: 30px 26px;
    }

    .about-testimonial-card p {
        font-size: 15px;
    }
}

/* Mobile: Single card */
@media (max-width: 767px) {
    .about-testimonial-mobile-slider {
        margin-top: 30px;
    }

    .about-testimonial-card {
        padding: 22px 18px;
    }

    .about-testimonial-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .about-testimonial-author h4 {
        font-size: 15px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .about-testimonial-card {
        padding: 20px 16px;
    }

    .about-testimonial-card p {
        font-size: 13px;
    }

    .about-testimonial-author h4 {
        font-size: 14px;
    }

    .about-testimonial-author span {
        font-size: 12px;
    }
}