/* بانک پروژه — page 2324 /projects/ */
.iw-projects {
  --navy: #19476d;
  --navy-deep: #0d2f4a;
  --navy-ink: #0a1f30;
  --accent: #d51067;
  --muted: #5a6b7d;
  --line: rgba(25, 71, 109, 0.12);
  --soft: #eef3f8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: min(1080px, calc(100% - 48px));
  direction: rtl;
  text-align: center;
  color: var(--navy-ink);
  background: #f5f8fb;
  overflow-x: clip;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.iw-projects .elementor {
  width: 100%;
}

/* ---------- Hero title ---------- */
.iw-projects .elementor-element-aed78f5 {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 2rem !important;
  padding: clamp(2.2rem, 5vw, 3.4rem) 24px !important;
  overflow: hidden;
  background: linear-gradient(160deg, #0a2740 0%, #19476d 100%);
  --display: flex;
  --flex-direction: column;
  --align-items: center;
  --gap: 0px;
}

.iw-projects .elementor-element-aed78f5::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 220px at 70% 120%, rgba(213, 16, 103, 0.18), transparent 70%),
    radial-gradient(420px 200px at 20% -20%, rgba(255, 255, 255, 0.08), transparent 65%);
  pointer-events: none;
}

.iw-projects .elementor-element-aed78f5 > .e-con-inner {
  position: relative;
  z-index: 1;
  width: var(--page) !important;
  max-width: var(--page) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.iw-projects .elementor-element-436988a,
.iw-projects .elementor-element-436988a .elementor-widget-container {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.iw-projects .elementor-element-436988a .elementor-heading-title,
.iw-projects .elementor-element-436988a h1 {
  margin: 0 auto !important;
  max-width: 18ch;
  color: #fff !important;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* ---------- Page content width ---------- */
.iw-projects > .elementor > .elementor-element:not(.elementor-element-aed78f5) {
  width: var(--page) !important;
  max-width: var(--page) !important;
  margin-inline: auto !important;
}

.iw-projects .elementor-element-c8d4340,
.iw-projects .elementor-element-e21f776,
.iw-projects .elementor-element-3c5dc0f {
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
}

.iw-projects .elementor-element-c8d4340 > .e-con-inner,
.iw-projects .elementor-element-e21f776 > .e-con-inner,
.iw-projects .elementor-element-3c5dc0f > .e-con-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- Intro block ---------- */
.iw-projects .elementor-element-c8d4340 {
  margin: 0 auto 1.75rem !important;
  padding: 1.5rem 1.4rem !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 25, 38, 0.04);
  text-align: center;
}

.iw-projects .elementor-element-803484c {
  margin: 0 auto 1.15rem !important;
  max-width: 720px;
}

.iw-projects .elementor-element-803484c .elementor-widget-container {
  text-align: center !important;
}

.iw-projects .elementor-element-803484c img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.iw-projects .elementor-element-d60d712 {
  margin: 0 auto 1.1rem !important;
  max-width: 46rem;
}

.iw-projects .elementor-element-d60d712 .elementor-widget-container,
.iw-projects .elementor-element-d60d712 p {
  margin: 0 auto !important;
  color: var(--muted) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem) !important;
  font-weight: 500 !important;
  line-height: 2 !important;
  text-align: center !important;
}

.iw-projects .elementor-element-4251edb,
.iw-projects .elementor-element-505b0d9 {
  --spacer-size: 0.5rem !important;
  display: none !important;
}

/* ---------- Alert ---------- */
.iw-projects .elementor-element-ae03bb7 {
  margin: 0 auto !important;
  max-width: 46rem;
}

.iw-projects .elementor-alert {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 0.95rem 1.15rem !important;
  border: 1px solid rgba(25, 71, 109, 0.12) !important;
  border-radius: 14px !important;
  background: var(--soft) !important;
  box-shadow: none !important;
  text-align: center !important;
}

.iw-projects .elementor-alert-info {
  border-right: 0 !important;
  border-top: 3px solid var(--navy) !important;
}

.iw-projects .elementor-alert-title {
  display: none !important;
}

.iw-projects .elementor-alert-description {
  margin: 0 !important;
  color: var(--navy-deep) !important;
  font-size: 0.95rem !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

.iw-projects .elementor-alert-description a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.iw-projects .elementor-alert-description a:hover {
  text-decoration: underline;
}

/* ---------- Tabs ---------- */
.iw-projects .elementor-element-e21f776,
.iw-projects .elementor-element-3fbeee5 {
  margin: 0 auto !important;
}

.iw-projects .e-n-tabs-heading {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 0 1.35rem !important;
  padding: 0.75rem !important;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 25, 38, 0.04);
}

.iw-projects .e-n-tab-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem;
  margin: 0 !important;
  padding: 0.55rem 1.05rem !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: var(--soft) !important;
  color: var(--navy-deep) !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-align: center !important;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
  cursor: pointer;
}

.iw-projects .e-n-tab-title .e-n-tab-title-text {
  width: 100%;
  font-family: inherit !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.iw-projects .e-n-tab-title[aria-selected="false"]:not(:hover) {
  background: var(--soft) !important;
  color: var(--navy-deep) !important;
}

.iw-projects .e-n-tab-title[aria-selected="false"]:hover {
  background: #e2eaf2 !important;
  transform: translateY(-1px);
}

.iw-projects .e-n-tab-title[aria-selected="true"],
.iw-projects .e-n-tabs[data-touch-mode="true"] .e-n-tab-title[aria-selected="false"]:hover {
  background: var(--navy) !important;
  color: #fff !important;
}

.iw-projects .e-n-tabs-content {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: right;
}

.iw-projects .e-n-tabs-content > .e-con {
  padding: 0 !important;
}

/* ---------- Accordions ---------- */
.iw-projects .e-n-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: right;
}

.iw-projects .e-n-accordion-item {
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 25, 38, 0.03);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.iw-projects .e-n-accordion-item[open],
.iw-projects .e-n-accordion-item:hover {
  border-color: rgba(25, 71, 109, 0.22) !important;
  box-shadow: 0 12px 28px rgba(7, 25, 38, 0.06);
}

.iw-projects .e-n-accordion-item-title {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem;
  margin: 0 !important;
  padding: 1rem 1.2rem !important;
  list-style: none;
  cursor: pointer;
  background: transparent !important;
  text-align: right !important;
}

.iw-projects .e-n-accordion-item-title::-webkit-details-marker {
  display: none;
}

.iw-projects .e-n-accordion-item-title-header {
  flex: 1 1 auto;
  text-align: right !important;
}

.iw-projects .e-n-accordion-item-title-text {
  display: block;
  width: 100%;
  color: var(--navy-deep) !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  text-align: right !important;
}

.iw-projects .e-n-accordion-item[open] .e-n-accordion-item-title-text {
  color: var(--accent) !important;
}

.iw-projects .e-n-accordion-item-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
}

.iw-projects .e-n-accordion-item[open] .e-n-accordion-item-title-icon {
  background: rgba(213, 16, 103, 0.1);
  color: var(--accent);
}

.iw-projects .e-n-accordion-item-title-icon svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: currentColor;
}

.iw-projects .e-n-accordion-item > .e-con {
  padding: 0 1.2rem 1.15rem !important;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  text-align: right;
}

/* ---------- Download links ---------- */
.iw-projects .e-n-accordion-item .elementor-widget-text-editor {
  margin: 0 !important;
  padding: 1rem 0 0.2rem !important;
}

.iw-projects .e-n-accordion-item .elementor-widget-container {
  margin: 0 !important;
}

.iw-projects .e-n-accordion-item ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  list-style: none !important;
}

.iw-projects .e-n-accordion-item li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.iw-projects .e-n-accordion-item a,
.iw-projects .e-n-accordion-item a.in-cell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(25, 71, 109, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--navy) !important;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.iw-projects .e-n-accordion-item a:hover,
.iw-projects .e-n-accordion-item a.in-cell-link:hover {
  border-color: var(--accent);
  background: rgba(213, 16, 103, 0.06);
  color: var(--accent) !important;
  transform: translateY(-1px);
}

/* ---------- Form ---------- */
.iw-projects .elementor-element-3c5dc0f {
  margin: 2.25rem auto 0 !important;
  padding: 1.6rem 1.4rem !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 25, 38, 0.04);
  text-align: center;
}

.iw-projects .elementor-element-4917020 {
  margin: 0 auto !important;
  max-width: 640px;
  text-align: right;
}

.iw-projects .elementor-form-fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 0;
}

.iw-projects .elementor-field-group {
  margin-bottom: 0.35rem !important;
  text-align: right;
}

.iw-projects .elementor-field-group > label {
  display: block;
  margin: 0 0 0.4rem !important;
  color: var(--navy-deep) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-align: right !important;
}

.iw-projects .elementor-field-group .elementor-field,
.iw-projects .elementor-field-group select,
.iw-projects .elementor-field-group textarea,
.iw-projects .elementor-field-group input:not([type="submit"]) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem !important;
  border: 1px solid rgba(25, 71, 109, 0.16) !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: var(--navy-ink) !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  text-align: right !important;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.iw-projects .elementor-field-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.iw-projects .elementor-field-group .elementor-field:focus,
.iw-projects .elementor-field-group select:focus,
.iw-projects .elementor-field-group textarea:focus,
.iw-projects .elementor-field-group input:focus {
  outline: none;
  border-color: rgba(25, 71, 109, 0.4) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(25, 71, 109, 0.1);
}

.iw-projects .elementor-field-type-submit,
.iw-projects .elementor-field-group.elementor-field-type-submit {
  text-align: center !important;
}

.iw-projects .elementor-button[type="submit"] {
  min-height: 2.9rem;
  min-width: 10rem;
  margin: 0.35rem auto 0 !important;
  padding: 0.7rem 1.6rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--navy) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.iw-projects .elementor-button[type="submit"]:hover {
  background: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.iw-projects .elementor-message {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
}

.iw-projects .elementor-message-success {
  background: #e8f7ef;
  color: #0f6b3c;
}

.iw-projects .elementor-message-error {
  background: #fdecec;
  color: #a11b1b;
}

@media (max-width: 767px) {
  .iw-projects {
    --page: min(1080px, calc(100% - 28px));
  }

  .iw-projects .elementor-element-c8d4340,
  .iw-projects .elementor-element-3c5dc0f {
    padding: 1.15rem 1rem !important;
  }

  .iw-projects .e-n-tabs-heading {
    padding: 0.65rem;
    gap: 0.4rem;
  }

  .iw-projects .e-n-tab-title {
    flex: 1 1 calc(50% - 0.4rem);
    padding: 0.5rem 0.65rem !important;
    font-size: 0.84rem !important;
  }

  .iw-projects .e-n-accordion-item-title {
    padding: 0.9rem 1rem !important;
  }

  .iw-projects .e-n-accordion-item-title-text {
    font-size: 0.96rem !important;
  }

  .iw-projects .elementor-element-436988a h1 {
    max-width: none;
  }
}
