@layer components {
  .weekly-migration {
    padding: 96px 80px;
    background-color: #f7fafd;
  }

  /* Responsive padding */
  @media (max-width: 1200px) {
    .weekly-migration {
      padding: 80px 60px;
    }
  }

  @media (max-width: 768px) {
    .weekly-migration {
      padding: 60px 40px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration {
      padding: 40px 0;
    }
  }
  .weekly-migration .weekly-migration__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
  }

  /* Responsive header spacing */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__header {
      gap: 16px;
      margin-bottom: 32px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__header {
      gap: 12px;
      margin-bottom: 24px;
    }
  }

  .weekly-migration .weekly-migration__banner {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 32px;
    border-radius: 16px;
    padding: 32px;
    background: #eef6ff;
    border: 1px solid #badaff;
    margin-bottom: 48px;
  }

  /* Responsive banner layout */
  @media (max-width: 1024px) {
    .weekly-migration .weekly-migration__banner {
      gap: 24px;
      padding: 24px;
    }
  }

  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__banner {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 20px;
      margin-bottom: 32px;
    }

    .weekly-migration .weekly-migration__banner-icon {
      justify-self: center;
    }

    .weekly-migration .weekly-migration__banner-link {
      justify-self: center;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__banner {
      padding: 16px;
      margin-bottom: 24px;
      gap: 16px;
    }
  }

  .weekly-migration .weekly-migration__banner-icon {
    display: grid;
    place-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #d8eaff;
    color: #165dfb;
    box-shadow: 0px 6px 18px 4px #1e528300;
  }

  .weekly-migration .weekly-migration__banner-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .weekly-migration .weekly-migration__banner-checklist {
    max-width: 622px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 16px;
  }

  /* Responsive banner checklist */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__banner-checklist {
      grid-template-columns: 1fr;
      max-width: 100%;
      padding-top: 12px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__banner-checklist {
      padding-top: 8px;
      gap: 6px;
    }
  }

  .weekly-migration .weekly-migration__banner-link {
    align-self: center;
  }

  .weekly-migration .weekly-migration__weekly-plan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
  }

  /* Responsive weekly plan grid */
  @media (max-width: 1200px) {
    .weekly-migration .weekly-migration__weekly-plan {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
  }

  @media (max-width: 900px) {
    .weekly-migration .weekly-migration__weekly-plan {
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
      margin-bottom: 40px;
    }
  }

  @media (max-width: 600px) {
    .weekly-migration .weekly-migration__weekly-plan {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 32px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan {
      gap: 12px;
      margin-bottom: 24px;
    }
  }

  .weekly-migration .weekly-migration__weekly-plan-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 24px;
    background-color: var(--background);
    padding: 32px 32px 40px 32px;
    box-shadow: 0px 10px 50px 3px #275c8d1a;
    transition: transform 0.3s ease;
  }

  /* Responsive weekly plan item padding */
  @media (max-width: 1024px) {
    .weekly-migration .weekly-migration__weekly-plan-item {
      padding: 28px 24px 36px 24px;
    }
  }

  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item {
      padding: 24px 20px 32px 20px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item {
      padding: 20px 16px 28px 16px;
      border-radius: 16px;
    }
  }

  .weekly-migration .weekly-migration__weekly-plan-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 8px;
    background-color: var(--icon-color);
    border-radius: 24px 0 0 0;
    transition: all 0.3s ease;
    transform-origin: left;
  }

  .weekly-migration .weekly-migration__weekly-plan-item:hover::before {
    width: 100%;
    border-radius: 24px 24px 0 0;
  }

  .weekly-migration .weekly-migration__weekly-plan-item:hover {
    transform: translateY(-24px);
  }

  /* Reduce hover effect on mobile for better UX */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item:hover {
      transform: translateY(-8px);
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item:hover {
      transform: translateY(-4px);
    }
  }

  .weekly-migration
    .weekly-migration__weekly-plan-item:hover
    .weekly-migration__weekly-plan-item__header-icon {
    transform: scale(1.1);
    box-shadow: 0px 16px 42px 3px #275c8d33;
  }

  .weekly-migration .weekly-migration__weekly-plan-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  /* Responsive header spacing */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item__header {
      margin-bottom: 24px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item__header {
      margin-bottom: 20px;
    }
  }
  .weekly-migration .weekly-migration__weekly-plan-item__header-icon {
    display: grid;
    place-content: center;
    background-color: var(--icon-background-color);
    color: var(--icon-color);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    transition: transform 0.3s ease;
  }

  /* Responsive icon sizing */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item__header-icon {
      width: 56px;
      height: 56px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item__header-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
    }
  }

  .weekly-migration .weekly-migration__weekly-plan-item__header-title {
    background-color: var(--icon-color);
    padding: 8px;
    border-radius: 8px;
  }

  .weekly-migration .weekly-migration__weekly-plan-item__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Responsive content spacing */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item__content {
      gap: 20px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item__content {
      gap: 16px;
    }
  }

  .weekly-migration .weekly-migration__weekly-plan-item__content-title {
    color: var(--heading);
    font-size: 1.625rem;
    line-height: 1.2;
    font-weight: 700;
  }

  /* Responsive typography */
  @media (max-width: 1024px) {
    .weekly-migration .weekly-migration__weekly-plan-item__content-title {
      font-size: 1.5rem;
    }
  }

  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item__content-title {
      font-size: 1.375rem;
      line-height: 1.3;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item__content-title {
      font-size: 1.25rem;
      line-height: 1.4;
    }
  }

  .weekly-migration
    .weekly-migration__weekly-plan-item__content-checklist-checkmark {
    display: grid;
    place-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 32px;
    background-color: var(--icon-background-color);
    color: var(--icon-color);
  }

  /* Responsive checklist checkmark */
  @media (max-width: 480px) {
    .weekly-migration
      .weekly-migration__weekly-plan-item__content-checklist-checkmark {
      width: 20px;
      height: 20px;
    }
  }

  .weekly-migration
    .weekly-migration__weekly-plan-item__content-checklist-item {
    margin-bottom: 16px;
  }

  /* Responsive checklist item spacing */
  @media (max-width: 768px) {
    .weekly-migration
      .weekly-migration__weekly-plan-item__content-checklist-item {
      margin-bottom: 12px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration
      .weekly-migration__weekly-plan-item__content-checklist-item {
      margin-bottom: 10px;
    }
  }

  /* Mobile-specific optimizations */
  @media (max-width: 768px) {
    .weekly-migration .weekly-migration__weekly-plan-item {
      /* Improve touch targets */
      min-height: 200px;
    }
  }

  @media (max-width: 480px) {
    .weekly-migration .weekly-migration__weekly-plan-item {
      min-height: 180px;
    }
  }

  /* Ensure proper text wrapping on small screens */
  @media (max-width: 600px) {
    .weekly-migration .weekly-migration__weekly-plan-item__content-title {
      word-wrap: break-word;
      hyphens: auto;
    }
  }
}
