/* ============================================================
   ARIO — 13 HOME PRO
   New pro sections: Hero CTAs · Stats · Courses · Why · 
   Meanings · Testimonials · FAQ
   ============================================================ */

/* ---------- Hero: layout fixes ---------- */
@media (min-width: 861px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 3.5rem;
  }
  .hero-content { max-width: 580px; }
  .hero-visual .code-card {
    width: 100%;
    max-width: 640px;
    position: relative;
  }
}

/* ---------- Hero CTAs ---------- */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
}
.hero-cta-primary { gap: .55rem !important; }
.hero-cta-primary svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-cta-ghost {
  gap: .55rem !important;
  background: rgba(255, 255, 255, .9);
  color: var(--blue-700);
  border: 1.5px solid rgba(59, 130, 246, .3);
  backdrop-filter: blur(8px);
}
.hero-cta-ghost svg { width: 16px; height: 16px; transition: transform .3s; flex-shrink: 0; }
.hero-cta-ghost:hover svg { transform: translateX(-4px); }

/* ---------- Hero Trust ---------- */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1rem;
  background: rgba(255, 255, 255, .75);
  border: 1.5px solid rgba(59, 130, 246, .18);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, .1);
  backdrop-filter: blur(10px);
  max-width: 100%;
}
.hero-trust-avatars {
  display: flex;
  flex-shrink: 0;
  direction: ltr;   /* ✅ تا ARIO از چپ به راست چیده بشه */
}
.hero-trust-avatars span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: .82rem;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
  margin-inline-start: -10px;
  position: relative;
}
.hero-trust-avatars span:first-child { margin-inline-start: 0; }
.hero-trust-avatars span:nth-child(1) { background: linear-gradient(135deg, #3b82f6, #1d4ed8); z-index: 4; }
.hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #ec4899, #be185d); z-index: 3; }
.hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #f59e0b, #d97706); z-index: 2; }
.hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, #10b981, #059669); z-index: 1; }
.hero-trust-text {
  font-size: .85rem;
  color: var(--text-soft);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}
.hero-trust-text b {
  font-weight: 900;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Home Stats (4) ---------- */
.home-stats { padding: 1rem 0 4rem; }
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin-inline: auto;
}
.home-stat {
  position: relative;
  padding: 1.8rem 1rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid rgba(59, 130, 246, .18);
  box-shadow: 0 10px 30px rgba(59, 130, 246, .08), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.home-stat::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(59, 130, 246, .06) 90deg, transparent 180deg, rgba(168, 85, 247, .06) 270deg, transparent 360deg);
  animation: ringSpin 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.home-stat > * { position: relative; z-index: 1; }
.home-stat:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, .4);
  box-shadow: 0 22px 50px rgba(59, 130, 246, .18), 0 0 0 3px rgba(59, 130, 246, .06), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.home-stat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto .9rem;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1.5px solid rgba(59, 130, 246, .18);
  box-shadow: 0 6px 16px rgba(59, 130, 246, .12);
  animation: statIconFloat 4s ease-in-out infinite;
}
.home-stat-icon svg { width: 26px; height: 26px; display: block; filter: drop-shadow(0 2px 6px rgba(59, 130, 246, .25)); }
.home-stat:nth-child(2) .home-stat-icon { animation-delay: -1s; }
.home-stat:nth-child(3) .home-stat-icon { animation-delay: -2s; }
.home-stat:nth-child(4) .home-stat-icon { animation-delay: -3s; }
.home-stat:hover .home-stat-icon { transform: scale(1.1) rotate(-6deg); }
.home-stat-num {
  font-family: var(--font-fa);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .35rem;
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 40%, #ec4899 70%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: statNumShine 5s linear infinite;
}
.home-stat-lbl { font-size: .85rem; font-weight: 800; color: var(--text-soft); }

/* ---------- Home Courses ---------- */
.home-courses { padding: 4rem 2rem 4rem; scroll-margin-top: 100px; }
.home-courses .section-head { max-width: 720px; margin-inline: auto; margin-bottom: 3rem; }
.home-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  max-width: 1280px;
  margin-inline: auto;
}
.home-courses-more { text-align: center; margin-top: 2.5rem; }
.home-courses-more .btn { gap: .55rem; }

/* ---------- Why Ario ---------- */
.why-section { padding: 4rem 2rem 5rem; scroll-margin-top: 100px; position: relative; }
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(96, 165, 250, .06), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 70%, rgba(244, 114, 182, .06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.why-section > * { position: relative; z-index: 1; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  max-width: 1180px;
  margin-inline: auto;
}
.why-card {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, .04), rgba(168, 85, 247, .03) 50%, rgba(244, 114, 182, .04));
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.why-card > * { position: relative; z-index: 1; }
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 22px 55px rgba(96, 165, 250, .15), 0 0 0 3px rgba(59, 130, 246, .06);
}
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
  color: #fff;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.why-icon svg { width: 26px; height: 26px; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .2)); }
.why-card:hover .why-icon { transform: scale(1.1) rotate(-6deg); }
.why-icon-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 12px 26px rgba(59, 130, 246, .32); }
.why-icon-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 12px 26px rgba(139, 92, 246, .32); }
.why-icon-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 12px 26px rgba(245, 158, 11, .32); }
.why-icon-green  { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 12px 26px rgba(16, 185, 129, .32); }
.why-icon-cyan   { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 12px 26px rgba(6, 182, 212, .32); }
.why-icon-pink   { background: linear-gradient(135deg, #ec4899, #be185d); box-shadow: 0 12px 26px rgba(236, 72, 153, .32); }
.why-title {
  font-family: var(--font-fa);
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 .55rem;
  letter-spacing: -.01em;
}
.why-desc { font-size: .9rem; line-height: 1.9; color: #475569; font-weight: 500; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-section { padding: 4rem 2rem 5rem; scroll-margin-top: 100px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 1180px;
  margin-inline: auto;
}
.testimonial-card {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
  isolation: isolate;
}
.testimonial-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 16px;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(59, 130, 246, .08);
  pointer-events: none;
  z-index: 0;
  font-weight: 900;
}
.testimonial-card > * { position: relative; z-index: 1; }
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 22px 55px rgba(96, 165, 250, .15), 0 0 0 3px rgba(59, 130, 246, .06);
}
.testimonial-stars {
  font-family: var(--font-en);
  font-size: 1.05rem;
  letter-spacing: .15em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, .35));
}
.testimonial-text {
  font-size: .92rem;
  line-height: 2;
  color: #334155;
  font-weight: 500;
  margin: 0 0 1.5rem;
  min-height: 5.5em;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(59, 130, 246, .2);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-fa);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .15);
  position: relative;
  overflow: hidden;
}
.testimonial-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .3), transparent 55%);
}
.testimonial-avatar-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 6px 16px rgba(59, 130, 246, .35); }
.testimonial-avatar-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 16px rgba(139, 92, 246, .35); }
.testimonial-avatar-pink   { background: linear-gradient(135deg, #ec4899, #be185d); box-shadow: 0 6px 16px rgba(236, 72, 153, .35); }
.testimonial-name { font-family: var(--font-fa); font-size: .95rem; font-weight: 900; color: var(--ink-900); margin-bottom: .15rem; }
.testimonial-role { font-size: .78rem; font-weight: 700; color: var(--text-soft); }

/* ✅ حالت خالی testimonials */
.testimonial-empty {
  max-width: 640px;
  margin-inline: auto;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 60% at 20% 20%, rgba(96, 165, 250, .06), transparent 65%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(244, 114, 182, .06), transparent 65%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px dashed rgba(59, 130, 246, .3);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .06);
}
.testimonial-empty-icon {
  font-size: 3rem;
  margin-bottom: .8rem;
  display: inline-block;
  animation: badgeFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(59, 130, 246, .3));
}
.testimonial-empty-title {
  font-family: var(--font-fa);
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 .6rem;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.01em;
}
.testimonial-empty-text {
  font-size: .92rem;
  line-height: 1.95;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0;
}
.testimonial-empty-text a {
  color: var(--blue-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.testimonial-empty-text a:hover { color: var(--blue-700); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-cta-primary,
  .hero-cta-ghost { justify-content: center; }

  .hero-trust { max-width: 100%; padding: .65rem .85rem; gap: .7rem; }
  .hero-trust-avatars span { width: 26px; height: 26px; font-size: .72rem; }
  .hero-trust-text { font-size: .78rem; }

  .home-stats { padding: .5rem 0 2.5rem; }
  .home-stats-grid { gap: .7rem; }
  .home-stat { padding: 1.3rem .7rem 1.1rem; border-radius: var(--radius); }
  .home-stat-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: .65rem; }
  .home-stat-icon svg { width: 22px; height: 22px; }
  .home-stat-num { font-size: 1.25rem; }
  .home-stat-lbl { font-size: .72rem; }

  .home-courses { padding: 3rem 1rem 3rem; }
  .home-courses-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .why-section { padding: 3rem 1rem 3rem; }
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }
  .why-card { padding: 1.6rem 1.3rem 1.5rem; }
  .why-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem; }
  .why-icon svg { width: 22px; height: 22px; }

  .testimonial-section { padding: 3rem 1rem 3rem; }
  .testimonial-card { padding: 1.6rem 1.3rem 1.4rem; }
  .testimonial-text { font-size: .88rem; min-height: auto; }
  .testimonial-card::before { font-size: 6rem; top: -10px; left: 12px; }

  .testimonial-empty { padding: 2.2rem 1.4rem; }
  .testimonial-empty-icon { font-size: 2.4rem; }
  .testimonial-empty-title { font-size: 1.05rem; }
  .testimonial-empty-text { font-size: .86rem; }
}

