/* =========================================================
   Profile Hero
   ========================================================= */

.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;

  max-width: 1000px;
  margin: 20px auto 20px;
}

.profile-image {
  width: 200px;
  height: 200px;

  object-fit: cover;

  border-radius: 50%;
  border: 3px solid var(--gold);

  flex-shrink: 0;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.03);

  box-shadow: 0 10px 28px rgba(200, 169, 106, 0.25);
}

.profile-summary {
  flex: 1;
  max-width: 700px;
}

.profile-summary h2 {
  margin-bottom: 6px;
}

.profile-role {
  color: var(--gold);
  font-weight: 600;

  margin-bottom: 12px;
}

.profile-closing {
  margin-top: 20px;
  margin-bottom: 0px;
}

.profile-section-heading {
  margin-bottom: 14px;

  color: var(--text-dark);
  font-size: 1.6rem;
  font-weight: 700;
}

/* =========================================================
   Profile Facts
   ========================================================= */

.profile-facts {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;

  max-width: 1000px;

  margin: 12px auto 18px;
}

.profile-fact {
  text-align: center;

  padding: 18px;

  border: 1px solid rgba(200, 169, 106, 0.25);

  border-radius: 12px;

  background: #fff;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.profile-fact:hover {
  transform: translateY(-4px);

  border-color: rgba(200, 169, 106, 0.5);

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-fact-number {
  display: block;

  font-size: 1.9rem;

  font-weight: 700;

  color: var(--gold);

  margin-bottom: 6px;
}

.profile-fact-label {
  color: #555;
}

/* =========================================================
   Career Section
   ========================================================= */

.career-section {
  margin-top: 12px;
}

.career-timeline {
  max-width: 1000px;

  margin: 14px auto 0;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;
}

.career-item {
  padding: 18px 20px;

  border: 1px solid rgba(200, 169, 106, 0.25);
  border-left: 4px solid var(--gold);

  border-radius: 12px;

  background: #fff;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.career-item:hover {
  transform: translateY(-3px);

  border-color: rgba(200, 169, 106, 0.5);

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.career-item h3 {
  margin-bottom: 6px;

  text-align: left;
}

.career-item p {
  margin-bottom: 4px;

  font-weight: 600;
}

.career-item span {
  color: #666;
}

.career-description {
  margin-top: 8px;

  color: #555;

  font-size: 0.95rem;

  line-height: 1.5;
}

/* =========================================================
   RTL
   ========================================================= */

[dir="rtl"] .career-item {
  text-align: center;
  border-left: none;
  border-right: 4px solid var(--gold);
}

[dir="rtl"] .career-item h3 {
  text-align: center;
}

[dir="rtl"] .career-item p {
  text-align: center;
}

[dir="rtl"] .career-item span {
  display: block;
  text-align: center;
}

[dir="rtl"] .career-section h2 {
  text-align: center;
}

[dir="rtl"] .career-description {
  text-align: center;
}

[dir="rtl"] .profile-section-heading {
  text-align: center;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {
  .profile-hero {
    flex-direction: column;

    text-align: center;

    gap: 20px;

    margin: 16px auto 18px;
  }

  .profile-image {
    width: 170px;
    height: 170px;
  }

  .profile-facts {
    grid-template-columns: repeat(2, 1fr);

    margin: 12px auto 16px;
  }

  .career-section {
    margin-top: 10px;
  }

  .career-timeline {
    grid-template-columns: 1fr;

    gap: 14px;

    margin-top: 12px;
  }
}
