/*
================================================================================
START: Promise Carousel Styles (promise-carousel.css)
Purpose: Contains all styling for the "Our Promise" carousel section, including
         the slide layout, card design, pagination buttons, and the lightbox
         modal that it triggers.
================================================================================
*/

/* --- Styles for the Unified Box Card Design --- */
.discount__items {
   background-color: #f8f9fa;
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 6px 12px rgba(0,0,0,0.1);
   height: 100%;
   display: flex;
   flex-direction: column;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount__items:hover {
   transform: translateY(-10px);
   box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.discount__content {
   padding: 20px;
   flex-grow: 1;
}

.discount__content h4 {
   margin-top: 0;
}

.discount__thumb {
   cursor: pointer;
}

.discount__thumb img {
   width: 100%;
   display: block;
}

/* ========== FIXED CAROUSEL STYLES - UNIFORM SIZES ========== */
.swiper.discount__wrapper {
   overflow: hidden;
   width: 100%;
}

/* Force ALL slides to be same width */
.swiper.discount__wrapper .swiper-slide {
   width: 300px !important;
   flex-shrink: 0;
}

/* Force ALL discount items to same height */
.discount__items {
   display: flex !important;
   flex-direction: column !important;
   height: 400px !important;
   width: 100% !important;
}

/* Force ALL thumbnails to same size */
.discount__thumb {
   width: 100% !important;
   height: 220px !important;
   overflow: hidden !important;
   flex-shrink: 0 !important;
}

/* Force ALL images to fill thumbnail uniformly */
.discount__thumb img {
   width: 100% !important;
   height: 100% !important;
   object-fit: cover !important;
   object-position: center !important;
}

/* Force ALL content boxes to same height */
.discount__content {
   flex: 1 !important;
   display: flex !important;
   flex-direction: column !important;
   padding: 15px !important;
}

.discount__content h4 {
   font-size: 1.1rem !important;
   margin: 0 0 10px 0 !important;
   height: 2.5em !important;
   overflow: hidden !important;
}

.discount__content p {
   font-size: 0.9rem !important;
   line-height: 1.4 !important;
   margin: 0 !important;
   flex: 1 !important;
   overflow: hidden !important;
}
/* ========== END UNIFORM SIZE STYLES ========== */

/* --- Styles for 10-Button Set Pagination --- */
.set-pagination-wrapper {
   display: flex;
   justify-content: center;
   align-items: center;
   flex-wrap: wrap;
   gap: 8px;
   margin-top: 40px;
}

.set-pagination-btn {
   background-color: #e9ecef;
   color: #495057;
   border: 1px solid #dee2e6;
   border-radius: 5px;
   padding: 6px 12px;
   cursor: pointer;
   font-weight: bold;
   font-size: 0.9rem;
   transition: all 0.3s ease;
}

.set-pagination-btn:hover {
   background-color: #ced4da;
}

.set-pagination-btn.active {
   background-color: #007bff;
   color: #fff;
   border-color: #007bff;
}

/* --- Styles for Lightbox Modal --- */
#image-modal-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.85);
   z-index: 1000;
   justify-content: center;
   align-items: center;
   padding: 20px;
   box-sizing: border-box;
}

#modal-image {
   max-width: 90vw;
   max-height: 85vh;
   object-fit: contain;
}

#modal-close-btn {
   position: absolute;
   top: 20px;
   right: 35px;
   color: #fff;
   font-size: 40px;
   font-weight: bold;
   cursor: pointer;
   transition: transform 0.3s ease, color 0.3s ease;
   line-height: 1;
}

#modal-close-btn:hover {
   color: #f00;
   transform: rotate(90deg);
}

body.modal-open {
   overflow: hidden;
}