/*--------------------------------------------------------------
# Solutions Mega Menu (.tp-mega-*)
--------------------------------------------------------------*/

/* Toggle button */
.tp-mega-toggle {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--nav-font);
  color: var(--nav-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}
.tp-mega-toggle i {
  font-size: 11px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-mega-parent:hover .tp-mega-toggle,
.tp-mega-parent.tp-open .tp-mega-toggle,
.tp-mega-parent.tp-nav-active .tp-mega-toggle {
  color: var(--nav-hover-color);
  background: color-mix(in srgb, var(--primary), transparent 92%);
}
.tp-mega-parent.tp-open .tp-mega-toggle i {
  transform: rotate(180deg);
}

/* Desktop panel */
@media (min-width: 1200px) {
  .tp-mega-parent { position: relative; }

  .tp-mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 620px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(15, 23, 42, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.22s;
    z-index: 9999;
    overflow: hidden;
  }
  .tp-mega-parent:hover .tp-mega-menu,
  .tp-mega-parent.tp-open .tp-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* Two-column body */
.tp-mega-body {
  display: flex;
}

/* Left sidebar */
.tp-mega-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0a1e38 0%, #0F4C81 60%, #0a6e6e 100%);
  display: flex;
  align-items: stretch;
}
.tp-mega-sidebar-inner {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-mega-label {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00B8A9;
  background: rgba(0, 184, 169, 0.15);
  border: 1px solid rgba(0, 184, 169, 0.30);
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}
.tp-mega-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}
.tp-mega-sidebar-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.tp-mega-sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: fit-content;
  margin-top: auto;
}
.tp-mega-sidebar-cta:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.35);
  color: #ffffff;
}
.tp-mega-sidebar-cta i { font-size: 0.7rem; }

/* Right list */
.tp-mega-list {
  list-style: none;
  padding: 8px;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Each item */
.tp-mega-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.tp-mega-item:hover {
  background: color-mix(in srgb, var(--mi, #0F4C81), transparent 94%);
  border-left-color: var(--mi, #0F4C81);
}
.tp-mega-item.tp-mega-active {
  background: color-mix(in srgb, var(--mi, #0F4C81), transparent 92%);
  border-left-color: var(--mi, #0F4C81);
}

/* Icon */
.tp-mega-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--mi, #0F4C81), transparent 88%);
  color: var(--mi, #0F4C81);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tp-mega-item:hover .tp-mega-icon,
.tp-mega-item.tp-mega-active .tp-mega-icon {
  background: var(--mi, #0F4C81);
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
}

/* Text */
.tp-mega-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.tp-mega-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  transition: color 0.18s ease;
}
.tp-mega-item:hover .tp-mega-text strong,
.tp-mega-item.tp-mega-active .tp-mega-text strong {
  color: var(--mi, #0F4C81);
}
.tp-mega-text small {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 400;
  line-height: 1.4;
}

/* Arrow */
.tp-mega-arrow {
  font-size: 0.7rem;
  color: #CBD5E1;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.tp-mega-item:hover .tp-mega-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--mi, #0F4C81);
}
.tp-mega-item.tp-mega-active .tp-mega-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--mi, #0F4C81);
}

/* Mobile */
@media (max-width: 1199px) {
  .tp-mega-menu {
    position: static;
    width: 100%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 4px 0 4px 8px;
  }
  .tp-mega-parent.tp-open .tp-mega-menu { display: block; }
  .tp-mega-body { flex-direction: column; }
  .tp-mega-sidebar {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
  .tp-mega-sidebar-inner {
    padding: 14px 14px 12px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .tp-mega-sidebar-title { font-size: 0.82rem; flex-basis: 100%; }
  .tp-mega-sidebar-desc { display: none; }
  .tp-mega-sidebar-cta { font-size: 0.7rem; padding: 5px 10px; }
  .tp-mega-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }
  .tp-mega-list { padding: 6px; gap: 1px; }
  .tp-mega-item { padding: 7px 8px; border-radius: 8px; border-left-width: 2px; }
  .tp-mega-icon { width: 28px; height: 28px; font-size: 0.8rem; }
  .tp-mega-text strong { font-size: 0.78rem; }
  .tp-mega-text small  { font-size: 0.65rem; }
  .tp-mega-arrow { opacity: 1; transform: none; }
}

/*--------------------------------------------------------------
# Solutions — Shared Header & Navbar (tp-header on solutions pages)
--------------------------------------------------------------*/
.tp-mega-parent.tp-nav-active .tp-mega-toggle {
  color: var(--nav-hover-color);
  background: color-mix(in srgb, var(--primary), transparent 92%);
}

/*--------------------------------------------------------------
# Solutions Placeholder Pages (.sol-*)
--------------------------------------------------------------*/

/* ── Hero ── */
.sol-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #0a1e38 0%, #0F4C81 55%, #0a6e6e 100%);
  margin-top: -74px;
}

.sol-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Breadcrumb */
.sol-breadcrumb {
  margin-bottom: 28px;
}

.sol-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.sol-breadcrumb .breadcrumb-item,
.sol-breadcrumb .breadcrumb-item a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sol-breadcrumb .breadcrumb-item a:hover { color: #5EEAD4; }

.sol-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.85); }

.sol-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.30);
}

/* Hero icon */
.sol-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: #5EEAD4;
  backdrop-filter: blur(8px);
}

.sol-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 10px 0 14px;
}

.sol-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
}

.sol-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #0F4C81, #00B8A9);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(15,76,129,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sol-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15,76,129,0.45);
  color: #fff;
}

/* ── Placeholder / Coming Soon section ── */
.sol-placeholder {
  background: #F8FAFC;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.sol-coming-soon {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px;
}

.sol-cs-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,76,129,0.08), rgba(0,184,169,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: #0F4C81;
}

.sol-coming-soon h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.sol-coming-soon p {
  font-size: 1rem;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 28px;
}

.sol-cs-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sol-cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #0F4C81, #00B8A9);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(15,76,129,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sol-cs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,76,129,0.32);
  color: #fff;
}

.sol-cs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: #0F4C81;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 50px;
  border: 1.5px solid rgba(15,76,129,0.28);
  text-decoration: none;
  transition: all 0.22s ease;
}

.sol-cs-btn-ghost:hover {
  background: rgba(15,76,129,0.06);
  border-color: #0F4C81;
  color: #0F4C81;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .sol-hero { padding: 110px 0 56px; }
  .sol-cs-actions { flex-direction: column; align-items: stretch; }
  .sol-cs-btn-primary, .sol-cs-btn-ghost { justify-content: center; }
}
