/* نمونه کارها */
        .before-after-slider {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
            gap: 20px;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .before-after-slider .slider-wrapper {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .before-after-slider .slider-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .before-after-slider .before-img {
            z-index: 1;
        }

        .before-after-slider .after-img {
            clip-path: inset(0 50% 0 0);
            z-index: 2;
        }

        .before-after-slider .slider {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #fff;
            cursor: ew-resize;
            z-index: 3;
            left: 50%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            transition: left 0.3s ease;
        }

        .before-after-slider .slider::before {
            content: '↔';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .before-after-slider .label-before,
        .before-after-slider .label-after {
            position: absolute;
            top: 10px;
            color: #fff;
            background: rgba(0, 0, 0, 0.7);
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 14px;
            z-index: 4;
            transition: opacity 0.3s ease;
        }

        .before-after-slider .label-before {
            right: 10px;
        }

        .before-after-slider .label-after {
            left: 10px;
        }

        .before-after-slider .hidden {
            opacity: 0;
        }

        @media (max-width: 768px) {
            .before-after-slider {
                grid-template-columns: 1fr;
            }

            .before-after-slider .slider-wrapper {
                height: 300px;
            }
        }















/* بلفاروپلاستی */
   .hero-section {
      display: flex;
      justify-content: center;
      padding: 40px 20px;
      background-color: transparent;
    }

    .hero-container {
      direction: ltr; /* مهم برای تغییر ترتیب در سایت rtl */
      display: flex;
      flex-direction: row;
      align-items: center;
      max-width: 1240px;
      width: 100%;
      gap: 40px;
    }

    .hero-image {
      flex: 1 1 50%;
      display: flex;
      justify-content: flex-start;
    }

    .hero-image picture,
    .hero-image img {
      width: 100%;
      max-width: 500px;
      height: auto;
      border-radius: 16px;
    }

    .hero-text {
      flex: 1 1 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      direction: rtl; /* متن همچنان راست‌چین */
    }

    .hero-text h1 {
      color: #004A61;
      font-size: 32px;
      margin-bottom: 20px;
    }

    .hero-text p {
      color: #000;
      font-size: 18px;
      line-height: 1.8;
    }

    .hero-text a.button {
      display: inline-block;
      margin-top: 30px;
      padding: 12px 24px;
      background-color: #1e3a8a;
      color: #fff;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
      width: fit-content;
      transition: background-color 0.3s ease;
    }

    .hero-text a.button:hover {
      background-color: #162d6a;
    }

    @media (max-width: 768px) {
      .hero-container {
        flex-direction: column;
        direction: rtl; /* در موبایل جهت مثل بقیه بخش‌ها */
        text-align: center;
      }

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

      .hero-text {
        direction: rtl;
      }

      .hero-text a.button {
        margin-left: auto;
        margin-right: auto;
      }
    }





.bleph-section {
  padding: 50px 20px;
}

.bleph-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  color: #1e3a8a;
  font-size: 28px;
  margin-bottom: 25px;
  text-align: right;
}

.intro-text {
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 35px;
  text-align: justify;
}

.flex-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.box {
  flex: 1 1 45%;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.box.advantages {
  background-color: #e0f2fe;
}

.box.considerations {
  background-color: #fef2f2;
}

.box h3 {
  font-size: 20px;
  color: #111827;
  margin-bottom: 15px;
}

.box ul {
  padding-right: 20px;
  list-style: disc;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .flex-box {
    flex-direction: column;
  }

  .box {
    flex: 1 1 100%;
  }
}






.faq {
    padding: 2rem 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq h2 {
    font-size: 2rem;
    color: #004aad;
    margin-bottom: 1.5rem;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    font-size: 1.3rem;
    color: #004aad;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004aad;
    width: 1.5rem;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 1.1rem;
    color: #333;
    padding: 0 1rem;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-answer.active {
    max-height: 200px;
    padding: 1rem;
}

@media (max-width: 768px) {
    .faq h2 {
        font-size: 1.8rem;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-answer {
        font-size: 1rem;
    }

    .faq-toggle {
        font-size: 1.3rem;
        width: 1.3rem;
    }

    .faq-answer.active {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .faq h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .faq-toggle {
        font-size: 1.2rem;
        width: 1.2rem;
    }

    .faq-answer.active {
        max-height: 400px;
    }
}







.testimonials {
    padding: 2rem 0;
}

.testimonials h2 {
    font-size: 2rem;
    color: #004aad;
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: none; /* به‌صورت پیش‌فرض مخفی */
    text-align: center;
}

.testimonial-item.active {
    display: block; /* فقط آیتم فعال نمایش داده می‌شود */
}

.testimonial-item p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.testimonial-item span {
    font-size: 0.9rem;
    color: #004aad;
    font-weight: bold;
}

.carousel-controls {
    text-align: center;
    margin-top: 1rem;
}

.carousel-prev,
.carousel-next {
    background-color: #00a1d6;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #004aad;
}

@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 1.8rem;
    }

    .testimonial-item p {
        font-size: 1rem;
    }

    .testimonial-item span {
        font-size: 0.85rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials h2 {
        font-size: 1.5rem;
    }

    .testimonial-item p {
        font-size: 0.9rem;
    }

    .testimonial-item span {
        font-size: 0.8rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}










.why-choose-us {
    padding: 2rem 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-us h2 {
    font-size: 2rem;
    color: #004aad;
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.benefit-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    color: #004aad;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 1.1rem;
    color: #333;
}

@media (max-width: 768px) {
    .why-choose-us h2 {
        font-size: 1.8rem;
    }

    .benefit-item h3 {
        font-size: 1.2rem;
    }

    .benefit-item p {
        font-size: 1rem;
    }

    .benefit-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .why-choose-us h2 {
        font-size: 1.5rem;
    }

    .benefit-item h3 {
        font-size: 1.1rem;
    }

    .benefit-item p {
        font-size: 0.9rem;
    }

    .benefit-icon {
        width: 30px;
        height: 30px;
    }
}