.hero-beauty {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('https://drmahsasadati.com/wp-content/uploads/2025/07/dr-mahsa-sadati.webp') no-repeat 62% center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.gradient-overlay-beauty {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, #004a61, transparent);
  pointer-events: none;
}

.hero-text-beauty {top: 100px;
  position: relative;
  z-index: 2;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  gap: 1rem;
}

.word-beauty {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpBeauty 1s forwards;
}

.word-beauty:nth-child(2) {
  animation-delay: 1s;
}

@keyframes fadeInUpBeauty {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arrow-down-beauty {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  animation: blinkBeauty 1s infinite;
  z-index: 2;
}

@keyframes blinkBeauty {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-text-beauty {
    font-size: 2rem;
    gap: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-text-beauty {
    font-size: 1.4rem;
    gap: 0.5rem;
  }
}
/* بخش نظرات بیماران */
.testimonials-section {
  background-color: #f9fbfd;
  padding: 60px 20px;
  direction: rtl;
}

.testimonials-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 28px;
  color: #003d6a;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 25px 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial-text {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: '“';
  font-size: 40px;
  color: #0077b6;
  position: absolute;
  top: -20px;
  right: -10px;
}

.testimonial-author {
  font-size: 15px;
  color: #0077b6;
  font-weight: bold;
}




.faq-section {
  background-color: #f1f5f9;
  padding: 60px 20px;
  direction: rtl;
}
.faq-container {
  max-width: 800px;
  margin: auto;
}
.section-title {
  font-size: 28px;
  color: #003d6a;
  text-align: center;
  margin-bottom: 40px;
}
.faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.faq-item input {
  display: none;
}
.faq-question {
  display: block;
  padding: 18px 20px;
  font-size: 17px;
  color: #0077b6;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}
.faq-question::after {font-family: 'YekanBakhFaNum-Light';
  content: '+';
  position: absolute;
  right: 0px;
  top: 18px;
  font-size: 22px;
  color: #0077b6;
  transition: transform 0.3s ease;
}
.faq-item input:checked + .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #f9fbfd;
  padding: 0 20px;
}
.faq-item input:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px 20px 20px;
}
.faq-answer p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}


/* بخش معرفی دکتر صفرپور */
.intro-section {
  background-color: #f9fbfd;
  padding: 60px 20px;
  direction: rtl;
}

.intro-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.intro-image {
  flex: 1 1 300px;
  text-align: center;
}

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

.intro-text {
  flex: 2 1 500px;
}

.intro-text h2 {
  font-size: 28px;
  color: #003d6a;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 30px;
}

.btn-book {
  background-color: #0077b6;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-book:hover {
  background-color: #005f90;
}


















.upseo-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.upseo-section {
  background-color: #ffffff;
  padding: 2rem 1rem;
}

.upseo-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

.upseo-card {
  background-color: rgb(241, 245, 249);
  border-radius: 16px;
  padding: 1.5rem;
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 280px;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.upseo-card:hover {
  transform: translateY(-4px);
}

.upseo-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 5px;
  width: 100%;
  background-color: #D0B081;
  border-radius: 8px 8px 0 0;
}

.upseo-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.2rem;
  display: block;
}

.upseo-card h2 {
  color: #003d6a;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  text-align: center; /* Centered */
}

.upseo-card h3 {
  font-size: 1.1rem;
  color: #0077b6;
  margin-bottom: 0.8rem;
  text-align: center; /* Centered */
}

.upseo-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
  text-align: center; /* Centered for consistency */
}

.upseo-desc {
  font-size: 0.92rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.upseo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upseo-tag {font-family: 'YekanBakhFaNum-Bold';
  background-color: #f0f9ff;
  color: #003c58;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .upseo-card {
    flex: 1 1 100%;
  }
}




* {
    box-sizing: border-box;
}

.clinic-counter-container {
    font-family: 'YekanBakhFaNum-Light';
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    direction: rtl;
}

.clinic-counter-box {
    background: transparent;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.clinic-counter-title {
    font-family: 'YekanBakhFaNum-Light';
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.clinic-counter {
    font-family: 'YekanBakhFaNum-Light';
    font-size: 2.5rem;
    font-weight: 700;
    color: #764ba2;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .clinic-counter-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .clinic-counter-box {
        margin: 0;
    }

    .clinic-counter-title {
        font-size: 1.2rem;
    }

    .clinic-counter {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .clinic-counter-container {
        width: calc(100% - 10px);
        padding: 5px;
        gap: 5px;
    }

    .clinic-counter-title {
        font-size: 1rem;
    }

    .clinic-counter {
        font-size: 1.8rem;
    }
}












* {
    box-sizing: border-box;
}

.clinic-video-section {
    font-family: 'YekanBakhFaNum-Light';
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    direction: rtl;
}

.clinic-video-title {
    font-family: 'YekanBakhFaNum-Light';
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.clinic-video-grid {
    display: flex;
    flex-wrap: nowrap;justify-content: space-between;
}

.clinic-video-item {
    position: relative;
    flex: 0 0 150px;
}

.clinic-video-checkbox {
    display: none;
}

.clinic-video-cover {
    position: relative;
    display: block;
    width: 150px;
    height: 150px;
    cursor: pointer;
}

.clinic-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.clinic-video-cover:hover img {
    transform: scale(1.1);
}

.clinic-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(118, 75, 162, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-video-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.clinic-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clinic-video-checkbox:checked ~ .clinic-video-modal {
    display: flex;
    opacity: 1;
}

.clinic-video-modal video {
    width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.clinic-video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #764ba2;
    border-radius: 50%;
    cursor: pointer;
}

.clinic-video-close::before,
.clinic-video-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.clinic-video-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .clinic-video-section {
        width: calc(100% - 20px);
        padding: 10px;
    }

    .clinic-video-title {
        font-size: 1.5rem;
    }

    .clinic-video-grid {
        flex-wrap: wrap;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
    }

    .clinic-video-item {
        flex: 0 0 120px;
    }

    .clinic-video-cover {
        width: 120px;
        height: 120px;
    }

    .clinic-video-play-btn {
        width: 40px;
        height: 40px;
    }

    .clinic-video-play-btn::before {
        border-left: 15px solid #fff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
}

@media (max-width: 480px) {
    .clinic-video-section {
        width: calc(100% - 10px);
        padding: 5px;
    }

    .clinic-video-title {
        font-size: 1.3rem;
    }

    .clinic-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .clinic-video-item {
        flex: 0 0 100px;
    }

    .clinic-video-cover {
        width: 100px;
        height: 100px;
    }

    .clinic-video-play-btn {
        width: 30px;
        height: 30px;
    }

    .clinic-video-play-btn::before {
        border-left: 12px solid #fff;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
}







* {
    box-sizing: border-box;
}

.clinic-test-section {
    font-family: 'YekanBakhFaNum-Light';
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    direction: rtl;
}

.clinic-test-title {
    font-family: 'YekanBakhFaNum-Light';
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.clinic-test-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
}

.clinic-test-item {
    position: relative;
    flex: 0 0 230px;
}

.clinic-test-cover {
    position: relative;
    width: 230px;
    height: 230px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.clinic-test-cover:hover {
    transform: scale(1.05);
}

.clinic-test-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-test-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 122, 158, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'YekanBakhFaNum-Light';
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.clinic-test-overlay:hover {
    background: rgba(0, 122, 158, 0.9);
}

.clinic-test-overlay.disabled {
    background: rgba(0, 122, 158, 0.7);
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .clinic-test-section {
        width: calc(100% - 20px);
        padding: 10px;
    }

    .clinic-test-title {
        font-size: 1.5rem;
    }

    .clinic-test-grid {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .clinic-test-item {
        flex: 0 0 180px;
    }

    .clinic-test-cover {
        width: 180px;
        height: 180px;
    }

    .clinic-test-overlay {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .clinic-test-section {
        width: calc(100% - 10px);
        padding: 5px;
    }

    .clinic-test-title {
        font-size: 1.3rem;
    }

    .clinic-test-grid {
        gap: 8px;
    }

    .clinic-test-item {
        flex: 0 0 150px;
    }

    .clinic-test-cover {
        width: 150px;
        height: 150px;
    }

    .clinic-test-overlay {
        font-size: 0.9rem;
        padding: 8px;
    }
}















  .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px; /* فاصله بالا و پایین 100 پیکسل، کنار 20 */
    box-sizing: border-box;
  }

  h2.section-title {
    font-size: 28px;font-family: 'YekanBakhFaNum-Bold';
    margin-bottom: 35px;
    color: #1e293b;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .service-item {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .service-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
  }

  .service-item h3 {font-family: 'YekanBakhFaNum-Bold';
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }

  /* ریسپانسیو */
  @media (max-width: 992px) {
    .service-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .content-wrapper {
      padding-left: 15px;
      padding-right: 15px;
    }
    .service-item img {
      width: 120px;
      height: 120px;
    }
    .service-item h3 {
      font-size: 16px;
    }
  }



.latest-posts {
  padding: 40px 20px;
  text-align: center;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}
.posts-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.post:hover {
  transform: translateY(-5px);
}
.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-title {
  font-size: 1.2rem;
  margin: 15px 10px;
  color: #333;
}
.date {
  font-size: 0.9rem;
  color: #666;
  margin: 0 10px 15px;
}
@media (max-width: 768px) {
  .posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .posts-container {
    grid-template-columns: 1fr;
  }
}













.courses-section {
  padding: 40px 0;
  background-color: #f9f9f9;
  text-align: center;
}
.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr); /* دو ستون در موبایل */
    gap: 15px;
  }
}
.course-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.course-item:hover {
  transform: translateY(-5px);
}
.course-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.course-item h3 {
  font-size: 1.2rem;
  margin: 15px 10px;
  color: #333;
}
.course-price {
  color: #e91e63;
  font-weight: bold;
  margin: 0 10px 10px;
}
.course-btn {
  display: inline-block;
  background: #003c58;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px;
  text-decoration: none;
}
.btn-view-all {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.btn-view-all:hover {
  background: #555;
}