#community .banner {
  background: #dcdff7;
  padding: 3rem 0;
}

#community .banner .text {
  text-align: center;
}

#community .banner .text h1 {
  color: #501556;
  font-family: ttcbold;
  font-size: 3rem;
}

#community .banner .text p {
  color: #501556;
  font-family: ttcmedium;
  font-size: 1rem;
  width: 50%;
  margin: 0 auto;
}

#community .banner .nav-pills {
  justify-content: center;
}

#community .banner .nav-pills button {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 2rem;
  border-radius: 3rem;
  border: 1px solid transparent;
  color: #501556;
  font-family: ttcbold;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

#community .banner .nav-pills button.active {
  background: #501556;
  color: #fff;
  border: none;
}

#community .banner .items {
  margin-top: 3rem;
}

#community .banner .items .item {
  position: relative;
  margin-bottom: 1rem;
}

#community .banner .items .item.box > div {
  position: relative;
  border-radius: 1rem;
  cursor: pointer;
}

#community .banner .items .item.portrait > div {
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 30px;
  cursor: pointer;
}

#community .banner .items .item .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

#community .banner .items .item.box > div:last-child {
  margin-top: 1rem;
}

#community .banner .items .item .box-text {
  background: #a357bd;
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: left;
  width: 100%;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 0.6rem 1rem;
}

#community .banner .items .item .box-text span {
  color: #fff;
  font-size: 0.8rem;
  font-family: ttcregular;
}

#community .banner .items .item .box-text h2 {
  color: #fff;
  font-size: 1.2rem;
  font-family: ttcbold;
}

#community .banner .items .item .box-text p {
  color: #fff;
  font-size: 1rem;
  font-family: ttcregular;
}

#community .banner .items .item > div .box-text {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

#community .banner .items .item > div {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

#community .banner .items .item > div::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 10px;
  width: 100%;
  background-color: #a357bd;
  transition: height 0.3s ease;
  z-index: 1;
}

#community .banner .items .item div:hover .box-text {
  height: auto;
  padding: 0.6rem 1rem;
}

#community .program {
  background: #501556;
  padding: 3rem 0;
}

#community .program .text {
  text-align: center;
}

#community .program .text h1 {
  color: #fff;
  font-family: ttcbold;
  font-size: 3rem;
}

#community .program .items {
  align-items: center;
}

#community .program .items .item.left img {
  width: 100%;
}

#community .program .items .item.left img.imgcollege {
  margin-top: 2rem;
}

#community .program .items .item.mid h2 {
  color: #fff;
  font-size: 1.25rem;
  font-family: ttcregular;
}

#community .program .items .item.mid a {
  color: #501556;
  border: none;
  border-radius: 3rem;
  background: #ffce00;
  background: linear-gradient(
    90deg,
    rgba(255, 206, 0, 1) 22%,
    rgba(255, 169, 0, 1) 100%
  );
  font-family: ttcbold;
  font-size: 1rem;
  margin-top: 1rem;
}

#community .program .items .item.right img {
  width: 100%;
}

#community .stories {
  background: #fff;
  padding: 3rem 0;
}

#community .stories .text h1 {
  color: #501556;
  font-family: ttcbold;
  font-size: 2rem;
}

#community .stories .ctn {
  margin-top: 3rem;
}

#community .stories .ctn .left .nav-link {
  background: #fff;
  color: #501556;
  font-family: ttcmedium;
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: 3rem;
  margin-bottom: 0.6rem;
}

#community .stories .ctn .left .nav-link.active {
  background: #501556;
  border: none;
  color: #fff;
}

#community .stories .ctn .right {
  padding-left: 3rem;
}

#community .stories .ctn .right .items .item {
  margin-bottom: 2.5rem;
  cursor: pointer;
}

#community .stories .ctn .right .items .item a {
  text-decoration: none;
}

#community .stories .ctn .right .items .item img {
  width: 100%;
}

#community .stories .ctn .right .items .item .text {
  margin-top: 1rem;
}

#community .stories .ctn .right .items .item .text h2 {
  color: #501556;
  font-family: ttcbold;
  font-size: 1.5rem;
}

#community .stories .ctn .right .items .item .text p {
  color: #606060;
  font-family: ttcregular;
  font-size: 1rem;
  margin-top: 0.5rem;
  height: 75px;
}

#community .stories .ctn .right .items .item .text span {
  display: block;
  color: #606060;
  font-size: 1rem;
  font-family: ttcbold;
  margin-top: 0.5rem;
}

#community .stories .ctn .right .items .item .text small {
  color: #501556;
  font-family: ttcregular;
  font-size: 0.8rem;
  display: block;
}

.modalStories.modal .modal-content {
  background: #a357bd;
  border: none;
  border-radius: 2rem;
}
.modalStories .btnClose{
  position: absolute;
  top:0;
  right:0;
  transform: translate(100%,-100%);
  color:#fff;
  font-size: 2rem;
}

.modal .modal-lg{
  width: 650px;
}
.modal .modal-body {
  padding: 3rem 5rem;
}

.modal .modal-body .text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.modal .modal-body .text h2 {
  color: #fff;
  font-size: 1.5rem;
  font-family: ttcbold;
  width: 100%;
  text-align: center;
}

.modal .modal-body .text p {
  color: #fff;
  font-size: 1rem;
  font-family: ttcregular;
  line-height: 1rem;
  width: 100%;
}

.modal .modal-body .swiper {
  position: relative;
}

.modal .modal-body .swiper .swiper-slide img {
  width: 100%;
  height:100%;
  object-fit: cover;
  border-radius: 2rem;
}

.modal .modal-body .arrow-swiper .button-prev {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.modal .modal-body .arrow-swiper .button-next {
  position: absolute;
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.modal .modal-body .arrow-swiper .button-prev,
.modal .modal-body .arrow-swiper .button-next {
  border: 1px solid #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
}

.modal .modal-body .arrow-swiper .button-prev svg,
.modal .modal-body .arrow-swiper .button-next svg {
  width: 25px;
  height: 25px;
  color: #fff;
}

@media (orientation: portrait) {
  #community .banner .text h1 {
    font-size: 2rem;
  }

  #community .banner .text p {
    width: 100%;
  }

  #community .banner .ctn-btn .btn {
    font-size: 1rem;
  }

  #community .banner .nav-pills button {
    margin-right: 0;
    margin-top: 1rem;
  }

  #community .program .text h1 {
    font-size: 2rem;
  }

  #community .program .items {
    margin-top: 2rem;
  }

  #community .program .items .item.left img {
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  #community .program .items .item.mid {
    margin-top: 2rem;
  }

  #community .program .items .item.right img {
    margin-top: 2rem;
  }

  #community .stories .ctn .left .nav-pills {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
  }

  #community .stories .ctn {
    margin-top: 2rem;
  }

  #community .stories .ctn .left .nav-link {
    width: 45%;
    margin: 0 0.5rem 0.5rem;
  }

  #community .stories .ctn .right {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: 2rem;
  }

  #community .stories .ctn .right .items .item .text p {
    height: 100%;
  }

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

  .modal .modal-body .arrow-swiper {
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .modal .modal-body .arrow-swiper .button-prev,
  .modal .modal-body .arrow-swiper .button-next {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  .modal .modal-body .arrow-swiper .button-next {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-right: 1rem;
  }

  .modal .modal-body .arrow-swiper .button-prev {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
  }

  .modal .modal-body .arrow-swiper .button-prev svg,
  .modal .modal-body .arrow-swiper .button-next svg {
    width: 15px;
    height: 15px;
  }

  .modal .modal-body .text {
    padding: 0 1rem 1rem;
    flex-direction: column;
  }

  .modal .modal-body .text h2 {
    font-size: 1.2rem;
  }

  .modal .modal-body .text p {
    margin-top: 0.5rem;
  }

  .modal .modal-body .swiper .arrow-swiper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
  }

  .modal .modal-body .swiper .arrow-swiper .button-next {
    position: relative;
    left: 0;
    top: 0;
    margin-right: 0.5rem;
  }

  .modal .modal-body .swiper .arrow-swiper .button-prev {
    position: relative;
    right: 0;
    top: 0;
  }
  .modalStories .btnClose{
    transform: translate(0%,-100%);
  }
}
