/* ── CX Hub — Customer Service Hub styles ─────────────────────────── */

/* ── Shared layout container ─────────────────────────────────────── */
.cx-hub-landing,
.cx-hub-subpage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ── Hero (landing only) ──────────────────────────────────────────── */
.cx-hub__hero {
  margin-bottom: 40px;
  text-align: center;
}
.cx-hub__headline {
  color: #042E60;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.cx-hub__subheadline {
  color: #5A5A5A;
  font-size: 18px;
  max-width: 700px;
  line-height: 1.5;
  margin: 0 auto;
}

/* ── Sub-page title ──────────────────────────────────────────────── */
.cx-subpage__title {
  color: #042E60;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 36px;
  text-align: center;
}

/* ── Landing tile grid ───────────────────────────────────────────── */
.cx-hub__tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.cx-hub__tile-grid--centered {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

/* ── Landing tile card ───────────────────────────────────────────── */
.cx-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 5px;
  box-shadow: 4px 4px 20px #0000001A;
  padding: 35px 15px;
  text-decoration: none;
  color: #0A3152;
  font-weight: 700;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  min-height: 80px;
}
.cx-tile:hover {
  background: transparent linear-gradient(117deg, #FFFFFF 0%, #eefef9 100%) 0% 0% no-repeat padding-box;
  box-shadow: 4px 4px 20px #0000004D;
  border: 1px solid #3399E8;
  border-radius: 4px;
  text-decoration: none;
  color: #0A3152;
}
.cx-tile__icon {
  margin-bottom: 16px;
}
.cx-tile__icon svg,
.cx-tile__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.cx-tile__label {
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
}
.cx-tile--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.cx-tile .cx-card__desc {
  margin-top: -8px;
  font-weight: normal;
  width: 100%;
}
.cx-tile__coming-soon {
  display: inline-block;
  font-size: 0.75rem;
  color: #5A5A5A;
  font-style: italic;
  font-weight: normal;
  background: #CDD9E8;
  padding: 2px 8px;
  border-radius: 12px;
}
/* Center the last tile if it's the only one in its row (odd total number of tiles) */
.cx-hub__tile-grid .cx-tile:last-child:nth-child(odd) {
  grid-column: span 2;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}

/* — Sub-page card grid ———————————————————————————————— */
.cx-hub__card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* ── Sub-page card ───────────────────────────────────────────────── */
.cx-card {
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 5px;
  box-shadow: 4px 4px 20px #0000001A;
  overflow: hidden;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.cx-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px 15px;
  text-decoration: none;
  color: #0A3152;
  height: 100%;
  box-sizing: border-box;
}
a.cx-card__inner:hover {
  text-decoration: none;
}
.cx-card:hover {
  background: transparent linear-gradient(117deg, #FFFFFF 0%, #eefef9 100%) 0% 0% no-repeat padding-box;
  box-shadow: 4px 4px 20px #0000004D;
  border-color: #3399E8;
}
.cx-card--disabled {
  opacity: 0.55;
}
.cx-card--disabled .cx-card__inner {
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Card icon ───────────────────────────────────────────────────── */
.cx-card__icon {
  margin-bottom: 16px;
}
.cx-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ── Card text ───────────────────────────────────────────────────── */
.cx-card__title {
  display: block;
  color: #0A3152;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 24px;
}
.cx-card__desc {
  color: #5A5A5A;
  line-height: 1.5;
  margin: 0;
}
.cx-card__coming-soon {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #5A5A5A;
  font-style: italic;
}

/* ── Back button ─────────────────────────────────────────────────── */
.cx-hub__back-wrap {
  text-align: center;
  margin-top: 16px;
}
.cx-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #0A3152;
  color: #FFFFFF;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.cx-back-btn:hover {
  background: #3399E8;
  color: #FFFFFF;
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cx-hub__tile-grid,
  .cx-hub__card-grid {
    grid-template-columns: 1fr;
  }
  .cx-hub__tile-grid--centered {
    grid-template-columns: 1fr;
  }
  .cx-hub__tile-grid .cx-tile:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
  }
  .cx-hub__headline,
  .cx-subpage__title {
    font-size: 24px;
  }
  .cx-hub__subheadline {
    font-size: 16px;
  }
  .cx-tile__label,
  .cx-card__title {
    font-size: 20px;
  }
}
