/* DETAILS SECTION */
.details {
    margin-bottom: 12rem;
    text-align: center;
    margin-top: 3rem;
    max-width: 700px;  /* or any size you want */
    margin-left: auto;
    margin-right: auto;
}
.details__container {
    margin: 0 auto;
}
.details__title {
    font-size: 3.6rem;
    font-weight: 500;
    margin-bottom: 2.4rem;
    color: #3b73ed;
    text-align: center;
}
.details__description {
    background: linear-gradient(135deg, #eef4ff, #d6e3ff); /* Light blue gradient */
    border: 1px solid #c4d8ff;
    border-radius: 1.2rem;
    padding: 2.4rem;
    font-size: 1.8rem;
    line-height: 2.4rem;
    margin-bottom: 2.4rem;
    color: #2c3e50;
    text-align: right; /* for better Farsi readability */
    box-shadow: 8px 7px 19px #2c3e50;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Make sure inner <p> elements don't break it */
.details__description p {
    margin-bottom: 1.5rem;
    color:rgb(2, 4, 64);
    font-size: large;
}

.details__descriptionn {
    display: block;
    margin: 0 auto 2.4rem auto;
    padding: 0.2rem 1rem;
    white-space: normal;
    width: 90%;       /* اضافه کردن این خط */
    max-width: 600px; /* یا به جای درصد، پیکسل مشخص */
    word-wrap: break-word;
    box-sizing: border-box;
    background-color: #eef4ff;
    border-radius: 1rem;
    color: red;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.4;
}
.details__btn-container {
    display: inline-block;
}
.details__btn:link,
.details__btn:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #2563eb;
    color: #fff;
    border-radius: 20rem;
    padding: 1.6rem 3.2rem;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    transition: all 0.3s;
}
.details__btn:hover,
.details__btn:active {
    background-color: #1e4fbc;
    color: #fff;
}
.details__text-box span > a:link,
.details__text-box span > a:visited {
    display: inline-block;
    color: #7ca1f3;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 8rem;
    transition: all 0.3s;
}
.details__text-box span > a:hover,
.details__text-box span > a:active {
    text-decoration: underline;
}

.details__text-box span > a{
    text-decoration: none;
}



.details__description-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #eef4ff, #d6e3ff);
    border: 1px solid #c4d8ff;
    border-radius: 1.2rem;
    padding: 2.4rem;
    font-size: 1.8rem;
    line-height: 2.4rem;
    margin-bottom: 2.4rem;
    color: #2c3e50;
    box-shadow: 8px 7px 19px #2c3e50;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    gap: 2rem;
    direction: rtl;
}

.details__description-flex .details__text {
    flex: 2;
    text-align: right;
    word-break: break-word; /* یا try overflow-wrap: break-word; */
    white-space: normal;
}

.details__description-flex .details__text p {
    margin-bottom: 1.5rem;
    color: rgb(2, 4, 64);
    font-size: clamp(1rem, 2vw, 1.7rem) !important;
}

.details__description-flex .details__image {
  flex: 0 0 auto;
  margin-left: 1rem;
  text-align: center;
}

.details__description-flex .details__image img {
  width: 200px;
  height: auto;
  animation: roll-forward-back 10s linear infinite;
  transform-origin: center;
  display: block;
}


@media (max-width: 912px) {
  .details__description-flex {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    transform: scale(0.9);
  }

  .details__description-flex .details__text p {
    font-size: clamp(1.4rem, 2vw, 2.2rem) !important;
    margin-bottom: 2rem;
    line-height: 1.4 !important;
  }

    .details__descriptionn {
        display: block;
        margin: 0 auto 2.4rem auto;
        padding: 0.2rem 1rem;
        white-space: normal;
        width: 80%;       /* اضافه کردن این خط */
        max-width: 520px; /* یا به جای درصد، پیکسل مشخص */
        word-wrap: break-word;
        box-sizing: border-box;
        background-color: #eef4ff;
        border-radius: 1rem;
        color: red;
        font-size: clamp(0.5rem, 2vw, 1.5rem);
        line-height: 1.4;
    }

  .details__image {
    order: -1; /* این خط باعث میشه عکس بیاد بالا */
  }

  .details__image img {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 200 !important;
  }

  .details__text {
    font-size: 1.2rem;
    line-height: 1.5;
  }

}


.contact-us__icon svg {
    fill: #b0b0b0; /* رنگ خاکستری روشن */
    transition: fill 0.3s ease, transform 0.3s ease;
}

/* رنگ‌ها در حالت هاور */
.contact-us__icon:hover svg {
    fill: #3b73ed; /* رنگ آبی متناسب با تم */
    transform: scale(1.15); /* کمی بزرگ شدن برای تاکید */
}

.contact-us__icon {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.contact-us__icon:hover {
    opacity: 1;
}
