.flex_layout.specialty_grid {
  max-width: 100%;
  margin-bottom: clamp(80px, 10vw, 200px);
}

.flex_layout.specialty_grid .pk-top_row {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 50px;
}

.flex_layout.specialty_grid .pk-top_row h2 {
  font-size: clamp(
    40px,
    40px + (60 - 40) * ((100vw - 350px) / (1320 - 350)),
    60px
  );
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}

.flex_layout.specialty_grid .pk-top_row p {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
  max-width: 410px;
  margin: 0 auto;
}

.flex_layout.specialty_grid .pk-grid {
  max-width: 690px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.flex_layout.specialty_grid .pk-item {
  width: 100%;
  color: var(--white);
  aspect-ratio: 229/203;
  border-radius: 10px;
  border: 0.55px solid rgba(225, 234, 232, 0.75);
  overflow: hidden;
}
.flex_layout.specialty_grid .pk-item .pk-item_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
}

.flex_layout.specialty_grid .pk-item h2 {
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
}

/* Dialog */
.flex_layout.specialty_grid dialog {
  width: 100%;
}

.flex_layout.specialty_grid .pk-dialog_wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.flex_layout.specialty_grid dialog .pk-col_left {
  max-width: 422px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px;
  border-radius: 15px;
  background: rgba(188, 225, 255, 1);
  overflow: hidden;
}

.flex_layout.specialty_grid dialog .pk-col_left .pk-content_wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 300px;
  text-align: center;
}

.flex_layout.specialty_grid dialog .pk-col_left .pk-content_wrap img {
  max-width: 120px;
  width: 100%;
  filter: invert(1);
  margin-bottom: 24px;
}

.flex_layout.specialty_grid dialog .pk-col_left h2 {
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 24px;
}

.flex_layout.specialty_grid dialog .pk-dialog_wrap .pk-col_right {
  max-width: 700px;
  width: 100%;
  padding: 30px 58px 58px 58px;
  border-radius: 15px;
  background: white;
  overflow: hidden;
}

.flex_layout.specialty_grid dialog .pk-col_right .pk-btn_wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.flex_layout.specialty_grid dialog .pk-btn_wrap button.close {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  float: unset;
  border: 1px solid rgba(40, 40, 40, 1);
  border-radius: 999px;
}

.flex_layout.specialty_grid dialog .pk-btn_wrap button.close:focus {
  color: rgba(40, 40, 40, 1);
  background: unset;
}

.flex_layout.specialty_grid dialog .pk-items_wrap {
  height: 100%;
}

.flex_layout.specialty_grid dialog .pk-items_wrap .pk-providers_grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 290px;
  overflow-y: scroll;
}

.flex_layout.specialty_grid dialog .pk-items_wrap .pk-section_title {
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 24px;
}

.flex_layout.specialty_grid dialog .pk-provider {
  padding: 30px;
  border-radius: 10px;
  background: rgba(217, 217, 217, 0.51);
}

.flex_layout.specialty_grid dialog .pk-provider .pk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex_layout.specialty_grid dialog .pk-provider .pk-top img {
  max-width: 130px;
}

.flex_layout.specialty_grid dialog .pk-provider .pk-top a {
  font-size: 16px;
  color: white;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(40, 40, 40, 1);
}

.flex_layout.specialty_grid dialog .pk-provider .pk-bottom {
  margin-top: 25px;
}

.flex_layout.specialty_grid dialog .pk-provider .pk-bottom p {
  font-size: 16px;
  color: rgba(40, 40, 40, 1);
  line-height: 1.5;
}

/*  scrollbar styling*/
.flex_layout.specialty_grid .pk-providers_grid::-webkit-scrollbar {
  width: 1.5px;
}

.flex_layout.specialty_grid .pk-providers_grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
}

.flex_layout.specialty_grid .pk-providers_grid::-webkit-scrollbar-thumb {
  background-color: black;
  background: #a58fff;
}

/* CTA BUTTON */
.flex_layout.specialty_grid .pk-cta_wrap {
  margin-top: 50px;
}

.flex_layout.specialty_grid .pk-cta_wrap .primary-btn {
  color: white;
  margin: 0 auto;
}

.flex_layout.specialty_grid .pk-cta_wrap .primary-btn:hover {
  color: var(--black);
}

@media screen and (min-width: 608px) {
  .flex_layout.specialty_grid .pk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .flex_layout.specialty_grid .pk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 990px) {
  .flex_layout.specialty_grid dialog .pk-dialog_wrap .pk-col_right {
    padding: 30px 58px 58px 58px;
  }
}
