/*
Theme Name: Jain Brain Technologies
Theme URI: https://jainbraintechnologies.com/
Author: Jain Brain Technologies Engineering Team
Author URI: https://jainbraintechnologies.com/
Description: Custom, high-performance WordPress theme for Jain Brain Technologies converted from Coze template. Fully dynamic CPT-driven architecture for Services, Case Studies, Portfolio, and Testimonials.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: jainbrain
*/
.main-header-area {
    position: relative;
}
.custom-logo-link img.custom-logo,
.main-navbar .navbar-brand img,
.main-responsive-menu .logo img {
    max-height: 60px;
    width: auto;
    display: inline-block;
    object-fit: contain;
}

[data-aos^=fade][data-aos^=fade].aos-animate
 {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-banner-image .banner-circle {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Active Nav Indicator matching hover effect */
.main-navbar .navbar .navbar-nav .nav-item a.active,
.main-navbar .navbar .navbar-nav .nav-item.current-menu-item > a,
.main-navbar .navbar .navbar-nav .nav-item.current_page_item > a {
    color: var(--main-color, #ff6b35) !important;
}

.main-navbar .navbar .navbar-nav .nav-item a.active::before,
.main-navbar .navbar .navbar-nav .nav-item.current-menu-item > a::before,
.main-navbar .navbar .navbar-nav .nav-item.current_page_item > a::before {
    transform: scaleX(1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Video Testimonial Card Styling */
.single-testimonial-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.video-testimonial-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.video-testimonial-preview img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.video-testimonial-preview .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--main-color, #ff6b35);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.35);
    transition: all 0.3s ease;
}
.video-testimonial-preview:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* =======================================================
   Fiverr Carousel: Equal Height Track & Cards
   ======================================================= */
   
.fiverr-trust-badge-bar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
}
.fiverr-trust-badge-bar .fiverr-logo-text {    
    margin-right: 14px;
	margin-bottom: 8px;
}
.fiverr-trust-badge-bar .star-icons i {
    color: #ffb703;
    font-size: 1.1rem;
}

/* 1. Force Owl Carousel items to match full track height */
.testimonials-slides .owl-stage {
    display: flex !important;
}

.testimonials-slides .owl-item {
    display: flex !important;
    flex: 1 0 auto;
    height: auto !important;
}

/* 2. Uniform Card Container */
.fiverr-review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 26px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    width: 100%;
    min-height: 270px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px 5px;
    box-sizing: border-box;
}

.fiverr-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* 3. Standardized Review Text Box with Smooth Scroll for Long Reviews */
.fiverr-review-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fiverr-review-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555555;
    font-style: italic;
    margin-bottom: 16px;
    max-height: 110px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Slim scrollbar for long reviews */
.fiverr-review-text::-webkit-scrollbar {
    width: 3px;
}
.fiverr-review-text::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}
.fiverr-review-text::-webkit-scrollbar-thumb:hover {
    background: #1dbf73;
}

/* 4. Rating & Badges */
.fiverr-review-card .rating-stars i {
    color: #ffb703;
    font-size: 0.95rem;
    margin-right: 2px;
}

.fiverr-review-card .verified-badge {
    color: #1dbf73;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(29, 191, 115, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
}

/* 5. Bottom Buyer Info Block */
.fiverr-review-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f2f2f2;
}

.fiverr-review-card .buyer-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #14042c 0%, #290858 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(20, 4, 44, 0.15);
}

/* Video Stories Card Tweaks */
.video-testimonial-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}
.video-testimonial-preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    opacity: 0.88;
    transition: opacity 0.3s ease;
}
.video-testimonial-preview:hover img {
    opacity: 0.75;
}

/*Service detail page */
/* Service Details Breadcrumb Banner */
.page-title-area.bg-with-14042C-color {
    background-color: #14042C;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}
.page-title-area .banner-shape-1,
.page-title-area .banner-shape-2 {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}
.page-title-area .banner-shape-1 {
    top: 0;
    left: 0;
}
.page-title-area .banner-shape-2 {
    bottom: 0;
    right: 0;
}

/* Services Sidebar List */
.services-sidebar .sidebar-widget a {
    transition: all 0.3s ease;
}
.services-sidebar .sidebar-widget a:hover:not(.bg-primary) {
    background-color: #f0f0f0;
    color: var(--main-color, #ff6b35) !important;
    padding-left: 20px !important;
}

/* Tech Stack Badges */
.tech-stack-container .badge {
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* All Services Archive Card Styling */
.service-archive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.service-archive-img {
    position: relative;
}

.service-card-icon {
    position: absolute;
    bottom: -22px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--main-color, #ff6b35);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tech-stack-mini .badge {
    font-weight: 500;
    font-size: 11px;
    padding: 5px 8px;
}

.call-to-action-area {
    background-color: #210a43;
}

/* Fix Magnific Popup Vertical Centering & Viewport Fit */
.mfp-wrap {
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
}

.mfp-container {
    height: 100% !important;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mfp-content {
    vertical-align: middle !important;
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    position: relative;
    max-width: 900px !important;
    width: 90% !important;
}

/* MP4 Player Responsive Wrapper (16:9 Aspect Ratio) */
.mfp-video-wrapper {
    position: relative;
    width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mfp-video-wrapper video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    outline: none;
}

/* Close button positioning */
.mfp-close {
    top: -40px !important;
    right: 0 !important;
    color: #ffffff !important;
    font-size: 32px !important;
    opacity: 0.9 !important;
}
.mfp-close:hover {
    color: var(--main-color, #ff6b35) !important;
}
/* Auto-detect & style vertical portrait video popups */
.mfp-video-wrapper.is-portrait {
    max-width: 420px !important;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mfp-video-wrapper.is-portrait video {
    max-height: 82vh;
    border-radius: 18px;
    object-fit: contain;
}