/* src/components/Main Page/sectionfiveone.module.css */
.container {
  max-width: 124rem;
  width: 100%;
  margin: 0 auto;
  overflow: hidden; /* Prevents horizontal scrollbars */
}

.swiperContainer {
  width: 100%; /* Forces Swiper to calculate exact center of the screen */
  height: 32rem; 
  padding: 3rem 0;
  position: relative;
}

/* Base Swiper Slide Size */
.swiperSlide {
  width: 28rem;
  height: 22rem;
  position: relative;
  transition: z-index 0.4s ease;
}

/* Base Card Content - Applied to INACTIVE (Side) Cards */
.cardContent {
    width: 100%;
    height: 100%;
    /* Greyed out background for side cards */
    background: #e8e8e8; 
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    border: 1px solid #d4d4d4;
    cursor: pointer;
    
    /* Slightly fade out text on side cards for better contrast with center */
    color: #666666; 
    
    /* Smooth transitions for moving between states */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cardTitle {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit;
}

.cardText {
    font-size: 1.05rem;
    line-height: 1.6;
    color: inherit;
}

/* --- ACTIVE (CENTER) CARD --- */
.swiperSlide.swiper-slide-active .cardContent {
    /* Pure white, prominent, and zoomed */
    background: #ffffff;
    transform: scale(1.08); /* Zoom effect for the center card */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    color: #222224; /* Dark text for the active card */
}

/* --- HOVER EFFECTS --- */
/* Ensures a hovered card pops over the others */
.swiperSlide:hover {
    z-index: 100 !important;
}

/* When ANY card is hovered, it zooms up and turns white */
.swiperSlide .cardContent:hover {
    transform: scale(1.15) !important;
    background: #ffffff !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
    color: #111 !important; 
    border: 1px solid #ffffff;
}

/* Hide default Swiper shadows */
.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
  display: none;
}

/* --- CONTROLLERS (Arrows & Pagination directly below) --- */
.sliderController {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  gap: 2rem; /* Spacing between left arrow, dots, and right arrow */
  z-index: 10;
}

.sliderArrow {
  background: #ffffff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #222224;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.sliderArrow:hover {
    transform: scale(1.1);
    background: #222224;
    color: #ffffff;
}

.swiperPagination {
  position: relative !important;
  width: auto !important;
  bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiperPagination :global(.swiper-pagination-bullet) {
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
  background: #ccc;
  width: 10px;
  height: 10px;
  opacity: 1;
  margin: 0 5px !important;
}

.swiperPagination :global(.swiper-pagination-bullet-active) {
  background: #222224;
  transform: scale(1.2);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .swiperSlide {
    width: 25rem;
    height: 22rem;
  }
  .cardTitle { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .swiperContainer {
    height: 32rem;
  }
  .swiperSlide {
    width: 22rem;
    height: 20rem;
  }
  .cardTitle { font-size: 1.4rem; }
  .cardText { font-size: 0.95rem; }
  .cardContent { padding: 1.5rem; }
  
  .sliderArrow {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 480px) {
  .swiperContainer {
    height: 30rem;
    padding: 2rem 0;
  }
  .swiperSlide {
    width: 16rem !important; 
    height: 22rem !important;
  }
  .cardTitle { font-size: 1.2rem; }
  .cardText { font-size: 0.85rem; }
  
  .swiperSlide.swiper-slide-active .cardContent {
      transform: scale(1.02);
  }
  .swiperSlide .cardContent:hover {
    transform: scale(1.05) !important;
  }
}