/* -------- hero header (new design) */
.hero-header {
  background: linear-gradient(135deg, rgba(12, 137, 141, 0.8) 0%, rgba(12, 137, 141, 0.8) 100%);
  padding: 140px 0 120px;
  min-height: 900px;
  display: flex;
  align-items: center;
}

.hero-header .container {
  max-width: 1280px;
  width: 100%;
  padding: 0 50px;
  margin: 0 auto;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 60px;
  align-items: center;
}

/* Left Content Area */
.hero-content {
  padding: 0;
}

.hero-subtitle {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #393838;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.3;
  color: #393838;
  margin-bottom: 32px;
  font-weight: var(--font-bold);
  letter-spacing: -0.5px;
}

.hero-description {
  width: 600px;
  font-size: var(--text-sm);
  line-height: 1.8;
  color: #393838;
  margin-bottom: 42px;
  font-weight: var(--font-normal);
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  border-radius: 30px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: #393838;
  color: #ffffff;
  border: 2px solid #393838;
}

.btn-primary:hover {
  background: #2a2929;
  border-color: #2a2929;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(57, 56, 56, 0.25);
}

.btn-secondary {
  background: transparent;
  color: #393838;
  border: 2px solid #393838;
}

.btn-secondary:hover {
  background: #393838;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(57, 56, 56, 0.2);
}

/* Feature Tags */
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags .tag {
  padding: 10px 20px;
  background: #ffffff;
  border-radius: 22px;
  font-size: 13px;
  color: #5a4632;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Right Image Area */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  justify-self: center;
}

/* 데스크탑에서는 태그 줄바꿈 방지로 한 줄 유지 */
@media screen and (min-width: 1025px) {
  .hero-tags {
    flex-wrap: nowrap;
  }
}

.before-after-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.comparison-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block;
}

.divider-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 75%;
  background: linear-gradient(
    to bottom,
    transparent,
    #ffffff 15%,
    #ffffff 85%,
    transparent
  );
  z-index: 10;
}

.comparison-label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 11;
  pointer-events: none;
}

.comparison-label span {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #5a4632;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

.label-bottom {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7a6a5a;
  white-space: nowrap;
  text-align: center;
}

/* -------- main banner */

header .main-banner {
}
header .main-banner .swiper {
}
header .main-banner .mainBanner {
}

.swiper-pagination-main.swiper-pagination-bullets {
  bottom: 70px;
  left: 50%;
  width: 100%;
  position: relative;
  z-index: 100;
  transform: translateX(-2%);
}
.swiper-pagination-main .swiper-pagination-bullet {
  width: 20px;
  height: 8px;
  display: inline-block;
  border-radius: 5px;
  background: #d7d7d7;
  opacity: 0.5;
}

.swiper-pagination-main .swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffffff;
  width: 40px;
  border-radius: 5px;
}

header .main-banner .slider-txt {
  position: absolute;
  top: 23%;
  left: 8%;
  z-index: 100;
}

header .main-banner .slider-txt.second-slide {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  width: 100%;
  text-align: center;
}

.numbers {
  padding-top: 80px;
}

.numbers ul {
  display: flex;
  justify-content: space-evenly;
}

.numbers .slide-txt {
  font-size: 40px;
  opacity: 0.9;
}

.numbers .num {
  font-size: 35px;
}

span.count {
  font-size: 65px;
  font-weight: 600;
  opacity: 1;
}

header .main-banner .slider-txt h2 {
  font-family: "BMDOHYEON";
  font-size: 85px;
}
header .main-banner .slider-txt h2 span {
  color: #00d9b6;
}
header .main-banner .slider-txt h3 {
  font-size: 48px;
  font-weight: 700;
  color: #00bc9e;
  padding: 20px 0 13px;
}
header .main-banner .slider-txt p {
  font-size: 25px;
  line-height: 35px;
  font-weight: 300;
}

header .main-banner .mainBanner .swiper-wrapper {
}
header .main-banner .mainBanner .swiper-wrapper .swiper-slide {
}
header .main-banner .mainBanner .swiper-wrapper .swiper-slide .text {
  display: none;
}


/* --------------------- section main */

section .container {
  max-width: 1580px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 20px;
  overflow: hidden;
}

/* Section heading styles */
section .container .wrapper .section-subtitle {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: #00d9b6;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

section .container .wrapper .section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #333;
}

section .container .wrapper .section-description {
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: #666;
  margin-bottom: 75px;
  line-height: 1.6;
}

section .container .wrapper h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-align: center;
}

section .container .wrapper h2 span {
  color: #000000;
}

/* custom: Why section typography */
section .container .wrapper h2 .why-title {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  line-height: 1.2;
  text-align: center;
  color: #000000;
}

/* Review section title */
section .container .wrapper h2 .review-title {
  display: block;
  text-align: center;
  font-family: 'ABeeZee', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 50px;
  line-height: 59px;
  color: #019982;
  width: 100%;
}

/* Review section subtitle */
section .container .wrapper h2 .review-sub {
  display: block;
  margin-top: 8px;
  font-size: 35px;
  font-weight: 300;
  line-height: 1.7;
}

section .container .wrapper h2 .review-sub strong {
  font-weight: 600;
}

/* Before After Section */
.before-after-section {
  text-align: center;
  margin: 60px 0;
}

.ba-images {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.ba-image {
  position: relative;
  max-width: 350px;
}

.ba-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ba-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.before-label {
  background: #666;
}

.after-label {
  background: #3ca89a;
}

.ba-note {
  color: #999;
  font-size: 13px;
  margin-top: 15px;
}

/* Review Cards */
.review-cards {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 900px;
  margin: 40px auto;
  padding: 100px 20px;
}

.review-card {
  background: #f5f5f5;
  border: 2px solid #d0d0d0;
  border-radius: 20px;
  padding: 35px 40px;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  transition: all 0.5s ease;
  transform: scale(1);
  transform-origin: center center;
  position: relative;
}

.review-card.active {
  background: #e0f7f4 !important;
  border-color: #3ca89a !important;
  transform: scale(1.2) !important;
  box-shadow: 0 8px 25px rgba(60, 168, 154, 0.3) !important;
  z-index: 10 !important;
}

.review-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  flex: 1;
}

.review-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.review-text {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}

.review-text strong {
  font-weight: 600;
  color: #000;
}

section .container .wrapper h2 .why-sub {
  display: block;
  margin-top: 15px;
  padding-bottom: 75px;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--font-light);
  line-height: 1.5;
  text-align: center;
  color: #000000;
  opacity: 0.8;
}

section .container .wrapper h2 .why-sub strong {
  font-weight: 600;
}

.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}

.swiper-container {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: unset;
}

/* --------------------- section cards */

section .container .wrapper .cards {
  display: flex;
  justify-content: center;
  gap: 40px;
}
section .container .wrapper .cards .card {
  border-radius: 20px;
  overflow: hidden;
  width: 320px;
}
section .container .wrapper .cards .card .card-img {
  width: 320px;
  height: 320px;
  background: #F7F7F7;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

section .container .wrapper .cards .card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section .container .wrapper .cards .card .first-card {
  background-image: url("../../assets/images/navigation/section6-01.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

section .container .wrapper .cards .card .second-card {
  background-image: url("../../assets/images/navigation/section6-02.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
section .container .wrapper .cards .card .third-card {
  background-image: url("../../assets/images/navigation/section6-03.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

section .container .wrapper .cards .card .fourth-card {
  background-image: url("../../assets/images/navigation/section6-04.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

section .container .wrapper .cards .card .card-txt {
  width: 320px;
  min-height: 192px;
  height: auto;
  color: #fff;
  padding: 20px 30px 20px;
  background: #019982;
  box-sizing: border-box;
}

section .container .wrapper .cards .card .card-txt h5 {
  opacity: 0.75;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  line-height: 1.2;
  margin-bottom: 5px;
}
section .container .wrapper .cards .card .card-txt h5 span {
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}
section .container .wrapper .cards .card .card-txt h3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 5px 0;
}
section .container .wrapper .cards .card .card-txt p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: 1.6;
  padding-top: 5px;
}

/* --------------------- section diamond */

section.diamond {
  background: linear-gradient(135deg, #5FCFB8 0%, #0C898D 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

section.diamond .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

section.diamond .diamond-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

section.diamond .diamond-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  max-width: 750px;
}

section.diamond .diamond-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 18px 25px;
  gap: 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 60px;
  box-sizing: border-box;
}

section.diamond .diamond-item .title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  min-width: 220px;
  background: #393838;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  color: #FFFFFF;
  white-space: nowrap;
}

section.diamond .diamond-item .txt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: #029A83;
}

section.diamond .diamond-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

section.diamond .diamond-right img {
  max-width: 660px;
  height: auto;
  display: block;
}

/* --------------------- section index_review */

#index_review {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 20px;
  gap: 68px;
  max-width: 1580px;
  margin: 0 auto;
  background: #FFFFFF;
}

.index-review-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.index-review-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1540px;
}

.index-review-title-wrap h2 {
  margin: 0;
  padding: 0 0 15px;
}

.index-review-title {
  font-family: var(--font-body);
  font-weight: var(--font-normal);
  font-size: var(--text-lg);
  line-height: 1.2;
  text-align: center;
  color: #019982;
}

.index-review-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 75px;
  width: 100%;
  opacity: 0.8;
}

.index-review-subtitle span {
  font-family: var(--font-body);
  font-weight: var(--font-light);
  font-size: var(--text-md);
  line-height: 1.5;
  text-align: center;
  color: #000000;
}

.index-review-subtitle strong {
  font-weight: 600;
}

.index-review-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 838px;
  margin-bottom: 68px;
}

.index-review-image-wrap img {
  max-width: 700px;
  width: 100%;
  border-radius: 20px;
}

.index-review-disclaimer {
  font-family: var(--font-body);
  font-weight: var(--font-normal);
  font-size: var(--text-sm);
  line-height: 1.2;
  text-align: center;
  color: #919191;
  padding: 5px 0;
}

.index-review-cards-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 107px;
  gap: 45px;
  width: 100%;
  max-width: 1540px;
  background: #FFFFFF;
}

.index-review-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 30px 60px;
  gap: 35px;
  width: 100%;
  max-width: 990px;
  background: #EAEAEA;
  border: 1px solid #EAEAEA;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  transition: all 0.4s ease;
}

.index-review-card.active {
  background: #E2FCF9;
  border: 1px solid #00D9B6;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

.index-review-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
}

.index-review-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.index-review-name {
  font-family: var(--font-body);
  font-weight: var(--font-light);
  font-size: var(--text-md);
  line-height: 1.2;
  color: #000000;
  padding-bottom: 12px;
}

.index-review-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: 1.5;
  color: #000000;
}

/* --------------------- section tab */

section.tab-section,
section.doctor-section {
  background-image: url("../assets/images/tab-bg.jpg");
  overflow: hidden;
}

section.doctor-section .container .wrapper h2 {
  padding-bottom: 15px;
}
section.doctor-section .container .wrapper h5 {
  font-size: 32px;
  font-weight: 300;
  padding-bottom: 75px;
  text-align: center;
  opacity: 0.8;
}
section.doctor-section .container .wrapper h5 span {
  font-weight: 600;
}
/* Стили для вкладок */
section .container .wrapper .tabs {
  display: flex;
  cursor: pointer;
}
section .container .wrapper .tabs .tab {
  padding: 10px 20px;
  background-color: #3a3a3a;
  color: #fff;
  font-size: 30px;
  width: calc(100% / 3);
  text-align: center;
  padding: 30px 0;
}

section .container .wrapper .tabs .tab:nth-child(1) {
  border-top-left-radius: 18px;
}
section .container .wrapper .tabs .tab:nth-child(3) {
  border-top-right-radius: 18px;
}
section .container .wrapper .tabs .tab:hover {
  background-color: #019982;
}
section .container .wrapper .tabs .tab.active {
  background-color: #00bc9e;
  font-weight: 600;
}

section .container .wrapper .tab-content {
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  display: none;
}
section .container .wrapper .tab-content.active {
  display: block;
}

section .container .wrapper .tab-content {
  background-color: #fff;
  height: 500px;
  background-color: #fff;
  height: 500px;
  padding: 90px 80px;
  justify-content: center;
  letter-spacing: -1px;
}

section .container .wrapper #tab1 {
  background-image: url("../assets/images/tab1.png");
  background-position: center right 50px;
  background-repeat: no-repeat;
  background-size: auto;
}
section .container .wrapper #tab2 {
  background-image: url("../assets/images/tab2.png");
  background-position: center right 50px;
  background-repeat: no-repeat;
  background-size: auto;
}
section .container .wrapper #tab3 {
  background-image: url("../assets/images/tab3.png");
  background-position: center right 50px;
  background-repeat: no-repeat;
  background-size: auto;
}

section .container .wrapper .tab-content .tab-txt h3 {
  font-size: 44px;
  font-weight: 700;
}
section .container .wrapper .tab-content .tab-txt h3 span {
  color: #00d8b5;
}
section .container .wrapper .tab-content .tab-txt p {
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  padding: 30px 0;
}
section .container .wrapper .tab-content .tab-txt .btn {
  margin-top: 30px;
}
section .container .wrapper .tab-content .tab-txt .btn a {
  font-size: 24px;
  padding: 8px 30px;
  background: #393838;
  color: #fff;
  border-radius: 40px;
}

/* --------------------- section review slider */

.reviews {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.reviews .thumb-slide {
  width: 46%;
  max-height: 535px;
  overflow: hidden;

  /* background: rgb(107, 88, 88) */
}

.reviews .thumb-slide .swiper-container {
  height: 535px;
  width: 80%;
  margin: 0 auto;
  padding-top: 20px;
  border-radius: 20px;
}

.reviews .thumb-slide .swiper-container .swiper-wrapper .swiper-slide {
  background: #fafafa;
  transform: scale(1.1);
  border-bottom: 1px solid #ddd;
}

.reviews .thumb-slide .swiper-container .swiper-wrapper .swiper-slide-active {
  border: 3px solid #00d9b6;
  background: #e2fcf9;
  border-radius: 20px;
  transform: scale(1.2);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 10px;
  z-index: 5;
}

.reviews .thumb-slide .swiper-container .swiper-wrapper .swiper-slide-next {
  /* margin-top: 1.5rem; */
  /* border-bottom: 1px solid black; */
  z-index: 4;
}

.reviews .main-slide {
  width: 59%;
}

.reviews .main-slide .swiper-container {
  min-height: 560px;
}

.reviews .main-slide .message.gray {
  text-align: center;
  color: #919191;
  font-size: 1.1em;
  padding: 5px 0;
}

.swiper-slide .review-img,
.swiper-slide .slide-content {
  display: flex;
}

.swiper-slide .slide-content {
  align-items: anchor-center;
  /* border: 1px solid black */

  gap: 2.375rem;
  padding: 1.3125rem 1.5rem;
  cursor: pointer;

  height: 100%;
}

.swiper-slide-active .slide-content {
  padding: 2rem 1.8rem;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide-next
  .slide-content {
  padding-top: 3rem;
}

/* ------ thumb slider slide css */
.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide
  .slide-content
  .icon {
  background: #efefef;
  border-radius: 50%;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide
  .slide-content
  .icon
  img {
  width: 80px;
  height: 80px;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide
  .slide-content
  .txt
  .review {
  display: none;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide
  .slide-content
  .txt
  .title {
  font-weight: 300;
  font-size: 20px;
}

/* ------ thumb slider active slide css */

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide-active
  .slide-content
  .icon {
  background: #00d9b6;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide-active
  .slide-content
  .icon
  img {
  width: 100px;
  height: 100px;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide-active
  .slide-content
  .txt
  .review {
  display: block;
  font-size: 23px;
  font-weight: 600;
}

.reviews
  .thumb-slide
  .swiper-container
  .swiper-wrapper
  .swiper-slide-active
  .slide-content
  .txt
  .title {
  padding-bottom: 10px;
}

/* ------ main slider slide css */

.swiper-slide .review-img {
  gap: 1.5rem;
  padding-top: 20px;
  cursor: pointer;
}

.swiper-slide .review-img .before {
  padding-top: 6px;
  transform: scale(0.97);
  overflow: hidden;
}

.swiper-slide .review-img .after {
  transition: 50ms all;
  overflow: hidden;
}

.swiper-slide .review-img .before img,
.swiper-slide .review-img .after img {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.swiper-slide .review-img .after:hover img {
  border: 5px solid #00d9b6;
  transition: 50ms all;
}

.swiper-slide .review-img .before .txt,
.swiper-slide .review-img .after .txt {
  font-size: 1.5rem;
  /* line-height: 3.4375rem; */
  color: #fff;
  width: 100%;
  text-align: center;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  background: rgb(2, 154, 131);
  padding: 0.2rem 0 0.6rem;
}

.swiper-slide .review-img .after .txt {
  font-weight: 600;
  background: #00d9b6;
}

/* ------ review slider popup */

.popup {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 1000;
  width: 100%;
  background-color: rgba(94, 110, 141, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: 250ms all;
}

.popup.is-visible {
  opacity: 1;
  visibility: visible;
  transition: 1s all;
}

.pc-popup-container {
  transform: translateY(-50%);
  transition: 500ms all;
  position: relative;
  width: 40%;
  margin: 2em auto;
  top: 50%;
  padding: 40px;
  background: #fff;
  border-radius: 01em;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.popup-wrapper {
  display: flex;
}

.popup-content {
  width: 90%;
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25vh; /* Центрирование по вертикали */
  width: 100%;
  gap: 60px;
}

.popup-content .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #00897b;
  width: 33.3%;
  position: relative;
}
.popup-content .item .icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.item .icon img {
  width: 100px;
  height: 100px;
}

.popup-content .item .title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.3rem;
}
.popup-content .item .value {
  color: #333;
  font-size: 1.3rem;
  padding: 4px 0;
}

.popup-content .item:before {
  position: absolute;
  content: "";
  width: 2px;
  height: 30px;
  color: black;
  background: #d9d9d9;
  left: -17%;
  top: 45%;
}
.popup-content .item:first-child:before {
  display: none;
}

.is-visible .pc-popup-container {
  transition: 250ms all;
}

.pc-popup-container .popup-close {
  position: absolute;
  top: 10px;
  font-size: 0;
  right: 10px;
  width: 40px;
  height: 40px;
}

.pc-popup-container .popup-close::before,
.pc-popup-container .popup-close::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 25px;
  height: 3px;
  background-color: #8f9cb5;
}

.pc-popup-container .popup-close::before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  left: 7px;
}

.pc-popup-container .popup-close::after {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  right: 8px;
}

.pc-popup-container .popup-close:hover:before,
.pc-popup-container .popup-close:hover:after {
  background-color: #35a785;
  transition: 300ms all;
}

/* --------------------- section doctors */

section .container .wrapper .doctors {
}
section .container .wrapper .doctors ul.doctors-list {
  display: flex;
  gap: 5px;
}
section .container .wrapper .doctors ul.doctors-list .doctor {
  width: calc(100% / 5);
  height: 540px;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 8px;
  transform: scale(0.9);
  transition: all 200ms ease-in-out;
  position: relative;
  opacity: 0.8;
}

section .container .wrapper .doctors ul.doctors-list .doctor:hover {
  opacity: 1;
  transform: scale(1);
  border: 3px solid #009981;
  transition: all 200ms ease-in-out;
}

section .container .wrapper .doctors ul.doctors-list .doctor .hover-gradient {
  position: absolute;
  display: block;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 22%,
    rgba(255, 255, 255, 0.5) 35%,
    rgba(255, 255, 255, 0) 41%
  );
  height: 100%;
  width: 100%;
  transition: background 150ms ease-in-out;
}
section .container .wrapper .doctors ul.doctors-list .doctor .doctor-img {
  height: 470px;
}
section .container .wrapper .doctors ul.doctors-list .doctor .doctor-info {
  position: relative;
  color: #000;
  padding: 0 25px;
  font-size: 23px;
  bottom: 20px;
  background: #fff;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 10%,
    rgba(255, 255, 255, 0) 20%
  );
}
section
  .container
  .wrapper
  .doctors
  ul.doctors-list
  .doctor:hover
  .doctor-info {
  color: #fff;
  background: unset;
}

section
  .container
  .wrapper
  .doctors
  ul.doctors-list
  .doctor:hover
  .hover-gradient {
  background: rgb(2, 154, 131);
  background: linear-gradient(
    0deg,
    rgba(2, 154, 131, 1) 0%,
    rgba(2, 154, 131, 0.9) 10%,
    rgba(2, 154, 128, 0.5) 18%,
    rgba(2, 154, 128, 0) 30%
  );
  transition: background 150ms ease-in-out;
}

section
  .container
  .wrapper
  .doctors
  ul.doctors-list
  .doctor
  .doctor-info
  .position {
}
section
  .container
  .wrapper
  .doctors
  ul.doctors-list
  .doctor
  .doctor-info
  .name {
  font-size: 28px;
}

/* --------------------- section map */

section.map-section {
  background: linear-gradient(135deg, #3A9D93 0%, #1A6B6B 100%);
  position: relative;
  overflow: hidden;
}

section.map-section .map-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

section.map-section .map-left {
  flex: 1;
  max-width: 700px;
}

section.map-section .map-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: #ffffff;
  margin: 0 0 40px 0;
  line-height: 1.3;
}

section.map-section .map-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

section.map-section .map-tag {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 14px 24px;
  border-radius: 30px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-block;
}

section.map-section .map-description {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  font-weight: var(--font-normal);
  color: #ffffff;
  margin: 0;
}

section.map-section .map-description strong {
  font-weight: 700;
}

section.map-section .map-right {
  position: absolute;
  right: 100px;
  top: 0;
  bottom: 0;
  width: 55%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 1;
}

section.map-section .map-right img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: left center;
  opacity: 0.4;
}

/* --------------------- Hero Dragstage Image Adjustment */
/* Before/After 이미지 크기 동기화 */
#dragstage_area {
  overflow: hidden;
}

/* After 이미지만 확대 (width/height 유지) */
.dragstage > img.after,
.dragstage .stageimage img.after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transform-origin: center center;
  object-position: center -10%;
}

/* 히어로 헤더 패딩 */
.hero-header {
  padding: 140px 0 25px;
}

/* 히어로 병원 이름 */
.hero-hospital-name {
  color: #393838;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--font-bold);
  line-height: 1.3;
  letter-spacing: 32px;
  text-align: center;
  margin-top: 30px;
}

/* =====================================================
   MOBILE RESPONSIVE STYLES
   ===================================================== */

/* --------------------- Tablet (max-width: 1024px) --------------------- */
@media screen and (max-width: 1024px) {
  /* Hero Section */
  .hero-header {
    padding: 120px 0 20px;
    min-height: auto;
  }

  .hero-header .container {
    padding: 0 30px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-description {
    font-size: 16px;
    width: 100%;
    max-width: 100%;
  }
  
  /* Cards Section */
  section .container .wrapper .cards {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  section .container .wrapper .cards .card {
    width: calc(50% - 10px);
  }
  
  section .container .wrapper .cards .card .card-img,
  section .container .wrapper .cards .card .card-txt {
    width: 100%;
  }
  
  /* Diamond Section */
  section.diamond .diamond-content {
    flex-direction: column;
    gap: 40px;
  }
  
  section.diamond .diamond-left {
    max-width: 100%;
  }
  
  section.diamond .diamond-right img {
    max-width: 500px;
  }
  
  /* Map Section */
  section.map-section .map-content {
    flex-direction: column;
    text-align: center;
  }
  
  section.map-section .map-left {
    max-width: 100%;
  }
  
  section.map-section .map-right {
    position: relative;
    right: auto;
    width: 100%;
    height: 300px;
  }
  
  section.map-section .map-tags {
    justify-content: center;
  }
  
  /* Review Section */
  .index-review-card {
    padding: 25px 30px;
  }
  
  .index-review-text {
    font-size: 22px;
    line-height: 32px;
  }
}

/* --------------------- Mobile (max-width: 768px) --------------------- */
@media screen and (max-width: 768px) {
  /* General */
  section .container {
    padding: 60px 15px;
  }

  section .container .wrapper h2 {
    font-size: 32px;
  }

  /* Hero Section */
  .hero-header {
    padding: 100px 0 40px;
  }

  .hero-header .container {
    padding: 0 20px;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    order: 2;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  #dragstage_area {
    max-width: 100%;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
  }

  .hero-description br {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-tags {
    justify-content: center;
  }

  .hero-hospital-name {
    font-size: 12px;
    letter-spacing: 10px;
    margin-top: 20px;
  }

  /* Why Section (왜 M치과) */
  section .container .wrapper h2 .why-title {
    font-size: 28px;
    line-height: 1.3;
  }

  section .container .wrapper h2 .why-sub {
    font-size: 17px;
    line-height: 26px;
    padding-bottom: 40px;
  }

  section .container .wrapper h2 .why-sub br {
    display: none;
  }

  /* Cards Section */
  section .container .wrapper .cards {
    flex-direction: column;
    align-items: center;
  }
  
  section .container .wrapper .cards .card {
    width: 100%;
    max-width: 320px;
  }
  
  /* Diamond Section */
  section.diamond {
    padding: 50px 0;
  }
  
  section.diamond .container {
    padding: 0 20px;
  }
  
  section.diamond .diamond-item {
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
  }
  
  section.diamond .diamond-item .title {
    min-width: auto;
    width: 100%;
  }
  
  section.diamond .diamond-item .txt {
    font-size: 16px;
  }

  section.diamond .diamond-right {
    display: none;
  }
  
  /* Review Section */
  #index_review {
    padding: 80px 15px;
    gap: 40px;
  }
  
  .index-review-title {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .index-review-subtitle span {
    font-size: 20px;
    line-height: 28px;
  }
  
  .index-review-subtitle {
    padding: 0 0 40px;
  }
  
  .index-review-card {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    text-align: center;
  }
  
  .index-review-avatar img {
    width: 70px;
    height: 70px;
  }
  
  .index-review-content {
    align-items: center;
  }
  
  .index-review-name {
    font-size: 18px;
  }
  
  .index-review-text {
    font-size: 18px;
    line-height: 28px;
    text-align: center;
  }
  
  .index-review-cards-wrapper {
    padding: 20px 15px;
    gap: 25px;
  }
  
  /* Map Section */
  section.map-section .map-content {
    padding: 60px 20px;
  }

  section.map-section .map-right {
    display: none;
  }

  section.map-section .map-title {
    font-size: 32px;
    margin-bottom: 25px;
  }
  
  section.map-section .map-tag {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  section.map-section .map-description {
    font-size: 18px;
    line-height: 30px;
  }
  
  section.map-section .map-right {
    height: 200px;
  }
  
  /* Doctors Section */
  section .container .wrapper .doctors ul.doctors-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  section .container .wrapper .doctors ul.doctors-list .doctor {
    width: calc(50% - 10px);
    height: 350px;
  }
  
  section .container .wrapper .doctors ul.doctors-list .doctor .doctor-img {
    height: 280px;
  }
  
  section .container .wrapper .doctors ul.doctors-list .doctor .doctor-info {
    font-size: 16px;
    padding: 0 15px;
  }
  
  section .container .wrapper .doctors ul.doctors-list .doctor .doctor-info .name {
    font-size: 20px;
  }
  
  /* Doctor Section Header */
  section.doctor-section .container .wrapper h5 {
    font-size: 20px;
    padding-bottom: 40px;
  }
}

/* --------------------- Small Mobile (max-width: 480px) --------------------- */
@media screen and (max-width: 480px) {
  /* General */
  section .container {
    padding: 40px 15px;
  }
  
  section .container .wrapper h2 {
    font-size: 26px;
  }
  
  /* Hero Section */
  .hero-header {
    padding: 90px 0 15px;
  }
  
  .hero-title {
    font-size: 26px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-hospital-name {
    font-size: 12px;
    letter-spacing: 10px;
  }
  
  /* Cards Section */
  section .container .wrapper .cards .card {
    max-width: 280px;
  }
  
  section .container .wrapper .cards .card .card-txt h3 {
    font-size: 26px;
    line-height: 32px;
  }
  
  section .container .wrapper .cards .card .card-txt p {
    font-size: 14px;
    line-height: 22px;
  }
  
  /* Diamond Section */
  section.diamond .diamond-item .title {
    font-size: 16px;
    padding: 10px 20px;
  }
  
  section.diamond .diamond-item .txt {
    font-size: 14px;
  }
  
  /* Review Section */
  .index-review-title {
    font-size: 26px;
  }
  
  .index-review-subtitle span {
    font-size: 16px;
    line-height: 24px;
  }
  
  .index-review-text {
    font-size: 16px;
    line-height: 26px;
  }
  
  /* Map Section */
  section.map-section .map-title {
    font-size: 26px;
  }
  
  section.map-section .map-description {
    font-size: 16px;
    line-height: 26px;
  }
  
  /* Doctors Section */
  section .container .wrapper .doctors ul.doctors-list .doctor {
    width: 100%;
    max-width: 280px;
    height: 320px;
  }
  
  section .container .wrapper .doctors ul.doctors-list .doctor .doctor-img {
    height: 250px;
  }
}

/* --------------------- Dragstage Before/After Feature --------------------- */
#dragstage_area {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 700 / 830;
}

.dragstage {
  position: relative;
  width: 100%;
  height: 100%;
}

.dragstage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.dragstage .stageimage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.dragstage .stageimage img {
  opacity: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dragstage .coverimage {
  overflow: visible !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: none;
}

.dragstage .coverimage img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  clip: rect(0px, 328px, auto, 0px);
}

.dragstage .coverimage:hover {
  cursor: e-resize;
}

.dragstage .active .handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  bottom: 0;
  z-index: 100;
  transition: opacity 0.4s;
  -webkit-transition: opacity 0.4s;
}

.dragstage .active .handle:before {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: #ffffff;
  content: "";
}

.dragstage .active .handle:after {
  position: absolute;
  bottom: 108px;
  left: 0px;
  width: 41px;
  height: 41px;
  margin-left: -12px;
  background: url("../../git_www_clinic_zeah/assets/images/sub/icon_mouse.png") no-repeat;
  background-size: contain;
  content: "";
  transition: opacity 0.4s;
  -webkit-transition: opacity 0.4s;
}

.dragstage .active .handle.on {
  opacity: 1;
}

.dragstage .active .handle > span {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-top: 90px;
  text-align: center;
}

.dragstage .active .handle.drag_start:after {
  opacity: 1;
}

.dragstage .atxt {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
