/* --- About Page Professional Style --- */

.about-page {
  padding: 80px 0;
  direction: rtl;
  text-align: right;
  background-color: #fff;
}

/* ۱. بخش معرفی و تصویر */
.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgb(0 0 0 / 10%);
}

.about-image-wrapper img {
  width: 10rem;
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.about-text-col {
  padding-right: 50px;
}

.about-text-col h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: var(--co3);
  position: relative;
}

.about-text-col h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 80px;
  height: 4px;
  background-color: var(--co1);
}

.about-desc {
  font-family: var(--font-body);
  line-height: 2;
  color: var(--co4);
  font-size: 1.1rem;
  text-align: justify;
}

/* ۲. تنظیمات سه ستونه برای دسکتاپ و لپ‌تاپ (خارج از مدیا کوئری) */
.features-section {
  padding: 60px 0;
  background-color: #fcfcfc;
  margin-top: 50px;
  border-radius: 30px;
}

.features-section .row-grid {
  display: flex !important;
  flex-direction: row !important; /* اجبار به ماندن در یک خط */
  flex-wrap: nowrap; /* جلوگیری از پرتاب شدن به خط بعد در لپ‌تاپ ۱۳ اینچ */
  gap: 15px !important; /* فاصله کم بین باکس‌ها طبق درخواست شما */
  justify-content: center;
}

.features-section .col-lg-4 {
  flex: 1;
  min-width: 0; /* اجازه به کوچک شدن منعطف در لپ‌تاپ */
}

.feature-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgb(0 0 0 / 5%);
  border-color: var(--co1);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-heading);
  color: var(--co3);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* ۳. تنظیمات مخصوص تبلت و موبایل (شکستن ستون‌ها) */
@media only screen and (width <= 992px) {
  .features-section .row-grid {
    flex-flow: column wrap !important; /* اجازه شکستن ردیف در موبایل */ /* زیر هم آمدن باکس‌ها */
  }

  .features-section .col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-text-col {
    padding-right: 0;
    margin-top: 30px;
    text-align: center;
  }

  .about-text-col h1::after {
    right: 50%;
    transform: translateX(50%);
  }
}

@media only screen and (width <= 768px) {
  .about-page {
    padding: 40px 0;
  }

  .about-text-col h1 {
    font-size: 2rem;
  }
}
