@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1294px;
  }
}

@media (min-width: 992px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 960px;
  }
}

@media (min-width: 768px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 1300px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .block-categories__item {
    width: 100%;
    /* margin: 8px; */
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .block-categories__item {
    width: 100%;
    /* margin: 8px; */
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .block-categories__item {
    width: 100%;
    /* margin: 8px; */
  }
}

@media (max-width: 767.98px) {
  .block-categories__item {
    width: 100%;
    /* margin: 8px; */
  }
}

@media (min-width: 1400px) {
  .block-categories__item {
    width: 100%;
    /* margin: 12px; */
  }
}

@media screen and (max-width: 768px) {
  .pl37 {
    padding-left: 37px;
  }
}

.category-card--layout--classic .category-card__body {
  background-color: #ffff;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .category-card--layout--classic .category-card__image {
    width: 150px;
  }
}

@media (max-width: 991px) and (min-width: 475px) {
  .category-card--layout--classic .category-card__content {
    -webkit-box-orient: unset;
    -webkit-box-direction: unset;
    -ms-flex-direction: unset;
    flex-direction: row;
  }
}

@media (max-width: 359px) {
  .category-card--layout--classic .category-card__content {
    -webkit-box-orient: unset;
    -webkit-box-direction: unset;
    -ms-flex-direction: unset;
    flex-direction: row;
  }
}

/*See All Button */
.see-all-button {
  /* background-color: #ffff; */
  /* border: 2px solid red; */
  /* box-shadow: 0px 0px 4px rgb(0 0 0 / 15%); */
  border: none;
  border-radius: 16px;
  padding: 10px 20px;
  cursor: pointer;
}

.see-all-button h4 {
  margin: 0;
}

.see-all-button a {
  text-decoration: none;
  color: red;
}

.see-all-button:hover {
  font-weight: 1000;
  background-color: #f0f0f0;
}

/* End See All Button */

/*Topnav*/
.navigation {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.topnav {
  overflow: hidden;
  /* background-color: #333; */
}

.topnav a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bolder;
}

.topnav a:hover {
  /* background-color: #ddd; */
  color: red;
}

.topnav a.activepage {
  /* background-color: #04AA6D; */
  color: red;
}

.topnav .icon {
  display: none;
}

/*Carousel*/
.carousel-container {
  width: 100%;
  /* height: 100%; */
  position: relative;
  overflow: hidden;
  margin: auto;
}

.carousel-slide {
  display: none;
  text-align: center;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 495px;
  border-radius: 8px;
  object-fit: cover;
}

.prev-carousel,
.next-carousel {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(192, 192, 192, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 8px;
  margin-right: 8px;
  opacity: 0.6;
}

.next-carousel {
  right: 10px;
}

.prev-carousel {
  left: 10px;
}

.prev-carousel::before,
.next-carousel::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

.prev-carousel::before {
  border-width: 10px 15px 10px 0;
  border-color: transparent white transparent transparent;
}

.next-carousel::before {
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent white;
}

.prev-carousel:hover,
.next-carousel:hover {
  background-color: rgba(128, 128, 128, 1);
}

.dot-container {
  position: absolute;
  bottom: 35px;
  width: 100%;
  text-align: center;
}

.dot-carousel {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.6s ease, background-color 0.6s ease;
}

.dot-carousel:hover {
  background-color: #717171;
}

.dot-carousel.active {
  transform: scale(0.3);
}

/*End Carousel*/

/*Submit*/
.card-homepage {
  /* border: 1px solid #ccc; */
  border-radius: 16px;
  /* background-color: white; */
  box-shadow: 0px 0px 4px rgb(0 0 0 / 15%);
  max-height: auto;
  max-width: 100%;
}

.card-homepage-quotation {
  /* border: 1px solid #ccc; */
  border-radius: 16px;
  background-image: linear-gradient(to right, #000000, rgba(0, 0, 0, 0)),
    url("/template/image/quotation.webp");
  background-size: cover;
  background-position: center;
  /* background-color: white; */
  box-shadow: 0px 0px 4px rgb(0 0 0 / 15%);
  width: 100%;
  height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-homepage-bm {
  /* border: 1px solid #ccc; */
  border-radius: 16px;
  background-image: linear-gradient(to right, #00008b, rgba(0, 0, 0, 0)),
    url("/template/image/businessmat.webp");
  background-size: cover;
  background-position: center;
  /* background-color: white; */
  box-shadow: 0px 0px 4px rgb(0 0 0 / 15%);
  width: 100%;
  height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-homepage-quotation.card-quotation-bm,
.card-homepage-bm.card-quotation-bm {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-homepage-quotation.card-quotation-bm:active,
.card-homepage-bm.card-quotation-bm:active {
  transform: scale(0.98);
  box-shadow: 0px 0px 4px rgb(0 0 0 / 35%);
}

.card-homepage-quotation.card-quotation-bm:hover,
.card-homepage-bm.card-quotation-bm:hover {
  background-color: #f0f0f0;
  box-shadow: 0px 0px 4px rgb(0 0 0 / 35%);
}

.card-body-homepage {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-content-quotation,
.card-content-bm {
  padding-top: 55px;
  padding-bottom: 55px;
}

.card-image-quotation {
  border-radius: 5px;
  max-height: 130px;
  width: auto;
}

.card-image-bm {
  border-radius: 5px;
  max-height: 130px;
  width: auto;
}

/* .card-image__send-req {
  flex-shrink: 0;
  width: 100%;
  height: 350px;
  max-height: 100%;
  content: url("<?= Url::base(true) ?>/template/image/send-req-bm.png");
} */

.card-description {
  margin: 15px;
  text-decoration: underline;
  font-weight: 700;
  /* pointer-events: none;
    cursor: default; */
}

/* .business-matching-img {
  content: url("<?= Url::base(true) ?>/template/image/businessmat.png");
} */

/* End Submit */

/*Join Member*/
.grid-container {
  display: grid;
  grid-template-rows: 150px 150px;
  grid-template-columns: 150px 150px;
  gap: 10px;
  padding: 10px;
  justify-items: center;
  align-items: center;
}

.grid-container > div {
  text-align: center;
  font-size: 18px;
  aspect-ratio: 1/1;
  width: 100% !important;
}

.sub-finder {
  pointer-events: none;
  cursor: default;
}

.join-now-button {
  height: 25%;
}

.join-now-button:hover {
  font-weight: 800;
}

.join-now-button-mobile {
  display: none !important;
}

.new-bg-gradient-homepage {
  /* background: linear-gradient(to right, #ed1d2c, #ed1d2c, #8b0000); */
  background-image: url("/template/image/bg2-1.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.bg-gradient-homepage {
  /* background: linear-gradient(to right, #ed1d2c, #ed1d2c, #8b0000); */
  background-image: url("/template/image/bg2.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.card-title-jm {
  color: #000;
  margin: 0;
  font-size: 16px;
}

.card-img-jm {
  height: 200px;
  width: 100%;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.card-body-jm {
  background-color: #fff;
  padding: 15px;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  /* min-height: 250px; */
}

.card-img-jm-benefit {
  height: 375px;
  width: 100%;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  border: 1px solid #0733a2;
  border-bottom: none;
}

.card-body-jm-benefit {
  background-color: #fbfbfb;
  padding: 15px;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  min-height: 435px;
  border: 1px solid #0733a2;
}

.card-body-jm-benefit-blue {
  background-color: #0733a2;
  padding: 15px;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  min-height: 435px;
}

.card-title-jm-benefit-blue {
  color: #0733a2;
  margin: 0;
  font-size: 20px;
}

.card-title-jm-benefit {
  color: #fff;
  margin: 0;
  font-size: 20px;
}

.card-content-benefit {
  border-radius: 11px;
  padding: 10px;
  margin: 15px;
  /* margin-bottom: 10px; */
  background-color: #fff;
  box-shadow: 0px 0px 4px rgb(0 0 0 / 15%);
  display: flex;
}

.card-content-benefit-icon {
  border: 1px solid #0733a2;
  background-color: #0733a2;
  border-radius: 4px;
  padding: 5px;
  margin: 5px;
  /* margin-right: 10px; */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.card-content-benefit-icon i {
  color: #fff;
  font-size: 18px;
}

/*End Join Member*/

/* Send Req */
.block-finder__subtitle.block-finder__bm {
  cursor: pointer;
  text-decoration: underline;
}

.block-finder__subtitle.block-finder__bm:hover {
  font-weight: 800;
}

/* End Send Req */

/*Alur Buyer Supplier */
.bg-buyer {
  background-color: rgba(173, 216, 230, 0.5) !important;
  color: #0733a2 !important;
}

.bg-supplier {
  background-color: rgba(255, 192, 203, 0.5) !important;
  color: #e52727 !important;
}

.ml-4-web {
  margin-left: 15px !important;
}

.btn-group .btn-outline-inb,
.btn-group .btn-outline-sup {
  border: 1px solid #ccc; /* Adds a border to each button */
  border-radius: 5px; /* Optional: rounds the corners of the buttons */
}

/*End Alur Buyer Supplier */

/* Latest RFQ */
.rfq-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  /* Reduced margin-bottom */
  display: flex;
  overflow: hidden;
}

.rfq-image-container {
  flex-shrink: 0;
  padding: 0;
}

.rfq-image {
  /* width: 100%;
    height: 100%;
    object-fit: cover; */
  width: 100%;
  height: 100%;
  display: block;
}

.rfq-details {
  padding: 10px;
  padding-left: 20px;
  flex-grow: 1;
}

.rfq-details h5 {
  margin: 5px 0;
  font-size: 18px;
}

.rfq-details p {
  margin: 5px 0;
  color: #555;
}

.bg-rfq {
  font-weight: 700;
  color: #e52727 !important;
}

.btn-category__rfq {
  background-color: rgba(255, 192, 203, 0.5) !important;
  border-radius: 11px;
  display: inline-block;
  padding: 5px;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 2;
}

.btn-category__rfq-list {
  background-color: rgba(255, 192, 203, 0.5) !important;
  border-radius: 11px;
  display: inline-block;
  padding: 5px;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 2;
}

@media screen and (max-width: 768px) {
  .btn-category__rfq-list {
    margin-bottom: 8px;
    margin-top: 15px;
    margin-left: 15px;
    margin-right: 15px;
    line-height: 1.5;
  }
}

/* End Lastest RFQ */

/* Latest Event News */

#data-event,
#data-news,
#related-articles {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
}

#data-event .event-item,
#data-news .news-item,
#related-articles .related-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 300px;
  margin-right: 16px;
}

.card-event-news {
  /* border: 1px solid #ccc; */
  border-radius: 16px;
  background-color: white;
  box-shadow: 0px 4px 8px rgba(30, 44, 106, 0.1);
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-image-event-news {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.card-event-news .card-image-event img {
  width: 100%;
  height: 275px;
  -o-object-fit: cover;
  object-fit: cover;
}

.card-event-news .card-image-news img {
  width: 100%;
  height: 215px;
  -o-object-fit: cover;
  object-fit: cover;
}

/* .card-event-news .card-image-event-news img {
  width: 100%;
  height: auto;
  display: block;
} */

.card-event-news .card-content-event-news {
  padding: 12px;
}

.card-event-news .card-content-event-news p,
.card-event-news .card-content-event-news h5 {
  margin-bottom: 10px;
}

.card-event-news .card-content-event-news h5 {
  margin-top: -5px;
}

.title-up-events {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-up-news {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blue-text {
  color: #0733a2;
}

.red-text {
  color: #e52727;
}

/* End Latest Event */

/* @media only screen and (max-width: 600px) { */
@media screen and (max-width: 768px) {
  /* Carousel */
  .carousel-container-mobile {
    margin-bottom: 15px;
  }

  .dot-container {
    bottom: 10px;
  }

  .dot-carousel {
    height: 8px;
    width: 8px;
  }

  .btn-mobile-carousel {
    display: none !important;
  }

  /* End Carousel */

  /* Submit */

  .card-homepage {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  /* .fz28 {
    font-size: 20px;
  } */

  .card-description {
    font-size: 14px;
  }

  .card-image-quotation {
    border-radius: 5px;
    max-height: 100px;
    width: auto;
  }

  .card-image-bm {
    border-radius: 5px;
    max-height: 100px;
    width: auto;
  }

  /* .business-matching-img {
    content: url("<?= Url::base(true) ?>/template/image/businessmat-mobile.png");
  } */

  /* End Submit */

  .card-title-jm {
    font-size: 14px;
  }

  .card-img-jm-benefit {
    height: 250px;
  }

  .card-content-benefit {
    margin: 0;
    margin-bottom: 10px;
  }

  /* Alur */
  .mt-4-mobile {
    margin-top: 1.5rem !important;
  }
  /* End Alur */

  /* Join Member */
  .join-now-button {
    display: none !important;
  }

  .join-now-button-mobile {
    display: initial !important;
    width: 100%;
  }

  /* End Join Member */

  /* Send Req BM */
  /* .card-image__send-req {
    content: url("<?= Url::base(true) ?>/template/image/send-req-bm-mobile.png");
  } */

  /*End Send Req BM */

  /*Latest RFQ */
  .price-tag {
    margin-top: 0.5rem !important;
  }

  /*End Latest RFQ */

  /* Latest Event News */

  #data-event .event-item,
  #latest-event-list .event-item,
  #passed-event-list .event-item,
  #data-news .news-item,
  #related-articles .related-item {
    width: auto;
    max-width: none;
  }

  .card-event-news .card-image-event img {
    height: 300px;
  }

  /* End Latest Event */
}
