/**
 * @version     4.2
 * @package     mod_testimonial_pro
 * @copyright   Copyright (C) 2025 JoomlaX. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      JoomlaX <support@joomlax.com>
 */

/* ========================================
   SECTION 1: SLIDER STYLES
   ======================================== */

/** RESET AND LAYOUT */
.jx-slider-wrapper {
	position: relative;
	margin: 0 auto 60px;
	padding: 0;
}

.jx-slider-wrapper img {
	max-width: 100%;
	display: block;
}

/** THEME */

.jx-slider-wrapper .jx-slider-pager {
	position: absolute;
	bottom: -30px;
	width: 100%;
}

/* LOADER */
.jx-slider-wrapper .jx-slider-loading {
	min-height: 50px;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2000;
	background: rgba(255, 255, 255, 0.8);
}

/* PAGER */
.jx-slider-wrapper .jx-slider-pager {
	text-align: center;
	font-size: .85em;
	font-family: Arial;
	font-weight: bold;
	color: #666;
	padding-top: 20px;
}

.jx-slider-wrapper .jx-slider-pager .jx-slider-pager-item {
	display: inline-block;
}

.jx-slider-wrapper .jx-slider-pager.jx-slider-default-pager a {
	background: #666;
	text-indent: -9999px;
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 5px;
	outline: 0;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.jx-slider-wrapper .jx-slider-pager.jx-slider-default-pager a:hover,
.jx-slider-wrapper .jx-slider-pager.jx-slider-default-pager a.active {
	background: #000;
}

/* DIRECTION CONTROLS (NEXT / PREV) */
.jx-slider-prev {
    margin-right: 10px;
}

a.jx-slider-prev , a.jx-slider-next {
	color: #ccc;
} 
a.jx-slider-prev:hover , a.jx-slider-next:hover {
	color: #000;
} 
.jx-slider-controls-direction {
    text-align: center;
	  margin-top: 5px;
}
.jx-slider-wrapper .jx-slider-prev:hover {
	background-position: 0 0;
}

.jx-slider-wrapper .jx-slider-next:hover {
	background-position: -43px 0;
}

.jx-slider-wrapper .jx-slider-controls-direction a.disabled {
	display: none;
}


/* ========================================
   SECTION 2: MAIN MODULE STYLES
   ======================================== */

/* Flex layout for left/right bubble positions */
/* Flex layout for left/right bubble positions - only apply when layout class is present */
.jx-testimonial-layout.jx-layout-left,
.jx-testimonial-layout.jx-layout-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* For left position: bubble first, author second (HTML order) - use row */
/* For right position: author first, bubble second (HTML order) - use row (already correct) */
/* Ensure flex children don't float */
.jx-testimonial-layout.jx-layout-left > *,
.jx-testimonial-layout.jx-layout-right > * {
    float: none !important;
}

/* Ensure bubble sections take up space in flex layout */
.jx-testimonial-layout.jx-layout-left .jx-testimonial-bubble-left,
.jx-testimonial-layout.jx-layout-right .jx-testimonial-bubble-right {
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: 100%;
}

/* Ensure author sections don't shrink too much */
.jx-testimonial-layout.jx-layout-left .jx-testimonial-author-left,
.jx-testimonial-layout.jx-layout-right .jx-testimonial-author-right {
    flex-shrink: 0;
    flex-grow: 0;
}

/* Modern browser support with :has() - more specific to avoid conflicts */
.jx-testimonial-item:has(.jx-testimonial-author-left):not(:has(.jx-testimonial-author-top)):not(:has(.jx-testimonial-author-bottom)),
.jx-testimonial-item:has(.jx-testimonial-author-right):not(:has(.jx-testimonial-author-top)):not(:has(.jx-testimonial-author-bottom)) {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.jx-testimonial-item:has(.jx-testimonial-author-left):not(:has(.jx-testimonial-author-top)):not(:has(.jx-testimonial-author-bottom)) {
    flex-direction: row !important;
}

/* Right position: HTML already has author first, bubble second - use row (not row-reverse) */

.jx-testimonials-display {
    visibility: hidden;
}
.jx-mode-none{
	visibility: visible;
}
.jx-testimonial-item {
    vertical-align: top;
    box-sizing: border-box;
}
.jx-testimonial-item:after {
  content: "";
  display: table;
  clear: both;
}
.jx-testimonial-content-wrapper{
    margin-bottom: 20px;
    padding: 3px;
    position: relative;
}
	
.jx-testimonial-item p {
    margin: 0;
	line-height: 150%;
}

/* Author image wrapper - flex layout for alignment */
.jx-author-image-wrapper{
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding-left: 10px;
	padding-right: 10px;
	text-align: left;
}

/* Image alignment based on author_align for top/bottom positions */
.jx-testimonial-author-top.jx-author-align-left .jx-author-image-wrapper,
.jx-testimonial-author-bottom.jx-author-align-left .jx-author-image-wrapper {
	justify-content: flex-start;
	text-align: left;
}

.jx-testimonial-author-top.jx-author-align-center .jx-author-image-wrapper,
.jx-testimonial-author-bottom.jx-author-align-center .jx-author-image-wrapper {
	justify-content: center;
	text-align: center;
}

.jx-testimonial-author-top.jx-author-align-right .jx-author-image-wrapper,
.jx-testimonial-author-bottom.jx-author-align-right .jx-author-image-wrapper {
	justify-content: flex-end;
	text-align: right;
}

/* Image alignment for left/right positions (vertical alignment) */
.jx-testimonial-author-left.jx-author-align-left .jx-author-image-wrapper,
.jx-testimonial-author-right.jx-author-align-left .jx-author-image-wrapper {
	align-items: flex-start;
}

.jx-testimonial-author-left.jx-author-align-center .jx-author-image-wrapper,
.jx-testimonial-author-right.jx-author-align-center .jx-author-image-wrapper {
	align-items: center;
}

.jx-testimonial-author-left.jx-author-align-right .jx-author-image-wrapper,
.jx-testimonial-author-right.jx-author-align-right .jx-author-image-wrapper {
	align-items: flex-end;
}
.jx-author-info{	
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 12px;
	gap: 5px;
}

.jx-author-name {
    color: #000;
    font-weight: bold;
}

.jx-author-date {
    font-size: 11px;
}

.jx-author-rating .fa-star {
    color: gold;
    font-size: 14px;
    margin-right: 2px;
}

/* Improved image styling for better fit and shape - merged with flex layout above */

.jx-author-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.jx-author-image-wrapper .jx-image-circle {
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

.jx-author-image-wrapper .jx-image-square {
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
}

.jx-author-image-wrapper .jx-image-round {
    border-radius: 15px;
    overflow: hidden;
    display: inline-block;
}

.jx-author-image-wrapper .jx-image-default {
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
}

/* Diamond/Rhombus shape */
.jx-author-image-wrapper .jx-image-diamond {
    border-radius: 0;
    overflow: hidden;
    display: inline-block;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Hexagon shape */
.jx-author-image-wrapper .jx-image-hexagon {
    border-radius: 0;
    overflow: hidden;
    display: inline-block;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    -webkit-clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

/* Octagon shape */
.jx-author-image-wrapper .jx-image-octagon {
    border-radius: 0;
    overflow: hidden;
    display: inline-block;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    -webkit-clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Star shape */
.jx-author-image-wrapper .jx-image-star {
    border-radius: 0;
    overflow: hidden;
    display: inline-block;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Large Rounded */
.jx-author-image-wrapper .jx-image-rounded-lg {
    border-radius: 20px;
    overflow: hidden;
    display: inline-block;
}

/* Extra Large Rounded */
.jx-author-image-wrapper .jx-image-rounded-xl {
    border-radius: 30px;
    overflow: hidden;
    display: inline-block;
}

/* Testimonial bubble styles */
.jx-testimonial-bubble-squared {
    border-radius: 0;
}

.jx-testimonial-bubble-round {
    border-radius: 10px;
}
.jx-author-company > a{
   color: #45b0ee;
}
.jx-author-company > a:hover{
   color: #005580;
}
/*bubble bottom*/
.jx-testimonial-bubble-bottom,.jx-testimonial-author-bottom{
	display: flex;
	flex-direction: column;
	padding-top: 10px;
	padding-bottom: 20px;
}

/* Author section alignment for bottom position */
.jx-testimonial-author-bottom.jx-author-align-left {
	align-items: flex-start;
}

.jx-testimonial-author-bottom.jx-author-align-center {
	align-items: center;
}

.jx-testimonial-author-bottom.jx-author-align-right {
	align-items: flex-end;
}
.jx-testimonial-bubble-bottom:after{
	border-style: solid;
    border-width: 0 10px 10px;
    content: "";
    display: block;
    position: absolute;
    top: -10px;
    width: 0;
    z-index: 1;
}
.jx-testimonial-bubble-bottom{
    padding: 10px;
    position: relative;
}
.jx-testimonial-bubble-bottom:after{
	left:30px;
}

/* Pointer alignment for bottom position based on author_align */
.jx-testimonial-item:has(.jx-testimonial-author-bottom.jx-author-align-left) .jx-testimonial-bubble-bottom:after {
	left: 30px;
}

.jx-testimonial-item:has(.jx-testimonial-author-bottom.jx-author-align-center) .jx-testimonial-bubble-bottom:after {
	left: 50%;
	transform: translateX(-50%);
}

.jx-testimonial-item:has(.jx-testimonial-author-bottom.jx-author-align-right) .jx-testimonial-bubble-bottom:after {
	left: auto;
	right: 30px;
}
.jx-author-info-bottom{	
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 12px;
}
/*bubble top*/
.jx-testimonial-bubble-top, .jx-testimonial-author-top {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    padding-top: 20px;
}

/* Author section alignment for top position */
.jx-testimonial-author-top.jx-author-align-left {
	align-items: flex-start;
}

.jx-testimonial-author-top.jx-author-align-center {
	align-items: center;
}

.jx-testimonial-author-top.jx-author-align-right {
	align-items: flex-end;
}
.jx-testimonial-bubble-top:after{
	border-style: solid;
	border-width: 10px 10px 0;
	bottom: -10px;
	content: "";
	display: block;
	position: absolute;
	width: 0;
	z-index: 1;
}
.jx-testimonial-bubble-top{
    padding: 10px;
    position: relative;
}
.jx-testimonial-bubble-top:after{
	left:30px;
}

/* Pointer alignment for top position based on author_align */
.jx-testimonial-item:has(.jx-testimonial-author-top.jx-author-align-left) .jx-testimonial-bubble-top:after {
	left: 30px;
}

.jx-testimonial-item:has(.jx-testimonial-author-top.jx-author-align-center) .jx-testimonial-bubble-top:after {
	left: 50%;
	transform: translateX(-50%);
}

.jx-testimonial-item:has(.jx-testimonial-author-top.jx-author-align-right) .jx-testimonial-bubble-top:after {
	left: auto;
	right: 30px;
}
.jx-author-info-top{	
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 12px;
}
.jx-author-info-center{
	display: block;
	text-align: center;
}
/* Center alignment override for top/bottom bubble positions */
.jx-author-info-top.jx-author-info-center,
.jx-author-info-bottom.jx-author-info-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
/*bubble right*/
.jx-author-info-right{	
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 12px;
	text-align: right;
}
.jx-testimonial-author-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}
.jx-testimonial-bubble-right{
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.jx-testimonial-bubble-right:after{
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    display: block;
    width: 0;
    z-index: 1;
    margin-top: -10px;
    left: -10px;
    top: 30px;
}

/*bubble left*/
.jx-author-info-left{	
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 12px;
	text-align: left;
}
.jx-testimonial-author-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

/* Author section alignment for left/right positions based on author_align */
/* For left/right positions, align-items controls horizontal alignment of children */
.jx-testimonial-author-left.jx-author-align-left {
    align-items: flex-start;
}

.jx-testimonial-author-left.jx-author-align-center {
    align-items: center;
}

.jx-testimonial-author-left.jx-author-align-right {
    align-items: flex-end;
}

.jx-testimonial-author-right.jx-author-align-left {
    align-items: flex-start;
}

.jx-testimonial-author-right.jx-author-align-center {
    align-items: center;
}

.jx-testimonial-author-right.jx-author-align-right {
    align-items: flex-end;
}
.jx-testimonial-bubble-left{
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.jx-testimonial-bubble-left:after{
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    display: block;
    width: 0;
    z-index: 1;
    margin-top: -10px;
    right: -10px;
    top: 30px;
}

/* Pointer alignment for left position based on author_align */
.jx-testimonial-item:has(.jx-testimonial-author-left.jx-author-align-left) .jx-testimonial-bubble-left:after {
    top: 30px;
    bottom: auto;
}

.jx-testimonial-item:has(.jx-testimonial-author-left.jx-author-align-center) .jx-testimonial-bubble-left:after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.jx-testimonial-item:has(.jx-testimonial-author-left.jx-author-align-right) .jx-testimonial-bubble-left:after {
    top: auto;
    bottom: 30px;
}

/* Pointer alignment for right position based on author_align */
.jx-testimonial-item:has(.jx-testimonial-author-right.jx-author-align-left) .jx-testimonial-bubble-right:after {
    top: 30px;
    bottom: auto;
}

.jx-testimonial-item:has(.jx-testimonial-author-right.jx-author-align-center) .jx-testimonial-bubble-right:after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.jx-testimonial-item:has(.jx-testimonial-author-right.jx-author-align-right) .jx-testimonial-bubble-right:after {
    top: auto;
    bottom: 30px;
}
.jx-error-message{
	background: none repeat scroll 0 0 #fff0d6;
	color: #ff2b2b;
	font-size: 12px;
	padding: 5px;
	border: 1px dotted;
}
 
 .jx-testimonials-wrapper {
    box-sizing: border-box;
}

/* Gap for slider modes is handled via JavaScript margin (slideMargin) and CSS margin rules */
/* Flexbox gap doesn't work with floated elements, so we use margin instead */

.jx-mode-fade .jx-testimonial-item,.jx-mode-horizontal .jx-testimonial-item{
    display: block;
    float: left;
}

/* Override for left/right bubble positions - must use flex, not float */
.jx-mode-fade .jx-testimonial-layout.jx-layout-left,
.jx-mode-fade .jx-testimonial-layout.jx-layout-right,
.jx-mode-horizontal .jx-testimonial-layout.jx-layout-left,
.jx-mode-horizontal .jx-testimonial-layout.jx-layout-right {
    display: flex !important;
}
.jx-mode-none .jx-testimonials-slide-group, .jx-mode-none .jx-testimonials-wrapper {
    display: flex;
    flex-flow: row wrap;
}

/* Last slide group styling - items fill space naturally without extra gap */
.jx-slide-group-last {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* For last slide group with fewer items, make items fill available space */
.jx-slide-group-last .jx-testimonial-item {
    flex: 1 1 auto;
    min-width: 0; /* Allow flex items to shrink below their content size */
}

/* Ensure last slide group items don't have unnecessary gaps */
.jx-slide-group-last .jx-testimonial-item:last-child {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* For slider modes, ensure last slide group items are properly sized */
.jx-mode-fade .jx-slide-group-last .jx-testimonial-item,
.jx-mode-horizontal .jx-slide-group-last .jx-testimonial-item {
    flex: 1 1 auto;
}

/* When last slide group has 2 items in a 3-column layout, they should each take ~50% */
.jx-slide-group-last.jx-columns-3 .jx-testimonial-item:nth-child(1),
.jx-slide-group-last.jx-columns-3 .jx-testimonial-item:nth-child(2) {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* When last slide group has 2 items in a 4-column layout, they should each take ~50% */
.jx-slide-group-last.jx-columns-4 .jx-testimonial-item:nth-child(1),
.jx-slide-group-last.jx-columns-4 .jx-testimonial-item:nth-child(2) {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* When last slide group has 3 items in a 4-column layout, they should each take ~33% */
.jx-slide-group-last.jx-columns-4 .jx-testimonial-item:nth-child(1),
.jx-slide-group-last.jx-columns-4 .jx-testimonial-item:nth-child(2),
.jx-slide-group-last.jx-columns-4 .jx-testimonial-item:nth-child(3) {
    flex: 0 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* When last slide group has 1 item, it should take full width */
.jx-slide-group-last .jx-testimonial-item:only-child {
    flex: 1 1 100%;
    width: 100%;
}

/* For larger screens */
@media only screen and (min-width: 1170px) {
    .jx-testimonial-item.jx-columns-1 {
        width: 100%;
    }
    .jx-mode-none .jx-testimonial-item.jx-columns-2 {
        width: calc((100% - 20px) / 2);
    }
    .jx-mode-none .jx-testimonial-item.jx-columns-3 {
        width: calc((100% - 40px) / 3);
    }
    .jx-mode-none .jx-testimonial-item.jx-columns-4 {
        width: calc((100% - 60px) / 4);
    }
    /* For slider modes with gap - adjust widths to account for gap */
    .jx-mode-fade .jx-testimonial-item.jx-columns-2,
    .jx-mode-horizontal .jx-testimonial-item.jx-columns-2 {
        width: calc((100% - 20px) / 2);
    }
    .jx-mode-fade .jx-testimonial-item.jx-columns-3,
    .jx-mode-horizontal .jx-testimonial-item.jx-columns-3 {
        width: calc((100% - 40px) / 3);
    }
    .jx-mode-fade .jx-testimonial-item.jx-columns-4,
    .jx-mode-horizontal .jx-testimonial-item.jx-columns-4 {
        width: calc((100% - 60px) / 4);
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    .jx-testimonial-item.jx-columns-1, .jx-testimonial-item.jx-columns-2, .jx-testimonial-item.jx-columns-3, .jx-testimonial-item.jx-columns-4 {
        width: 50%;
    }
    .jx-mode-none .jx-testimonial-item.jx-columns-2,
    .jx-mode-none .jx-testimonial-item.jx-columns-3.jx-testimonial-layout,
    .jx-mode-none .jx-testimonial-item.jx-columns-2.jx-testimonial-layout {
        width: calc((100% - 20px) / 2);
    }
    .jx-testimonial-item {
        padding: 5px;
    }
}

/* Small devices (phones, 480px and down) */
@media only screen and (max-width: 480px) {
    .jx-mode-none .jx-testimonial-item.jx-columns-1,
    .jx-mode-none .jx-testimonial-item.jx-columns-2.jx-testimonial-layout,
    .jx-mode-none .jx-testimonial-item.jx-columns-3.jx-testimonial-layout,
    .jx-mode-none .jx-testimonial-item.jx-columns-4,
    .jx-testimonial-item.jx-columns-1,
    .jx-testimonial-item.jx-columns-2,
    .jx-testimonial-item.jx-columns-3,
    .jx-testimonial-item.jx-columns-4 {
        width: 100%;
    }
    .jx-testimonial-item {
        padding: 5px;
    }
}

/* Navigation Arrow Styles */
.jx-nav-arrow {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    color: var(--jx-readmore-color, #007cba);
    transition: color 0.3s ease;
}

.jx-nav-arrow:hover {
    color: var(--jx-readmore-hover-color, #005a87);
}

/* Read more toggle functionality */
.jx-read-more-link {
    color: var(--jx-readmore-color, #007cba);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.jx-read-more-link:hover {
    color: var(--jx-readmore-hover-color, #005a87);
    text-decoration: none;
}

/* Testimonial short text styles */
.jx-testimonial-excerpt {
    display: inline;
}

/* Hidden popup content (content is moved to modal when clicked) */
.jx-testimonial-popup {
    display: none !important;
}

.jx-nav-next {
    margin-left: 2px;
}

.jx-nav-prev {
    margin-right: 2px;
}

/* Quote icon styles */
.jx-quote-icon {
    font-size: 20px;
    margin-right: 10px;
}

.jx-quote-right {
    margin-right: 0;
    margin-left: 10px;
}

/* ========================================
   SECTION 3: POPUP MODAL STYLES
   ======================================== */

/* Testimonial Popup Modal Styles */
.jx-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.jx-modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.jx-modal-container {
    position: relative;
    width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    padding: 0;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    border: none;
}

.jx-modal-overlay.active .jx-modal-container {
    transform: scale(1);
}

.jx-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jx-modal-close .fa-times {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jx-modal-close:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jx-modal-close:hover {
    background: #fff;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.jx-modal-close:hover .fa-times {
    color: #333;
}

/* Navigation buttons - positioned on overlay, extreme left/right */
.jx-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 48px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    z-index: 10003;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.3s ease;
    padding: 20px 30px;
    box-shadow: none;
    outline: none;
    opacity: 0.9;
}

.jx-modal-nav:focus {
    outline: none;
    box-shadow: none;
}

.jx-modal-nav span {
    display: inline-block;
    font-size: inherit;
    color: #fff;
}

.jx-modal-nav:hover {
    background: transparent;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.jx-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.jx-modal-nav.hidden {
    display: none;
}

.jx-modal-prev {
    left: 0;
}

.jx-modal-next {
    right: 0;
}

.jx-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    position: relative;
    border: none;
    transition: opacity 0.2s ease;
}

.jx-modal-body .jx-popup-content {
    position: relative;
    z-index: 1;
    min-height: 200px;
}

.jx-modal-body .jx-testimonial-text {
    position: relative;
    z-index: 1;
}

.jx-modal-body .jx-quote-icon {
    font-size: 24px;
    color: #ddd;
    margin: 0 5px;
}

body.jx-modal-open {
    overflow: hidden;
}

/* Fix FontAwesome font-weight in popup navigation buttons */
#jx-testimonial-modal .jx-modal-nav .fa,
#jx-testimonial-modal .jx-modal-nav [class^="fa-"],
#jx-testimonial-modal .jx-modal-nav [class*=" fa-"] {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
}

/* Keep quote background with font-weight 900 (required for solid icons) */
#jx-testimonial-modal .jx-modal-body .jx-popup-content::before {
    font-weight: 900 !important;
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
}

/* Testimonial-style improvements for popup */
/* Quote icons styling in popup - make them more subtle */
#jx-testimonial-modal .jx-quote-icon {
    font-size: 1.4em;
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
    .jx-modal-container {
        width: 95%;
        max-height: calc(100vh - 40px);
    }
    
    .jx-modal-body {
        padding: 30px 20px;
    }
    
    .jx-modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .jx-modal-nav {
        font-size: 28px;
        padding: 15px;
    }
    
    .jx-modal-prev {
        left: 0;
    }
    
    .jx-modal-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .jx-modal-overlay {
        padding: 0;
    }
    
    .jx-modal-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .jx-modal-body {
        padding: 25px 15px;
    }
    
    .jx-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .jx-modal-close .fa-times {
        font-size: 16px;
    }
    
    .jx-modal-nav {
        font-size: 24px;
        padding: 10px;
    }
    
    .jx-modal-prev {
        left: 0;
    }
    
    .jx-modal-next {
        right: 0;
    }
}