/* =========================
   Project Base
========================= */

section {
  margin-bottom: 4rem;
}

.project-wrapper {
  width: 100%;
  direction: rtl;
}

.project-container {
  padding: 2rem 9.5rem 4rem 9.5rem;
  box-sizing: border-box;
}

/* =========================
   Back Button (Global)
========================= */

.back-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================
   Project Header
========================= */

.project-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  padding: 4rem 9.5rem 2rem 9.5rem;
  box-sizing: border-box;
}

/* Back Icon Button */
.project-btn {
  width: 3rem;
  height: 3rem;
  border: 1px solid #1B1E2F;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.project-btn img {
  width: 1.5rem;
  height: 1.5rem;
}

/* Header Info */
.project-info-left {
  display: flex;
  align-items: center;
  gap: 4rem;
  direction: ltr;
}

.info-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-header .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: #474A71;
  font-weight: 400;
  line-height: 1.85;
}

/* =========================
   Images
========================= */

.project-img,
.project-images img,
.main-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Text Block
========================= */

.project-text {
  margin: 4rem 0 2rem;
}

.project-text h1 {
  font-size: 1.5rem;
  line-height: 1.85;
  font-weight: 700;
  color: #333653;
  margin-bottom: 1rem;
}

.project-text p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #474A71;
}

/* =========================
   Features Section
========================= */

.project-features {
  display: grid;
  grid-template-columns: 1fr 28rem;
  gap: 2rem;
}

/* Left Feature Card */
.feature-left {
  border: 1px solid #D6DCE8;
  padding: 2rem;
  text-align: right;
}

.feature-left h2 {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #333653;
  margin: 2rem 0 1rem;
}

.feature-left ul {
  list-style: none;
  padding: 0;
}

.feature-left li {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #474A71;
  margin-bottom: 0.5rem;
    display: flex;
  align-items: center;   /* تراز عمودی آیکون و متن */
  gap: 0.5rem;  
}

/* Right Feature Cards */
.feature-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-card {
  border: 1px solid #D6DCE8;
  padding: 2rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #333653;
  margin: 2rem 0 1rem;
}

.feature-card p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #474A71;
}

/* =========================
   Cards Section
========================= */

.project-cards h1 {
  font-size: 1.5rem;
  line-height: 1.85;
  color: #333653;
  margin-bottom: 2rem;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.card,
.card-full {
  border: 1px solid #D6DCE8;
  padding: 2rem;
  text-align: right;
}

.card-full {
  width: 100%;
}

/* Card Titles */
.card h3,
.card-full h3 {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #333653;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: rtl;
}

.card p,
.card-full p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #474A71;
}

/* =========================
   CTA Button
========================= */

.project-cta {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
    text-align: center;

}

.primary-btn {
  background: #333653;
  color: #fff;
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  padding: 0 1.5rem;      /* 24px */
  min-height: 3.5rem;     /* 56px */
  display: flex;          /* مهم */
  align-items: center;    /* وسط عمودی متن */
  justify-content: center;/* وسط افقی متن */
  text-decoration: none;
}

.primary-btn.back-btn {
  width: fit-content;
  margin: 0 auto;         /* وسط صفحه */
}



/* =========================
   Footer
========================= */

.footer {
  background: #F3F4F8;
  padding: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: ltr;
}

.footer-item img {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-item span {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #474A71;
  font-weight: 400;
}

.divider {
  width: 0.0625rem;
  height: 1.5rem;
  background: #ABAECB;
}

/* =========================
   Responsive - Tablet
========================= */

@media (max-width: 64rem) {

  .project-header {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding: 2rem 3rem 1.5rem 3rem;
  }

  .project-btn {
    width: 2.5rem;
    height: 2.5rem;
	align-self: flex-end; margin-right: 0; margin-left: auto;
  }


  .project-btn img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .project-info-left {
    width: 100%;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .project-container {
    padding: 2rem 3rem 4rem 3rem;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .card-row {
    grid-template-columns: 1fr;
  }


  .primary-btn {
    font-size: 1rem;
    padding: 0 1.25rem;   /* 20px */
    min-height: 3rem;     /* 48px */
  }

  .footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }

  .divider {
    display: none;
  }

  /* Font scale */
  .project-text h1 { font-size: 1.375rem; }
  .feature-left h2,
  .feature-card h3,
  .card h3,
  .card-full h3 { font-size: 1.125rem; }
  .project-text p,
  .feature-left li,
  .feature-card p,
  .card p,
  .card-full p { font-size: 1rem; }
  .info-label,
  .footer-item span { font-size: 0.8125rem; }
}

/* =========================
   Responsive - Mobile
========================= */

@media (max-width: 39.5rem) {

  .project-header {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem 2rem;
  }

  .project-container {
    padding: 2rem;
  }

  .project-btn {
    width: 2rem;
    height: 2rem;
	align-self: flex-end; margin-left: auto;
  }
 
  .project-btn img {
    width: 1.125rem;
    height: 1.125rem;
  }

  .project-info-left {
    gap: 0.75rem;
  }
 .primary-btn {
    font-size: 0.875rem;
    padding: 0 1rem;      /* 16px */
    min-height: 2.625rem; /* 42px */
  }
  .footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }

  .divider {
    display: none;
  }

  /* Font scale */
  .project-text h1 { font-size: 1.25rem; }
  .feature-left h2,
  .feature-card h3,
  .card h3,
  .card-full h3 { font-size: 1rem; }
  .project-text p,
  .feature-left li,
  .feature-card p,
  .card p,
  .card-full p { font-size: 0.875rem; }
  .info-label,
  .footer-item span { font-size: 0.75rem; }
}
