/**
 * @version     4.2
 * @package     com_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: MAIN COMPONENT STYLES
   ======================================== */

/* Flex layout for left/right bubble positions */
.jx-c-testimonial-layout.jx-c-layout-left,
.jx-c-testimonial-layout.jx-c-layout-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* Ensure flex children don't float */
.jx-c-testimonial-layout.jx-c-layout-left > *,
.jx-c-testimonial-layout.jx-c-layout-right > * {
    float: none !important;
}

/* Ensure bubble sections take up space in flex layout */
.jx-c-testimonial-layout.jx-c-layout-left .jx-c-testimonial-bubble-left,
.jx-c-testimonial-layout.jx-c-layout-right .jx-c-testimonial-bubble-right {
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: 100%;
}

/* Ensure author sections don't shrink too much */
.jx-c-testimonial-layout.jx-c-layout-left .jx-c-testimonial-author-left,
.jx-c-testimonial-layout.jx-c-layout-right .jx-c-testimonial-author-right {
    flex-shrink: 0;
    flex-grow: 0;
}

/* Modern browser support with :has() - more specific to avoid conflicts */
.jx-c-testimonial-item:has(.jx-c-testimonial-author-left):not(:has(.jx-c-testimonial-author-top)):not(:has(.jx-c-testimonial-author-bottom)),
.jx-c-testimonial-item:has(.jx-c-testimonial-author-right):not(:has(.jx-c-testimonial-author-top)):not(:has(.jx-c-testimonial-author-bottom)) {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-left):not(:has(.jx-c-testimonial-author-top)):not(:has(.jx-c-testimonial-author-bottom)) {
    flex-direction: row !important;
}

.jx-c-testimonial-item {
    vertical-align: top;
    box-sizing: border-box;
}

.jx-c-testimonial-item:after {
    content: "";
    display: table;
    clear: both;
}

.jx-c-testimonial-content-wrapper {
    margin-bottom: 20px;
    padding: 3px;
    position: relative;
}

.jx-c-testimonial-item p {
    margin: 0;
    line-height: 150%;
}

/* Author image wrapper - flex layout for alignment */
.jx-c-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-c-testimonial-author-top.jx-c-author-align-left .jx-c-author-image-wrapper,
.jx-c-testimonial-author-bottom.jx-c-author-align-left .jx-c-author-image-wrapper {
    justify-content: flex-start;
    text-align: left;
}

.jx-c-testimonial-author-top.jx-c-author-align-center .jx-c-author-image-wrapper,
.jx-c-testimonial-author-bottom.jx-c-author-align-center .jx-c-author-image-wrapper {
    justify-content: center;
    text-align: center;
}

.jx-c-testimonial-author-top.jx-c-author-align-right .jx-c-author-image-wrapper,
.jx-c-testimonial-author-bottom.jx-c-author-align-right .jx-c-author-image-wrapper {
    justify-content: flex-end;
    text-align: right;
}

/* Image alignment for left/right positions (vertical alignment) */
.jx-c-testimonial-author-left.jx-c-author-align-left .jx-c-author-image-wrapper,
.jx-c-testimonial-author-right.jx-c-author-align-left .jx-c-author-image-wrapper {
    align-items: flex-start;
}

.jx-c-testimonial-author-left.jx-c-author-align-center .jx-c-author-image-wrapper,
.jx-c-testimonial-author-right.jx-c-author-align-center .jx-c-author-image-wrapper {
    align-items: center;
}

.jx-c-testimonial-author-left.jx-c-author-align-right .jx-c-author-image-wrapper,
.jx-c-testimonial-author-right.jx-c-author-align-right .jx-c-author-image-wrapper {
    align-items: flex-end;
}

.jx-c-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    gap: 5px;
}

.jx-c-author-name {
    color: #000;
    font-weight: bold;
}

.jx-c-author-date {
    font-size: 11px;
}

.jx-c-author-rating .fa-star {
    color: gold;
    font-size: 14px;
    margin-right: 2px;
}

/* Improved image styling for better fit and shape */
.jx-c-author-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.jx-c-author-image-wrapper .jx-c-image-circle {
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

.jx-c-author-image-wrapper .jx-c-image-square {
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
}

.jx-c-author-image-wrapper .jx-c-image-round {
    border-radius: 15px;
    overflow: hidden;
    display: inline-block;
}

.jx-c-author-image-wrapper .jx-c-image-default {
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
}

/* Diamond/Rhombus shape */
.jx-c-author-image-wrapper .jx-c-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-c-author-image-wrapper .jx-c-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-c-author-image-wrapper .jx-c-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-c-author-image-wrapper .jx-c-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-c-author-image-wrapper .jx-c-image-rounded-lg {
    border-radius: 20px;
    overflow: hidden;
    display: inline-block;
}

/* Extra Large Rounded */
.jx-c-author-image-wrapper .jx-c-image-rounded-xl {
    border-radius: 30px;
    overflow: hidden;
    display: inline-block;
}

/* Testimonial bubble styles */
.jx-c-testimonial-bubble-squared {
    border-radius: 0;
}

.jx-c-testimonial-bubble-round {
    border-radius: 10px;
}

.jx-c-author-company > a {
    color: #45b0ee;
}

.jx-c-author-company > a:hover {
    color: #005580;
}

/* ========================================
   BUBBLE BOTTOM STYLES
   ======================================== */

.jx-c-testimonial-bubble-bottom,
.jx-c-testimonial-author-bottom {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 20px;
}

/* Author section alignment for bottom position */
.jx-c-testimonial-author-bottom.jx-c-author-align-left {
    align-items: flex-start;
}

.jx-c-testimonial-author-bottom.jx-c-author-align-center {
    align-items: center;
}

.jx-c-testimonial-author-bottom.jx-c-author-align-right {
    align-items: flex-end;
}

.jx-c-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-c-testimonial-bubble-bottom {
    padding: 10px;
    position: relative;
}

.jx-c-testimonial-bubble-bottom:after {
    left: 30px;
}

/* Pointer alignment for bottom position based on author_align */
.jx-c-testimonial-item:has(.jx-c-testimonial-author-bottom.jx-c-author-align-left) .jx-c-testimonial-bubble-bottom:after {
    left: 30px;
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-bottom.jx-c-author-align-center) .jx-c-testimonial-bubble-bottom:after {
    left: 50%;
    transform: translateX(-50%);
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-bottom.jx-c-author-align-right) .jx-c-testimonial-bubble-bottom:after {
    left: auto;
    right: 30px;
}

.jx-c-author-info-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
}

/* ========================================
   BUBBLE TOP STYLES
   ======================================== */

.jx-c-testimonial-bubble-top,
.jx-c-testimonial-author-top {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    padding-top: 20px;
}

/* Author section alignment for top position */
.jx-c-testimonial-author-top.jx-c-author-align-left {
    align-items: flex-start;
}

.jx-c-testimonial-author-top.jx-c-author-align-center {
    align-items: center;
}

.jx-c-testimonial-author-top.jx-c-author-align-right {
    align-items: flex-end;
}

.jx-c-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-c-testimonial-bubble-top {
    padding: 10px;
    position: relative;
}

.jx-c-testimonial-bubble-top:after {
    left: 30px;
}

/* Pointer alignment for top position based on author_align */
.jx-c-testimonial-item:has(.jx-c-testimonial-author-top.jx-c-author-align-left) .jx-c-testimonial-bubble-top:after {
    left: 30px;
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-top.jx-c-author-align-center) .jx-c-testimonial-bubble-top:after {
    left: 50%;
    transform: translateX(-50%);
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-top.jx-c-author-align-right) .jx-c-testimonial-bubble-top:after {
    left: auto;
    right: 30px;
}

.jx-c-author-info-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
}

.jx-c-author-info-center {
    display: block;
    text-align: center;
}

/* Center alignment override for top/bottom bubble positions */
.jx-c-author-info-top.jx-c-author-info-center,
.jx-c-author-info-bottom.jx-c-author-info-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ========================================
   BUBBLE RIGHT STYLES
   ======================================== */

.jx-c-author-info-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    text-align: right;
}

.jx-c-testimonial-author-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.jx-c-testimonial-bubble-right {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.jx-c-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;
}

/* Pointer alignment for right position based on author_align */
.jx-c-testimonial-item:has(.jx-c-testimonial-author-right.jx-c-author-align-left) .jx-c-testimonial-bubble-right:after {
    top: 30px;
    bottom: auto;
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-right.jx-c-author-align-center) .jx-c-testimonial-bubble-right:after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-right.jx-c-author-align-right) .jx-c-testimonial-bubble-right:after {
    top: auto;
    bottom: 30px;
}

/* ========================================
   BUBBLE LEFT STYLES
   ======================================== */

.jx-c-author-info-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    text-align: left;
}

.jx-c-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 */
.jx-c-testimonial-author-left.jx-c-author-align-left {
    align-items: flex-start;
}

.jx-c-testimonial-author-left.jx-c-author-align-center {
    align-items: center;
}

.jx-c-testimonial-author-left.jx-c-author-align-right {
    align-items: flex-end;
}

.jx-c-testimonial-author-right.jx-c-author-align-left {
    align-items: flex-start;
}

.jx-c-testimonial-author-right.jx-c-author-align-center {
    align-items: center;
}

.jx-c-testimonial-author-right.jx-c-author-align-right {
    align-items: flex-end;
}

.jx-c-testimonial-bubble-left {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.jx-c-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-c-testimonial-item:has(.jx-c-testimonial-author-left.jx-c-author-align-left) .jx-c-testimonial-bubble-left:after {
    top: 30px;
    bottom: auto;
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-left.jx-c-author-align-center) .jx-c-testimonial-bubble-left:after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.jx-c-testimonial-item:has(.jx-c-testimonial-author-left.jx-c-author-align-right) .jx-c-testimonial-bubble-left:after {
    top: auto;
    bottom: 30px;
}

/* ========================================
   GRID LAYOUT STYLES
   ======================================== */

.jx-c-testimonials-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
}

.jx-c-testimonial-item {
    vertical-align: top;
    box-sizing: border-box;
}

/* Grid columns - for larger screens */
@media only screen and (min-width: 1170px) {
    .jx-c-testimonial-item.jx-c-columns-1 {
        width: 100%;
    }
    .jx-c-testimonial-item.jx-c-columns-2 {
        width: calc((100% - 20px) / 2);
    }
    .jx-c-testimonial-item.jx-c-columns-3 {
        width: calc((100% - 40px) / 3);
    }
    .jx-c-testimonial-item.jx-c-columns-4 {
        width: calc((100% - 60px) / 4);
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    .jx-c-testimonial-item.jx-c-columns-1,
    .jx-c-testimonial-item.jx-c-columns-2,
    .jx-c-testimonial-item.jx-c-columns-3,
    .jx-c-testimonial-item.jx-c-columns-4 {
        width: calc((100% - 20px) / 2);
    }
    .jx-c-testimonial-item {
        padding: 5px;
    }
}

/* Small devices (phones, 480px and down) */
@media only screen and (max-width: 480px) {
    .jx-c-testimonial-item.jx-c-columns-1,
    .jx-c-testimonial-item.jx-c-columns-2,
    .jx-c-testimonial-item.jx-c-columns-3,
    .jx-c-testimonial-item.jx-c-columns-4 {
        width: 100%;
    }
    .jx-c-testimonial-item {
        padding: 5px;
    }
}

/* ========================================
   READ MORE & POPUP STYLES
   ======================================== */

/* Read more toggle functionality */
.jx-c-read-more-link {
    color: var(--jx-c-readmore-color, #007cba);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.jx-c-read-more-link:hover {
    color: var(--jx-c-readmore-hover-color, #005a87);
    text-decoration: none;
}

/* Testimonial short text styles */
.jx-c-testimonial-excerpt {
    display: inline;
}

/* Hidden popup content (content is moved to modal when clicked) */
.jx-c-testimonial-popup {
    display: none !important;
}

/* Quote icon styles */
.jx-c-quote-icon {
    font-size: 20px;
    margin-right: 10px;
}

.jx-c-quote-right {
    margin-right: 0;
    margin-left: 10px;
}

/* ========================================
   POPUP MODAL STYLES
   ======================================== */

/* Testimonial Popup Modal Styles */
.jx-c-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-c-modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.jx-c-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-c-modal-overlay.active .jx-c-modal-container {
    transform: scale(1);
}

.jx-c-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-c-modal-close .fa-times {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jx-c-modal-close:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jx-c-modal-close:hover {
    background: #fff;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.jx-c-modal-close:hover .fa-times {
    color: #333;
}

/* Navigation buttons - positioned on overlay, extreme left/right */
.jx-c-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-c-modal-nav:focus {
    outline: none;
    box-shadow: none;
}

.jx-c-modal-nav span {
    display: inline-block;
    font-size: inherit;
    color: #fff;
}

.jx-c-modal-nav:hover {
    background: transparent;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.jx-c-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.jx-c-modal-nav.hidden {
    display: none;
}

.jx-c-modal-prev {
    left: 0;
}

.jx-c-modal-next {
    right: 0;
}

.jx-c-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    position: relative;
    border: none;
    transition: opacity 0.2s ease;
}

.jx-c-modal-body .jx-c-popup-content {
    position: relative;
    z-index: 1;
    min-height: 200px;
}

.jx-c-modal-body .jx-c-testimonial-text {
    position: relative;
    z-index: 1;
}

.jx-c-modal-body .jx-c-quote-icon {
    font-size: 24px;
    color: #ddd;
    margin: 0 5px;
}

body.jx-c-modal-open {
    overflow: hidden;
}

/* Fix FontAwesome font-weight in popup navigation buttons */
#jx-c-testimonial-modal .jx-c-modal-nav .fa,
#jx-c-testimonial-modal .jx-c-modal-nav [class^="fa-"],
#jx-c-testimonial-modal .jx-c-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-c-testimonial-modal .jx-c-modal-body .jx-c-popup-content::before {
    font-weight: 900 !important;
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
}

/* Testimonial-style improvements for popup */
#jx-c-testimonial-modal .jx-c-quote-icon {
    font-size: 1.4em;
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
    .jx-c-modal-container {
        width: 95%;
        max-height: calc(100vh - 40px);
    }

    .jx-c-modal-body {
        padding: 30px 20px;
    }

    .jx-c-modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .jx-c-modal-nav {
        font-size: 28px;
        padding: 15px;
    }

    .jx-c-modal-prev {
        left: 0;
    }

    .jx-c-modal-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .jx-c-modal-overlay {
        padding: 0;
    }

    .jx-c-modal-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .jx-c-modal-body {
        padding: 25px 15px;
    }

    .jx-c-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    .jx-c-modal-close .fa-times {
        font-size: 16px;
    }

    .jx-c-modal-nav {
        font-size: 24px;
        padding: 10px;
    }

    .jx-c-modal-prev {
        left: 0;
    }

    .jx-c-modal-next {
        right: 0;
    }
}

/* Error message */
.jx-c-error-message {
    background: none repeat scroll 0 0 #fff0d6;
    color: #ff2b2b;
    font-size: 12px;
    padding: 5px;
    border: 1px dotted;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

/* Pagination wrapper - flex container */
.jx-c-pagination-wrapper {
    display: flex;
    width: 100%;
    margin: 20px 0;
    padding: 0;
}

/* Pagination alignment - flex-based */
.jx-c-pagination-align-left {
    justify-content: flex-start;
}

.jx-c-pagination-align-center {
    justify-content: center;
}

.jx-c-pagination-align-right {
    justify-content: flex-end;
}

/* Pagination list - flex container for items */
.jx-c-pagination-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
}

/* Pagination item */
.jx-c-pagination-list .jx-c-pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Pagination link */
.jx-c-pagination-list .jx-c-pagination-item .jx-c-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
}

/* Pagination item states */
.jx-c-pagination-list .jx-c-pagination-item.disabled .jx-c-page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.jx-c-pagination-list .jx-c-pagination-item.active .jx-c-page-link {
    font-weight: bold;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .jx-c-pagination-list {
        gap: 3px;
    }
    
    .jx-c-pagination-list .jx-c-pagination-item .jx-c-page-link {
        padding: 6px 10px;
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .jx-c-pagination-list {
        gap: 2px;
    }
    
    .jx-c-pagination-list .jx-c-pagination-item .jx-c-page-link {
        padding: 5px 8px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

