/* Doctor hero */
.doctor_hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.back_btn {
  display: flex;
  align-items: center;
  gap: 24px;
}
.back_btn_text {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 30px;
  text-align: left;
}
.doctor_info {
  display: flex;
  gap: 40px;
}
.doctor_info .left_part {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 260px;
  flex-shrink: 0;
}
.doctor_photo {
  border-radius: 40px;
  width: 100%;
}
.doctor_video {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 20px;
  text-align: center;
  text-decoration-line: underline;
  width: 160px;
}
.right_part {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.doctor_name {
  color: rgba(79, 33, 33, 1);

  font-size: 24px;
  font-weight: var(--weight-medium);
  line-height: 29px;
  text-align: left;
}
.dorctor_position_xp {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dorctor_position,
.doctor_xp {
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: 22px;
  text-align: left;
}
.doctor_specialization {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doctor_specialization_title {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: 20px;
  text-align: left;
}
.doctor_specialization_content {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 20px;
  text-align: left;
}
.doctor_hero_btn {
  border-radius: 8px;
  background: var(--color-primary);
  padding: 12px 50px;
  color: rgba(255, 255, 255, 1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  border: 0;
  width: fit-content;
  cursor: pointer;
  transition: 0.3s;
}
.doctor_hero_btn:hover {
  transition: 0.3s;
  opacity: 0.75;
}

/* Doctor video */
.video_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.video_modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video_modal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.video_modal_content {
  position: relative;
  max-width: 900px;
  width: 90%;
  margin: 5vh auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
}
.video_modal_content video {
  width: 100%;
  height: auto;
  display: block;
}
.video_modal_close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

/* Doctor education */
.doctor_education_section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.doctor_education_group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doctor_education_group_title {
  color: rgba(79, 33, 33, 1);

  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 30px;
  text-align: left;
}
.doctor_education_item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor_education_item_title {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 22px;
  text-align: left;
}
.doctor_education_item_description {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 20px;
  text-align: left;
}

/* Doctor diplomas */
.doctor_diplomas_section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 24px;
}
.doctor_diplomas_head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.doctor_diplomas_section_title {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 30px;
  text-align: left;
}
.doctor_diplomas_section_description {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 20px;
  text-align: left;
}
.doctor_diplomas_image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.doctor_diplomas_image img {
  min-width: 100%;
  min-height: 100%;
}
.doctor_diplomas_outer {
  position: relative;
}
.doctor_diplomas_mask {
  overflow: hidden;
  margin: 0 60px;
}
.doctor_diplomas_outer .swiper-button-prev svg,
.doctor_diplomas_outer .swiper-button-next svg {
  display: none;
}
.doctor_diplomas_outer .swiper-button-prev,
.doctor_diplomas_outer .swiper-button-next {
  width: 42px;
  height: 42px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
  border: 0;
}
.doctor_diplomas_outer .swiper-button-prev {
  background-image: url("../img/swiper_arr_left.svg");
}
.doctor_diplomas_outer .swiper-button-next {
  background-image: url("../img/swiper_arr_right.svg");
}
.doctor_diplomas_outer .swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}
.doctor_diplomas_slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.doctor_diplom_info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doctor_diplomas_title {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 22px;
  text-align: left;
}
.doctor_diplomas_description {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 20px;
  text-align: left;
}

/* Doctor skills */
.doctor_skills_section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.doctor_skills_section_title {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 30px;
  text-align: left;
}
.doctor_skills_section ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.doctor_skills_section li {
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 20px;
  text-align: left;
}
.doctor_skills_section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 13px;
  height: 10px;
  background-image: url("../img/check.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
@media (max-width: 1024px) {
  .doctor_skills_section ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .doctor_skills_section ul {
    grid-template-columns: 1fr;
  }
}

/* Doctor symptoms */
.doctor_symptoms_section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 24px;
}
.doctor_symptoms_wrapper {
  display: flex;
  gap: 20px;
}
.doctor_symptoms_title {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 30px;
  text-align: left;
}
.doctor_symptoms_block_info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doctor_symptoms_block:nth-child(1) {
  background: rgba(255, 245, 245, 1);
}
.doctor_symptoms_block:nth-child(2) {
  background: rgba(255, 247, 236, 1);
}
.doctor_symptoms_block:nth-child(3) {
  background: rgba(241, 247, 241, 1);
}
.doctor_symptoms_block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 15px;
  flex: 1 1 0;
  height: fit-content;
}
.doctor_symptoms_block_header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor_symptoms_block_title {
  color: rgba(79, 33, 33, 1);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  text-align: left;
}
.doctor_symptoms_block_subtitle {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 300;
  line-height: 15px;
  text-align: left;
}
.symptoms_list {
  padding-left: 20px;
}
.symptoms_list li {
  color: var(--color-text);

  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 17px;
  text-align: left;
  margin-bottom: 5px;
}
.doctor_symptoms_btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  text-align: left;
  text-transform: uppercase;
  transition: 0.3s;
  border: 0;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}
.doctor_symptoms_btn:hover {
  transition: 0.3s;
  opacity: 0.8;
}

@media (max-width: 850px) {
  .doctor_symptoms_wrapper {
    flex-direction: column;
  }
  .doctor_symptoms_block_info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .doctor_symptoms_block_title {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .doctor_symptoms_block_title::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    background-image: url("../img/list_arr.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(180deg);
  }
  .doctor_symptoms_block.active .doctor_symptoms_block_title::before {
    transform: rotate(0);
  }
  .doctor_education_item_title {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .doctor_education_item_title::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    background-image: url("../img/list_arr.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(180deg);
  }
  .doctor_education_item.active .doctor_education_item_title::before {
    transform: rotate(0);
  }
  .doctor_education_item_description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .doctor_education_item.active .doctor_education_item_description {
    display: block;
  }
}

@media (max-width: 600px) {
  .doctor_hero,
  .doctor_education_section,
  .doctor_diplomas_section,
  .doctor_skills_section {
    padding: 20px 32px;
  }
  .doctor_symptoms_section {
    padding: 0;
    background: #f5f5f5;
  }
  .doctor_info {
    flex-direction: column;
    gap: 10px;
  }
  .doctor_info .left_part,
  .doctor_video {
    width: 100%;
  }
  .doctor_name {
    text-align: center;
  }
  .right_part {
    gap: 10px;
  }
  .dorctor_position {
    text-align: center;
  }
  .doctor_specialization {
    margin-top: 10px;
  }
  .doctor_hero_btn {
    width: 100%;
    margin-top: 10px;
  }
  .doctor_diplomas_section_description {
    display: none;
  }
  .doctor_education_group_title,
  .doctor_diplomas_section_title,
  .doctor_skills_section_title .back_btn_text {
    font-size: var(--text-md);
  }
  .doctor_diplomas_section_title span {
    display: none;
  }
  .doctor_skills_section li {
    font-size: var(--text-sm);
  }
  .doctor_education_item_title {
    font-size: var(--text-base);
  }
}
@media (max-width: 480px) {
  .doctor_diplomas_mask {
    margin: 0;
  }
  .doctor_diplomas_image {
    height: 220px;
  }
}
@media (max-width: 360px) {
  .doctor_diplomas_image {
    height: 180px;
  }
}
