#testimonial-section {
    padding: 4rem 0;
    background: var(--secondary-color) !important;
}
.testimonial-container {
    padding: 40px 0;
}
.testimonial {
    margin: 0 20px 40px;
}

.testimonial .testimonial-content {
    padding: 35px 25px 35px 50px;
    margin-bottom: 35px;
    background: var(--background-color); /* Use theme white */
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 286px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content .testimonial-icon {
    width: 50px;
    height: 45px;
    /* Using your theme's primary color */
    background: var(--primary-color);
    text-align: center;
    font-size: 22px;
    color: #fff;
    line-height: 42px;
    position: absolute;
    top: 37px;
    left: -19px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-content .testimonial-icon:before {
    content: "";
    /* Using your theme's accent color for the icon tag */
    border-bottom: 16px solid var(--primary-color);
    border-left: 18px solid transparent;
    position: absolute;
    top: -16px;
    left: 1px;
}

.testimonial .description {
    font-size: 15px;
    font-style: italic;
    color: #8a8a8a;
    line-height: 23px;
    margin: 0;
}

.testimonial .title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: capitalize;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.testimonial .post {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
}

.owl-theme .owl-controls {
    margin-top: 20px;
}

.owl-theme .owl-controls .owl-page span {
    background: #ccc;
    opacity: 1;
    transition: all 0.4s ease 0s;
}

.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span {
    background: var(--primary-color);
}

/* Video Section */
.section-padding {
    padding: 4rem 0;
}

.custom-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    perspective: 1000px;
    overflow: hidden;
}

.video-card-item {
    position: absolute;
    transition: all 0.5s ease-in-out;
    width: 300px;
    height: 280px;
    border-radius: 1rem;
    background-color: #000;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0.6;
    z-index: 1;
}

.video-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-card-item.active {
    width: 540px;
    height: 320px;
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateX(0) scale(1);
}

.video-card-item.active img {
    opacity: 1;
}

/* Positioning classes controlled by JS */
.video-card-item.prev {
    transform: translateX(-350px) scale(0.85); /* Move Left */
}

.video-card-item.next {
    transform: translateX(350px) scale(0.85); /* Move Right */
}

/* Hidden items (if you add more than 3 later) */
.video-card-item.hidden {
    opacity: 0;
    transform: scale(0);
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(235, 78, 11, 0.7);
    animation: pulse-orange 2s infinite;
}

.video-card-item.active .play-overlay {
    opacity: 1;
}

.video-card-item:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(235, 78, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(235, 78, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(235, 78, 11, 0);
    }
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.carousel-btn.prev-btn {
    left: 10%;
}
.carousel-btn.next-btn {
    right: 10%;
}

/* Modal Styles */
.video-modal-content {
    background-color: #000;
    border: 1px solid #333;
}
.ratio-16x9 iframe {
    border-radius: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .video-card-item.prev,
    .video-card-item.next {
        opacity: 0; /* Hide side items on very small screens */
    }
    .carousel-btn.prev-btn {
        left: 5px;
    }
    .carousel-btn.next-btn {
        right: 5px;
    }
}
/* Video styles  */

.video-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.custom-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    perspective: 1000px;
    overflow: hidden;
}

.video-card-item {
    position: absolute;
    transition: all 0.5s ease-in-out;
    width: 300px;
    height: 280px;
    border-radius: 1rem;
    background-color: #000;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0.6;
    z-index: 1;
}

.video-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-card-item.active {
    width: 540px;
    height: 320px;
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateX(0) scale(1);
}

.video-card-item.active img {
    opacity: 1;
}

/* Positioning classes controlled by JS */
.video-card-item.prev {
    transform: translateX(-350px) scale(0.85); /* Move Left */
}

.video-card-item.next {
    transform: translateX(350px) scale(0.85); /* Move Right */
}

/* Hidden items (if you add more than 3 later) */
.video-card-item.hidden {
    opacity: 0;
    transform: scale(0);
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(235, 78, 11, 0.7);
    animation: pulse-orange 2s infinite;
}

.video-card-item.active .play-overlay {
    opacity: 1;
}

.video-card-item:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(235, 78, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(235, 78, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(235, 78, 11, 0);
    }
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.carousel-btn.prev-btn {
    left: 10%;
}
.carousel-btn.next-btn {
    right: 10%;
}

/* Modal Styles */
.video-modal-content {
    background-color: #000;
    border: 1px solid #333;
}
.ratio-16x9 iframe {
    border-radius: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .video-card-item.active {
        width: 90%;
        height:80%;
    }
    .video-card-item.prev,
    .video-card-item.next {
        opacity: 0; /* Hide side items on very small screens */
    }
    .carousel-btn.prev-btn {
        left: 5px;
    }
    .carousel-btn.next-btn {
        right: 5px;
    }
       .play-overlay {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem;
}
.carousel-btn {
    width: 42px;
    height: 42px;
}
}

/* Media Query */
@media (max-width: 1200px) and (min-width: 768px) {
    .video-card-item.prev {
        transform: translateX(-220px) scale(0.85);
    }
    .video-card-item.next {
    transform: translateX(220px) scale(0.85);
}
.footer-topbar h3{
        font-size: 20px;
}
}
@media (max-width: 991px) and (min-width: 768px) {
   .hero-logo {
    width: 190px;
}
}
@media (max-width: 480px) and (min-width: 320px) {
    .pop-detail-featured-image-wrapper{
        width:100% !important;
    }
    .play-overlay {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    .custom-carousel-wrapper {
        height: 340px !important;
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        height: 32px !important;
        width: 32px !important;
        padding: 4px 10px !important;
    }
    .testimonial-container {
        padding: 12px;
    }
    #testimonial-section {
        padding: 3rem 0;
    }
    .testimonial-content .testimonial-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .testimonial .testimonial-content {
        padding: 20px 20px 20px 25px;
        margin-bottom: 0px;
        min-height: 240px;
    }
    .testimonial-content h5 {
        font-size: 16px !important;
        margin: 0 !important;
    }
    .testimonial-content .ellipsis-text-1 {
        height: auto;
        padding-top: 0 !important;
    }
    .owl-theme .owl-controls .owl-page span {
        width: 8px !important;
        height: 8px !important;
    }
    .owl-carousel .owl-wrapper-outer {
        margin-bottom: -14px;
    }

    #testimonial-section .form-control {
        font-size: 14px;
    }
    .contact-text {
        display: none;
    }
    .contact-socail {
        width: 100%;
    }
    .pop-detail-meta-bar {
    gap: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
}
.pop-detail-article-content {
        font-size: 14px !important;
    }
    .pop-detail-article-content-h3 {
    font-size: 1.2rem !important;
    }
    
.pop-detail-title-large-mob {
    display: flex !important;
}
 
}
