/* ==========================================================================
   خدمات — صفحه‌ی فهرست و صفحه‌ی اختصاصی هر خدمت.
   از توکن‌های رنگی سراسری سایت استفاده می‌کند (--color-accent و ...)
   که در header.php تعریف شده‌اند، پس رنگ‌بندی کاملاً هماهنگ با بقیه‌ی سایت است.
   ========================================================================== */

.aref-services-page,
.aref-service-single{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: var(--font-main, 'Vazirmatn', Tahoma, sans-serif);
  direction: rtl;
}

/* ---------- فهرست خدمات ---------- */
.aref-services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.aref-service-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg, #fff);
  border: 1.5px solid var(--color-border, #ece5df);
  border-radius: var(--radius-lg, 22px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease;
}
.aref-service-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(230,103,44,.18);
  border-color: var(--color-accent, #e6672c);
}
.aref-service-card__img{
  height: 170px;
  background-size: cover;
  background-position: center;
}
.aref-service-card__body{ padding: 18px 20px 22px; }
.aref-service-card__body h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text, #241f1c);
}
.aref-service-card__body p{
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--color-text-soft, #4a423c);
}
.aref-service-card__tag{
  display: inline-block;
  background: var(--color-pill-bg, #fbe3d3);
  color: var(--color-accent, #e6672c);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.aref-services-empty{ text-align:center; color: var(--color-text-soft,#4a423c); padding: 60px 0; }

/* ---------- صفحه‌ی اختصاصی هر خدمت ---------- */
.aref-svc-banner{
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg, 22px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 30px;
}
.aref-svc-banner__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,17,14,.78) 0%, rgba(20,17,14,.15) 65%);
}
.aref-svc-banner__title{
  position: relative; z-index: 1;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  padding: 28px 32px;
}
.aref-svc-banner .home-btn{
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.aref-svc-banner .home-btn:hover{ transform: translateY(-3px) scale(1.05); }
.aref-svc-banner .home-btn svg{ width: 20px; height: 20px; stroke: var(--color-text,#241f1c); }

.aref-svc-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.aref-svc-box{
  background: var(--color-bg, #fff);
  border: 1.5px solid var(--color-border, #ece5df);
  border-radius: var(--radius-lg, 22px);
  padding: 24px 26px;
}
.aref-svc-box h3{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent, #e6672c);
}
.aref-svc-box p{
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text, #241f1c);
}
.aref-svc-box__full{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border, #ece5df);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--color-text-soft, #4a423c);
}
.aref-svc-box--desc{ grid-column: 1 / -1; }

.aref-svc-teachers{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aref-svc-teachers li{ font-size: 14px; }
.aref-svc-teachers a{ text-decoration: none; color: var(--color-text, #241f1c); }
.aref-svc-teachers a:hover strong{ color: var(--color-accent, #e6672c); }
.aref-svc-teachers span{ color: var(--color-text-soft, #4a423c); }

.aref-svc-cta{ text-align: center; padding: 10px 0 50px; }
.aref-svc-cta__btn{
  display: inline-block;
  background: var(--color-accent, #e6672c);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 16px 44px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(230,103,44,.3);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.aref-svc-cta__btn:hover{ transform: translateY(-3px); box-shadow: 0 16px 32px rgba(230,103,44,.4); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 992px){
  .aref-services-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
  .aref-services-grid{ grid-template-columns: 1fr; }
  .aref-svc-grid{ grid-template-columns: 1fr; }
  .aref-svc-banner{ height: 210px; }
  .aref-svc-banner__title{ font-size: 22px; padding: 20px; }
  .aref-service-card__img{ height: 150px; }
}
@media (max-width: 480px){
  .aref-services-page, .aref-service-single{ padding: 14px; }
  .aref-svc-box{ padding: 18px 18px; }
  .aref-svc-cta__btn{ width: 100%; text-align: center; padding: 15px 20px; }
}



/* ==========================================================================

/* ==========================================================================
   «مسیر آموزشی» — صفحه‌ی آموزش
   بدون باکس/پس‌زمینه‌ی جدا؛ مستقیم روی زمینه‌ی صفحه می‌نشیند. نشان‌های
   مربعی‌گرد با آیکون اختصاصی هر مرحله، خط نقطه‌چین اتصال، هاور نارنجی
   برای مراحل میانی و هاور سبز مخصوص «دریافت گواهینامه».
   ========================================================================== */
.aref-roadmap{
  margin: 30px 0 46px;
}
.aref-roadmap__head{ text-align: center; margin-bottom: 34px; }
.aref-roadmap__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--color-accent, #e6672c);
  background: var(--color-pill-bg, #fbe3d3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.aref-roadmap__head h3{ margin: 0; font-size: 20px; font-weight: 800; color: var(--color-text, #241f1c); }

.aref-roadmap__track{
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-soft, #f2b48f) transparent;
}
.aref-roadmap__track::-webkit-scrollbar{ height: 5px; }
.aref-roadmap__track::-webkit-scrollbar-thumb{ background: var(--color-accent-soft, #f2b48f); border-radius: 999px; }
.aref-roadmap__arrow{ display: none; }

.aref-roadmap__step{
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 128px;
  padding-top: 4px;
}
/* خط نقطه‌چین اتصال، پشت نشان‌ها، بین هر دو مرحله */
.aref-roadmap__step:not(:last-child)::before{
  content: '';
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 0;
  border-top: 2px dashed var(--color-border, #ece5df);
  z-index: 0;
}

.aref-roadmap__icon{
  position: relative;
  z-index: 1;
  width: 78px; height: 78px;
  border-radius: 20px;
  background: var(--color-pill-bg, #fbe3d3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, box-shadow .3s ease;
}
.aref-roadmap__icon svg{ width: 26px; height: 26px; stroke: var(--color-accent, #e6672c); transition: stroke .3s ease; }

.aref-roadmap__step:hover .aref-roadmap__icon{
  transform: translateY(-7px) rotate(-5deg) scale(1.06);
  background: var(--color-accent, #e6672c);
  box-shadow: 0 16px 28px rgba(230,103,44,.35);
}
.aref-roadmap__step:hover .aref-roadmap__icon svg{ stroke: #fff; }

/* مرحله‌ی آخر: پیش‌فرض نارنجی پررنگ، ولی روی هاور سبز می‌شود (نشانه‌ی
   «تکمیل موفق مسیر») */
.aref-roadmap__step--final .aref-roadmap__icon{
  background: linear-gradient(155deg, var(--color-accent, #e6672c), #c9531f);
}
.aref-roadmap__step--final .aref-roadmap__icon svg{ stroke: #fff; }
.aref-roadmap__step--final:hover .aref-roadmap__icon{
  background: linear-gradient(155deg, #2fa866, #1f7a4b);
  box-shadow: 0 16px 28px rgba(47,168,102,.4);
  transform: translateY(-7px) scale(1.08);
}
.aref-roadmap__step--final:hover .aref-roadmap__label{ color: #1f7a4b; }

.aref-roadmap__label{
  position: relative; z-index: 1;
  font-size: 13px; font-weight: 700;
  line-height: 1.5;
  color: var(--color-text, #241f1c);
  transition: color .3s ease;
}
.aref-roadmap__step:hover .aref-roadmap__label{ color: var(--color-accent, #e6672c); }

@media (min-width: 900px){
  .aref-roadmap__track{ overflow-x: visible; justify-content: center; gap: 4px; }
  .aref-roadmap__step{ width: 150px; }
}
@media (max-width: 480px){
  .aref-roadmap__head h3{ font-size: 16px; }
  .aref-roadmap__icon{ width: 54px; height: 54px; border-radius: 16px; }
  .aref-roadmap__icon svg{ width: 22px; height: 22px; }
  .aref-roadmap__step{ width: 104px; }
}

/* ---------- دسته‌بندی‌های آموزش ---------- */
.aref-edu-category{ margin: 56px 0 44px; }

/* عنوان هر دسته — الهام از یه کارت Uiverse (نئومورفیسم + گلس‌مورفیسم +
   یه نور محو نارنجی که پشت شیشه می‌چرخه)، با رنگ خودمون. روی هاور، نور
   پررنگ‌تر و کل باکس کمی بالا میاد. */
.aref-edu-category__title{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-text, #241f1c);
  margin: 0 0 22px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 9px 9px 20px rgba(190,178,166,.45), -9px -9px 20px rgba(255,255,255,.95);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.aref-edu-category__title:hover{
  transform: translateY(-3px);
  box-shadow: 11px 11px 24px rgba(190,178,166,.5), -11px -11px 24px rgba(255,255,255,1);
}
/* نور محوِ متحرک (blob) */
.aref-edu-category__title::before{
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%; left: 28%;
  width: 78px; height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: var(--color-accent, #e6672c);
  opacity: .6;
  filter: blur(10px);
  animation: arefTitleBlob 3.5s infinite ease;
  transition: opacity .4s ease;
}
.aref-edu-category__title:hover::before{ opacity: .9; }
/* لایه‌ی شیشه‌ای روی نور، برای افکت گلس‌مورفیسم */
.aref-edu-category__title::after{
  content: '';
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  outline: 1.5px solid rgba(255,255,255,.9);
}
@keyframes arefTitleBlob{
  0%   { transform: translate3d(0,0,0); }
  25%  { transform: translate3d(26px,-6px,0); }
  50%  { transform: translate3d(46px,4px,0); }
  75%  { transform: translate3d(14px,10px,0); }
  100% { transform: translate3d(0,0,0); }
}
@media (prefers-reduced-motion: reduce){
  .aref-edu-category__title::before{ animation: none; }
}

/* کارت‌های آموزش — کارت سه‌بعدی که با هاور می‌چرخد: جلو = عکس و عنوان،
   پشت = توضیح کوتاه و دعوت به مشاهده. الهام از یه کارت Uiverse. */
.aref-flip-card{
  display: block;
  text-decoration: none;
  color: inherit;
  height: 230px;
  perspective: 1200px;
}
.aref-flip-card__inner{
  position: relative;
  width: 100%; height: 100%;
  transition: transform .8s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.aref-flip-card:hover .aref-flip-card__inner{ transform: rotateY(180deg); }

.aref-flip-card__front,
.aref-flip-card__back{
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg, 22px);
  overflow: hidden;
}
.aref-flip-card__front{
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  border: 1.5px solid var(--color-border, #ece5df);
}
.aref-flip-card__front-shade{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,17,14,.82) 0%, rgba(20,17,14,.1) 62%, transparent 100%);
}
.aref-flip-card__title{
  position: relative; z-index: 1;
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.aref-flip-card__tag{ position: relative; z-index: 1; width: fit-content; }

.aref-flip-card__back{
  transform: rotateY(180deg);
  background: linear-gradient(155deg, var(--color-accent, #e6672c), #c9531f);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 26px 24px;
}
.aref-flip-card__back p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(255,255,255,.94);
}
.aref-flip-card__cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.18);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background-color .3s ease, gap .3s ease;
}
.aref-flip-card:hover .aref-flip-card__cta{ gap: 10px; background: rgba(255,255,255,.28); }

@media (max-width: 700px){
  .aref-flip-card{ height: 200px; }
}

/* ==========================================================================
   کارت‌های صفحه‌ی «خدمات» — کارت سه‌بعدی با چرخش دو-محوره (rotate +
   rotateX با هم)، الهام از یه کارت Uiverse؛ جلو روشن با عکس، پشت ذغالی‌رنگ
   با توضیح و دعوت به مشاهده.
   ========================================================================== */
.aref-svc-flip{
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 240px;
  perspective: 1100px;
}
.aref-svc-flip__inner{
  position: relative;
  width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(.61,.98,.48,1.01);
  transform-style: preserve-3d;
}
.aref-svc-flip:hover .aref-svc-flip__inner{
  transform: rotate(180deg) rotateX(180deg);
}
.aref-svc-flip__front,
.aref-svc-flip__back{
  position: absolute; inset: 0;
  box-shadow: 0 10px 26px rgba(36,31,28,.16);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg, 22px);
  overflow: hidden;
}
.aref-svc-flip__front{
  background-color: #fff;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
}
.aref-svc-flip__shade{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,17,14,.82) 0%, rgba(20,17,14,.1) 62%, transparent 100%);
}
.aref-svc-flip__title{
  position: relative; z-index: 1;
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.aref-svc-flip__tag{ position: relative; z-index: 1; width: fit-content; }

.aref-svc-flip__back{
  transform: rotateY(180deg);
  background: #201d1a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 26px 24px;
}
.aref-svc-flip__back p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(255,255,255,.85);
}
.aref-svc-flip__cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent, #e6672c);
  padding: 9px 18px;
  border-radius: 999px;
  transition: gap .3s ease, background-color .3s ease;
}
.aref-svc-flip:hover .aref-svc-flip__cta{ gap: 10px; background: var(--color-accent-soft, #f2b48f); }

@media (max-width: 700px){
  .aref-svc-flip{ height: 210px; }
}

