/* ============================================================================
   Account type cards ("Find your perfect savings account", .deel-account-types)
   Canonical component styles — moved out of personal-savings-v4.css so the
   account_type_cards flex layout renders identically on every template
   (pages, products). Enqueued globally by the account-type-cards-styles
   mu-plugin, mirroring related-articles.css.
   ========================================================================= */



/* ============================================================================
   .deel-account-types — "Find Your Perfect Savings Account" 4-up cards
   Ported from _campaign-landing-deel.scss. Used by the account_type_cards
   flex layout.
   ========================================================================= */

.deel-account-types {
  /* 60px top and bottom — matched to the section rhythm (client). */
  padding: 60px 0;
  background: #f3f5f7;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
}
.deel-account-types .content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.deel-account-types__header {
  text-align: center;
  margin-bottom: 24px;
}

.deel-account-types__title {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #041e41;
  margin: 0 0 12px;
  line-height: 1.15;
}

.deel-account-types__subtitle {
  font-size: 18px;
  color: rgba(4, 30, 65, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* Flex (not grid) so 1-3 cards centre within the section instead of
 * left-aligning with an empty 4th column; card widths match the former
 * 4-up grid, and 5-6 cards wrap centred. */
.deel-account-types__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.deel-account-types__grid > * {
  flex: 0 0 calc((100% - 72px) / 4);
  max-width: calc((100% - 72px) / 4);
}

.deel-account-type-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  color: #041e41;
  transition: transform 0.25s ease;
}
.deel-account-type-card:hover {
  transform: translateY(-2px);
}

.deel-account-type-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  margin-bottom: 20px;
}
.deel-account-type-card__icon svg { color: #f9b236; }

.deel-account-type-card__title {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #041e41;
  margin: 0 0 10px;
  line-height: 1.3;
}

.deel-account-type-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(4, 30, 65, 0.45);
  margin: 0 0 auto;
  padding-bottom: 20px;
}

.deel-account-type-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #28a7df;
  transition: color 0.15s ease;
}
.deel-account-type-card__link svg { transition: transform 0.2s ease; }
.deel-account-type-card:hover .deel-account-type-card__link { color: #041e41; }
.deel-account-type-card:hover .deel-account-type-card__link svg { transform: translateX(3px); }
@media (max-width: 960px) {
  .deel-account-types__grid > * {
    flex-basis: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
  /* Three cards on a 2-up row: the wrapped third card centred under the
     gap instead of sitting left, level with the first card (client). Left-
     align just the 3-card case; 1/2/4-card layouts keep centring. */
  .deel-account-types__grid:has(> .deel-account-type-card:nth-child(3):last-child) {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .deel-account-types { padding: 64px 0; }
  .deel-account-types__title { font-size: 28px; }
  .deel-account-types__grid > * {
    flex-basis: 100%;
    max-width: 100%;
  }
}
