/* =================================================================
   roles-block.css — Bluworks v2
   ================================================================= */

/* ── Section Background ─────────────────────────────────────────── */
.roles-section {
  background: #F4F7FF;
  border-top: 1px solid #E4E8F3;
  border-bottom: 1px solid #E4E8F3;
  padding: clamp(64px, 8vw, 96px) 0;
}

.roles-section .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Head ───────────────────────────────────────────────── */
.roles-section .section-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 48px;
}

.roles-section .section-head h2 {
  font-family: 'Neue Haas Grotesk Display';
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #0A0F1E;
  margin: 0 auto;
}

html[dir="rtl"] .roles-section .section-head h2 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  letter-spacing: 0;
  line-height: 1.25;
}

.roles-section .section-head p {
  font-size: 18px;
  color: #6B7088;
  margin: 16px auto 0;
  line-height: 1.55;
  font-weight: 300;
}

/* ── Neutral Role Cards Grid ────────────────────────────────────── */
.role-cards-neutral {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* ── Individual Card ────────────────────────────────────────────── */
.role-cards-neutral .role-card {
  background: #FFFFFF;
  border: 1px solid #E4E8F3;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0A0F1E;
  cursor: default;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.role-cards-neutral .role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.07);
  border-color: #4895FF;
}

/* ── Card Header (Icon + Tag) ───────────────────────────────────── */
.role-cards-neutral .role-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-cards-neutral .role-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EEF2FF;
  color: #1E50E5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.role-cards-neutral .role-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.role-cards-neutral .role-card-tag {
  color: #1E50E5;
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;   /* was 0.10em — freed up room so labels like
                                "OPERATIONS MANAGERS" fit on one line */
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

html[dir="rtl"] .role-cards-neutral .role-card-tag {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Card Typography ────────────────────────────────────────────── */
.role-cards-neutral .role-card-title {
  color: #0A0F1E;
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

html[dir="rtl"] .role-cards-neutral .role-card-title {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  letter-spacing: 0;
  line-height: 1.3;
}

.role-cards-neutral .role-card-desc {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  color: #4B5068;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .role-cards-neutral {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .roles-section {
    padding: 48px 0;
  }
  .role-cards-neutral {
    grid-template-columns: 1fr;
  }
  .roles-section .section-head h2 {

    max-width: 300px;
}
}

@media (prefers-reduced-motion: reduce) {
  .role-cards-neutral .role-card {
    transition: none !important;
  }
  .role-cards-neutral .role-card:hover {
    transform: none !important;
  }
}

/* ── Editor Canvas Fixes ────────────────────────────────────────── */
.editor-styles-wrapper .roles-section,
.acf-block-preview .roles-section {
  padding: 48px 0;
}
/* ── Arabic RTL font override (auto) ────────────────────────────── */
html[dir="rtl"] .role-cards-neutral .role-card-desc {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif !important;
}