.testimonial {
    padding: 100px 0px;
    background: #fff;
}

/* ============================================
   TESTIMONIAL SWIPER
   ============================================ */
.testimonial-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 50px;
}

.testimonial-swiper .swiper-wrapper {
    display: flex;
}

.testimonial-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

/* Single Item Styles */
.testimonial-swiper .single-item {
    width: 100%;
}

/* Hide Navigation Arrows (nav="false" original behavior) */
.testimonial-swiper .swiper-button-prev,
.testimonial-swiper .swiper-button-next {
    display: none !important;
}

/* Testimonial Card Styles */
.testimonial-swiper .single-item-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-swiper .tlp-tm-content-wrapper {
    position: relative;
}

.testimonial-swiper .item-title a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.testimonial-swiper .item-designation {
    color: #f5a623;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.testimonial-swiper .item-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-swiper .item-course {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Testimonial Images */
.testimony-image-mob {
    display: none;
}


/* ============================================
   TESTIMONIAL RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 767px) {
    .testimonial-swiper .swiper-slide {
        width: 100% !important;
    }

    .testimony-image-desktop {
        display: none !important;
    }

    .testimony-image-mob {
        display: block !important;
        text-align: center;
        margin-top: 20px;
    }

    .testimony-image-mob img {
        max-width: 80%;
        height: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .testimonial-swiper .swiper-slide {
        width: 100% !important;
    }

    .testimony-image-desktop img {
        max-width: 45% !important;
        height: auto;
    }

}

@media (min-width: 1025px) and (max-width: 1200px) {
    .testimony-image-desktop {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }

    .testimony-image-desktop img {
        max-width: 80% !important;
        height: auto;
    }
}

@media (min-width: 992px) {
    .testimonial-swiper .swiper-slide {
        width: calc(50% - 15px) !important;
        margin-right: 15px;
    }
}


@media screen and (max-width: 1024px) {

    .testimony-image-desktop {
        text-align: center;
        margin-bottom: 30px;
    }

    .testimony-image-desktop img {
        max-width: 80%;
        height: auto;
    }

    .testimonial {
        padding-top: 50px;
    }
}

/*------------------------------------------------------------------
------------------------Testimonial Section-------------------------
-------------------------------------------------------------------*/

.blob-mask {
    width: 100%;
    aspect-ratio: 1 / 1;
    clip-path: url(#blobClip);
    -webkit-clip-path: url(#blobClip);
    overflow: hidden;
    /*border: 2px solid #ccc; */
}

.blob-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-designation {
    margin-bottom: 5px !important;
}

.testimonial .item-content {
    background: #fff0f0;
}

.testimonial .item-course {
    font-weight: 400;
    font-style: italic;
    margin: 0;
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
}

.testimonial .item-date {
    font-weight: 400;
    color: #2babe4;
    margin: 0;
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
}

.testimonial .item-content:after {
    border-color: transparent transparent #fff0f0 #fff0f0;
}

.testimonial-content .testimonial-title {
    text-transform: uppercase;
}

.testimonial-content .testimonial-title span {
    position: relative;
}

.testimonial-content .testimonial-title span:before {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: var(--global-yellow);
}

.testimonial .item-content {
    position: relative;
    padding: 0px;
    background: none !important;
    color: #646464;
    text-align: center;
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
}


.testimonial .item-content::after {
    content: none;
}

.tlp-tm-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 5px;
}

.testi-message {
    font-size: 13px;
    color: #0084bf;
    font-weight: 500;
}

.testimonial .tlp-tm-content-wrapper .item-title {
    text-align: center;
    font-size: clamp(0.8125rem, 1.5vw, 1.09rem);
}

.testimonial .tlp-tm-content-wrapper .item-designation {
    text-align: center;
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
}

.testimonial-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.testimonial-modal .close:hover,
.testimonial-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.testimonial-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0 !important;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
}

.testimonial-modal .modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 4px;
    width: 70%;
    max-width: 600px;
    position: relative;
}

.testimonial-modal .testimonial-content {
    overflow-y: auto;
    max-height: 500px;
}

.testimonial-modal .close {
    font-size: 28px;
    cursor: pointer;
}

.read-more-btn {
    font-size: 8px;
    padding: 4px;
}

.read-more-badge {
    font-size: clamp(0.5rem, 1vw, 0.625rem);
    padding: 4px 10px;
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more-badge:hover {
    color: #007bff;
    background: none;
    border: 0.5px solid #007bff;
}

.testimony-image-desktop {
    display: block;
}

.testimony-image-mob {
    display: none;
}


.testimonial-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    overflow-y: auto;
}

.testimonial-modal.show {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.testimonial-modal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fef9e6 100%);
    margin: 3% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    position: relative;
    transform: scale(0.9) translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.testimonial-modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Header */
.testimonial-modal .modal-header {
    background: linear-gradient(135deg, #fdc800 0%, #ff9a3c 100%);
    padding: 30px 30px 25px 30px;
    position: relative;
    text-align: center;
}

.testimonial-modal .modal-header::before {
    content: '"';
    position: absolute;
    font-size: 120px;
    font-family: serif;
    color: rgba(255, 255, 255, 0.15);
    bottom: -30px;
    left: 20px;
    line-height: 1;
    font-weight: bold;
}

.testimonial-modal .quote-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: inline-block;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.testimonial-modal .modal-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

/* Close Button */
.testimonial-modal .close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 10;
    line-height: 1;
}

.testimonial-modal .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Modal Body */
.testimonial-modal .modal-body {
    padding: 35px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.testimonial-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.testimonial-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.testimonial-modal .modal-body::-webkit-scrollbar-thumb {
    background: #fdc800;
    border-radius: 10px;
}

.testimonial-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #e0b000;
}

/* Author Info Section */
.testimonial-modal .author-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.testimonial-modal .author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdc800 0%, #ff9a3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(253, 200, 0, 0.3);
    flex-shrink: 0;
}

.testimonial-modal .author-info {
    flex: 1;
}

.testimonial-modal .author-name {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 5px 0;
    letter-spacing: -0.3px;
}

.testimonial-modal .author-designation {
    font-size: 14px;
    color: #fdc800;
    font-weight: 600;
    margin: 0 0 3px 0;
    display: inline-block;
    background: rgba(253, 200, 0, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.testimonial-modal .author-course {
    font-size: 13px;
    color: #718096;
    margin: 5px 0 0 0;
    display: inline-block;
    margin-left: 10px;
}

.testimonial-modal .item-date {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 8px;
    display: inline-block;
}

/* Testimonial Content */
.testimonial-modal .testimonial-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
    margin-top: 20px;
    position: relative;
    padding: 0 10px;
}

.testimonial-modal .testimonial-content::before {
    content: "“";
    font-size: 60px;
    color: #fdc800;
    opacity: 0.3;
    position: absolute;
    left: 0px;
    top: -31px;
    font-family: serif;
    font-weight: bold;
}

.testimonial-modal .testimonial-content p {
    margin-bottom: 15px;
}

/* Rating Stars */
.testimonial-modal .rating {
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
}

.testimonial-modal .star {
    color: #ffd700;
    font-size: 20px;
    display: inline-block;
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Modal Footer Navigation */
.testimonial-modal .modal-footer {
    padding: 20px 35px;
    background: #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
}

.testimonial-modal .nav-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-modal .nav-btn:hover {
    background: #fdc800;
    border-color: #fdc800;
    color: white;
    transform: translateX(0);
}

.testimonial-modal .nav-btn.prev:hover {
    transform: translateX(-5px);
}

.testimonial-modal .nav-btn.next:hover {
    transform: translateX(5px);
}

.testimonial-modal .counter {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    background: #edf2f7;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Share Section */
.testimonial-modal .share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.testimonial-modal .share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.testimonial-modal .share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #666;
}

.testimonial-modal .share-btn:hover {
    transform: translateY(-3px);
}

.testimonial-modal .share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.testimonial-modal .share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.testimonial-modal .share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-modal .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .testimonial-modal .modal-header {
        padding: 20px 20px 15px 20px;
    }

    .testimonial-modal .modal-body {
        padding: 20px;
        max-height: 55vh;
    }

    .testimonial-modal .author-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .testimonial-modal .author-name {
        font-size: 20px;
    }

    .testimonial-modal .close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .testimonial-modal .modal-footer {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .testimonial-modal .nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .testimonial-modal .testimonial-content::before {
        font-size: 40px;
        left: -5px;
        top: -15px;
    }
}

@media (max-width: 480px) {
    .testimonial-modal .modal-body {
        max-height: 65vh;
    }

    .testimonial-modal .modal-footer {
        flex-direction: column;
    }

    .testimonial-modal .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for modal open/close */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}