/* ============================================
   ASTANA HUB BATTLE 2026 SECTION
   Desktop: full-width card, battle26.png as background
            (photo + blur already baked in), text overlaid on the RIGHT.
   Mobile:  battle26-mobile.png on top,
            dark text block below it.
   Mirrors the AI WEEK section, with the text side flipped.
   ============================================ */

.battle {
  padding: 0 10rem 12rem;
}

.battle__card {
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;

  position: relative;
  overflow: hidden;
  border-radius: 3rem;
  min-height: 52rem;            /* tweak to match your image height */

  display: flex;
  align-items: center;
  justify-content: flex-end;    /* text column sits on the right */

  /* Desktop background — blur/gradient already baked into the PNG */
  background: url('../../img/bridge2026/battle26.png') center right / cover no-repeat;
  background-color: var(--color-deep-space);
}

/* Optional safety overlay — UNCOMMENT only if text isn't legible enough
   over the baked image.
.battle__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    270deg,
    rgba(8, 10, 24, 0.85) 0%,
    rgba(8, 10, 24, 0.35) 40%,
    transparent 70%
  );
}
*/

/* ============================================
   CONTENT (right column)
   ============================================ */

.battle__content {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  padding: 6rem 4rem;
  margin-right: 18rem;          /* pull the block in from the right edge, toward center */
}

.battle__title {
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 2.4rem;
}

.battle__subtitle {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.8rem;
}

.battle__text {
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 3.6rem;
}

.battle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;                  /* fills the text column, like the mockup */
  padding: 2rem 4rem;
  border-radius: 11.6rem;
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-brand);
  color: var(--color-white);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.battle__btn:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 1rem 3rem rgba(255, 107, 45, 0.35);
  filter: brightness(1.05);
}

/* Mobile image — hidden on desktop */
.battle__mobile-img {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .battle {
    padding: 0 6rem 10rem;
  }
  .battle__content {
    max-width: 50rem;
    padding: 5rem 3rem;
  }
  .battle__title {
    font-size: 5.6rem;
  }
}

/* MOBILE — image on top, text block below */
@media (max-width: 900px) {
  .battle {
    padding: 0 4rem 8rem;
  }

  .battle__card {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    border-radius: 2.4rem;

    /* Drop the desktop image — background becomes solid dark */
    background-image: none;
    background-color: #0A0E1A;
  }

  /* order flips the DOM sequence so the image comes first */
  .battle__mobile-img {
    display: block;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    order: -1;
  }

  .battle__content {
    max-width: 100%;
    padding: 3rem 3rem 4rem;
    margin-right: 0;
    order: 1;
  }

  .battle__title {
    font-size: 5rem;
    margin-bottom: 2rem;
  }

  .battle__subtitle {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .battle__text {
    font-size: 2rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
  }

  .battle__btn {
    padding: 1.8rem 3rem;
  }
}

@media (max-width: 480px) {
  .battle {
    padding: 0 2.4rem 6rem;
  }

  .battle__card {
    border-radius: 2rem;
  }

  .battle__content {
    padding: 2.4rem 2.4rem 3.2rem;
  }

  .battle__title {
    font-size: 4rem;
  }
}