/* =========================================================
   APPLE RIGHT-TEXT COMPONENT
   Full-bleed background image with side-aligned text
   ======================================================= */

.apple-right-text-component {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--background-color, #000);
}

.apple-right-text-component ul {
  list-style-type: disc;      /* restores bullets */
  list-style-position: inside; /* keeps bullets aligned with text */
  padding-left: 0;
  margin: 16px 0;
}

.apple-right-text-component ul li {
  font-size: 18px;
  color: #ffffff;
}

/* Optional layout helpers from ngClass */
.apple-right-text-component.full-width {
  width: 100%;
}

.apple-right-text-component.centered {
  max-width: var(--site-max-width);
}

.apple-right-text-component.shadow {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  border-radius: 32px;
}

/* Background image fills entire section */
.apple-right-text-component__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  z-index: 0;
}

/* =========================================
   GRADIENT OVERLAY (default: dark on right)
   ======================================= */

.apple-right-text-component__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to right,
     rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.8) 80%
  );
}

/* ALT MODE: dark gradient on the LEFT instead */
.apple-right-text-component.alt .apple-right-text-component__gradient {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.8) 80%
  );
}

/* =========================================
   INNER LAYOUT
   ======================================= */

.apple-right-text-component__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end; /* text on the RIGHT by default */
  padding: 80px min(8vw, 96px);
}

/* ALT MODE: text on the LEFT */
.apple-right-text-component.alt .apple-right-text-component__inner {
  justify-content: flex-start;
}

/* Text block */
.apple-right-text-component__text {
  max-width: 620px;
  color: #ffffff;
  text-align: left;
}

/* Tiny label / part1 / subtitle */
.apple-right-text-component__text h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
}

/* Main title */
.apple-right-text-component__text h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  color: #ffffff;
}

/* Separator – scoped */
.apple-right-text-component .separator2 {
  width: 52px;
  height: 2px;
  margin: 18px 0 20px;
  background-color: rgba(255, 255, 255, 0.7);
}

/* Content text – scoped override */
.apple-right-text-component .center-text-description {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.92);
  max-width: 520px;
}

/* Button – Apple-style pill */
.apple-right-text-component__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 24px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  text-decoration: none;

  background-color: #0071e3;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(15, 23, 42, 0.75);
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.apple-right-text-component__button:hover {
  background-color: #0b84ff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 22px 50px rgba(15, 23, 42, 0.85);
}

/* =========================================
   MINIMAL VARIANT (no image/gradient)
   ======================================= */

.apple-right-text-component--minimal {
  min-height: 0;
  overflow: visible;
}

/* hide image & gradient when minimal */
.apple-right-text-component--minimal .apple-right-text-component__image,
.apple-right-text-component--minimal .apple-right-text-component__gradient {
  display: none;
}

/* inner layout for minimal (no side bias, just a block) */
.apple-right-text-component__inner--minimal {
  justify-content: center;
  padding: 72px 24px;
}

.apple-right-text-component--minimal .apple-right-text-component__text {
  max-width: 640px;
  color: var(--text-color, #111827);
}

.apple-right-text-component--minimal .apple-right-text-component__text h2 {
  color: var(--text-color, #111827);
}

.apple-right-text-component--minimal .apple-right-text-component__text h3 {
  color: rgba(55, 65, 81, 0.8);
}

.apple-right-text-component--minimal .separator2 {
  background-color: rgba(15, 23, 42, 0.2);
}

.apple-right-text-component--minimal .center-text-description {
  color: rgba(31, 41, 55, 0.9);
}

/* Button still uses the same Apple pill look */
.apple-right-text-component--minimal .apple-right-text-component__button {
  margin-top: 24px;
}

/* =========================================================
   Responsive tweaks
   ======================================================= */

@media (max-width: 900px) {
  .apple-right-text-component__inner {
    padding: 64px 32px;
  }

  .apple-right-text-component__text {
    max-width: 460px;
  }

  .apple-right-text-component__inner--minimal {
    padding: 56px 24px;
  }
}

@media (max-width: 640px) {
  .apple-right-text-component {
    min-height: 460px;
  }

  .apple-right-text-component__inner {
    justify-content: center; /* mobile: center text for both sides */
    padding: 56px 20px;
  }

  .apple-right-text-component.alt .apple-right-text-component__inner {
    justify-content: center; /* also center on mobile */
  }

  .apple-right-text-component__text {
    max-width: 100%;
  }

  .apple-right-text-component__text h2 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .apple-right-text-component .center-text-description {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .apple-right-text-component__inner--minimal {
    padding: 48px 18px;
  }
}
