.charity-page-wrapper {
  background-size: cover;
  background-position: center;
  font-family: "Cairo", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.charity-tab-button {
  background-color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 25px;
  font-weight: 500;
  width: 100%;
  margin-bottom: 10px;
  color: #253f92;
  border-radius: 8px;
  transition: 0.3s;
  display: flex;
  text-align: start;
  align-items: center;
  justify-content: flex-start;
}

.charity-card-img-top {
  height: 187px;
  object-fit: cover;
  border-radius: 10px;
}

.charity-tab-button:hover,
.charity-tab-button.active {
  background: linear-gradient(to right, #ffffff, #ef7b03);
  color: #ffffff;
}

[dir="ltr"] .charity-tab-button:hover,
[dir="ltr"] .charity-tab-button.active {
  background: linear-gradient(to left, #ffffff, #ef7b03);
  color: #ffffff;
}
@media (max-width: 767.98px) {
  .charity-tab-button:hover,
  .charity-tab-button.active {
    background:  #ef7b03;
    color: #ffffff;
  }

  [dir="ltr"] .charity-tab-button:hover,
  [dir="ltr"] .charity-tab-button.active {
    background:  #ef7b03;
    color: #ffffff;
  }
}
[dir="ltr"] h5.feature-title {
  text-align: left !important;
}

.charity-tab-content {
  display: none;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.charity-tab-content.active {
  display: block;
}

.swiper {
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  padding: 10px;
  flex-wrap: nowrap;
}

.charity-card-custom {
  width: 100%;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px 5px 18px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.charity-btn-custom-blue {
  background-color: #2f46a0;
  color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 15px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.charity-btn-custom-blue:hover {
  background-color: #ef7b03;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.charity-pagination-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.swiper-pagination {
  position: static !important;
  bottom: auto !important;
  top: auto !important;
  margin-top: 10px;
}
.swiper-pagination-bullet {
  background-color: #2f46a0 !important;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background-color: #ef7b03 !important;
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: #2f46a0 !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #ef7b03 !important;
  color: white !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
}
.swiper-button-prev {
  left: 0;
}
.swiper-button-next {
  right: 0;
}

.charity-gradient-text {
  background: linear-gradient(to right, #ef7b03, #ffc181);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 40px;
  font-weight: 600;
}

.row.container.bg-white.py-5.px-5 {
  border-radius: 25px;
}

.col-lg-charity-35 {
  padding-left: 0px;
}

@media (min-width: 992px) {
  .col-lg-charity-35 {
    flex: 0 0 auto;
    width: 35%;
  }
  .col-lg-charity-65 {
    flex: 0 0 auto;
    min-height: 408px;
    width: 65%;
  }
  .charity-main-content-area {
    background-color: white;
    padding-bottom: 20px;
    width: 100%;
    background: url(../images/new/background\ tabs\ section.jpg);
    background-size: cover;
  }
}

@media (max-width: 991.98px) {
  .charity-tab-buttons-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .charity-tab-button {
    width: 100%;
    text-align: center;
    font-size: 12px;
    padding: 10px 5px;
    justify-content: center;
  }

  .col-lg-charity-35,
  .col-lg-charity-65 {
    width: 100%;
  }
}
.subtitle-tab {
  color: white;
}
@media (max-width: 992px) {
  .subtitle-tab {
    color: #304998;
  }
}
@media (max-width: 767.98px) {
  .swiper-slide {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .charity-card-custom {
    width: 100%;
    margin-left: 0 !important;
    height: auto !important;
    min-height: unset;
  }
  .charity-card-img-top {
    height: 150px;
  }
  .charity-gradient-text {
    font-size: 32px;
  }
  .sub {
    font-size: 24px !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  .swiper {
    padding: 0;
  }
}

.charity-card-custom .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 10px 0;
}
.charity-card-custom .card-title {
  margin-bottom: 10px;
}
.charity-card-custom .d-flex {
  margin-top: auto;
}

#charity-tab1 .swiper-slide {
  justify-content: start !important;
}

#charity-tab2 .swiper-slide {
  justify-content: start !important;
}
#charity-tab-qura .swiper-slide {
  justify-content: start !important;
}
#charity-tab3 .swiper-slide {
  justify-content: start !important;
}
