/* ============================================
   AI WEEK SECTION
   Desktop: full-width card, ai-week.png as background,
            dark-to-transparent gradient on left for text.
   Mobile:  dark block on top with text,
            ai-week2.png attached at the bottom.
   ============================================ */

.ai-week {
  padding: 0 10rem 12rem;
}

.ai-week__card {
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;

  position: relative;
  overflow: hidden;
  border-radius: 3rem;
  min-height: 62.6rem;

  display: flex;
  align-items: center;

  /* Desktop background */
  background: url('../../img/bridge2026/ai-week.png') center right / cover no-repeat;
  background-color: var(--color-deep-space);
}

/* Dark-to-transparent overlay so text stays legible on the left */
.ai-week__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 24, 0.95)  0%,
    rgba(8, 10, 24, 0.88) 25%,
    rgba(8, 10, 24, 0.55) 50%,
    rgba(8, 10, 24, 0.10) 68%,
    transparent            80%
  );
}

/* ============================================
   CONTENT
   ============================================ */

.ai-week__content {
  position: relative;
  z-index: 2;
  padding: 6rem 7rem;
  max-width: 60rem;
}

.ai-week__title {
  font-size: 7.2rem;             /* 72px */
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 3rem;
}

.ai-week__text {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255);
}

/* Mobile image — hidden on desktop */
.ai-week__mobile-img {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .ai-week {
    padding: 0 6rem 10rem;
  }
}

/* MOBILE — dark top block + stacked image */
@media (max-width: 900px) {
  .ai-week {
    padding: 0 4rem 8rem;
  }

  .ai-week__card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    border-radius: 2.4rem;

    /* Drop the desktop image — background is solid dark */
    background-image: none;
    background-color: #0A0E1A;
  }

  /* No overlay needed — background is already solid */
  .ai-week__card::before {
    display: none;
  }

  .ai-week__content {
    padding: 4rem 3rem 3rem;
    max-width: 100%;
  }

  .ai-week__title {
    font-size: 5rem;
    margin-bottom: 2rem;
  }

  .ai-week__text {
    font-size: 2rem;             /* 14px at 7px/rem floor */
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
  }

  /* ai-week2.png snaps to the bottom of the card */
  .ai-week__mobile-img {
    display: block;
    width: 100%;
    height: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .ai-week {
    padding: 0 2.4rem 6rem;
  }

  .ai-week__card {
    border-radius: 2rem;
  }

  .ai-week__title {
    font-size: 4rem;
  }

  .ai-week__content {
    padding: 3.2rem 2.4rem 2.4rem;
  }
}