@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background: #ffffff;
  color: #222;
  direction: rtl;
  line-height: 1.8;
  padding: 20px;
}

.section-title {
  text-align: justify;
  max-width: 99%;
  margin: 0 auto 50px;
  font-size: 1.2rem;
}

.cardes {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.carde-wrapper {
  display: flex;
  flex-direction: row;
  /* یا row-reverse برای کارت‌های سمت راست */
  align-items: stretch;
  gap: 20px;
  flex-wrap: nowrap;
  /* مهم: از wrap جلوگیری می‌کنیم */
}

.carde-wrapper.left {
  flex-direction: row;
}

.carde-wrapper.right {
  flex-direction: row-reverse;
}

.carde {
  background: linear-gradient(135deg, #3f4191 0%, #1e3250 100%);
  border-radius: 28px;
  padding: 28px;
  width: 40%;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-align: right;
}

/* عکس داخل کارت - عمودی و گوشه‌ای */
.carde img {
  flex-shrink: 0;
  width: 51%;
  height: 265px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.carde:hover img {
  transform: scale(1.05);
  /* زوم ملایم روی هاور */
}

/* متن کنار عکس */
.text-box {
  flex: 1;
}



.text-box p {
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* دکمه */



/* تگ بالای word-box */


/* واکنش‌گرایی */
@media (max-width: 900px) {
  .carde {
    flex-direction: column;
    width: 90%;
  }

  .carde img {
    width: 100%;
    height: auto;
  }
}


.text-box {
  width: 100%;
}

.text-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.text-box p {
  font-size: 2vh;
  color: #fff;
  margin-bottom: 15px;
}


.carde:hover .btnn {
  background: #fff;
  color: #111;
}

.tag {
  background: linear-gradient(135deg, #005b96 0%, #3182ce 100%);
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  width: fit-content;
}

.word-box {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  border-radius: 15px;
  background: #ffffff47;
  color: #000;
  text-align: justify;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .carde-wrapper {
    flex-direction: column !important;
    /* کارت و متن زیر هم */
    align-items: center;
    gap: 15px;
  }

  .cardee,
  .word-box {
    width: 90%;
    text-align: justify;
    padding: 10px;
  }
}

/* زیر صفحهههه */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h2 {
  font-size: 25px;
  color: white;
  margin: auto;
}

.goals-wrapper {
  display: flex;
  /* عکس و بخش اهداف کنار هم */
  align-items: center;
  gap: 30px;
  background-color: #3E4095;
  color: white;
  border-radius: 37px;
}

.side-img {
  width: 200px;
  /* اندازه عکس */
  border-radius: 20px;
  /* گوشه‌های گرد */
  object-fit: cover;
}

.goals {
  margin-bottom: 40px;
  background-color: #3E4095;
  color: white;
  border-radius: 37px;
  padding: 3%;
  flex: 1;
  /* پر کردن فضای باقی‌مونده */
}

.goal {
  margin-bottom: 20px;
}

.progress-bar {
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  height: 6px;
}

.progress {
  height: 100%;
  background: linear-gradient(135deg, #005b96 0%, #3182ce 100%);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.service {
  background-color: #f0f8ff00;
  border-radius: 10px;
  padding: 15px;
  text-align: center;

}

.service-icon {
  font-size: 30px;
  margin-bottom: 10px;
  color: #1e88e5;
}

.service-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.service-desc {
  font-size: 14px;
  color: #555;
}

@media (max-width: 600px) {
  .header h2 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .goals-wrapper {
    flex-direction: column;
    /* عکس میره بالا */
    align-items: center;
  }

  .side-img {
    width: 70%;
    /* عکس بزرگ‌تر روی موبایل */
    max-width: 300px;
  }

  .goals {
    width: 90%;
    /* اهداف پر عرض‌تر میشه */
  }
}

