/* Equal-height middle tiles correction */

.home-page main section:nth-of-type(3) {
  padding-top: 4rem !important;
  padding-bottom: 5rem !important;
}

.home-page main section:nth-of-type(3) > div {
  max-width: 1480px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 2.5rem !important;
  align-items: stretch !important;
}

/* Make both tiles same height */
.home-page main section:nth-of-type(3) .home-panel {
  height: 100% !important;
  min-height: 430px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 3.2rem !important;
  background:
    linear-gradient(145deg, rgba(2, 8, 23, 0.68), rgba(8, 20, 40, 0.36)) !important;
  border: 1px solid rgba(0, 242, 255, 0.22) !important;
  border-radius: 2rem !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
  backdrop-filter: blur(14px) !important;
}

/* Keep the small line, but inside the tile */
.home-page main section:nth-of-type(3) .home-panel::before {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, rgb(34, 211, 238), transparent);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.5);
}

/* Reduce long title size and make both tiles visually equal */
.home-page .home-body-title-text {
  display: block !important;
  font-size: clamp(2.35rem, 3vw, 3.65rem) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
  font-weight: 300 !important;
  max-width: 680px !important;
}

/* Keep paragraph readable and aligned */
.home-page main section:nth-of-type(3) .home-panel p:not(.heading-futuristic):not(.section-kicker) {
  margin-top: 1.5rem !important;
  max-width: 680px !important;
  font-size: 1.12rem !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
}

/* Mobile stacks cleanly */
@media (max-width: 900px) {
  .home-page main section:nth-of-type(3) > div {
    grid-template-columns: 1fr !important;
  }

  .home-page main section:nth-of-type(3) .home-panel {
    min-height: auto !important;
    padding: 2.2rem !important;
  }

  .home-page .home-body-title-text {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
}
