/* Testimonials Page Styles */

/* Hero Section */
.testimonials-hero {
    min-height: 50vh;
    height: 70vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
        url("/testimionals/hero.jpg");
    background-size: cover;
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    background-position: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* Featured Testimonial */
.featured-testimonial {
    display: flex;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.featured-testimonial-img {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-testimonial-content {
    flex: 0 0 60%;
    padding: 40px;
    position: relative;
}

.featured-testimonial-text {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
    padding-right: 25px;
}

.featured-testimonial-text::before {
    content: '\201D';
    font-size: 80px;
    position: absolute;
    top: -30px;
    right: -15px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.featured-testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.featured-testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.featured-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-testimonial-info {
    margin-right: 20px;
}

.featured-testimonial-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.featured-testimonial-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* Testimonial Cards */
.testimonials-carousel {
    position: relative;
    padding: 30px 0;
    margin-bottom: 80px;
}

.testimonial-card {
        background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    border-top: 4px solid var(--primary-color);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 24px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 2px solid var(--primary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-info p {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 14px;
}

/* Swiper Navigation & Pagination Customization */
.testimonials-swiper {
    padding-bottom: 50px;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: var(--primary-color) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background-color: var(--primary-color) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    width: 40px !important;
    height: 40px !important;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Video Testimonials */
.video-testimonials {
    padding: 20px 0;
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.video-testimonial {
    position: relative;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    cursor: default;
}

.video-testimonial:hover {
    transform: none;
    box-shadow: none;
}

.video-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.video-testimonial:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-testimonial:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-testimonial:hover .play-button {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.video-wrapper {
    aspect-ratio: 4/3;
    width: 100%;
    background: #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    display: block;
}

/* Responsive Design */
@media (max-width: 991px) {
    .featured-testimonial {
        flex-direction: column;
    }

    .featured-testimonial-img {
        height: 250px;
        flex: none;
        width: 100%;
    }

    .featured-testimonial-content {
        flex: none;
        width: 100%;
    }

    .testimonial-text {
        min-height: auto;
    }

    .video-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-swiper .swiper-slide {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .testimonials-hero {
        height: 36vh !important;
        min-height: unset !important;
        max-height: 40vh;
        padding-top: 10px;
        padding-bottom: 10px;
        display: flex;
        align-items: center;
        overflow: visible !important;
    }
    .testimonials-hero .hero-content {
        width: 100%;
        text-align: center;
        padding: 0 6px;
    }
    .testimonials-hero h1 {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
    }
    .testimonials-hero h5 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    .testimonials-hero .hero-btns {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .testimonials-hero .hero-btns .btn-green,
    .testimonials-hero .hero-btns .btn-whatsapp {
        width: 50%;
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        margin-bottom: 0 !important;
        border-radius: 10px !important;
    }

    .featured-testimonial {
        flex-direction: column;
    }

    .featured-testimonial-img {
        height: 250px;
        flex: none;
        width: 100%;
    }

    .featured-testimonial-content {
        flex: none;
        width: 100%;
    }

    .testimonial-text {
        min-height: auto;
    }

    .video-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-swiper .swiper-slide {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 40px 0 30px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .featured-testimonial {
        margin-bottom: 40px;
    }

    .featured-testimonial-avatar {
        width: 60px;
        height: 60px;
    }

    .featured-testimonial-text {
        font-size: 16px;
        padding-right: 10px;
    }

    .featured-testimonial-content {
        padding: 20px;
    }

    .video-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-text {
        font-size: 14px;
        min-height: auto;
    }

    .testimonial-info h4 {
        font-size: 14px;
    }

    .testimonial-info p {
        font-size: 12px;
    }

    .testimonials-carousel {
        padding: 15px 0;
        margin-bottom: 40px;
    }

    .swiper-container {
        width: 100%;
        overflow: hidden !important;
        max-width: 100vw;
    }

    .swiper-slide {
        height: auto !important;
    }

    /* Fix video testimonials for mobile */
    .video-thumbnail {
        height: 200px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Extra small devices (phones, 375px and down) */
@media (max-width: 375px) {
    .testimonial-card {
        padding: 20px 15px;
    }

    .testimonial-quote {
        font-size: 20px;
    }

    .video-thumbnail {
        height: 180px;
    }

    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }
}

.video-testimonials-desktop {
    display: grid;
}
.video-testimonials-mobile {
    display: none;
}
@media (max-width: 767px) {
    .video-testimonials-desktop {
        display: none !important;
    }
    .video-testimonials-mobile {
        display: block !important;
        width: 100%;
        margin-top: 30px;
    }
    .video-testimonials-mobile .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .video-testimonials-mobile .video-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .video-testimonials-mobile .testimonial-video {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .video-testimonials-mobile .swiper-pagination {
        margin-top: 18px;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    .video-testimonials-mobile .swiper-pagination-bullet {
        width: 16px !important;
        height: 16px !important;
        background: #00b5ad !important;
        opacity: 0.25 !important;
        border-radius: 50%;
        margin: 0 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s cubic-bezier(.4,2,.6,1);
        border: 2px solid #fff;
    }
    .video-testimonials-mobile .swiper-pagination-bullet-active {
        opacity: 1 !important;
        background: linear-gradient(135deg, #00b5ad 60%, #0ed2f7 100%) !important;
        box-shadow: 0 4px 16px rgba(0,181,173,0.15);
        border: 2px solid #0ed2f7;
    }
    .video-testimonials-mobile .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 18px 0 32px 0;
    }
    .video-testimonials-mobile .video-wrapper {
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 8px 32px rgba(0,181,173,0.08), 0 1.5px 8px rgba(0,0,0,0.04);
        padding: 12px;
        max-width: 370px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .video-testimonials-mobile .testimonial-video {
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.07);
        background: #f7fafd;
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: box-shadow 0.3s;
    }
    .video-testimonials-mobile .testimonial-video:focus,
    .video-testimonials-mobile .testimonial-video:active {
        box-shadow: 0 0 0 3px #0ed2f7;
        outline: none;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
}

.why-choose-us .section-title {
    margin-bottom: 40px;
    text-align: center;
    color: var(--secondary-color);
}

.why-choose-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.timeline-container {
    max-width: 800px;
    width: 100%;
    position: relative;
        background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
}

.timeline-side-title {
    margin-bottom: 30px;
    text-align: center;
}

.timeline-side-title h3 {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-block;
    padding: 10px 25px;
    margin-top: 30px;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.timeline-marker {
    position: relative;
    right: -20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 0 5px rgba(0, 181, 173, 0.2);
    z-index: 2;
    margin-left: 20px;
}

.timeline-content {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    position: relative;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 15px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
}

.timeline-content p {
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

.clients-intro-container {
    text-align: center;
    margin-top: 20px;
}

.clients-intro {
    font-size: 28px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0;
    padding: 15px 30px;
    display: inline-block;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    position: relative;
}

/* Responsive design for Why Choose Us section */
@media (max-width: 768px) {
    .timeline:before {
        right: 30px;
    }

    .timeline-marker {
        width: 32px;
        height: 32px;
        right: -15px;
    }

    .timeline-content {
        padding: 15px 20px;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .clients-intro {
        font-size: 20px;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .why-choose-us {
        padding: 40px 0;
    }

    .timeline:before {
        right: 20px;
    }

    .timeline-marker {
        width: 28px;
        height: 28px;
        right: -12px;
        margin-left: 10px;
    }

    .timeline-side-title h3 {
        font-size: 20px;
        padding: 8px 18px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    .clients-intro {
        font-size: 18px;
        padding: 10px 18px;
    }
}

/* Audio Testimonials Section */
.audio-testimonials {
    margin-top: 40px;
    padding: 30px 0 0 0;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
}
.audio-testimonials  {
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}
.audio-testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 10px 20px 10px;
}
.audio-testimonial-card {
    display: flex;
    align-items: center;

    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;    padding: 18px 20px;
    transition: box-shadow 0.2s;
    position: relative;
}
.audio-testimonial-card:hover {
    box-shadow: 0 6px 24px rgba(0,181,173,0.13);
}
.audio-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    box-shadow: 0 2px 8px rgba(0,181,173,0.08);
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}
.arabian-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.audio-testimonial-card audio {
    width: 100%;
    max-width: 260px;
    outline: none;

    background: #f7fafd;
}
@media (max-width: 600px) {
    .audio-testimonials-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .audio-testimonial-card {
        padding: 12px 10px;
    }
    .audio-icon {
        width: 32px;
        height: 32px;
        margin-left: 10px;
    }
    .audio-testimonial-card audio {
        max-width: 100%;
    }
}

.images-cards-section {
    margin-top: 40px;
    padding: 20px 0;
}

.images-cards-section .row {
    margin-left: 0;
    margin-right: 0;
}

.testimonial-image-card {
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f5f9fa);
    box-shadow: 0 12px 28px rgba(0,181,173,0.12), 0 4px 10px rgba(0,0,0,0.05) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    transform: translateY(0);
    border-radius: 0 !important;
}

.testimonial-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(0,181,173,0.18), 0 8px 20px rgba(0,0,0,0.08) !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 12px 12px 0;
}

.testimonial-image-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0;
}

.testimonial-image-card:hover .card-img-top {
    transform: scale(1.08);
}

.testimonial-image-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0;
}

.testimonial-image-card:hover .card-img-overlay {
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.zoom-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00b5ad 30%, #0ed2f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.8);
}

.testimonial-image-card:hover .zoom-icon {
    transform: scale(1);
}

.testimonial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,181,173,0.2);
    margin-top: -12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2px;
}

.testimonial-icon .arabian-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 991px) {
    .testimonial-image-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .testimonial-image-card {
        margin-bottom: 15px;
    }
    .testimonial-image-card .card-img-top {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .testimonial-image-card .card-img-top {
        height: 140px;
    }
}

.modal .modal-content.bg-transparent {
    background: rgba(0,0,0,0.45) !important;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.modal .modal-content img {
    max-height: 80vh;
    object-fit: contain;
    margin: auto;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.modal .btn-close {
    filter: invert(1);
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 10;
}
