/* Lexeb.com index — portal sign-in hub (matches lexeb-platform.css variables) */
.lx-portals-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, rgba(12, 12, 32, 0.4) 0%, var(--lx-bg, #050510) 100%);
  border-top: 1px solid var(--lx-border-2, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--lx-border-2, rgba(255, 255, 255, 0.08));
}

.lx-portals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

@media (max-width: 1300px) {
  .lx-portals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .lx-portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .lx-portals-grid {
    grid-template-columns: 1fr;
  }
}

.lx-portal-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--lx-card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--lx-border-2, rgba(255, 255, 255, 0.1));
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-height: 100%;
}

.lx-portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  color: inherit;
  text-decoration: none;
}

.lx-portal-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lx-portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lx-portal-icon-purple {
  background: rgba(124, 58, 237, 0.22);
  color: var(--lx-purple-light, #a78bfa);
}

.lx-portal-icon-gold {
  background: rgba(245, 158, 11, 0.22);
  color: var(--lx-gold, #f59e0b);
}

.lx-portal-icon-teal {
  background: rgba(6, 182, 212, 0.22);
  color: var(--lx-teal, #06b6d4);
}

.lx-portal-icon-green {
  background: rgba(16, 185, 129, 0.22);
  color: var(--lx-green, #10b981);
}

.lx-portal-icon-pink {
  background: rgba(236, 72, 153, 0.22);
  color: #ec4899;
}

.lx-portal-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--lx-text, #f8fafc);
}

.lx-portal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lx-muted, #94a3b8);
}

.lx-portal-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--lx-muted, #94a3b8);
  margin: 0;
  flex: 1;
}

.lx-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lx-purple-light, #a78bfa);
}

.lx-portal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.lx-portal-cta i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.lx-portal-card:hover .lx-portal-cta i {
  transform: translateX(4px);
}

.lx-portals-dept-label {
  display: none;
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lx-dim, #64748b);
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--lx-border-2, rgba(255, 255, 255, 0.08));
}

.lx-portals-dept-label:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

@media (max-width: 991px) {
  .lx-portals-dept-label {
    display: block;
  }
}
