/*!
 * ==============================================================
 * ELAHE EKBATANI® Enterprise Platform
 * Module    : Expertise (Horizontal Site Layout)
 * File      : expertise.css
 * Author    : Elahe Ekbatani
 * Copyright : © 2026 Elahe Ekbatani. All Rights Reserved.
 * ==============================================================
 */

.ez-compact-expertise,
.ez-compact-expertise * {
  box-sizing: border-box;
}

/* ۱. تنظیم اسلاید افقی */
.ez-compact-expertise {
  position: relative;
  flex: 0 0 auto !important;
  min-width: 1150px !important;
  width: auto !important;
  height: 100% !important;
  padding: 50px 40px !important;
  background: linear-gradient(145deg, #1f1b17 0%, #151210 100%);
  color: #f5ebe0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
}

/* ۲. ظرف اصلی - ستون چپ ۲۲۰px و مابقی برای کارت‌ها */
.ez-compact-expertise .ez-compact-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  gap: 30px !important;
  align-items: center !important;
}

/* ================= INTRO (سمت چپ) ================= */
.ez-compact-expertise .ez-compact-intro {
  position: relative;
  text-align: left !important;
  max-width: 220px !important;
}

.ez-compact-expertise .ez-compact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #c9a06a;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ez-compact-expertise .ez-compact-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: #c9a06a;
}

.ez-compact-expertise .ez-compact-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem !important;
  font-weight: 600;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
  color: #fff8f0;
}

.ez-compact-expertise .ez-compact-title span {
  display: block;
  color: transparent;
  background: linear-gradient(105deg, #e8d0a8 0%, #c9a06a 45%, #a67c4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ez-compact-expertise .ez-compact-description {
  margin: 12px 0 0 !important;
  color: #b8a99a;
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
}

/* ================= ROTATING EMBLEM ================= */

/* ================= EMBLEM (ستاره چرخشی - سایز کوچک) ================= */
.ez-compact-emblem {
  position: relative;
  width: 34px;
  height: 34px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  color: #efd4a0;
}

.ez-compact-emblem svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(239, 212, 160, 0.5));
  animation: ez-rotate 12s linear infinite;
}

/* قاب‌های چرخان اطراف ستاره */
.ez-compact-emblem::before,
.ez-compact-emblem::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(239, 212, 160, 0.35);
  border-radius: 3px;
}

.ez-compact-emblem::before {
  inset: -5px;
  animation: ez-rotate 10s linear infinite;
}

.ez-compact-emblem::after {
  inset: -11px;
  animation: ez-rotate-reverse 14s linear infinite;
  opacity: 0.45;
}

/* انیمیشن‌ها */
@keyframes ez-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ez-rotate-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* ================= GRID کارت‌ها (سمت راست) ================= */
.ez-compact-expertise .ez-compact-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

.ez-compact-expertise .ez-compact-card {
  position: relative;
  padding: 22px 20px !important;
  border-radius: 16px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.ez-compact-expertise .ez-compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

/* رنگ‌بندی تم لوکس کارت‌ها */
.ez-compact-expertise .ez-compact-card:nth-child(1) { background: linear-gradient(145deg, #5c6358, #4a5248); color: #f0ebe3; }
.ez-compact-expertise .ez-compact-card:nth-child(2) { background: linear-gradient(145deg, #f5efe6, #e9e0d4); color: #2c2923; }
.ez-compact-expertise .ez-compact-card:nth-child(3) { background: linear-gradient(145deg, #b86a4d, #9d4f38); color: #fff8f0; }
.ez-compact-expertise .ez-compact-card:nth-child(4) { background: linear-gradient(145deg, #e8d4b5, #d9c19a); color: #3a2f24; }
.ez-compact-expertise .ez-compact-card:nth-child(5) { background: linear-gradient(145deg, #5a6358, #484f46); color: #f0ebe3; }
.ez-compact-expertise .ez-compact-card:nth-child(6) { background: linear-gradient(145deg, #f4efe6, #e6ddd0); color: #2c2923; }

/* header & icons inside cards */
.ez-compact-expertise .ez-compact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ez-compact-expertise .ez-compact-num {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.75;
}

.ez-compact-expertise .ez-compact-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  flex-shrink: 0 !important;
}

.ez-compact-expertise .ez-compact-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block !important;
  stroke: currentColor;
  fill: none;
}

.ez-compact-expertise .ez-compact-card-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ez-compact-expertise .ez-compact-card-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.88;
}