:root {
  --ifz-ink: #101826;
  --ifz-muted: #6b7280;
  --ifz-primary: #4f46e5;
  --ifz-accent: #06b6d4;
  --ifz-gradient: linear-gradient(135deg, #0f3fd8 0%, #472283 55%, #0d7a97 100%);
}

html, body {
  color: var(--ifz-ink);
}

.bg-soft {
  background: var(--ifz-gradient);
  color: #f3f6ff;
}

.bg-soft p,
.bg-soft small,
.bg-soft .text-secondary {
  color: rgba(243, 246, 255, .88) !important;
}

.bg-soft .btn-outline-secondary {
  color: #f3f6ff;
  border-color: rgba(243, 246, 255, .4);
}

.bg-soft .btn-outline-secondary:hover {
  background: rgba(243, 246, 255, .15);
  border-color: rgba(243, 246, 255, .6);
  color: #fff;
}

.bg-soft .badge-chip {
  border-color: rgba(243, 246, 255, .35);
  background: rgba(243, 246, 255, .12);
  color: #fff;
}

.navbar .dropdown-toggle-split::after {
  margin-left: .15rem;
}

.card {
  border: 1px solid rgba(16, 24, 38, .08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 38, .05);
}

.badge-chip {
  border: 1px solid rgba(16, 24, 38, .12);
  border-radius: 999px;
  padding: .35rem .7rem;
}

.icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(120px 80px at 30% 20%, rgba(79, 70, 229, .12), rgba(6, 182, 212, .12));
  flex-shrink: 0;
}

/* Size variants if needed */
.icon-circle.sm { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: .95rem; }
.icon-circle.lg { width: 56px; height: 56px; min-width: 56px; min-height: 56px; font-size: 1.25rem; }

/* ===== Mega menu base ===== */
.dropdown-mega { position: static; }

.dropdown-mega .dropdown-menu {
  width: 100vw;
  left: 0;
  right: 0;
  margin-top: 0;
  border-radius: 0;
  border-top: 1px solid rgba(16, 24, 38, .08);
  border-bottom: 1px solid rgba(16, 24, 38, .08);
  box-shadow: none;
  background: #fff;
  padding: 1.25rem 0;
}

.dropdown-mega .menu-heading {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ifz-muted);
}

/* Hover-show on desktop */
@media (min-width: 992px) {
  .dropdown-mega:hover > .dropdown-menu {
    display: block;
  }
}

/* Cards (Resources & Solutions) */
.resource-card,
.solution-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 24, 38, .08);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}

.resource-card:hover,
.solution-card:hover {
  background: #f8faff;
  border-color: var(--ifz-primary);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 24, 38, .12);
}

.resource-card .icon-circle,
.solution-card .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(120px 80px at 30% 20%, rgba(79, 70, 229, .12), rgba(6, 182, 212, .12));
  font-size: 1.25rem;
  flex-shrink: 0;
}

.resource-content, .solution-content { flex: 1; }

.resource-title, .solution-title {
  font-weight: 600;
  color: var(--ifz-ink);
  margin-bottom: .25rem;
  font-size: .95rem;
}

.resource-description, .solution-description {
  color: var(--ifz-muted);
  font-size: .85rem;
  line-height: 1.3;
}

.platform-sublist {
  margin-top: .75rem;
  padding: .75rem 1rem .75rem 1.2rem;
  border: 1px solid rgba(16, 24, 38, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 24, 38, .08);
  list-style-type: disc;
  list-style-position: outside;
}

.platform-sublist li {
  margin-bottom: .35rem;
}

.platform-sublist li:last-child {
  margin-bottom: 0;
}

/* ===== Role rail (chips under mega) ===== */
.role-chip {
  border: 1px solid rgba(16, 24, 38, .08);
  border-radius: 12px;
  transition: all .2s ease;
}
.role-chip:hover {
  background: #f8faff;
  border-color: var(--ifz-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 24, 38, .1);
}

.xsmall { font-size: .8rem; }

/* Smooth horizontal rail scroll */
.d-flex.flex-nowrap.overflow-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.d-flex.flex-nowrap.overflow-auto::-webkit-scrollbar {
  height: 6px;
}
.d-flex.flex-nowrap.overflow-auto::-webkit-scrollbar-thumb {
  background: rgba(16,24,38,.2);
  border-radius: 999px;
}

/* ===== Accessibility: focus rings ===== */
a:focus-visible, button:focus-visible, .btn:focus-visible, .list-group-item:focus-visible {
  outline: 3px solid rgba(79,70,229,.45);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
  border-radius: 8px;
}

/* ===== Mobile offcanvas & accordions ===== */
.offcanvas .list-group-item.disabled {
  color: var(--ifz-muted);
  background: transparent;
  opacity: 1;
  font-weight: 600;
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.offcanvas .list-group-item {
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.offcanvas .accordion-button {
  border-radius: 10px;
}
.offcanvas .accordion-button:not(.collapsed) {
  background: #f8faff;
  color: var(--ifz-ink);
  box-shadow: inset 0 -1px 0 rgba(16,24,38,.06);
}
.offcanvas .accordion-body .list-group-item-action:hover {
  background: #f8faff;
  border-radius: 8px;
}

/* ===== Desktop-only list hover (if any lists used in mega) ===== */
.dropdown-mega .list-unstyled > li > a {
  display: flex;
  gap: .6rem;
  padding: .4rem .25rem;
  border-radius: .5rem;
  color: inherit;
  text-decoration: none;
}
.dropdown-mega .list-unstyled > li > a:hover { background: #f5f7ff; }

/* ===== Hero illustration (unchanged) ===== */
.hero-illustration {
  min-height: 280px;
  background:
    radial-gradient(1200px 400px at 0% 0%, rgba(79, 70, 229, .08), transparent),
    radial-gradient(800px 300px at 100% 100%, rgba(6, 182, 212, .08), transparent),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 60%);
  border-radius: 16px;
  border: 1px solid rgba(79, 70, 229, .12);
  box-shadow: 0 20px 60px rgba(16, 24, 38, .08);
}

.hero-illustration .text-secondary {
    color: black !important;
}

.card .text-secondary{
    color: black !important;
}
/* ===== Breadcrumb ====== */
.breadcrumb-item.active {
    color: #d1e7fc !important;
}
.breadcrumb-item a{
    color: #77abf8 !important;
}
/* ===== Desktop hover open + keep open when moving cursor ===== */
@media (min-width: 992px) {
  .dropdown-mega > .d-flex > .dropdown-toggle::after { vertical-align: .2em; }
  .dropdown-mega .dropdown-menu {
    display: none;
  }
  .dropdown-mega.show .dropdown-menu,
  .dropdown-mega:hover .dropdown-menu {
    display: block;
  }
}

/* ===== Prevent dropdown overflow cut-off inside container ===== */
@media (min-width: 992px) {
  .navbar .dropdown-menu.start-0.end-0 { left: 0 !important; right: 0 !important; }
}
