/* AICPA & CIMA Original Profile Dashboard Styles
   Matches original site profile layout (media_1788609438365.png) */

.profile-page {
  background: #ffffff;
  min-height: calc(100vh - 280px);
}

.profile-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Engage365 Top Bar */
.profile-engage-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 20px;
  margin-bottom: 2rem;
  gap: 20px;
}

.profile-engage-bar__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #e2e8f0;
  padding-right: 20px;
}

.profile-engage-bar__brand {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #72246c;
}

.profile-engage-bar__arrow {
  color: #72246c;
}

.profile-engage-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #282937;
  text-decoration: none;
  font-weight: 400;
}

.profile-engage-bar__link:hover {
  color: #72246c;
}

.profile-engage-bar__link svg {
  fill: #5c5c66;
}

/* Header: Title and user name */
.profile-header {
  margin-bottom: 2rem;
}

.profile-header__title {
  font-size: 2.25rem;
  font-weight: 300;
  color: #282937;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.profile-header__name {
  font-size: 1.25rem;
  font-weight: 300;
  color: #555555;
  margin: 0;
  line-height: 1.4;
}

/* Grid of 6 cards (3 columns) */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  box-sizing: border-box;
}

.profile-card--wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .profile-card--wide {
    grid-column: span 1;
  }
}

.profile-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.profile-card__icon {
  width: 1.375rem;
  height: 1.375rem;
  fill: #72246c;
  flex: 0 0 auto;
}

.profile-card__title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #282937;
  margin: 0;
  line-height: 1.3;
}

.profile-card__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

@media (max-width: 500px) {
  .profile-card__columns {
    grid-template-columns: 1fr;
  }
}

.profile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-links li {
  margin-bottom: 0.75rem;
}

.profile-links a {
  color: #72246c;
  text-decoration: underline;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.profile-links a:hover {
  color: #0091bd;
  text-decoration: none;
}

.profile-card__body {
  flex: 1;
}

/* Divider & bottom assurance / info rows */
.profile-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0 2rem;
}

.profile-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1rem;
}

.profile-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.profile-info-row__icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.profile-info-row__icon svg {
  display: block;
}

.profile-info-row__content h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 3px;
  line-height: 1.3;
}

.profile-info-row__content p {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #5c5c66;
  margin: 0;
  max-width: 68rem;
}

.profile-inline-link {
  color: #72246c;
  text-decoration: underline;
}

.profile-inline-link:hover {
  color: #0091bd;
}
