/*
Theme Name: Aria Mersad Careers
Theme URI: https://careers.ariamersad.com/
Author: Aria Mersad
Description: قالب فرصت‌های شغلی آریا مرصاد با هدر/فوتر هماهنگ با blog.ariamersad.com — سازگار با Elementor
Version: 1.0.4
Text Domain: aria-mersad-careers
*/

:root {
  --am-primary: #159b82;
  --am-primary-dark: #0f7a66;
  --am-bg: #fff;
  --am-text: #222;
  --am-muted: #666;
  --am-dark: rgb(12 12 12);
  --am-white: #fff;
  --am-border: #e8e8e8;
  --am-soft: #f6faf9;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }

body.am-career-body {
  margin: 0;
  padding: 0;
  direction: rtl;
  background: var(--am-bg);
  color: var(--am-text);
  font-family: IranSans, IRANSans, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 2em;
  min-width: 320px;
}

body.am-career-body .fa,
body.am-career-body .fas,
body.am-career-body .far,
body.am-career-body .fab,
body.am-career-body .fa-solid,
body.am-career-body .fa-regular,
body.am-career-body .fa-brands,
body.am-career-body i.fa,
body.am-career-body i.fas,
body.am-career-body i.fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
}
body.am-career-body .fab,
body.am-career-body .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
body.am-career-body .fa,
body.am-career-body .fas,
body.am-career-body .fa-solid {
  font-weight: 900 !important;
}

a { color: var(--am-primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
main.site-main { min-height: 50vh; }

.am-page-header,
.page-header.am-page-header {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.am-page-header .cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,.45) 0%, rgba(12,12,12,.55) 100%);
  z-index: 1;
}
.am-page-header picture,
.am-page-header .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.am-page-header .content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}
.am-page-header .title {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  font-family: IranSans, IRANSans, Tahoma, sans-serif;
}
.am-page-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.9);
}
.am-page-header .breadcrumb a { color: #fff; }
.am-page-header .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-left: 8px;
  opacity: .7;
}
@media (max-width: 767px) {
  .am-page-header,
  .page-header.am-page-header { height: 220px; }
  .am-page-header .title { font-size: 26px; }
}

.am-career-wrap { padding: 48px 0 72px; }
.am-career-section-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  color: var(--am-dark);
}
.am-career-section-lead {
  margin: 0 0 28px;
  color: var(--am-muted);
  max-width: 720px;
}
.am-career-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 28px;
  border-radius: 8px;
  background: var(--am-primary);
  color: #fff !important;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background .2s ease;
}
.am-career-btn:hover { background: var(--am-primary-dark); }
.am-career-btn--ghost {
  background: transparent;
  color: var(--am-primary) !important;
  border: 1px solid var(--am-primary);
}
.am-career-btn--ghost:hover {
  background: var(--am-primary);
  color: #fff !important;
}

.am-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}
.am-job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--am-border);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.am-job-card:hover {
  border-color: var(--am-primary);
  box-shadow: 0 10px 28px rgba(21,155,130,.12);
  transform: translateY(-2px);
}
.am-job-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.am-job-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--am-dark);
}
.am-job-card__title a { color: inherit; }
.am-job-card__title a:hover { color: var(--am-primary); }
.am-job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: var(--am-muted);
  font-size: 13px;
  line-height: 1.7;
}
.am-job-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.am-job-card__excerpt {
  margin: 0 0 16px;
  color: var(--am-muted);
  font-size: 13px;
  line-height: 1.9;
}
.am-job-card__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.am-job-detail { padding: 40px 0 72px; }
.am-job-detail__hero {
  background: var(--am-soft);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
}
.am-job-detail__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
}
.am-job-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--am-muted);
  margin-bottom: 20px;
}
.am-job-detail__section { margin-bottom: 28px; }
.am-job-detail__section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--am-dark);
  border-right: 4px solid var(--am-primary);
  padding-right: 12px;
}
.am-job-detail__section ul { margin: 0; padding-right: 20px; }
.am-job-detail__section li { margin-bottom: 8px; }

.am-apply-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 72px;
  direction: rtl;
  text-align: right;
}
.am-apply-intro {
  margin-bottom: 28px;
}
.am-apply-intro__eyebrow {
  margin: 0 0 8px;
  color: var(--am-primary);
  font-size: 13px;
  font-weight: 700;
}
.am-apply-intro__lead {
  margin-bottom: 10px;
}
.am-apply-intro__hint {
  margin: 0;
  font-size: 14px;
}
.am-apply-form-wrap .wpcf7,
.am-apply-form-wrap .wpcf7-form {
  direction: rtl;
  text-align: right;
}
.am-apply-form-wrap .wpcf7-form p,
.am-apply-form-wrap .wpcf7-form label,
.am-apply-form-wrap .wpcf7-form .wpcf7-form-control-wrap {
  direction: rtl;
  text-align: right;
}
.am-apply-form-wrap .wpcf7-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  text-align: right;
}
.am-apply-form-wrap .wpcf7-form input[type=text],
.am-apply-form-wrap .wpcf7-form input[type=email],
.am-apply-form-wrap .wpcf7-form input[type=tel],
.am-apply-form-wrap .wpcf7-form input[type=url],
.am-apply-form-wrap .wpcf7-form input[type=file],
.am-apply-form-wrap .wpcf7-form textarea,
.am-apply-form-wrap .wpcf7-form select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--am-border);
  border-radius: 8px;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}
.am-apply-form-wrap .wpcf7-submit {
  background: var(--am-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  cursor: pointer;
}
.am-apply-form-wrap .wpcf7-submit:hover {
  background: var(--am-primary-dark);
}

.elementor-page .site-main,
body.elementor-page main.site-main { padding: 0; }

/* Dark footer — match blog.ariamersad.com (_main.min.css + bg images).
   Local themes load _main.min.css without assets/images/bg-footer.png; override absolute URLs. */
footer {
  background-color: #424342 !important;
  background-image: url("https://www.ariamersad.com/template/default/fa/assets/images/bg-footer.png") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: bottom right !important;
  padding-top: 108px !important;
  margin-top: 80px !important;
  border-top: 18px solid #159b82 !important;
  position: relative !important;
  color: #fff !important;
}
footer .develop-copyright,
.develop-copyright {
  background-color: #2f2f2f !important;
  background-image: url("https://www.ariamersad.com/template/default/fa/assets/images/bg-develop-copyright.png") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  padding: 24px 0 !important;
  margin-top: 60px !important;
  color: #fff !important;
}
footer .col-title,
footer .links-box .links li a,
footer .contact-items .item .value,
footer .contact-items .item .value a,
footer .develop-copyright .col-copyright,
footer .develop-copyright .develop .des,
footer .develop-copyright .develop .des a {
  color: #fff !important;
}
footer .links-box .links li a:hover,
footer .contact-items .item .value a:hover {
  color: #159b82 !important;
}

/* —— Careers home redesign —— */
.am-career-home { padding: 0; }
.am-career-home .container { max-width: 1140px; }

.am-ch-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(12,12,12,.88) 0%, rgba(12,12,12,.55) 48%, rgba(21,155,130,.35) 100%),
    url("https://www.ariamersad.com/template/default/fa/assets/images/bg-footer.png") center/cover no-repeat;
  color: #fff;
  margin: 0;
}
.am-ch-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}
.am-ch-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}
.am-ch-hero__brand {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #159b82;
  margin-bottom: 14px;
}
.am-ch-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  max-width: 720px;
}
.am-ch-hero p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 2;
  color: rgba(255,255,255,.88);
  max-width: 640px;
}
.am-ch-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.am-ch-section { padding: 64px 0; }
.am-ch-section--soft { background: var(--am-soft); }
.am-ch-section--dark {
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 55%, #0f3d35 100%);
  color: #fff;
}
.am-ch-section--dark .am-career-section-title { color: #fff; }
.am-ch-section--dark .am-career-section-lead { color: rgba(255,255,255,.75); }

.am-ch-about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.am-ch-about__visual {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(21,155,130,.85), rgba(12,12,12,.75)),
    url("https://www.ariamersad.com/upload/thumb1/menu/1785174578-%D9%85%D8%B1%DA%A9%D8%B2-%D8%B9%D9%85%D9%84%DB%8C%D8%A7%D8%AA-%D8%A7%D9%85%D9%86%DB%8C%D8%AA.png") center/cover;
  box-shadow: 0 20px 48px rgba(12,12,12,.18);
}
.am-ch-about__visual-card {
  position: absolute;
  inset: auto 20px 20px 20px;
  background: rgba(12,12,12,.78);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff;
}
.am-ch-about__visual-card strong { color: #159b82; display: block; margin-bottom: 4px; }

.am-ch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.am-ch-stat {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.am-ch-stat__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--am-primary);
  line-height: 1.2;
}
.am-ch-stat__label { color: var(--am-muted); font-size: 13px; }

.am-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.am-benefit {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.am-benefit:hover {
  transform: translateY(-4px);
  border-color: var(--am-primary);
  box-shadow: 0 16px 36px rgba(21,155,130,.14);
}
.am-benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21,155,130,.12);
  color: var(--am-primary);
  font-size: 20px;
  margin-bottom: 14px;
}
.am-benefit h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--am-dark);
}
.am-benefit p { margin: 0; color: var(--am-muted); font-size: 14px; }

.am-ch-culture {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.am-ch-culture__item {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.am-ch-culture__item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #159b82;
}
.am-ch-culture__item p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }

.am-ch-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 32px;
  border-radius: 16px;
  background: linear-gradient(120deg, #0c0c0c, #124f44);
  color: #fff;
  margin: 8px 0 24px;
}
.am-ch-cta h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #fff; }
.am-ch-cta p { margin: 0; color: rgba(255,255,255,.8); max-width: 520px; }

@keyframes am-ch-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.am-ch-animate { animation: am-ch-fade-up .7s ease both; }
.am-ch-animate--delay-1 { animation-delay: .12s; }
.am-ch-animate--delay-2 { animation-delay: .24s; }

@media (max-width: 991px) {
  .am-ch-about, .am-ch-culture { grid-template-columns: 1fr; }
  .am-ch-stats { grid-template-columns: 1fr; }
  .am-ch-hero { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-ch-animate, .am-benefit { animation: none; transition: none; }
}

