/* Membership Grid Section */

/* Typography & Layout */
.mem-heading-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.mem-des {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 15px;
  margin-bottom: 0;
}

/* Membership Grid Layout */
.membershipGridParent {
  background: #fff;
  padding-bottom: 30px;
}

.membershipGridWrapper {
  display: grid;
  padding: 25px 8%;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  position: relative;
  cursor: pointer;
}

/* Grid Card Styling */
.membershipGrid {
  padding: 25px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: -5.11px 5.11px 38.34px 0px #00000040;
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.membershipGrid:hover {
  animation: breathe 0.4s forwards;
}


/* Typography Inside Grid */

.membershipGrid h3 {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 23px;
  line-height: normal;
  width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.membershipGrid p {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
}

/* Features List */
.membershipFeatures {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.membershipFeatures p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 0;
}

.membershipFeatures p svg {
  width: 20px;
  height: 20px;
  flex: 0 0 5%;
}

/* Tag Style */
.membershipGridTag {
  position: absolute;
  right: 0;
  background: #fff;
  border-radius: 5px 0 0 5px;
}

.membershipGridTag p {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #202F64 !important;
  margin: 0;
  padding: 5px 10px;
}

/* Tag Variation */
.membershipGrid.has-tag {
  background: #202F64;
}

.membershipGrid.has-tag h3,
.membershipGrid.has-tag p {
  color: #fff;
}

.btn.btn-primary.has-tag {
  background: #fff;
  color: #202F64;
}

/* Modal Styling */
.membershipModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.membershipModal .bg-white {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.membershipModal .bg-white p {
  margin: 0;
}

.membershipModal .bg-white button {
  background-color: #202F64;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* Spinner Overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ddd;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Responsive Styling */
@media screen and (max-width: 786px) {
  .mem-heading-container {
    padding: 0px 20px 0px 20px;
  }

  .membershipGridWrapper {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .homeMembership{
    padding-top: 32px;
  }
}



/* Benefit Grid Section */
.benefitGridWrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.benefitIndvBoxIcon {
  width: 17%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
    .swiper {
  overflow: hidden; /* keep swiper happy */
}

.swiper-wrapper {
  overflow: visible; /* allow inner content to overflow */
}

.swiper-slide {
  overflow: visible; /* allow slide content to overflow */
  isolation: isolate; /* prevent clipping from parent stacking context */
}

.benefitIndvBox {
  position: relative;
}
.benefitGrid {
   
   margin-top: 88px;
}

.benefitIndvBox {
  border: 2px solid #202F64;
  padding: 4px;
  position: relative;
   border-radius: 10px;
   margin-bottom: 36px;
}

.benefitIndvBoxContent {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 18px;
   padding-top: 32px;
   min-height: 250px;
}
.benefitIndvBoxContent h3 {
   text-align: center;
}

.benefitIndvBoxContent p {
   text-align: center;
}

@media(max-width: 998px){

.membershipGridParent {
    padding-bottom: 0px;
  }
}

@media(max-width: 786px){

  .benefitIndvBox {
    margin-top: 15%;
  }
  .benefitGrid {
    margin-top: 22px;
  }
  .membershipBenifit .benefitGrid {
 
    margin-top: 8px;
  }
  h2.header-32 {
    font-size: 20px;
    line-height: normal;
  }
}