/* ===== EQUIPMENT SLIDER ===== */
.equipment-slider {
    z-index: 2;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    margin-top: 0;
    position: relative;
    overflow: visible;
}

@media screen and (max-width: 576px) {
    .equipment-slider {
        margin-top: 0;
    }
}



/* Additional centering fixes for better cross-browser compatibility */
#equipment .container {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

.equipment-slider .swiper-wrapper {
    align-items: center;
    padding: 0 15px;
}

.equipment-slider__item {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    height: auto;
    padding: 0 10px;
}

.equipment-slider .swiper-slide-active {
    transform: scale(1.01);
}

.equipment-slider .swiper-slide-prev,
.equipment-slider .swiper-slide-next {
    opacity: 0.7;
}

/* Ensure navigation controls are properly centered - matching projects approach */
.equipment-slider + .flex.justify-center.items-center {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 20;
    flex-shrink: 0;
}

/* Ensure the navigation container doesn't move */
.equipment-slider + .flex.justify-center.items-center > * {
    flex-shrink: 0;
}

/* Lock pagination dots in center */
.equipment-slider + .flex.justify-center.items-center .equipment-slider__pagination {
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 100px;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Center the view all equipment button - matching projects approach */
.equipment-slider + .flex.justify-center.items-center + .flex.justify-center.items-center {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

/* Ensure loading states maintain centering */
.equipment-slider .section-loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
}

.equipment-slider .section-loading-container .section-spinner {
    margin: 0 auto;
}

.equipment-slider .section-loading-container .section-loading-text {
    text-align: center;
    margin-top: 1rem;
}

/* Ensure the equipment section maintains its position during dynamic updates */
#equipment {
    position: relative;
    z-index: 1;
}

/* ===== OPTIMIZED EQUIPMENT CARDS ===== */
.equipment-card {
    background: linear-gradient(135deg, #1a2431 0%, #2d3748 100%);
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    cursor: pointer;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0); /* Force GPU acceleration */
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.equipment-card:hover {
    transform: translateY(-4px) scale(1.01) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.equipment-card:hover::before {
    opacity: 1;
}

.equipment-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
    transform: translateZ(0); /* Force GPU acceleration */
}

.equipment-card:hover .equipment-card-image {
    transform: scale(1.02) translateZ(0);
}



.equipment-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.equipment-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #ffffff;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.equipment-card:hover .equipment-card-title {
    color: #fbbf24;
}

.equipment-card-description {
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.equipment-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: #3b82f6;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 2px solid #3b82f6;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.97rem;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-weight: 400;
    transform: translateZ(0); /* Force GPU acceleration */
}

.equipment-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.equipment-card-button:hover::before {
    left: 100%;
}

.equipment-card-button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.equipment-card-button:hover .equipment-card-button-icon,
.equipment-card-button:focus .equipment-card-button-icon {
    color: #fff;
}

.equipment-card-button span, .equipment-card-button i {
    position: relative;
    z-index: 2;
}

.equipment-card-button:active {
    transform: translateY(0);
}

html[dir="rtl"] .equipment-card-button {
    direction: rtl;
}

.equipment-card-button-icon {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.equipment-card-button:hover .equipment-card-button-icon {
    transform: translateX(4px);
}

/* RTL Support for Equipment Cards */
html[dir="rtl"] .equipment-card-button-icon {
    transform: scaleX(-1);
}

html[dir="rtl"] .equipment-card-button:hover .equipment-card-button-icon {
    transform: scaleX(-1) translateX(-4px);
}



/* ===== OPTIMIZED PAGINATION DOTS ===== */
.equipment-slider__pagination {
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 100px;
    flex-shrink: 0;
}

.equipment-slider__pagination .swiper-pagination-bullet {
    width: 16px;
    height: 10px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.15), rgba(255, 191, 0, 0.3));
    opacity: 1;
    margin: 0 4px;
    border-radius: 5px;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 191, 0, 0.4);
    box-shadow: 0 1px 4px rgba(255, 191, 0, 0.10);
    /* Removed backdrop-filter for better performance */
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transform: translateZ(0); /* Force GPU acceleration */
}

.equipment-slider__pagination .swiper-pagination-bullet:hover {
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.25), rgba(255, 191, 0, 0.45));
    border-color: rgba(255, 191, 0, 0.7);
    box-shadow: 0 2px 6px rgba(255, 191, 0, 0.15);
    transform: scale(1.08) translateZ(0);
}

.equipment-slider__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: linear-gradient(135deg, #FFBF00 60%, #FFD700 100%);
    width: 24px;
    border-radius: 5px;
    border-color: #FFBF00;
    box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.15);
    transform: scale(1.12) translateZ(0);
}

/* ===== COMPLETE PAGINATION LOCK ===== */
.equipment-slider__pagination {
    position: relative !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    min-width: 100px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}

.equipment-slider__pagination .swiper-pagination-bullet {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
}

.equipment-slider__pagination .swiper-pagination-bullet-active {
    position: relative !important;
    transform: scale(1.05) !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
}



/* Prevent Swiper from moving pagination */
.swiper-pagination {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}

.equipment-slider__pagination[style] {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
}

.equipment-slider__pagination .swiper-pagination-bullet[style] {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    margin: 0 6px !important;
}

/* Optimized View All Equipment Button */
.view-all-equipment-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 2rem 0;
}

/* Equipment manage button improvements */
#v2-openTableManagerButton {
    z-index: 1000 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.view-all-equipment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.view-all-equipment-btn:hover::before {
    left: 100%;
}

.view-all-equipment-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(59, 130, 246, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.view-all-equipment-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.view-all-equipment-btn .fas {
    transition: all 0.3s ease;
}

.view-all-equipment-btn:hover .fa-cogs {
    transform: rotate(180deg);
}

.view-all-equipment-btn:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* RTL Support for View All Button */
html[dir="rtl"] .view-all-equipment-btn .fa-cogs {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .view-all-equipment-btn .fa-arrow-right {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .view-all-equipment-btn:hover .fa-arrow-right {
    transform: translateX(-4px);
}

/* Equipment Slider Pause Effects */
.equipment-slider.slider-paused .equipment-card {
    transition: all 0.3s ease;
}

.equipment-slider.slider-paused .equipment-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .equipment-slider {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 2rem 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .equipment-slider .swiper-slide {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        padding: 0 10px;
    }

    .equipment-card {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
        width: 100%;
        min-width: 260px;
        max-width: 300px;
    }

    .equipment-card-image-container {
        height: 220px;
    }

    .equipment-card-content {
        padding: 1rem;
        flex-grow: 1;
        min-height: 0;
    }

    .equipment-card-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .equipment-card-description {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.3;
    }

    .equipment-slider__arrow {
        width: 40px;
        height: 40px;
    }

    .equipment-slider__arrow .fas {
        font-size: 16px;
    }

    .equipment-slider__pagination {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .equipment-slider__pagination .swiper-pagination-bullet {
        width: 14px;
        height: 8px;
        margin: 0 3px;
    }

    .modal-content {
        width: 95%;
        max-width: 500px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .equipment-slider {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 1.5rem 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .equipment-slider .swiper-slide {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        padding: 0 8px;
    }

    .equipment-card {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
        width: 100%;
        min-width: 240px;
        max-width: 264px;
    }

    .equipment-card-image-container {
        height: 220px;
    }

    .equipment-card-content {
        padding: 0.875rem;
        flex-grow: 1;
        min-height: 0;
    }

    .equipment-card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .equipment-card-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.3;
    }

    .equipment-slider__arrow {
        width: 35px;
        height: 35px;
    }

    .equipment-slider__arrow .fas {
        font-size: 14px;
    }

    .equipment-slider__pagination {
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .equipment-slider__pagination .swiper-pagination-bullet {
        width: 14px;
        height: 8px;
        margin: 0 3px;
    }

    .equipment-slider__pagination .swiper-pagination-bullet-active {
        width: 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .view-all-equipment-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    .view-all-equipment-btn .fas {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .view-all-equipment-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        margin: 1rem 0;
    }

    .view-all-equipment-btn .fas {
        font-size: 1rem;
    }
}

/* ===== OPTIMIZED GRID CARDS ===== */
.all-equipment-card {
    background: linear-gradient(135deg, #1a2431 0%, #2d3748 100%);
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    cursor: pointer;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0); /* Force GPU acceleration */
}

.all-equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.all-equipment-card:hover {
    transform: translateY(-4px) scale(1.01) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.all-equipment-card:hover::before {
    opacity: 1;
}

.all-equipment-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
    transform: translateZ(0); /* Force GPU acceleration */
}

.all-equipment-card:hover img {
    transform: scale(1.02) translateZ(0);
}

.all-equipment-card .equipment-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.all-equipment-card .equipment-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #ffffff;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.all-equipment-card:hover .equipment-card-title {
    color: #fbbf24;
}

.all-equipment-card .equipment-card-description {
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.all-equipment-card .equipment-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: #3b82f6;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 2px solid #3b82f6;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.97rem;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-weight: 400;
    transform: translateZ(0); /* Force GPU acceleration */
}

.all-equipment-card .equipment-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.all-equipment-card .equipment-card-button:hover::before {
    left: 100%;
}

.all-equipment-card .equipment-card-button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Loading States - Updated to use unified yellow spinner */
.equipment-card.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.equipment-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 191, 0, 0.2);
    border-top: 2px solid #FFBF00;
    border-radius: 50%;
    animation: sectionSpin 1s linear infinite;
}

.equipment-loading-skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Optimized Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    border-radius: 1.5rem;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(59, 130, 246, 0.2);
}

.modal-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.modal-header {
    position: relative;
    overflow: hidden;
}

.modal-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 3rem 2rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.modal-header:hover .modal-header-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.modal-date {
    font-size: 0.9rem;
    color: #60a5fa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-body {
    padding: 2.5rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-description {
    color: #d1d5db;
    line-height: 1.7;
    font-size: 1.125rem;
    font-weight: 300;
}

.modal-close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close-button:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

/* RTL Support for Modal */
html[dir="rtl"] .modal-close-button {
    right: auto;
    left: 1.5rem;
}

html[dir="rtl"] .modal-title,
html[dir="rtl"] .modal-description {
    text-align: right;
}

html[dir="ltr"] .modal-title,
html[dir="ltr"] .modal-description {
    text-align: left;
}

/* Optimized Fullscreen Image Modal */
#fullscreen-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

#fullscreen-image-modal.active {
    opacity: 1;
    visibility: visible;
}

#fullscreen-image-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(59, 130, 246, 0.2);
    cursor: zoom-out;
}

#close-fullscreen-image {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#close-fullscreen-image:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

/* RTL Support for Fullscreen Modal */
html[dir="rtl"] #close-fullscreen-image {
    right: auto;
    left: 2.5rem;
}

/* Optimized View All Equipment Modal */
.view-all-modal-content {
    background: linear-gradient(145deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    border-radius: 2rem;
    max-width: 1400px;
    width: 95%;
    height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(59, 130, 246, 0.2);
}

.view-all-modal-content.open {
    transform: scale(1) translateY(0);
    opacity: 1;
}



/* Tab Button Styles */
.tab-button.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* RTL Support for Admin Elements */
html[dir="rtl"] #v2-openAddModal, .save-changes, .add-equipment {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .v2-delete-button {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .table-title {
    text-align: right;
}

html[dir="rtl"] .action-arabic {
    text-align: right;
}

/* Table Styles */
html[dir="ltr"] th,
html[dir="ltr"] td {
    text-align: left;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
    text-align: right;
}

html[dir="rtl"] .fas.mr-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .fas.ml-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="rtl"] .sm\:flex-row-reverse.sm\:space-x-reverse > *:not(:last-child) {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .sm\:flex-row-reverse.sm\:space-x-reverse > *:last-child {
    margin-right: 0;
    margin-left: 0;
}

/* Pagination Styles */
html[dir="ltr"] .pagination-buttons {
    flex-direction: row;
}

html[dir="rtl"] .pagination-buttons {
    flex-direction: row-reverse;
}

.pagination-buttons > *:not(:last-child) {
    margin-right: 0.5rem;
}

html[dir="rtl"] .pagination-buttons > *:not(:last-child) {
    margin-right: 0;
    margin-left: 0.5rem;
}

.pagination-buttons > *:last-child {
    margin-right: 0;
}

/* Input Styles */
html[dir="ltr"] .relative input[type="text"] + .absolute {
    right: 0.75rem;
    left: auto;
}

html[dir="rtl"] .relative input[type="text"] + .absolute {
    left: 0.75rem;
    right: auto;
}

html[dir="ltr"] .relative input[type="text"] {
    padding-right: 2.5rem;
    padding-left: 0.75rem;
}

html[dir="rtl"] .relative input[type="text"] {
    padding-left: 2.5rem;
    padding-right: 0.75rem;
}

/* Text Direction Classes */
.ltr-text {
    direction: ltr;
    text-align: left;
}

.rtl-text {
    direction: rtl;
    text-align: right;
}

/* Table Cell Styles */
.table-image-cell {
    width: 80px;
}

html[dir="ltr"] .table-image-cell {
    text-align: left;
}

html[dir="rtl"] .table-image-cell {
    text-align: right;
}

.action-cell {
    width: 120px;
}

html[dir="ltr"] .action-cell {
    text-align: left;
}

html[dir="rtl"] .action-cell {
    text-align: right;
}

html[dir="rtl"] .action-cell .v2-delete-button {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ===== ULTIMATE PAGINATION LOCK ===== */
.equipment-slider__pagination,
.equipment-slider__pagination.swiper-pagination,
.swiper-pagination.equipment-slider__pagination {
    position: relative !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    min-width: 100px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
}

.equipment-slider__pagination .swiper-pagination-bullet,
.swiper-pagination-bullet {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
    float: none !important;
}

.equipment-slider__pagination .swiper-pagination-bullet-active,
.swiper-pagination-bullet-active {
    position: relative !important;
    transform: scale(1.05) !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
    float: none !important;
}

/* RTL Support for Navigation Controls */
html[dir="rtl"] .equipment-slider__pagination {
    direction: rtl;
}

html[dir="rtl"] .equipment-slider__arrow .fa-arrow-right,
html[dir="rtl"] .equipment-slider__arrow .fa-arrow-left {
    transform: scaleX(-1);
}

html[dir="rtl"] .equipment-slider__pagination .swiper-pagination-bullet {
    margin-left: 6px;
    margin-right: 6px;
}



html[dir="rtl"] .equipment-card-button .fa-arrow-left {
    display: inline-block;
}

html[dir="rtl"] .equipment-card-button {
    flex-direction: row-reverse;
    direction: rtl;
}

html[dir="rtl"] .equipment-card-button .fa-arrow-left {
    margin-right: 0.5rem;
    margin-left: 0;
    transform: scaleX(-1);
}

html[dir="rtl"] .equipment-card-button .fa-arrow-right {
    display: none;
}

html[dir="rtl"] .equipment-card-button span.relative {
    margin-right: 0;
    margin-left: 0;
}

/* RTL Support for All Equipment Cards */
html[dir="rtl"] .all-equipment-card .equipment-card-button {
    flex-direction: row-reverse;
    direction: rtl;
}

html[dir="rtl"] .all-equipment-card .equipment-card-button .fa-arrow-left {
    margin-right: 0.5rem;
    margin-left: 0;
    transform: scaleX(-1);
}

html[dir="rtl"] .all-equipment-card .equipment-card-button .fa-arrow-right {
    display: none;
}

html[dir="rtl"] .all-equipment-card .equipment-card-button .fa-arrow-left {
    display: inline-block;
}

html[dir="rtl"] .all-equipment-card .equipment-card-button span.relative {
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .equipment-card-button span.relative {
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .news-slider__pagination .swiper-pagination-bullet {
    margin-left: 6px;
    margin-right: 6px;
}

/* Optimized fade-in animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: transform, opacity;
}

.fade-in-up.active-animation {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
.equipment-card,
.all-equipment-card,
.equipment-slider__arrow,
.modal-content,
.fullscreen-image-overlay,
.view-all-modal-content {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Stats Section Counter Animations */
#partners-count,
#solutions-count,
#years-count {
    transition: all 0.3s ease;
    opacity: 0.8;
}

#partners-count.counting,
#solutions-count.counting,
#years-count.counting {
    opacity: 1;
    transform: scale(1.05);
}

/* Ensure stats section is visible on small devices */
@media (max-width: 768px) {
    .md\\:mt-16.flex.flex-row.justify-around {
        margin-top: 2rem !important;
        padding: 1rem 0;
        min-height: 120px;
    }
    
    .md\\:mt-16.flex.flex-row.justify-around > div {
        flex: 1;
        min-width: 0;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .md\\:mt-16.flex.flex-row.justify-around {
        margin-top: 1.5rem !important;
        padding: 0.75rem 0;
        flex-direction: column;
        gap: 1rem;
    }
    
    .md\\:mt-16.flex.flex-row.justify-around > div {
        padding: 0.5rem;
    }
}

/* Try Again Button - Amber version of equipment card button */
.try-again-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 2px solid #f59e0b;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.97rem;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-weight: 400;
    transform: translateZ(0); /* Force GPU acceleration */
    cursor: pointer;
}

.try-again-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.try-again-button:hover::before {
    left: 100%;
}

.try-again-button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #ffffff;
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.try-again-button:active {
    transform: translateY(0) translateZ(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* RTL Support for Try Again Button */
html[dir="rtl"] .try-again-button {
    flex-direction: row-reverse;
    direction: rtl;
}

/* ===== OPTIMIZED NAVIGATION ARROWS ===== */
.equipment-slider__arrow {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    outline: none !important;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
    width: 45px;
    height: 45px;
    /* Removed backdrop-filter for better performance */
    position: relative;
    z-index: 50;
    pointer-events: auto;
    transform: translateZ(0); /* Force GPU acceleration */
}

.equipment-slider__arrow:focus {
    outline: none !important;
}

.equipment-slider__arrow:hover {
    color: #ffffff;
    transform: scale(1.05) translateZ(0);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.equipment-slider__arrow--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.equipment-slider__arrow--disabled:hover {
    transform: none;
    box-shadow: none;
}

.equipment-slider__arrow .fas {
    font-size: 18px;
}

/* Enhanced Navigation Arrows */
.equipment-slider__arrow {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.equipment-slider__arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.equipment-slider__arrow:hover::before {
    left: 100%;
}

/* ===== NAVIGATION CONTAINER ===== */
.equipment-slider .flex.justify-center.items-center {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    flex-shrink: 0;
}

/* ===== FIXED NAVIGATION POSITIONING ===== */
.equipment-slider + .flex.justify-center.items-center {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Ensure the navigation container doesn't move */
.equipment-slider + .flex.justify-center.items-center > * {
    flex-shrink: 0;
}

/* Lock pagination dots in center */
.equipment-slider + .flex.justify-center.items-center .equipment-slider__pagination {
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 100px;
    flex-shrink: 0;
    flex-grow: 0;
}